![]() |
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:
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! |
Thank you! Thank you!!
Actually, I didn't want the poll results on the page, so this is great. I'm off to try it now! BTW, the demo link goes to a 404 page :) |
Whoops! You're right. Gotta fix that. edit: fixed :D
You're welcome. ;) |
Well, I replaced the poll.php and the pollconfig.php and uploaded it. When I go to test the poll.php file and put in my subject, message, check poll and enter how many options, it goes the the redirect screen and then back to the forumdisplay again.
It never went to ask me for poll options, and it also put my thread in the moderator queue (which is normal if someone creates a post, clicks poll and doesn't provide any options) |
Quote:
But it looks great!!! Is there a way to add the forum header/footer/styles? (Aren't I full of questions?) :D |
The Demo has still a 404 Error.
|
Wait no no no! :D I'm sorry, don't replace poll.php - this is totally separate from that. I should have made that more clear. This is for elsewhere on one's site. Sorry...you need to reupload poll.php from beta 5 to your forums directory, and put poll.php from my hack in a separate directory, or rename it to poll1.php or something like that.
Streicher: Yes you're right. It is now really fixed. ;) |
Hmm...give me a little bit and I'll try to work in the header/footer styles.
|
Nice one thx :)
|
Quote:
(I backup everything when I make changes!) I'm still on beta 2 (until next week when 6 comes out), I wonder if it will still work. *off to try it* |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
I can't wait to go live with this :) |
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.
Enjoy! |
Where's the demo?? :D
|
Quote:
Demo: http://www.tubescan.com/poll.php at the very firt page!! |
Oh I am SOOOO happy! :D
**off to try it!!! ** THANK YOU KEVIN!!!!! |
You're welcome, Me2Be. ;)
Rob: Sorry I should have pointed that out. :D 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. |
wow nice... might need to upgrade to beta 5 for this :)
|
It works with betas 2-4 also, George. ;)
|
ne chance of a hack that puts a poll on ya main page like emm... the optims like a radio button. you know like the ones on sites well ne way. is it possible.
|
I made a few "asthetic" modifications, but it works great!!! I'll send you the URL so you can check it out.
Also, I renamed your poll.php file to polllist.php so I could put it in the main directory and it works great!!! If you ever decide to "enhance" upon this, can I throw out a couple more suggestions? (I'm saying "enhance" because it works great now!) 1] Ability to put the info HTML into a template so we can add some commentary (like "My Poll List") and a <title>Title</title> 2] Ability to use color styles of the style choice Kevin, you did an awesome job and I can't thank you enough!!!! I love it!! |
Quote:
don't know why , but i feel like waiting for beta 6 or something... |
Perfect, it is just I was looking for! :)
Thanks tubedogg. In poll.php it seems there is not the close </ul> at the end of line 97. It would be very nice to show the date the poll started, so people can know if they have already visited that poll or not. :) |
Does this hack work with RC2?
|
yes
|
Muchas gracias :)
|
It seems that phpinclude stuff is not processed in header and footer when this hack is displayed.
I have $thefooter defined in phpinclude and with this hack is just displas $thefooter where the footer is supposed to be Also Powered by: vBulletin $templateversion is shown just like that, so the $templateversion variable is also not processed. There must be a simple fix , please look into that. Kevin, please respond to this post. |
Is it possible to make a hack, which displays the results of a vote with the colored bars on a non vB page?
|
^^^^^^^
tubedogg, please respond to my previous post of phpinclude not working with this hack. I really want to use this hack, but can't without phpinclude stuff working. |
Quote:
|
I'm having a problem with this script now that eventhough I se the maxresults to 5 or what have you in the config, the script is still pulling every single poll out.
|
v0.2.0 has been released, and is updated to ensure it works with vBulletin 2.0.0. It also now includes the phpinclude template.
|
Parse error: parse error in /usr/local/plesk/apache/vhosts/myhost.com/httpdocs/forum/pollist.php on line 105
:( |
I am getting the same exact error...
|
I have updated the first post in this thread with v0.2.1 which fixes the parse error and this time actually utilizes the phpinclude template as opposed to just echoing it to the page. :rolleyes:
|
Now I am getting blank pages
|
Try deleting poll.php and pollconfig.php off your server and reuploading them.
|
All times are GMT. The time now is 03:51 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|