Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by James Cridland James Cridland is offline
Developer Last Online: Mar 2022 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-07-2001 Last Update: Never Installs: 8
 
No support by the author.

If your site is available at, for example, http://www.vbulletin.org as well as http://vbulletin.org (one with the www and one without) then your forums will work perfectly under either domain name.

However, if you log on at http://www.vbulletin.org, you won't be logged on at http://vbulletin.org as well, since the cookies held on your machine are different for each domain name.

Further, if you own www.vbulletin.info as well (not the case here), these other domain names will cause problems with cookies as mentioned earlier, and also confuse automatic traffic measurement tools like Alexa and Hitwise.

If you want to fix it, then you'll find a hackette enclosed. (It's one line of code). It will translate any page request on http://vbulletin.org to the same page on http://www.vbulletin.org/

See it working here on VBulletin (installed after I suggested it and it was modified slightly by Firefly to make it a bit easier).

Also see the same code working, albeit not under VBulletin, by going to http://www.virginradio.co.uk (the 'real' address) or http://virginradio.co.uk/ or http://www.virgin-radio.com/ or... etc

Show Your Support

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

Comments
  #2  
Old 12-08-2001, 05:40 PM
Matt's Avatar
Matt Matt is offline
 
Join Date: Oct 2001
Location: UK
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OMG! I just installed and am about to test! I hope to God it works as its EXACTLY what I need!!! Thankyou!
Reply With Quote
  #3  
Old 12-08-2001, 07:18 PM
Modshack's Avatar
Modshack Modshack is offline
 
Join Date: Oct 2001
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working fine for me, a life saver and very much appreciated.

HM
Reply With Quote
  #4  
Old 12-08-2001, 10:53 PM
Tommy Boy Tommy Boy is offline
 
Join Date: Nov 2001
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm... I don't want to sound rude, but I'm not sure why it is needed, except for aesthetic reasons. If you want your cookies to work with all your sub-domains and directories, just set the "Cookie Domain" field to ".vbulletin.com" (change to your domain, NOTE THE TWO DOTS!), as explained in the Admin options page. Also, set the "Path to save cookies" field to "/". It is working for me, and I'm using the same cookies in different sub-domains and directories.
Reply With Quote
  #5  
Old 12-08-2001, 11:44 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tommy Boy,
Some users just aren't that computer literate, and they follow links on the board pasted by others, and then freak out when told they can't read because they aren't a member. They never look and see that they just need to log in to the "other" domain, they just fire off an email "Why did you ban me?! I can't access the site!". Users are generally paranoid people. This hack just might save the sanity of some poor webmaster somewhere.

Amy
Reply With Quote
  #6  
Old 12-09-2001, 02:55 AM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amy, Tommy Boy is right though.

If your website is accessible both as http://vbulletin.com and http://www.vbulletin.com, then set the cookie domain to .vbulletin.com in the Admin Control Panel Options page.

This has NOTHING with users being computer illiterate, it's got to do with Admins not doing it right. It doens't make sense to me that you as an admin would prefer to install a hack rather than set the option that already exists in vB correctly.
Reply With Quote
  #7  
Old 12-09-2001, 04:26 AM
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
Senior Member
 
Join Date: Jan 2002
Location: Southern California
Posts: 1,694
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is correct but if you have two disimilar domain names then it will be a great help. For example we not only use www.sitepointforums.com and sitepointforums.com but users can also access it through www.sitepointforum.com and sitepointforum.com (note the singular form of forum). You can't handle this using the cookie options in vBulletin.

I will be using this, Thanks...
Reply With Quote
  #8  
Old 12-09-2001, 06:01 AM
Tommy Boy Tommy Boy is offline
 
Join Date: Nov 2001
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is true, if you have different DOMAIN names, then installing this hack is the only way to do it. Note however, that the user will be just redirected to the domain name on which he is already logged in...
Reply With Quote
  #9  
Old 12-09-2001, 10:35 AM
James Cridland James Cridland is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's more useful for people with (like me) mediauk.com, mediauk.co.uk, mediauk.org and mediauk.info. No amount of crafty cookie programming is going to sort that out, plus third-party traffic checkers will treat these domains as separate sites, therefore making you look worse than you actually are.
Reply With Quote
  #10  
Old 12-09-2001, 11:47 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks James, i was waitin' for this hack.. Worked very good. I use www.domain.com & www.otherdomain.com/board.
Reply With Quote
Reply

Thread Tools

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 03:13 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.04457 seconds
  • Memory Usage 2,283KB
  • Queries Executed 23 (?)
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
  • (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
  • (9)postbit
  • (10)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