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)

11-03-2000 10:23 PM

Ahhh I did not think of that....YES...that is it.

11-03-2000 10:32 PM

Doron - so you don't get confused by my last post....the fix did not work.

11-03-2000 10:35 PM

Freddie - I don't want the moderators to know about the control panel and other such things...but I do agree with your statement.

11-03-2000 10:35 PM

The problem is that you need to put quotes around your form variables.

ie username="$username" instead of username=$username

;)

Can I mod the "Bugs in Hacks" forum also?

11-03-2000 10:50 PM

Damn doron you made it difficult, you need to put more of it into templates. Jim you need to edit the code that sets the $formend variable in pollmodule.php and put quotes around the line that sets the $username

This line:
Code:

$formend= "<INPUT TYPE=hidden NAME=action VALUE=pollvote><INPUT TYPE=hidden NAME=username VALUE=$bbusername><INPUT TYPE=hidden NAME=password VALUE=$bbpassword><INPUT TYPE=submit NAME=submitaction VALUE=Vote!> <A HREF=poll.php?action=showresults&pollid=$pollid><normalfont>View Results</normalfont></A></FORM>";
Needs to be:

Code:

$formend= "<INPUT TYPE=\"hidden\" NAME=\"action\" VALUE=\"pollvote\"><INPUT TYPE=\"hidden\" NAME=\"username\" VALUE=\"$bbusername\"><INPUT TYPE=\"hidden\" NAME=\"password\" VALUE=\"$bbpassword\"><INPUT TYPE=\"submit\" NAME=\"submitaction\" VALUE=\"Vote!\"> <A HREF=\"poll.php?action=showresults&pollid=$pollid\"><normalfont>View Results</normalfont></A></FORM>";
(And it needs to be in a template also)

[Edited by freddie on 11-03-2000 at 07:53 PM]

11-03-2000 10:55 PM

you mean the pollmodule.php....new zip is up with the fix.

it's complex cause I do it dynamically, not via templates. It's a waste of mysql for one line only.

now this should be settled, I aplogise for the inconvinience. but that is what users are for, to be misused for finding bugs ;)

11-03-2000 11:07 PM

Doron yes but I do some dynamic things in my hacks also and you can use templates, albeit alot of them. Just look how many I use in my hacks.

11-03-2000 11:46 PM

Something's wrong...

When i click on 'view results' i get this:

There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.


And guess what you get on 'polltest forum'. :p
http://www.naboonline.com/polltest

Here's address line
http://www.naboonline.com/polltest/p...pollid=$pollid

There should be number instead of $pollid, right?

[Edited by PeF on 11-03-2000 at 09:02 PM]

11-04-2000 12:06 AM

Same problem here ... the "view results" link does not work.

http://209.15.159.99/showthread.php?threadid=60884

Go there and try for yourself.

11-04-2000 01:48 AM

The $pollid is being escaped somehow so it isn't being parsed. I will let Doron tell you how to fix it when he comes online..


All times are GMT. The time now is 03:36 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.01161 seconds
  • Memory Usage 1,733KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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