login and avatars not sharing correctly--help please
Hi! Thanks for taking the time to look at my question.
I have SMF for my forum and PhotopPost Pro for my gallery on my scrapbooking website--Scrapstreet.com I am still in the building phase--and a newbie--so if you peek over you will need to use the homepage to link in as I have not yet hyperlinked all over.
Here is my problem: my users have shared registration and post count, but not shared login and not a shared avatar. When they login the forum, they also have to login the gallery. Their avatar comes up in the forum, but must be reloaded in the gallery profile. And in order to log out they have to visit both pages and log out again.
During install, I placed both in a shared database, but gave them each their own prefix (the directions seemed to suggest this was better). Is this my prob and what is the best way to fix it.
Thanks so much!
Your still having cookie issues here. Are they on the same server or domain names? Maybe posting a url to your install would help.
I beleive in SMF the avatar must be stored as a full url in the user profile as this is how we pull an avatar
$userprofile = "<img src=\"$uavatar\" />"; // Avatar
Darn cookies--give me an oreo anyday.
Ok, so site is: homepage
both are hosted on powweb and share a database with different prefixes for each--mb_ and pg_
In SMF in avatar file is this:
// This file is here solely to protect your avatars directory.
// Look for Settings.php....
if (file_exists(dirname(dirname(__FILE__)) . '/Settings.php'))
// Found it!
require(dirname(dirname(__FILE__)) . '/Settings.php');
header('Location: ' . $boardurl);
// Can't find it... just forget it.
Does any of this help? Thanks so much for helping me! Dora
I believe I explained above how the avatar is pulled above.
I tried registering my username on your board but your system never sends the confirmation email so I can confirm and test out the avatars
I totally appreciate your help. I do not always understand what you are saying due to lack of knowledge about code. Thank you for your patience.
I activated your name and sent the email--haven't figured out why that isn't working automatically, but will bug the SMF people on that.
Here is what I have for cookie settings--I am sure that I am missing something, but do not know what to put in the empty boxes.
PhotoPost Cookie Path
This should be set to match the path/domain for your cookies. Setting to / enables entire site. --this I have just / in box
Forum Cookie Prefix
Some Default values vB3: bb, phpBB2: phpbb2mysql, Threads: w3t_ --this i have nothing in box
PhotoPost Cookie Domain
.yourdomain.com; sets the cookie to be usable across the domain --this I have nothing in box
Your SMF Cookie Name
Only needed for users of SMF forums this I have SMFCookie10
Avatar problem. Thank you for putting the code in the first answer. My problem is not that I ignored it, but that I do not know where to put it. any advice would be greatly appreciated.
I beleive currently avatars must have a full url in the avatar field to display and we look for that in the user table avatar field
Now I dont have permission to post so I cant say further but your avatar's are probally not stored full url to them in the avatar fields
Your cookies are simply you have the products installed on two separate domains
they must exist both on one domain if you want cookies recognized. I dont beleive SMF has a cookie domain setting.
I am still stuck on both of these. I just do not get it. I activated your name so that you can hopefully help me. website
Avatar--I can see when I do view source that the avatar line says:
<td class="tddetails" width="175" valign="top" align="left">
<span class="medium"><b>Dora<br /><img src="" width="19" height="14" /></b></span>
<span class="small"><br />Location: Chicagoland<br />Posts: 5</span>
and there is the little x whenever a comment is left.
In the SMF forum admin panel I have:
avatars url: http://www.scrapstreet.com/MessageBoard/avatars
avatars directory: /www/s/scrapstreetc/htdocs/MessageBoard/avatars
I know that you gave me some other codes up above, but I cannot find where they go. I need really specific instructions. So sorry.
Then the double login/logout problem. I do not know where you mean that I have the products on two separate domains. As far as i can tell, they are both listed on the same one. Could you point me in a specific direction on this too?
Thanks. I really appreciate it. Dora
try uploading this smf file to your forums subdirectory it does both avatar types both local and not local
Ok, uploaded them but still getting x's not avatars. Gave up on this for now as I need to open the site and having no avatar is better than the x. So, I just turned it off. I will come back to it when I can. Appreciate all the help.
If you could just give me some advice on the login/cookie problem I promise to get out of your hair.
SMF has two avatar types non local which means users upload a full url to an image and local meaning the ones in your SMF avatar directory. Whatever the file I posted works with both types. I am assuming your smf url in the photopost config is right here as it would need to be
You need to have SMF and photopost on the SAME DOMAIN as SMF does not have any true cookie settings and you need to have photopost set to cookie path of / and the smf cookie name has to be entered in Photopost cookie settings
So smf and photopost on www.domain.com works
one on www.domain.com and one on domain.com does not work
we can have avatars show up in the forums? how do we do that?
That depends on what forum your using pfd
I'm using phpBB for my fourms....we have avatars there....
Okay well we dont pull signatures avatars etc from phpbb2
well that sucks.....
|All times are GMT -5. The time now is 01:47 AM.|
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0