Version: , by tubedogg
Developer Last Online: Dec 2016
Version: 2.0.x
Rating:
Released: 04-11-2001
Last Update: Never
Installs: 2
No support by the author.
v0.2.0 Released! Last Updated: 06/01/01
NOTE: DO NOT put this in your forums directory or it WILL overwrite your poll.php file! You must either a) put this in a separate directory or b) rename this to poll1.php or something similar (the script will still function correctly if you do this).
This hack is a request by Me2Be, to show the titles of the poll threads on another page. It uses the header and footer from your vB, and is for use as a stand-alone page. In a future release of the hack, I will look into displaying results of the polls also. For right now, though, it just displays the thread title, linked to that thread, and the forum that the thread is in (they are grouped by forum). You can set the forums to look for polls in, as well as how many polls you want to show on the main screen. There is a separate screen that will show all of the poll threads from any given forum, and a link to this screen is generated any time there are more threads than you want displayed. You can also customize it so you can use it as a separate page, or remove the HTML to use it as an include on another page (it is clearly labeled where to insert HTML).
For version: 2.0.0
Files needed: poll.php, pollconfig.php
Files to edit: pollconfig.php
Instructions
1] Download the zip file, and unzip it somewhere on your hard drive. Open pollconfig.php in an ASCII text editor, such as TextPad, UltraEdit, EditPlus, Notepad, Wordpad, or a similar program. DO NOT use a program such as HotDog, HoTMeTaL, FrontPage, or another WYSIWYG editor. I cannot support you if you open your file in one of these programs.
2] You need to edit the following variables:
$path - the path to your config.php, relative to where you are putting pollconfig.php. So, if your config.php file is in /home/me/html/forums/admin and you are putting this file in /home/me/html/ then the path is forums/admin - no trailing slash, and no "config.php".
$url - the URL to your forums. For example, http://www.mysite.com/forums - no trailing slash, no whateverfile.php.
$forums - the forum numbers to use, separated by a comma. You can find out the number of a forum by going to your forums' index.php and running your mouse over the link to the forum(s) you want to include. Make a note of "xx" in forumid=xx where xx is a number (this will appear in the status bar of your browser).
$maxresults - the maximum results to show on the main page for each forum. If you set this to 3, for example, and there are 5 polls in a given forum, the script will generate a "more polls for this forum" link, which will link to a page with all the polls for that forum listed.
$id - the ID of the replacement set you want to use. If you have a custom set, put that ID here. If you leave this blank it will use the style named "Default" that comes with vB.
3] Save this file.
4] Upload poll.php and pollconfig.php to your server. DO NOT UPLOAD the files to your vB directory! Doing so will overwrite the vB poll.php which will mean no one will be able to post new polls! Go to poll.php in a browser to make sure it is working correctly. Then you can link to it from another page, or from your forums.
Please do not contact me via ICQ, AIM, or PM about this hack. Post your question/problem here and I will see it and try to help you.
Enjoy!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
After much hair-pulling and screaming at the monitor, I have completed the changes mentioned by Me2Be (adding the board's header and footer). You can take a look at the demo to see how it works.
One more thing I should point out: This will work with any beta from 2 through 5 (and probably 1, also). I said beta 5, but then I realized I was testing it with beta 2, not beta 5 (long story...) and so it does work with beta 2, and therefore should work with 1, and will work with 3 and 4.