vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [RELEASE] Poll Hack v1.0.1 (https://vborg.vbsupport.ru/showthread.php?t=4386)

01-10-2001 04:22 PM

Wendy,

Did you use the poll hack on vBulletin 1.1.5? If so could you let me know if there is any special I need to do. Just because the very first change wasn't in 1.1.5 or it was exact. Not quite sure I just really want the easy way out without screwing thing up.

01-10-2001 04:44 PM

Quote:

Originally posted by wendy
Dumb newbie question.

Poll hack installed, works great, but ... when you view the poll results, there are no totals and no percent.

What is the var used for this? this is the pollresults template:
Code:

<TR>
<TD COLSPAN=2 ALIGN="CENTER"><FONT face="verdana, arial, helvetica" size="2" ><B>Total:</B></font></TD>
<TD ALIGN="LEFT"><FONT face="verdana, arial, helvetica" size="2" ><B> votes</B></font></TD>
<TD ALIGN="CENTER"><FONT face="verdana, arial, helvetica" size="2" ><B>100%</B></font></TD>
</TR>

i know i'm missing something before "votes".

here is how it should be:

Code:

<TR>
<TD COLSPAN=2 ALIGN=\"CENTER\"><normalfont><B>Total:</B></normalfont></TD>
<TD ALIGN=\"LEFT\"><normalfont><B>$total votes</B></normalfont></TD>
<TD ALIGN=\"CENTER\"><normalfont><B>100%</B></normalfont></TD>
</TR>

i will release a new version that is 1.1.5 compatible this weekend, hopefulyl get a version that has all variables escaped correctly

01-10-2001 07:15 PM

sorry! no, i'm on version 1.14, probably won't upgrade until i have to!

Thanks for the code, that did the trick ;)

01-14-2001 08:48 PM

I receive this error when I install the poll hack:

Database error in vBulletin Control Panel: Invalid SQL: UPDATE usergroup SET title='!Auto-generated moderator Please leave! Aaron Samsonoff',usertitle='Founder & Owner',canview=1,cansearch=1,canemail=1,canpostnew =1,canreply=1,canadminedit=1,canedit=1,candelete=1 ,canopenclose=1,canmove=1,cancontrolpanel=,canpost poll=1,canusepm=1 WHERE usergroupid=7
mysql error: You have an error in your SQL syntax near 'canpostpoll=1,canusepm=1 WHERE usergroupid=7' at line 1
mysql error number: 1064
Date: Sunday 14th of January 2001 04:48:53 PM
Script: /admin/usergroup.php
Referer: http://www.survivor-chat.com/admin/u...&usergroupid=7


I already have the private messaging hack installed on version 1.1.5 and it works fine, except when I go to change the name of a super moderator to moderator I receive this error message.

Database error in vBulletin Control Panel: Invalid SQL: UPDATE usergroup SET title='Moderator',usertitle='Moderator',canview=1, cansearch=1,canemail=1,canpostnew=1,canreply=1,can adminedit=1,canedit=1,candelete=1,canopenclose=1,c anmove=1,cancontrolpanel=,canpostpoll=0,canusepm=1 WHERE usergroupid=5
mysql error: You have an error in your SQL syntax near 'canpostpoll=0,canusepm=1 WHERE usergroupid=5' at line 1
mysql error number: 1064
Date: Sunday 14th of January 2001 05:52:17 PM
Script: /admin/usergroup.php
Referer: http://www.survivor-chat.com/admin/u...&usergroupid=5


It is for my message forum here http://www.survivor-chat.com Does anybody know what is wrong? I have a feeling the pm hack and the poll hack don't like each other.

01-15-2001 04:24 AM

oh man.......guess i'll have to wait until 2.0 is out to use the poll function......

or can anyone send me the hack?? i mean...it's not that buggy is it?

01-16-2001 09:19 PM

Quote:

Originally posted by webmasterlane.com
I receive this error when I install the poll hack:

Database error in vBulletin Control Panel: Invalid SQL: UPDATE usergroup SET title='!Auto-generated moderator Please leave! Aaron Samsonoff',usertitle='Founder & Owner',canview=1,cansearch=1,canemail=1,canpostnew =1,canreply=1,canadminedit=1,canedit=1,candelete=1 ,canopenclose=1,canmove=1,cancontrolpanel=,canpost poll=1,canusepm=1 WHERE usergroupid=7
mysql error: You have an error in your SQL syntax near 'canpostpoll=1,canusepm=1 WHERE usergroupid=7' at line 1
mysql error number: 1064
Date: Sunday 14th of January 2001 04:48:53 PM
Script: /admin/usergroup.php
Referer: http://www.survivor-chat.com/admin/u...&usergroupid=7

| cancontrolpanel= | that is the issue. you should reedit that file and see if there is a variable after that, namely $cancontrolpanel. it's correct in the documentation for the poll hack.

the hack is on http://www.vbulletin.org

01-16-2001 09:54 PM

Quote:

Originally posted by Martin
Quote:

Originally posted by VirtueTech
This hack is very unoptimized....the person who told me this will remain anonymous.
I would love to see their version of it.

It's easy to sit back and complain about the work of others, not so easy to do it yourself. Your source would do well to remember that doron is doing this out of the goodness off his heart and doesn't have to contribute anything at all.

I know this is old but...AMEN to this! I'm currently trying to implement polls on my forum and I cannot begin to fathom how complex it is.

01-17-2001 02:10 AM

Quote:

Originally posted by SonnetCelestial
Quote:

Originally posted by Martin
Quote:

Originally posted by VirtueTech
This hack is very unoptimized....the person who told me this will remain anonymous.
I would love to see their version of it.

It's easy to sit back and complain about the work of others, not so easy to do it yourself. Your source would do well to remember that doron is doing this out of the goodness off his heart and doesn't have to contribute anything at all.

I know this is old but...AMEN to this! I'm currently trying to implement polls on my forum and I cannot begin to fathom how complex it is.

where can i get this hack???

01-20-2001 09:01 PM

Quote:

Originally posted by SonnetCelestial
Quote:

Originally posted by Martin
Quote:

Originally posted by VirtueTech
This hack is very unoptimized....the person who told me this will remain anonymous.
I would love to see their version of it.

It's easy to sit back and complain about the work of others, not so easy to do it yourself. Your source would do well to remember that doron is doing this out of the goodness off his heart and doesn't have to contribute anything at all.

I know this is old but...AMEN to this! I'm currently trying to implement polls on my forum and I cannot begin to fathom how complex it is.

actually, that got fixed. I'm always open for optimisation suggestions

and you can get it at vbulletin.org.

01-22-2001 12:27 AM

thx :)


All times are GMT. The time now is 08:45 PM.

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.01247 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete