Sponsor-Board.de
IP Sperre bei Star Rating Script

+- Sponsor-Board.de (https://www.sponsor-board.de)
+-- Forum: Community (/forumdisplay.php?fid=56)
+--- Forum: Hilfe (/forumdisplay.php?fid=102)
+---- Forum: Scripting (/forumdisplay.php?fid=108)
+---- Thema: IP Sperre bei Star Rating Script (/showthread.php?tid=7498)


IP Sperre bei Star Rating Script - eplays.de - 24.10.2010 10:46

Hallo,

Ich brauch eure Hilfe und zwar möchte ich bei meinem Star Rating Script eine IP Sperre einbau bekomm es aber nicht hin .

Der Code:

PHP-Code:
<head>
    <
script>

    
// This is the first thing we add ------------------------------------------
    
$(document).ready(function() {
        
        $(
'.rate_widget').each(function(i) {
            var 
widget this;
            var 
out_data = {
                
widget_id : $(widget).attr('id'),
                
fetch1
            
};
            $.
post(
                
'bewertung.php',
                
out_data,
                function(
INFO) {
                    $(
widget).data'fsr'INFO );
                    
set_votes(widget);
                },
                
'json'
            
);
        });
    

        $(
'.ratings_stars').hover(
            
// Handles the mouseover
            
function() {
                $(
this).prevAll().andSelf().addClass('ratings_over');
                $(
this).nextAll().removeClass('ratings_vote'); 
            },
            
// Handles the mouseout
            
function() {
                $(
this).prevAll().andSelf().removeClass('ratings_over');
                
// can't use 'this' because it wont contain the updated data
                
set_votes($(this).parent());
            }
        );
        
        
        
// This actually records the vote
        
$('.ratings_stars').bind('click', function() {
            var 
star this;
            var 
widget = $(this).parent();
            
            var 
clicked_data = {
                
clicked_on : $(star).attr('class'),
                
widget_id : $(star).parent().attr('id')
            };
            $.
post(
                
'bewertung.php',
                
clicked_data,
                function(
INFO) {
                    
widget.data'fsr'INFO );
                    
set_votes(widget);
                },
                
'json'
            
); 
        });
        
        
        
    });

    function 
set_votes(widget) {

        var 
avg = $(widget).data('fsr').whole_avg;
        var 
votes = $(widget).data('fsr').number_votes;
        var 
exact = $(widget).data('fsr').dec_avg;
    
        
window.console && console.log('and now in set_votes, it thinks the fsr is ' + $(widget).data('fsr').number_votes);
        
        $(
widget).find('.star_' avg).prevAll().andSelf().addClass('ratings_vote');
        $(
widget).find('.star_' avg).nextAll().removeClass('ratings_vote'); 
        $(
widget).find('.total_votes').textvotes ' Bewertungen (' exact ' rating)' );
    }
    
// END FIRST THING
    
</script> 


Kann mir da vielleicht wer helfen?

Mfg.


RE: IP Sperre bei Star Rating Script - Thomas - 24.10.2010 11:01

Hast du das selbst geschrieben?
Warum benutzt du nicht ein fertiges Script wie [Link: Registrierung erforderlich] ?


RE: IP Sperre bei Star Rating Script - eplays.de - 24.10.2010 14:32

Hey,

Vielen Dank!

Habs eingebuat und es funktioniert super. Echt klase Danke xD

Ne hab ich nicht selbst geschrieben habs auch heruntergeladen.

Mfg


RE: IP Sperre bei Star Rating Script - Thomas - 24.10.2010 14:34

Prima Wink