PEAK XOOPS - how to prevent repeated rating in the same photo..... in englishin japanese

how to prevent repeated rating in the same photo.....

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2006/8/21 12:55
kknewer  ÆóÅùʼ   Posts: 1
Hi
myAlbum-p is great for me !!
I used this module for my member campaign all the time!! it's great & funny!!

but I got question about photo rating ....
some members will repeated rating in the same photo ., the module limited rating by account(id) but not ip , so...
those guys use this feature to registered many different ID to rating the same photo which they focus.

It's really bother us !!

I really need this rating feature for my campaign but I don't want repeated rating to the same photo!!

I think ..
If we can change account limited to ip limited in the same photo rating .., that will be better for us !!

but How to modify ?

Any suggestion?

thanx

myAlbum-p 2.8
xoops 2.0.6
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2006/8/23 4:50
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Quote:
some members will repeated rating in the same photo ., the module limited rating by account(id) but not ip , so...
No.
first ID, second IP.

If you controll it only by IP, edit ratephoto.php
	if( $ratinguser != 0 ) {

		// Check if Photo POSTER is voting
		$rs = $xoopsDB->query( "SELECT COUNT(*) FROM $table_photos WHERE lid=$lid AND submitter=$ratinguser" ) ;
		list( $is_my_photo ) = $xoopsDB->fetchRow( $rs ) ;
		if( $is_my_photo ) {
			redirect_header( "index.php" , 4 , _ALBM_CANTVOTEOWN ) ;
			exit ;
		}

		// Check if REG user is trying to vote twice.
		$rs = $xoopsDB->query( "SELECT COUNT(*) FROM $table_votedata WHERE lid=$lid AND ratinguser=$ratinguser" ) ;
		list( $has_already_rated ) = $xoopsDB->fetchRow( $rs ) ;
		if( $has_already_rated ) {
			redirect_header( "index.php" , 4 , _ALBM_VOTEONCE2 ) ;
			exit ;
		}

	} else {

Edit also line 21 of the file if you need.
	$anonwaitdays = 1 ;

Votes:1 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!