Sympoll script (Php Help needed)

Any other shit you want to talk about.

Sympoll script (Php Help needed)

Postby Koby » 2006-09-07 12:12 am

Hello, anyone that knows a little php and willing to help me, please read on.

I have downloaded a poll script known as sympoll, and am having a little problem.

I have added the poll code into my navigation php include, but when people vote it sends them back to that include, rather then sending them back to the actual page the visitor was on. I read in the Readme file that I can fix this by editing the echo's in booth.php to returns. However when I tried, I must of done it wrong, as it simply made the poll not appear. Can you please tell me what to change this to to make it work and go back to the page the visitor was on rather then my navigation?

/* for use with templates, you can optionally change the following
* three functions to use return instead of echo. this will return
* all the html text instead of directly displaying it.
*/

function display_booth($pid) {
echo symp_get_booth($pid);
}
function random_booth() {
echo symp_get_booth(-1);
}
function newest_booth() {
echo symp_get_booth(-2);
}


Thanks,
-Koby.

If you need all of the booth.php file coding, I can post it.
Image
Come visit Kametsu Forums, an anime and gaming forum with anime downloads, amv's, an arcade, triple triad, rpg mod, and much much more!
Koby
Advanced Member
 
Posts: 806
Joined: 2004-07-09 08:50 pm
Location: Texas, United States

Return to Other

Who is online

Users browsing this forum: No registered users and 1 guest

cron