View Full Version : Poll Hack on VB1.1.6
isman
04-24-2001, 12:22 AM
Has anyone used the poll hack in VB 1.1.6?
I'm working on a hack running on an Apache server and I'm getting code parse errors on the page.
http://isman.freephp.digiro.net/forums/showthread.php?threadid=2
Can anyone offer any suggestions on this one?
If you need to see the actual code let me know.
Thanks in advance. :)
doron
04-24-2001, 09:20 AM
i'm the writer of the hack. What is your line 7 of showthread.php?
isman
04-24-2001, 12:03 PM
eval("$creditscode = \"".gettemplate('creditscode')."\";");
Thanks for looking.
doron
04-24-2001, 12:17 PM
hmm, that is not part of the poll hack. Was it working before you installed it?
isman
04-24-2001, 12:43 PM
It was working before I installed it. The hack I setup didn't include any changes on line 7. Most of the changes were more toward the middle and end of the showthread.php
//poll hack
$posts=$DB_site->query("SELECT post.dateline as dateline,post.postid as postid,post.pagetext as pagetext,
post.allowsmilie as allowsmilie,post.signature AS showsignature,post.title as title,
post.ipaddress as ipaddress,post.iconid as iconid,post.username as fakename,
post.userid as userid,post.pollid as pollid,
user.userid as userid,user.email as email,user.username as username,
user.usertitle as usertitle,user.signature as signature,user.showemail as showemail,
user.homepage as homepage,user.icq as icq,user.aim as aim,user.yahoo as yahoo,
user.joindate as joindate,user.posts as posts
FROM post
LEFT JOIN user ON (user.userid = post.userid)
LEFT JOIN icon ON (icon.iconid = post.iconid)
WHERE post.threadid=$threadid AND visible=1
ORDER BY dateline $postorder
LIMIT $limitlower,$perpage");
//end poll hack
and
////////// poll hack start
if ($post[pollid] <> 0) { //post has a poll
$pollmodule = 'pollshow';
include ('pollmodule.php');
}
//end of "post has poll"
else $pollbit = ''; //no poll, nothing returned
//lets get the signature after the poll
$message=bbcodeparse($post[pagetext],$forumid,$post[allowsmilie]).$pollbit.bbcodeparse($signature,0,$allowsmilies) ;
/////end poll hack
Line 7 is the original code for showthread.php. Remember I'm using version 1.1.6. I don't know what any of the previous versions looked like.
doron
04-24-2001, 06:06 PM
does removing the poll code from the file fix this?
isman
04-24-2001, 06:15 PM
Nope, if you follow the link in the first post you'll open the original showthread.php. The parse error is still there.
Not sure what that means.
doron
04-24-2001, 08:23 PM
i just visited the url, no error..
isman
04-24-2001, 10:48 PM
Took me a minute to get the correct version up there.
Yes, with the non-hack version it shows up correctly. With the hacked version I get the parse error.
Can you help me with a fix for this. I'd really like to play with the poll hack .
isman
04-25-2001, 01:21 AM
I discovered my provider is using php3. I uploaded to proper version and made the appropriate modifications and the problem is solved.
I have but one more question.
When you go into view the poll for the first time, before you vote, the question test is all scrunched up (technical term).
http://isman.freephp.digiro.net/forums/showthread.php3?threadid=2
Any suggestions on that one. That should be easy compared to the last one.
Thanks in advance. :)
doron
04-25-2001, 08:07 AM
template pollview
look for COLSPAN="$colwidth"
replace it with COLSPAN="\$colwidth"
isman
04-25-2001, 02:39 PM
Thanks for all your help doron.
Actually, the $colwidth wasn't in the code so I added it in and it fixed the problem.
I appreciate your patience and willingness to assist the php retarded.
Again, many thanks.
Gary
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.