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
  #62  
Old 06-08-2001, 03:15 AM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First I'm positive that
/../..../.../
is not a valid path.
Also PHP 3 does not support foreach(). I'll probably look into some way around this but for now there's not much I can do. Sorry.
Reply With Quote
  #63  
Old 06-08-2001, 03:22 AM
daydreamer
Guest
 
Posts: n/a
Default

Thanks tubedogg,

Have you figured out the parse error problem with who's online hack yet? You thought that it might be a php3 problem as well...

dd
Reply With Quote
  #64  
Old 06-15-2001, 04:25 PM
annams annams is offline
 
Join Date: Dec 2001
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By reading the description I am not sure whether this hack allows me to conduct a survey or not. [list=1][*]A survey requires that I display several questions in a page, and below each question several possible answers are displayed.[*]User clicks submit after selecting one of the possible answers for all questions.[*]The hack should now propogate users answers to individual polls in vB.[/list=1]

Does this or any other hack for vB supports this? Or there any php/mysql based scripts that do this (even if they are not integrated with vB)?

-- Annam
Reply With Quote
  #65  
Old 06-17-2001, 01:53 PM
surfdude
Guest
 
Posts: n/a
Default

tubedogg,

Many users of the vB seem to ask about poll radio buttons inclusion on their non vB pages with the ability to vote from there. This would be a great tool for all site administrators to pull visitors from their sites into their forums, stick and carrot stylie
But one thing seems to be missing - your reply to these.
Is this deliberate?

tubescan.com still powered by vBulletin Version 2.0.0 Beta 3
Reply With Quote
  #66  
Old 06-21-2001, 03:52 AM
Joshs Joshs is offline
 
Join Date: Oct 2001
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay I need some help... I went to install this hack and found I had a problem.

On my server's "e" drive there is a sites directory. In there are all of my sites, two being my main site and forums. In the poll configuration for the $path variable to the forums/admin/config.php, it doesnt seem to like me entering e:/sites/forums/admin. I dont know what to do and would like to get this working for my new sites launch possibly tomorrow!

Thanks!!!
Reply With Quote
  #67  
Old 06-21-2001, 08:50 AM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by surfdude
Many users of the vB seem to ask about poll radio buttons inclusion on their non vB pages with the ability to vote from there. This would be a great tool for all site administrators to pull visitors from their sites into their forums, stick and carrot stylie
But one thing seems to be missing - your reply to these.
Is this deliberate?
I thought I had answered this a ways up but this hack doesn't do that at this point and probably won't at least for a while. I really don't have the time to write it now.

Quote:
tubescan.com still powered by vBulletin Version 2.0.0 Beta 3
Your point?
Reply With Quote
  #68  
Old 06-21-2001, 08:51 AM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Josh: My experience with Windows servers could be fit into a 1x1 graphic. I have no idea about how stuff like that works and am not really sure what to tell you. Maybe someone else here with experience on Win servers could help him out?
Reply With Quote
  #69  
Old 06-21-2001, 12:17 PM
Joshs Joshs is offline
 
Join Date: Oct 2001
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, thanks!
Reply With Quote
  #70  
Old 06-28-2001, 03:08 PM
Dave# Dave# is offline
 
Join Date: Nov 2001
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kevin is there an easy way just to include a bulleted list of polls without links to the relevant forums or click here for more polls?

Sorry
Reply With Quote
  #71  
Old 06-28-2001, 10:34 PM
Dave# Dave# is offline
 
Join Date: Nov 2001
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've managed to get this to just show the latest polls (no forum links) but it doesn't seem to be showing the latest polls


http://forums.cpfc.org/addons/poll.php

There are definately polls posted after that date and I have included the correct forum ID's
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 05:48 AM.


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.05118 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_onlinestatus
  • (11)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