vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - CES Cookie Cutter - Share Cookies Between Domains (https://vborg.vbsupport.ru/showthread.php?t=139272)

thincom2000 02-12-2007 10:00 PM

CES Cookie Cutter - Share Cookies Between Domains
 
CES Cookie Cutter
vBulletin 3.6.x, 3.7.x, & 3.8.x supported
Version: 1.2.3

*** NEWS ***
4/12/2009 - v1.2.3 released
4/11/2009 - v1.2.2 released
8/8/2008 - v1.2.0 released
2/18/2008 - v1.1.5 released
2/11/2008 - v1.1.0 released
2/13/2007 - v1.0.0 released

Known Issues:
- none

What It Does:
Shares cookies among domains for seamless vBulletin login/logout functionality across multiple domains.

Basically if you have more than one domain name, or you have private forums scattered among domains, and all vBulletin instances use the same vBulletin database, this hack allows for integrated, synchronized login/logout on all domains at once.

Products to Install: 1
Plugins Included: 3
Files to Upload: 1
Templates to Edit: 0
Files to Edit: 0

Mod Features:
- Adds a field in vBulletin Options to enter multiple forum URLs
- Integrates login/logout functionality at all forum locations
- safety cookie settings available for users who left their cookie domain blank in vBulletin cookie options

Changelog:
Version 1.2.3:
- bug fix: only logouts integrate

Version 1.2.2:
- bug fix: XSS flaw
- bug fix: remember me

Version 1.2.0:
- updated: no more template edits
- updated: rearranged the whole mod
- bug fix: IE P3P failure

Version 1.1.5:
- new feature: cookie debug mode
- bug fix: global cookies only apply to www

Version 1.1.0:
- extended: now supports domains sharing the same file location
- bug fix: integrated login is not bidirectional
- bug fix: integrated login fails if forum is turned off
- bug fix: redundant cookies are generated

* This mod is offered for free here. Please donate if you like this mod *

BobbyBig 02-13-2007 12:17 PM

Very handy, nice work.
Btw you forgot to reserve first post :)

Eagle Creek 02-16-2007 01:19 AM

I LOOOOOOOOOOOOVE this hack!
T H A N K Y O U S O M U C H F O R T H I S!

thincom2000 03-17-2007 04:23 PM

I'm glad no one is having problems so far. You wouldn't believe how hard it was to make this work correctly all the time. Unfortunately, I have yet to try sharing between 3+ domains. Anyone have success there?

Realturktiger 03-17-2007 04:42 PM

i've tried the hack...
i've two domains on same forum but i can't login from the addon one....
my forum is on www.universte.com/vb
i can't login from www.turktigers.com/vb/

what's my problem ?

thincom2000 03-17-2007 04:50 PM

Did you upload ces_cookies.php into the includes/ directory on BOTH domains?
Did you make the template edit (sometimes this can be overlooked)?

* Did you add both domains to the setting CES Cookie Sharing Domains? You may have to include the /vb since I noticed your forum is not at the domain root.

mdcdeve 10-02-2007 12:05 AM

Hola, thanks for this, great work. Just wondering, can you set more than one cookiedomain in ces_cookies.php?

thincom2000 10-02-2007 11:30 PM

You need one ces_cookies.php for each domain in the appropriate folder. Then you can add the additional domains in the options.

wsdeluxe 10-05-2007 12:19 PM

I've got a problem...its settings the cookies for all domains, except the "master" forum domain.


I've got

www.domain1.com/forums/
www.domain2.com
www.domain3.com
www.domain4.com

2,3 and 4 have the correct cookies, but the domain 1 is not setting the cookies.

My forums are all on the same server, I modified the ces_cookies.php to connect to the correct directory:

Code:

chdir("/home/webmaste/public_html/forums/");

require_once('./global.php');
require_once('./includes/functions_login.php');
require_once('./includes/adminfunctions.php');

Thats on all the sites in the includes folder.

Any ideas at whats gone wrong here? The only way I can currently log into the actual forum is by logging in at /admincp/

Thanks

thincom2000 10-05-2007 02:23 PM

I think the /forums on the first domain may be messing it up. Cookies are generated at the root level.

Another issue you may be having is that browser standards usually only generate a maximum of 18 (I think) cookies at a time. I believe that each domain generates between 2 and 4 cookies, so 4 domains may be the most that will work without making many file edits.


All times are GMT. The time now is 09:39 AM.

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.02125 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete