Previous Thread
Next Thread
Print Thread
Rate Thread
#232239 01/08/2003 12:44 AM
Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
Since Photo Post hasn't replied, and I know several here are using PP for the galleries... Did anyone here fix the inability for photopost to access the UBB 6.2 DB due to the username change to usernumber?

I have released it and the login issue has created some problems for me (the users complaining)

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I had the latest photopost and it works for me.

I eventually did some hacking into it.... somewhere early on all my photos before a certain date have the usernumber off by 1 digit, so I have to hack to compensate for that. That was sorta an issue on my end. I had a hacked photopost (thanks to michael) working with threads before it was a "public product" but the 6.0 shift in usernumbers bit me. But otherwise, it works well.

Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
JOsh,

Thanks. I got it running and it ties into the DB just fine, but for example if I click on the username with PP, it should take me to there profile, instead I get the No Longer In DB message. This is using the latest PP and 6.2 UBB.

I think this is the way PP is trying to access UBB by using the old method of username lookup? I'm not that versed to be sure and I have not been to a board where anyone is running UBB 6.2 and PP. Even Michael is still at UBB 6.1


Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Ah, need to tweak it to go to usernumber. See if this works.
Code
<br />in pp-inc.php<br /><br />Find this:<br /><br />            $profilelink = "{$Globals['vbulletin']}/showprofile.php?Cat=&amp;user=$tusername";<br /><br /><br />Change to this:<br /><br />            $profilelink = "{$Globals['vbulletin']}/showprofile.php?Cat=&amp;User=$tuserid";<br />


Basically threads used to look up profiles by username, but now by number. A simple tweak to that function in photopost and you should be all set.

Hope that works for you.

Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
Josh,

You got it... I just added for clarification the correct string in PP 3.2.1 to replace.

Change this:
$profilelink = "{$Globals['vbulletin']}/showprofile.php?Cat=&User=$tusername&Number=$tuserid";

to:
$profilelink = "{$Globals['vbulletin']}/showprofile.php?Cat=&User=$tuserid";

This makes the Profile links work!

The only problem that I seem to still have is PP does not recognize a user as being logged in after they logged into UBB. They have to login seperately to PP and UBB?

Sponsored Links
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Mike,

Make sure your cookies are set site wide "/" (config.inc.php). Also your tables should be prefixed with w3t_ and you should not have a custom cookie prefix (again in config.inc.php).

I had the same problem as you have and by setting the cookies site wide and getting rid of the cookie prefix did it for me.

Warm regards

Nikos


Nikos
Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
Nikos,

thanks for the input.
- I verified that my cookies are set site wide (/) in UBB and there
- DB is prefixed with w3t_ and named w3tfree
- I use IIP from root and clean cookies hack works to, so I think UBB is setup fine.

I'm now checking to see if the PP config is wrong. I do agree that it works as if there is no cookie being saved?

I did choose to have 2 DBs, a seprerate one just for PP storage, so PP only references the UBB DB and does not store there. I belive this is set up, because when I login through PP, it does verify to UBB DB properly and knows the user when posting...

Thanks again.

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
If you login to PP and you are recognized in UBBThreads then the reverse should in theory work as well since they share the same cookies.

Try deleting all the cookies from your machine and login from fresh. This might just do the trick... I know that PP uses for sure the w3t_myid section of the cookie to check authentication.

What you can also try is:

Clean up all your cookies.
Log in to your threads.
Open the folder that cookies are stored and take a copy of your cookie (should be [username]@www.esportbike.com (where username is the user name you are logged in the machine you are accessing the site).
Open it in Wordpad or other text editor.
Log out and delete all the cookies again.
Log into PP and check the cookie again.
Copy it somewhere else and open it again in Wordpad

The differences should not be huge between them. The basic information should be the first two lines. For instance in my case here in TDev is:

w3t_myid
10000
www.ubbdev.com/

which means that I am the user with U_Number 10000 and I am logged into the www.ubbdev.com domain.

Maybe this will give you some more hints on what is going wrong.

Warm regards

Nikos


Nikos
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I love you guys! lol (just kidding)

I just finished GMS 2.0 and am getting ready to do ReviewPost; but was going to look into 6.2 before I started that. You've given me something to start with. Thanks!

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
LOL

Atually I was planning on working on creating some templates for PP to be coherent with the UBBT templates. I was also thinking of modifying it to be more closely integrated with UBBT - using the same authentication and classes. It will be a very painstaking task but I am sure that if PP accepts my modifications and puts it as a "sub project" only for UBBT then the results will be really good!

I might be contacting you if I get stuck somewhere

Warm regards

Nikos


Nikos
Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Sportsbikes,

Make sure you click "remember me" when you login to threads. I found that works best.

Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
Nikos,

Thanks for the insight on the cookies. After doing a comparison, it seems that I had UBB referencing www.esportbike.com and PP referencing esportbike.com .

I changed PP config to match UBB, and I think it works

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Happy to help Mike

Warm regards

Nikos


Nikos

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,825
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2001
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 11
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)