Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-19-2001, 03:36 AM
SystemLogic SystemLogic is offline
 
Join Date: Nov 2001
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright I have a problem in my polls. I copy and paste the HTML from a poll onto my website. The only problem is the hidden variable for s. If I leave it blank it just gives me a white page, if I put the hash code in it, I can only vote once. Is there a variable that will generate a new hash code that works everytime? Or is there anything you can recommned me doing? Is there anyway to turn off the check on the hash code?

Any help would be much appreciated.
Reply With Quote
  #2  
Old 06-25-2001, 03:01 AM
SystemLogic SystemLogic is offline
 
Join Date: Nov 2001
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump, no answers?
Reply With Quote
  #3  
Old 06-25-2001, 06:48 AM
NgtCrwlr's Avatar
NgtCrwlr NgtCrwlr is offline
 
Join Date: Jan 2002
Location: Fort Myers, FL, USA
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Greets Dave,

I'm jumping in here because I need the same answer. I setup a hack that writes the poll data to a file each time a poll is voted on. I then pull this file into whatever page I want and link back to the poll for voting. I would prefer having the questions posted on the remote pages instead of the results though.

I like the file include because pulling the poll results into several different pages puts practically no load on the server. However, I don't see my system working well with the typical question/vote first and then display the results.

If you don't mind displaying the results first you are welcome to use my little creation. I've had it up for only a few days, however, it seems to be working well.
Reply With Quote
  #4  
Old 06-25-2001, 05:57 PM
SystemLogic SystemLogic is offline
 
Join Date: Nov 2001
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well let me show you exactly what I mean. For example head to:

http://www.systemlogic.net/articles/01/6/g550preview

If you scroll down to the bottom of the article you see a poll that says "Did you like this article?"

I just ripped the HTML from the actual poll in the forum thread.

But if you vote, it gives you a blank page.

That's because the hidden variable "s" is supposed to be a hash code, but because I can't make it different (that's what I'm asking how to do) everytime, it won't log the vote.

Any ideas?
Reply With Quote
  #5  
Old 06-26-2001, 01:04 PM
ToraTora! ToraTora! is offline
 
Join Date: Nov 2001
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have no advice to offer on this subject, other than the fact I wanted to compliment NgtCrwlr on his beautiful photography and site.

It is definitely something that is worth revisiting on a regular basis.

Excellent work!
Reply With Quote
  #6  
Old 06-26-2001, 01:41 PM
NgtCrwlr's Avatar
NgtCrwlr NgtCrwlr is offline
 
Join Date: Jan 2002
Location: Fort Myers, FL, USA
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I truely appreciate your kind words ToraTora!

I have a lot of plans for expanding the digital photography part of the site so stay tuned. Stop by our Chatter Box forum and say hey once in a while.

Cheers!
Reply With Quote
  #7  
Old 06-26-2001, 02:05 PM
ToraTora! ToraTora! is offline
 
Join Date: Nov 2001
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem, i will stop by in a couple of days once we get our server issues settled.
Reply With Quote
  #8  
Old 06-29-2001, 02:00 PM
SystemLogic SystemLogic is offline
 
Join Date: Nov 2001
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright I figured out how to make the random session id by doing making this s:

<?$session = md5(uniqid(rand())); echo $session;?>

BUT, it still doesn't work. I figure because VBulletin sets a cookie when you browse the message boards, so does anybody have an idea of what I can do to get this working?!??
Reply With Quote
  #9  
Old 06-30-2001, 11:32 AM
Jonathan@Refresh
Guest
 
Posts: n/a
Default

You should really use the actual session hash assigned to that user (each visitor gets their own unique hash).

I think if you put
Code:
include("path/to/global.php");
at the top of the page and put s=$session[sessionhash] in the poll form, that will automatically put the right session hash in for that visitor.

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

I tried doing that and I'm getting this error:

Fatal error: Failed opening required './admin/config.php' (include_path='') in /path/to/boards/global.php on line 66

Any ideas?
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:20 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.04098 seconds
  • Memory Usage 2,247KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)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