vb.org Archive

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

thincom2000 04-12-2009 10:00 PM

CES Cookie Cutter - Share Cookies Across Domains
 
1 Attachment(s)
CES Cookie Cutter
vBulletin 3.6.x, 3.7.x, & 3.8.x supported
Version: 1.2.3

*** NEWS ***
4/13/2009 - create 3.8.x thread

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

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

Jasem 04-13-2009 06:51 PM

Good work, thank you!

FiMeTi 04-14-2009 09:40 AM

Damn this is a month too late for me. lol ^^
I´ve solved my problem already, but very nice job! thx

LoveStream 04-15-2009 01:17 AM

hello.

I've

www.mydomain.net/forum
forum.mydomain.net
www.mydomain2.org

You said,
Quote:

and all vBulletin instances use the same vBulletin database,
now, there is all different database, so you mean that the same database needed?
using the same DB just defferent domain?

In this case, where I the ces_cookies.php file? As you state, is it must be in under forum/includes per ALL domain's forum?

I tested it between different DB had the same username, but nothing act. There is NOT same cookie_prefix or domain on the vbulletin options.

What is the problem that I tried?

Thanks.

thincom2000 04-15-2009 02:17 PM

Well, the session tables aren't synced because they are in different databases. However, the mod should handle that anyway. Even if the users have the same username, if they are not the same userid then this will not work. For each of the databases, make sure this product is installed and that the settings are the same for this mod.

Hornstar 04-17-2009 12:45 AM

I have a custom cms that uses the same database as my vbulletin. so users can login on both with the same username and password. however I think it is something to do with cookies, because you need to login on both. Could this solve my problem?

thincom2000 04-17-2009 03:31 PM

I don't know how your CMS is set up, but you can always try it. Remember that you are messing with cookies and the ability to login, so make sure you're familiar with the steps to revert your changes in the event you experience problems logging in.

kris 06-12-2009 04:19 PM

Installed on 3.8.2 and I have php error right after login:

PHP Parse error: syntax error, unexpected ')' in /forum_test/includes/ces_cookies.php(171) : eval()'d code on line 115

and this error points to line 171 in ces_cookies.php :
eval('print_output("' . fetch_template('STANDARD_REDIRECT') . '");');

any ideas ?

kris 06-12-2009 04:49 PM

I think the problem is somewhere here :

PHP Code:

 
"</form>\n\n\".((!\$GLOBALS['vbulletin']->options['ces_cookie_debug']) ? \"","\" : \"\").\"\n\n\$stylevar[ces_cookies]\n</body>" 


thincom2000 06-13-2009 10:25 PM

You have the mod's debug mode enabled in its options. Disable cookie debug mode.


All times are GMT. The time now is 02:14 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.01090 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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