Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases

Reply
 
Thread Tools
Use same vB on different Domains (cookies) Details »»
Use same vB on different Domains (cookies)
Version: 1.00, by Paris Holley Paris Holley is offline
Developer Last Online: Oct 2007 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 10-02-2004 Last Update: Never Installs: 4
Is in Beta Stage  
No support by the author.

I haven't tested it in all circumstances but in only the way i needed. This may not be the best method but I think its the only one that works as of right now.

Tested Domain Situations:
-------------------------------
1site.com
2site.com ( which the real url is 1site.com/2site/ )
-------------------------------

Open Functions.php and find
PHP Code:
// try unsetting without the / at the end 
before each setcookie function ( should be 3 within about 25 lines or so ) add

PHP Code:
setcookie($name$value$expire"your-path""your-domain"$secure); 
this should write the cookies for each domain you set it for and allow people to view each one and not have to log in. Please give me feed back on this for i would love to see my first vb hack work

Show Your Support

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

Comments
  #2  
Old 10-02-2004, 10:34 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From vBulletin.com:

Quote:
Originally Posted by vBulletin License Agreement
vBulletin license grants you the right to run one instance (a single installation) of the Software on one web server and one web site for each license purchased. Each license may power one instance of the Software on one domain. For each installed instance of the Software, a separate license is required. Modifications to the software or database to circumvent the one-license-one-board rule are prohibited.
I'm uncertain, but your suggested use of this hack may violate that rule (in bold).
Reply With Quote
  #3  
Old 10-02-2004, 10:36 PM
Paris Holley Paris Holley is offline
 
Join Date: Jun 2003
Location: Iowa
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well I have my site, and my forums, and I use it so that if they are on the site they have to login using the forums system....I guess this could be used to violate that rule, but it all depends on the person using it...

by saying that i mean,

on site1 it includes the global site1/site2/global.php but people see the forums as site2.com, so if people want to integrate the vbulletin login system on differen't domains they can...
Reply With Quote
  #4  
Old 10-02-2004, 10:56 PM
Talisman's Avatar
Talisman Talisman is offline
 
Join Date: Aug 2002
Location: USA/West Coast
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Umm.. congrats on the hack, Paris ... (I think).

Not to take away from the enthusiasm of the moment, but I think I'm missing something here. Why would we want to do this? Could you give some example of how this might be used?

... and does this violate Jelsoft's terms and conditions, or not?
Reply With Quote
  #5  
Old 10-02-2004, 11:03 PM
Paris Holley Paris Holley is offline
 
Join Date: Jun 2003
Location: Iowa
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

u can have a vb installed if its not being viewed by the public....and yes this can be found on the 2 domains but is only being used on one...

secondly im using it so that, you have to be logged on the forums to view the site ( must be logged on site2.com to view site1.com content ) and in order to do that, you must include the global file from the site2 directory ( which is located on the site1.com/site2 folder but the public accesses it from site2.com )..and since cookies are created for both domains it will work...make sense?
Reply With Quote
  #6  
Old 10-02-2004, 11:30 PM
Talisman's Avatar
Talisman Talisman is offline
 
Join Date: Aug 2002
Location: USA/West Coast
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess I'm still confused, so let me see if I can follow what you're saying. It's one (single) forum that you (and your admins, I presume) can access from both domains. But the viewing public and your forum members can only see the board from Site 2.

If they go to Site 1, it's not visible to them at all?

Or, you mean this is really a site within a site? ... Or that Site 2 is more of a sub-site to Site 1? From the way you have this set up, I guess Site 2 is really a subdomain of Site 1.... you just want it to appear as someplace different, yes?

(...sigh)

Sorry to be such a pain on this, I'm sure it's really simple. I'm just trying to figure out what/why we might do this.
Reply With Quote
  #7  
Old 10-02-2004, 11:40 PM
Paris Holley Paris Holley is offline
 
Join Date: Jun 2003
Location: Iowa
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok...site2.com is just another way to go site1/site2 but site1/site2 is not accessible by the public...no one goes to site1/site2, I just use that directory to include the global file so that you can use the $bbuserinfo["username"] variable on site1, but in order to do that you have to create cookies for both domains so when they login site2 and view site1 the variable is register and not showing as "Unregistered"...and yes basicly site2 is a subdomain or the site within the site but appears that it is somewhere else...
Reply With Quote
  #8  
Old 10-02-2004, 11:53 PM
Talisman's Avatar
Talisman Talisman is offline
 
Join Date: Aug 2002
Location: USA/West Coast
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay. Thanks, again.

I think I get it now. Your members get to this forum by going to Site 2. Since they don't know the rest of this, they think the forum is located ... there. This really takes them to a subdomain of Site 1 but you don't want them to know Site 1 exists at all, so that's why you have the domains shuffled around like this.
Reply With Quote
  #9  
Old 10-03-2004, 12:24 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting. What about logouts? You'd want to delete all those cookies too.
Reply With Quote
  #10  
Old 10-03-2004, 12:29 AM
Paris Holley Paris Holley is offline
 
Join Date: Jun 2003
Location: Iowa
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Erwin
Interesting. What about logouts? You'd want to delete all those cookies too.
ah yes, i forgot about that....
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:25 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.04696 seconds
  • Memory Usage 2,295KB
  • 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
  • (2)bbcode_php
  • (2)bbcode_quote
  • (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
  • (2)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