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 08-22-2008 03:01 PM

It sounds like you enabled the mod's debug mode. This should not be on during normal use.

dfc005 08-25-2008 03:49 AM

Hi, what exactly has changed between this version and the previous? The old version works well for me so not sure whether I should bother upgrading.

Also, you should add an upgrade process as well. Not sure if I should remove the old mod or just overwrite it etc....

thincom2000 08-26-2008 04:35 AM

Sure. Basically, not much has changed. Rewrote some things for memory efficiency. And the updated version doesn't need template edits for normal use.

To upgrade, you would just overwrite.

Rideharder 09-06-2008 06:38 AM

Thanks so much!!
Nominated

www.kaplanforums.com, kaplanstudentforums.com & kaplanuniversityforums.com thanks again!

Powered by vBulletin? Version 3.7.2 works!

Alfa1 09-08-2008 09:24 AM

How important is p3p?

thincom2000 09-08-2008 10:31 AM

IE requires it.

Alfa1 09-08-2008 03:43 PM

Yes, but isn't it only relevant if the user has got his security level ridiculously high?
I would think that 99% of websites do not use p3p. Am I wrong?
Quote:

Status: P3P Work suspended

http://www.w3.org/P3P/

thincom2000 09-09-2008 12:49 AM

Unfortunately this is the only way that I have seen to fix some IE issues. The mod uses a generic P3P header if the web site does not use P3P.

kaplanassist 09-10-2008 10:41 PM

I have the following websites:
www.kaplanuniversitystudentforums.com
www.kaplanforums.com
www.kaplanuniversityforums.com
www.kaplanstudentforums.com

What is turn on debugg mode for cookies?

I am still having problems when I login, I keep getting automatically logged out of the forums.

thincom2000 09-11-2008 04:23 AM

I don't think debug mode is functional anymore. It was there as a dev tool.

If you are getting automatically logged out, it is possible the URLs were entered incorrectly. If your forum is at /forum, this needs to be included in the URL.

kaplanassist 09-12-2008 12:28 AM

I never set the debug mode. I will turn it on and see if it works.

The url was incorrect that I put in there if you are stating that it needs a / for it to work.
This is my url: kaplanstudentforums.com/studentforums.php

thincom2000 09-12-2008 03:26 AM

This is my settings (working fine):
crackedeggstudios.net
crackedeggstudios.com

kaplanassist 09-13-2008 03:44 PM

Now I can browse with each account and the cookie issue is fixed. It shows the name of each domain name in the top browser. ie: www.kaplanforums.com does not redirect. By simply using the one mod listed above with a couple of tweek settings in vbulletin. My problem was this setting which I enabled and everything is now working correctly.


Add Standard HTTP Headers
This option does not work with some combinations of web server, so it is off by default. However, some IIS setups may need it turned on.

It will send the 200 OK HTTP headers if turned on.



I also on the setting left blank

This option sets the domain on which the cookie is active. The most common reason to change this setting is that you have two different urls to your forum, i.e. example.com and forums.example.com. To allow users to stay logged into the forum if they visit via either url, you would set this to .example.com (note the domain begins with a dot.

also the domains that I entered into it needed to end with a /

NemoTech 10-08-2008 05:35 PM

Oh this works absolutely pefectly for me. Thanks so much.

kermit2 01-16-2009 10:20 PM

I'm having some strange problems with this in IE 8. IE 8 accepts the cookies for the 'extra' domains, but not for the domain from which the user is logging in - so after the 'thank you for logging in, please wait while you are redirected' message, the user is returned to the forum home page not logged in.

Anyone else experienced this (seems to be only IE 8) or know a fix? If not I'll do a follow up post if and when I solve it.

Great plugin by the way, very useful

kermit2 01-16-2009 11:26 PM

Problem solved (sort of):

Code:

        // we want all subdomains, take everything after the first .
        if (substr_count($_SERVER['HTTP_HOST'], '.') > 1)
        {
                $vbulletin->options['cookiedomain'] = substr($_SERVER['HTTP_HOST'], intval(strpos($_SERVER['HTTP_HOST'], '.')));
        }
        else
        {
                $vbulletin->options['cookiedomain'] = $_SERVER['HTTP_HOST'];
        }

(the init_startup hook). This assumes your domain name only has one period in it, but if you have something like example.co.uk, the cookie ends up getting set for .co.uk (which obviously isn't a good idea, since anyone else on a .co.uk would be able to read it).

The second problem I didn't fully figure out, but it seems that if you check the 'remember me' box, IE 8 happily keeps you logged in to the main domain, so for the moment I've just edited my templates so that this is checked by default

thincom2000 01-20-2009 11:18 AM

This is indeed a problem. I have noticed that Firefox also shares your "Remember me" issue.

GlitterKill 01-25-2009 11:47 PM

Does this work with VB 3.8?

Pipo123 01-27-2009 02:58 PM

Quote:

Originally Posted by scoutz (Post 1376510)
nevermind fixed something myself, working now! :)

What did you fix?

Pipo123 01-27-2009 03:24 PM

The cookie cutter fails to load the init.php properly but loads the other two requires:
require_once('./includes/functions_login.php');
require_once('./includes/adminfunctions.php');

It does load init.php but exits/crashes.

thincom2000 01-29-2009 03:21 AM

That could be any number of things. How many products use your init_startup hook?

Pipo123 01-30-2009 01:04 PM

These do:

vBSEO
vBadvanced CMPS
Set automatic forumlanguage to browserlanguage
vBulletin Project Tools
gXboxLive

Chunky Monkey 02-03-2009 02:43 PM

I have been trying to get 2 domains to use the same config.php so that users can access the same forums from multiple domains. I have added the "non primary" domains to the vbulletin options POST referrer white list and can login and send pms from any non primary domain, but when i try to create a thread or post I get a white screen. Any ideas?

lostincable 03-25-2009 10:44 AM

I installed this on 3.8.1

It works except I need to tick remember me now for logins to work

Does anyone know how to fix that?

lostincable 04-10-2009 07:37 PM

Anyone help with this?

thincom2000 04-11-2009 04:09 AM

Try the build I just uploaded.

lostincable 04-11-2009 10:56 AM

Thanks for the update!

Tried it out and its as if the product is not running, I enabled debug mode and I do not get the messages down the bottom and it logs in and out as normal.

Logins are not shared as well.

I remember from the original version you had to manually update the template, can you verify which one it is so I can see if the install updated the template?

lostincable 04-11-2009 11:04 AM

Just an update, tried logging in to both sites and then logging out of one.

Logging out of one logs you out of both.

Still no login across the board but logout works, not sure if that helps?

thincom2000 04-12-2009 06:59 AM

Quote:

Originally Posted by lostincable (Post 1788815)
Tried it out and its as if the product is not running, I enabled debug mode and I do not get the messages down the bottom and it logs in and out as normal.

Is this with "Remember Me?" checked or unchecked?

EDIT: Nevermind. There are no more template edits. I did some further work on this and think I got it all working, remember me and all. Will do another quick release in the morning.

lostincable 04-12-2009 10:45 AM

It seems the 1.22 version is not setting the cookie on login regardless of wether remember me is checked or not.

I enabled debug and I only get the cookie has been generated message on logout not login.

Hope that helps! :)

thincom2000 04-12-2009 03:47 PM

Uploading patch now.

For your cookie cutter options. When listing the domains, please remember NOT to begin a line with a dot (.)

If you are using the "example.com" format to handle cookies for all of "*.example.com", but you forward "example.com" to "www.example.com", then the cookie will not be generated because a redirect occurs. Instead, use "www.example.com" and manually add any additional subdomains that you may need.

lostincable 04-12-2009 07:24 PM

Excellent!

Tested and all is working perfectly on 3.8.2.

Thanks for your commitment to this MOD!

motoxer311 04-14-2009 12:27 AM

How do I uninstall this POS, I can't login to the admincp.............

thincom2000 04-14-2009 01:06 AM

You will need to disable your hooks by adding the line
PHP Code:

define('DISABLE_HOOKS'true); 

to your includes/config.php file.

It would make sense that you can't login if the settings are incorrect. If you are having problems, please post your settings here so others know what doesn't work.

Sam D. 04-15-2011 04:20 PM

Seems to works fine on Vbb 4.1.3 too...

Nice !

prandah 10-17-2011 05:23 PM

not work by me :(
if user login if succesfully
but, showthread and forumdisplay still primary domain :(

any advice

Rebecca217 04-05-2013 12:20 PM

Does anyone have this working on 4.2.x? I'm willing to pay to have this updated.

Gizmo99 08-05-2015 05:50 AM

very cool :)

domain.com
doamin.co.uk

to same board :)

VB3.8.6


All times are GMT. The time now is 01:01 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.02507 seconds
  • Memory Usage 1,810KB
  • 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)bbcode_php_printable
  • (3)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
  • (38)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