PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   login and avatars not sharing correctly--help please (http://www.photopost.com/forum/photopost-pro-installation-upgrades/115391-login-avatars-not-sharing-correctly-help-please.html)

dora August 27th, 2005 10:03 AM

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!

Chuck S August 27th, 2005 05:24 PM

Dora

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[6] = "<img src=\"$uavatar\" />"; // Avatar

dora August 27th, 2005 08:27 PM

Darn cookies--give me an oreo anyday.

Ok, so site is: homepage

forum

gallery

both are hosted on powweb and share a database with different prefixes for each--mb_ and pg_

In SMF in avatar file is this:
<?php

// 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.
else
exit;

?>

Does any of this help? Thanks so much for helping me! Dora

Chuck S August 28th, 2005 11:34 AM

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

dora August 28th, 2005 01:20 PM

Omegatron

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.
Cookie Settings
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.
Thanks again,
Dora

Chuck S August 28th, 2005 01:56 PM

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

$utable.avatar

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

www.domain.com

domain.com

they must exist both on one domain if you want cookies recognized. I dont beleive SMF has a cookie domain setting.

dora September 1st, 2005 08:32 PM

omegatron,

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

Chuck S September 1st, 2005 08:58 PM

1 Attachment(s)
try uploading this smf file to your forums subdirectory it does both avatar types both local and not local

dora September 2nd, 2005 09:31 AM

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.

Thanks,
Dora

Chuck S September 2nd, 2005 10:32 AM

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

cookies

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

pfdwebgal September 9th, 2005 09:35 AM

we can have avatars show up in the forums? how do we do that?

Chuck S September 9th, 2005 09:59 AM

That depends on what forum your using pfd

pfdwebgal September 9th, 2005 10:34 AM

I'm using phpBB for my fourms....we have avatars there....

Chuck S September 9th, 2005 10:44 AM

Okay well we dont pull signatures avatars etc from phpbb2

pfdwebgal September 9th, 2005 10:48 AM

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97