Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-16-2000 Last Update: Never Installs: 0
 
No support by the author.

Yep, here it is, the poll hack for vBulletin, tested on 1.1.2 and 1.1.3 Beta3.

The hack incorparates a poll as a thread starter, where users can vote and reply normally. You can view the test forum at http://www.naboonline.com/polltest/index.php

I hope the instructions are clear, any questions should go here.

Download the zip here!

Enjoy!



[Edited by doron on 07-16-2000 at 11:47 AM]

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 07-20-2000, 06:42 AM
Guest
 
Posts: n/a
Default

the zip is the latest, there is a notes.txt which tells you what to do.

It's been isntalled on 1.1.2 and 1.1.3b3
Reply With Quote
  #33  
Old 07-20-2000, 08:32 AM
Guest
 
Posts: n/a
Default

YOU DA MAN!
Reply With Quote
  #34  
Old 07-20-2000, 01:34 PM
Guest
 
Posts: n/a
Default

I'm not sure whether this is related to this hack or not. Im running 1.1.3 beta 3 with the latest version of the PM hack installed. I have just added this poll hack and had followed the step by step instructions precisely to the stage where i had successfully posted a test poll, which worked perfectly. I could view the test poll and vote on it without a problem

at this point i decided to switch my VB back on. However, after submitting the options I ended up getting a parse error:

Quote:
Parse error: parse error, expecting `STRING' or `'{'' or `'$'' in global.php on line 57
which corresponds to
Code:
// ###################### Start dovars #######################
If I try to visit the forum I receive a slightly different parse error:
Quote:
Parse error: parse error, expecting `STRING' or `'{'' or `'$'' in global.php on line 52
corresponding to:
Code:
eval($optionstemp[template]);
I've got no idea why this has suddenly happened, especially as global.php isnt altered by the poll?

Does anyone know what I could do to fix this problem?

TIA

[Edited by Morgo on 07-20-2000 at 10:39 AM]
Reply With Quote
  #35  
Old 07-20-2000, 07:56 PM
Guest
 
Posts: n/a
Default

Hi Doron,

I added your poll and now everything is running smoothly. However, I do have a couple of remarks:

1) I do not use icons; therefore, I kept getting a mysql error. I solved this eventually by changing "iconid=$iconid"; in poll.php to "iconid=0;".

2) I would like to have a regular prefix to poll threads in their title, something like "[Poll]:" - any idea how I can do that?

3) I think that somewhere on the forumdisplay, next to the poll-thread title or even under "replies" it should have the total number of voters so far. Any idea how I can add that?

Thanks for a great hack!

Toda

Bira
Reply With Quote
  #36  
Old 07-20-2000, 09:02 PM
Guest
 
Posts: n/a
Default

Quote:
1) I do not use icons; therefore, I kept getting a mysql error. I solved this eventually by changing "iconid=$iconid"; in poll.php to "iconid=0;".
yeah, that's the best way

Quote:
2) I would like to have a regular prefix to poll threads in their title, something like "[Poll]:" - any idea how I can do that?
showthread.php, line 69
look for
Code:
$threadtitle=htmlspecialchars($threadinfo[title]);
change it to:
Code:
$threadtitle='Poll: ' . htmlspecialchars($threadinfo[title]);
That will add a Poll: infront of each poll.

Quote:
3) I think that somewhere on the forumdisplay, next to the poll-thread title or even under "replies" it should have the total number of voters so far. Any idea how I can add that?
that's planned for the next version
Reply With Quote
  #37  
Old 07-20-2000, 09:41 PM
Guest
 
Posts: n/a
Default

Doron,

Changing that line 69 in showthread.php will put a "Poll:" prefix ahead of ALL threads, not just the poll ones, no???
Reply With Quote
  #38  
Old 07-20-2000, 10:11 PM
Guest
 
Posts: n/a
Default

Doron,

You have a small bug - in the template pollresults, the link back to the forum is forumshow.php?forumid=$forumid whereas it should be forumdisplay.php etc.
Reply With Quote
  #39  
Old 07-20-2000, 10:18 PM
Guest
 
Posts: n/a
Default

One more impeding wish, Doron:

Can you please add to the user permissions (as opposed to usergroup permissions) a "can post new polls - yes/no" option? This way, if someone abuses this option, I can simply bar him personally from posting polls.

Thanks,

Bira
Reply With Quote
  #40  
Old 07-20-2000, 11:23 PM
Guest
 
Posts: n/a
Default

Doron, in the vote options (the options you vote for) it adds a slash ahead of an apostrophe, like "It\'s"
Reply With Quote
  #41  
Old 07-21-2000, 07:17 AM
Guest
 
Posts: n/a
Default

hm... if you use addslashes() in the right way, there shouldn't be a problem.

Unless magic_quotes is activated in your php.ini file.
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 04:38 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
  • Page Generation 0.07832 seconds
  • Memory Usage 2,281KB
  • 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
  • (4)bbcode_code
  • (5)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
  • (4)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
  • (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
  • 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