Allow Guest Vote mod question
-----
| Author | Message | |
|---|---|---|
|
Kerry |
||
| Sun Jun 18, 2006 3:21 pm Post subject: Allow Guest Vote mod question | ||
|
Disregard Question Update 6/19
phpBB version 2.0.21 Allow Guest Vote Version 2.0.2 - Thursday, June 30, 2005 6:30 pm Eastern Time Board Name Dear Gabby Tips Vote permission to All stays. but a guest friend just tried to vote on and got: Parse error: parse error, unexpected T_IF in /home/comcom/public_html/phpBB/posting.php on line 497 Here's the code a little above and below line 497. The problem seems to have been fixed by adding a semi colon after make_guest_sql(); Quote: GROUP BY vd.vote_id";
if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not obtain vote data for this topic', '', __LINE__, __FILE__, $sql); } if ( $vote_info = $db->sql_fetchrow($result) ) { $vote_id = $vote_info['vote_id']; /*------------------------------------------------------------------------------ // Allow Guest Voting - Begin Code Addition // Added: . make_guest_sql() // Original phpBB Code: AND vote_user_id = " . intval($userdata['user_id']); */ $sql = "SELECT * FROM " . VOTE_USERS_TABLE . " WHERE vote_id = $vote_id AND vote_user_id = " . $userdata['user_id'] . make_guest_sql(); // Allow Guest Voting - End Code Addition; if ( !($result2 = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not obtain user vote data for this topic', '', __LINE__, __FILE__, $sql); Suggestions please, Thanks, Kerry |
||
|
Kerry |
||
| Sat Jul 15, 2006 2:46 pm Post subject: re: Allow Guest Vote mod question | ||
|
Since posting I've fixed it. I don't know what I did to fix it but it appears to be working.
Because I've already voted I'm now prevented from voting so I sure would appreciate a few tests at Dear Gabby. |
||
Page 1 of 1