Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by tubedogg tubedogg is offline
Developer Last Online: Dec 2016 Show Printable Version Email this Page

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.
  • $images - the URL to your forum images. For example, http://www.mysite.com/forums/images - no trailing slash, no whatever.gif.
  • $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.

Comments
  #2  
Old 04-12-2001, 04:30 PM
Me2Be's Avatar
Me2Be Me2Be is offline
 
Join Date: Oct 2001
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 04-12-2001, 04:33 PM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whoops! You're right. Gotta fix that. edit: fixed

You're welcome.
Reply With Quote
  #4  
Old 04-12-2001, 04:41 PM
Me2Be's Avatar
Me2Be Me2Be is offline
 
Join Date: Oct 2001
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #5  
Old 04-12-2001, 04:43 PM
Me2Be's Avatar
Me2Be Me2Be is offline
 
Join Date: Oct 2001
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by tubedogg
Whoops! You're right. Gotta fix that. edit: fixed
Close, just change it to poll.php instead of polls.php

But it looks great!!!

Is there a way to add the forum header/footer/styles?

(Aren't I full of questions?)
Reply With Quote
  #6  
Old 04-12-2001, 04:45 PM
Streicher Streicher is offline
 
Join Date: Oct 2001
Location: Reinbek, Germany
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The Demo has still a 404 Error.
Reply With Quote
  #7  
Old 04-12-2001, 04:46 PM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wait no no no! 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.
Reply With Quote
  #8  
Old 04-12-2001, 04:50 PM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm...give me a little bit and I'll try to work in the header/footer styles.
Reply With Quote
  #9  
Old 04-12-2001, 04:54 PM
jojo85
Guest
 
Posts: n/a
Default

Nice one thx
Reply With Quote
  #10  
Old 04-12-2001, 05:04 PM
Me2Be's Avatar
Me2Be Me2Be is offline
 
Join Date: Oct 2001
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by tubedogg
Wait no no no! I'm sorry, don't replace poll.php - this is totally separate from that. I should have made that more clear.
Oops! Thank GOODNESS I saved the other copy

(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*
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:51 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07192 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete