Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Multiple domain affect whole site Details »
Multiple domain affect whole site
Mod Version: 1.00, by xmeltrut (Member) xmeltrut is offline
Developer Last Online: May 2008 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.7 Rating: (0 vote - 0 average) Installs: 7
Released: 06 Jun 2005 Last Update: Never Downloads: 9
Not Supported  

Situation: you have forums.example1.com and boards.example2.com. You want cookies to work on both of them so that it remembers users but you want to set the cookie domain so that it affects all of example1.com or example2.com whichever the user is on.

The problem is that if you set the cookie domain in the admin panel, it will always use that domain even if you are using a second domain that is set-up to work with the forum also.

This quick mod will solve the problem and set the cookie to the full domain so no matter domain you are using it will set the cookie for the whole site (doesn't work with multiple sub-domains such as x.y.example.com yet).

I tested it with vB 3.0.7 but I checked the code for one of my older boards and I am pretty sure it will work fine with 3.0.3 and everything in between.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Multiple domain concept wajones vBulletin 2.x Full Releases 9 09 Dec 2001 21:03

Comments
  #2  
Old 06 Jun 2005, 11:12
nexialys
Guest
 
hum... this is not to share the users db, so there is no problem with the license...

btw, take care, this is only for boards where users have the same login/pass on both sides...

also take care:
An owned license grants you the right to run vBulletin on one web server and one web site for each license purchased for an unlimited time. Each license may power one instance of vBulletin on one domain.
Reply With Quote
  #3  
Old 08 Jun 2005, 01:53
CompuJonathan CompuJonathan is offline
 
Join Date: Nov 2004
Real name: Jonathan
Thanks for releasing this.

We have two VBulletin licenses and had a hard time getting the cookies to work. But somehow VB support got it going. :ninja:

We will use this when we rebuild the forums in 3.5 :squareeyed:
Reply With Quote
  #4  
Old 05 Jul 2005, 16:01
jb605 jb605 is offline
 
Join Date: Feb 2004
It might also be helpful to add IP based cookie:



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Or something similar
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 04:15.

Layout Options | Width: Wide Color: