Current time: 03-21-2010, 01:07 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Website Integration
01-26-2009, 11:16 PM
Post: #1
Website Integration
I have a question. I used this for my website:
http://community.mybboard.net/showthread.php?tid=6190

Problem is whenever I log in, it doesn't log me in. Apparently, I have to set the correct cookie path. Sadly, each page in my website has its own directory and my forums are not on my main site. What to do to make it so that all directories of my site have the cookie path set?

[Image: tss-sig]
HELP
If you use Internet Explorer, you're in danger, using the least secure browser! Save your computer by installing Mozilla Firefox.
Find all posts by this user
Quote this message in a reply
01-26-2009, 11:18 PM
Post: #2
RE: Website Integration
Try changing the cookie to .domainName.com and see if that works.

The CMS is currently being moved to http://elite-area.com/!
Visit this user's website Find all posts by this user
Quote this message in a reply
01-26-2009, 11:23 PM
Post: #3
RE: Website Integration
I just realized the problem and fixed it.

Now I get this message:
Notice: Undefined index: class in /home/thepoke/public_html/forums/inc/class_error.php on line 547
Notice: Undefined index: class in /home/thepoke/public_html/forums/inc/class_error.php on line 547
Notice: Undefined index: class in /home/thepoke/public_html/forums/inc/class_error.php on line 547

[Image: tss-sig]
HELP
If you use Internet Explorer, you're in danger, using the least secure browser! Save your computer by installing Mozilla Firefox.
Find all posts by this user
Quote this message in a reply
01-26-2009, 11:24 PM
Post: #4
RE: Website Integration
Can you post line 547 of inc/class_error.php please?

The CMS is currently being moved to http://elite-area.com/!
Visit this user's website Find all posts by this user
Quote this message in a reply
01-26-2009, 11:26 PM
Post: #5
RE: Website Integration
Here is line 547 of class_error.php:
PHP Code:
                if($call['class']) $call['function'] = $call['class'].$call['type'].$call['function']; 

[Image: tss-sig]
HELP
If you use Internet Explorer, you're in danger, using the least secure browser! Save your computer by installing Mozilla Firefox.
Find all posts by this user
Quote this message in a reply
01-26-2009, 11:28 PM
Post: #6
RE: Website Integration
What version of MyBB are you running? Have you modified that file?

The CMS is currently being moved to http://elite-area.com/!
Visit this user's website Find all posts by this user
Quote this message in a reply
01-26-2009, 11:29 PM
Post: #7
RE: Website Integration
I have not modified that file. I am running MyBB 1.4.4

[Image: tss-sig]
HELP
If you use Internet Explorer, you're in danger, using the least secure browser! Save your computer by installing Mozilla Firefox.
Find all posts by this user
Quote this message in a reply
01-26-2009, 11:31 PM
Post: #8
RE: Website Integration
Hm. Quite odd. Let me check my file and see if it matches up.

The CMS is currently being moved to http://elite-area.com/!
Visit this user's website Find all posts by this user
Quote this message in a reply
01-26-2009, 11:31 PM (This post was last modified: 01-27-2009 12:02 AM by Cultred.)
Post: #9
RE: Website Integration
Some pages it appears more times than others.
It logs me in but those messages appear on the pages of my website except for my forums pages.
Also, another problem. Where it says
PHP Code:
if($mybb->user['uid'])
{
// The user is logged in, say Hi
echo "Hey, $mybbuser[username].<br>
Thanks for logging in."
;


The username is not showing.
And now I cannot log out.

[Image: tss-sig]
HELP
If you use Internet Explorer, you're in danger, using the least secure browser! Save your computer by installing Mozilla Firefox.
Find all posts by this user
Quote this message in a reply
01-27-2009, 08:58 AM
Post: #10
RE: Website Integration
It probably won't be a problem with class_error.php, rather what it is being called to it.

It depends on how your website is setup - without taking a look at your site's source code, I can probably guess at some rogue scripting is to blame. Your cookie domain (across websites, anyways) should be blank. All modern browsers (except IE4/5, I think) will automatically assign a cookie to the domain that it was added on - at least, that's how I've done it in the past. Just remember to set a sort-of unique cookie prefix.

The correct variable for the username is $mybb->user['username'].

Take a look at your coding, and if possible, undo the steps you've made until you got that error. Something must be interfering with it...

Tomm M
MyBB Developer ยป Marketing Designer & Systems Developer
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: