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

Reply
 
Thread Tools
Any hope for cookies working with frames? Details »»
Any hope for cookies working with frames?
Version: , by Christophe_O Christophe_O is offline
Developer Last Online: Jan 2011 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-02-2002 Last Update: Never Installs: 0
 
No support by the author.

:alien: I have modified my vB to work inside frames. Why? Because I have 1,500 potential forum members who are accustomed to Delphi forums with frames. They might or might not care whether I have frames, but I want to be ready to give them whatever they want... if possible...

The problem: the cookies don't work. This means (correct me if wrong) firstly, "Browse Board with Cookies" option MUST be set on NO for every member--thus "using the links for recognition." Otherwise, members will not be able to edit their profiles.

Secondly---because of using "link recognition" instead of cookies---then at least half the time, members will have to re-log every time they post a message, visit their Member CP, etc. This is because "link recognition" requires link continuity. This continuity can not be maintained with frames.

FRAMED FORUMS NEED COOKIES even more than non-framed forums---but cookies simply don't work because vB is not designed for frames...

Am I right about this? And if so---just how difficult is it to get cookies working with a framed vBulletin?

Someone point me in the right direction, please. Thank you.

Show Your Support

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

Comments
  #2  
Old 09-02-2002, 06:29 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To get cookies working with frames, I think this may work - go to your Admin CP, then to vBulletin Options.

Go to this section:

Cookie Domain
The domain on which you want the cookie to have effect. If you want this to affect all of yourhost.com rather than just forums.yourhost.com, enter .yourhost.com here (note the 2 dots!!!). Can be left blank.

Leave that field blank. Cookies should be saved permanently.

I haven't tried it... see if that works.
Reply With Quote
  #3  
Old 09-02-2002, 08:54 PM
Christophe_O's Avatar
Christophe_O Christophe_O is offline
 
Join Date: Jul 2002
Location: New England
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:rambo: Thank you for the good suggestion, Erwin. Was worth a try--but no, doesn't work.

Why did you say, "Leave the field blank..."? It was blank before. The idea, I gather, was to extend the cookie activity to cover all levels of www.forumdale.com --- rather than just www.forumdale.com/forums/ --- thereby working with the frame that was at the higher level... Well anyway, I tried .forumdale.com, both with and without the extra dot--also I tried putting my index.html frame inside /forums/ and even /forums/admin/ ---no success.

Meanwhile, I think maybe I have figured a workable procedure. I can replace the standard log-in page with a pop-up <target="_blank"> link to a log-in page. So log-ins will occur OUTSIDE the frame---users then are prompted to "close this window" and return to the frame, all logged-in... well I tested this theory and so far, it works!

This also (maybe) indicates why your idea did not work. The problem is not "recognizing the domain level of the frame...." The problem is that for some reason (??????) cookies can not "see" anything that goes on inside the frame.... no matter what.

:rambo: :rambo: Well, I also tried 2 other ideas: naming the frame index.php instead of index.html. AND (same thing actually) replacing the entire forumhome template with the frame index.html. No luck either way... Like I say, it seems the cookies just won't look inside a frame...

I have come across a few forums that have a pop-up log-in window. Well, I guess this is the reason...

...but there might be a better way. Any more suggestions still are welcome...
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 11:05 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.03418 seconds
  • Memory Usage 2,211KB
  • Queries Executed 16 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete