Posted on: 04/06/02 04:46pm
By: amckay
There are two simple changes to make.
In /pathtogeeklog/public_html/layout/your-template/pollbooth/polllist.thtml
I cannot get this to come out properly within GL so check this link for details.
This of course defines how your new lines will look like in the list of polls one sees when you click the "polls" button in the top bar. All you are doing is adding something extra to the end of each line.
See that I've added my own variable definitions "vote_url" adnd "vote_text", along with assocaited HTML code. YOu can add them where you like but I put it at the end of the line before the "ending_br".
And then in /pathtogeeklog/public_html/pollbooth.php
Go to line 84 and copy it so you have two copies. This is the line with "poll_url" on it. Change your new line to
I think this comes out OK but check the same link above just in case
$pollitem->set_var('vote_url', $_CONF['site_url'].'/pollbooth.php?qid=' . $Q['qid'] );
Here you are telling the geeklog engine that you have a couple of new template variables that you want it to know about on this page.
And then after that add another line :
$pollitem->set_var('vote_text', 'Cast Your Ballot' );
Here you are adding the second variable. Yes, I should be using the languages file but I haven't figured that out yet. Once I do I'll post an update. In the meantime this will do.
That's it. You are done. Now, all of your polls are constantly active and people can vote on them, even if you do not have them in one of the left or right bars.
Let me know if you have any problems with it.
cheers, -Alan
Posted on: 20/08/03 03:18am
By: Anonymous
Posted on: 02/05/04 07:29pm
By: amckay
Posted on: 02/05/04 09:28pm
By: Anonymous
Posted on: 11/05/05 12:54am
By: kevinolean
Posted on: 16/07/05 04:33pm
By: lgriffin
Posted on: 20/04/06 02:40pm
By: kreative
Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=21133