Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Fishtails,

All is not lost so don't dispair

If you cannot rename the database fields, try this approach:

First of all make sure that your cookies in the threads are set to be site wide ("/" option for cookies path in the config.inc.php)

If you haven't set a cookie prefix:

I assume (from what you wrote) that your prefix on the tables is threads (so instead of w3t_users you have threadsusers)

Go to the Photopost folder (usually forum/gallery - or something similar)

Open showphoto.php

Goto line 673, find this
code:

$query = "SELECT U_Username,U_Homepage,U_Totalposts,U_Title,U_Registered FROM w3t_Users WHERE U_Number=$cuserid LIMIT 1";


and CHANGE it to this
code:

$query = "SELECT U_Username,U_Homepage,U_Totalposts,U_Title,U_Registered FROM threadsUsers WHERE U_Number=$cuserid LIMIT 1";




Open pp-inc.php

Goto line 750, find this
code:

$query = "SELECT U_TimeOffset FROM w3t_Users WHERE U_Number='$userid'";


and CHANGE it to this
code:

$query = "SELECT U_TimeOffset FROM threadsUsers WHERE U_Number='$userid'";


Goto line 845, find this
code:

$query = "SELECT U_Number,U_Username,U_Email FROM w3t_Users WHERE U_Number='$user'";


and CHANGE it to this
code:

$query = "SELECT U_Number,U_Username,U_Email FROM threadsUsers WHERE U_Number='$user'";



Goto line 885, find this
code:

$query = "SELECT * FROM w3t_Users";


and CHANGE it to this
code:

$query = "SELECT * FROM threadsUsers";



Goto line 915, find this
code:

$query = "SELECT U_Username FROM w3t_Users WHERE U_Number=$tuserid LIMIT 1";


and CHANGE it to this
code:

$query = "SELECT U_Username FROM threadsUsers WHERE U_Number=$tuserid LIMIT 1";



Goto line 1444, find this
code:

$query = "UPDATE w3t_Users SET U_Totalposts=U_Totalposts$do_inc WHERE U_Number=$user";


and CHANGE it to this
code:

$query = "UPDATE threadsUsers SET U_Totalposts=U_Totalposts$do_inc WHERE U_Number=$user";




Open login.php

Goto line 46, find this
code:

$query = "SELECT U_Password from w3t_Users where U_Username = '$user' limit 1";


and CHANGE it to this
code:

$query = "SELECT U_Password from threadsUsers where U_Username = '$user' limit 1";



Open login-inc.php

Goto line 154, find this
code:

$query = "SELECT U_Username, U_Number, U_Groups, U_SessionId, U_Password, U_TempPass FROM w3t_Users WHERE U_Number='-1' LIMIT 1";


and CHANGE it to this
code:

$query = "SELECT U_Username, U_Number, U_Groups, U_SessionId, U_Password, U_TempPass FROM threadsUsers WHERE U_Number='-1' LIMIT 1";




Goto line 158, find this
code:

$query = "SELECT U_Username, U_Number, U_Groups, U_SessionId, U_Password, U_TempPass FROM w3t_Users WHERE U_Number='$userid' LIMIT 1";


and CHANGE it to this
code:

$query = "SELECT U_Username, U_Number, U_Groups, U_SessionId, U_Password, U_TempPass FROM threadsUsers WHERE U_Number='$userid' LIMIT 1";




Goto line 163, find this
code:

$query = "SELECT U_Username, U_Number, U_Groups, U_SessionId, U_Password, U_TempPass FROM w3t_Users WHERE U_Username='$cookuser' LIMIT 1";


and CHANGE it to this
code:

$query = "SELECT U_Username, U_Number, U_Groups, U_SessionId, U_Password, U_TempPass FROM threadsUsers WHERE U_Username='$cookuser' LIMIT 1";




Goto line 175, find this
code:

$query = "SELECT U_Username, U_Number, U_Groups, U_SessionId, U_Password, U_TempPass FROM w3t_Users WHERE U_Username='$cookuser' LIMIT 1";


and CHANGE it to this
code:

$query = "SELECT U_Username, U_Number, U_Groups, U_SessionId, U_Password, U_TempPass FROM threadsUsers WHERE U_Username='$cookuser' LIMIT 1";



Open install.php

Goto line 559, find this
code:

$query = "SELECT G_Id, G_Name FROM w3t_Groups";


and CHANGE it to this
code:

$query = "SELECT G_Id, G_Name FROM threadsGroups";



Open ecard.php

Goto line 243, find this
code:

$query = "SELECT U_Email FROM w3t_Users WHERE U_Username='$touser' LIMIT 1";


and CHANGE it to this
code:

$query = "SELECT U_Email FROM threadsUsers WHERE U_Username='$touser' LIMIT 1";



Open adm-userg.php

Goto line 164, find this
code:

$query = "SELECT G_Id, G_Name FROM w3t_Groups";


and CHANGE it to this
code:

$query = "SELECT G_Id, G_Name FROM threadsGroups";




If you have set a cookie prefix I suggest you take it out (set in config.inc.php) unless it's absolutely necessary for you to have that prefix. If you do need it, please wait for version 2 of this post. I need to check things first before I suggest anything about cookies.

I hope this helps

Warm regards

Nikos


Nikos
Sponsored Links
Entire Thread
Subject Posted By Posted
Who uses PhotoPost with their threads? fishtails 11/27/2002 4:13 PM
Re: Who uses PhotoPost with their threads? dimopoulos 11/27/2002 4:23 PM
Re: Who uses PhotoPost with their threads? JoshPet 11/27/2002 5:17 PM
Re: Who uses PhotoPost with their threads? fishtails 11/27/2002 5:18 PM
Re: Who uses PhotoPost with their threads? JoshPet 11/27/2002 5:21 PM
Re: Who uses PhotoPost with their threads? dimopoulos 11/27/2002 5:41 PM
Re: Who uses PhotoPost with their threads? msula 11/27/2002 6:17 PM
Re: Who uses PhotoPost with their threads? dimopoulos 11/27/2002 7:11 PM
Re: Who uses PhotoPost with their threads? msula 11/27/2002 8:47 PM
Re: Who uses PhotoPost with their threads? shortbus 11/27/2002 9:13 PM
Re: Who uses PhotoPost with their threads? fishtails 11/29/2002 12:39 AM
Re: Who uses PhotoPost with their threads? dimopoulos 11/29/2002 9:56 AM
Egads! W3t_ prefix? What to do, what to do? fishtails 11/29/2002 4:03 PM
Re: Egads! W3t_ prefix? What to do, what to do? dimopoulos 11/29/2002 4:58 PM
Re: Egads! W3t_ prefix? What to do, what to do? Dave_L_dup1 11/29/2002 5:20 PM
Re: Egads! W3t_ prefix? What to do, what to do? dimopoulos 11/29/2002 5:39 PM
Re: Egads! W3t_ prefix? What to do, what to do? dimopoulos 11/29/2002 5:41 PM
Re: Egads! W3t_ prefix? What to do, what to do? msula 11/29/2002 5:52 PM
Re: Egads! W3t_ prefix? What to do, what to do? fishtails 11/29/2002 5:56 PM
Re: Egads! W3t_ prefix? What to do, what to do? fishtails 11/29/2002 6:00 PM
Re: Egads! W3t_ prefix? What to do, what to do? dimopoulos 11/29/2002 6:13 PM
Re: Egads! W3t_ prefix? What to do, what to do? dimopoulos 11/29/2002 6:16 PM
Re: Egads! W3t_ prefix? What to do, what to do? Dave_L_dup1 11/29/2002 6:34 PM
Re: Egads! W3t_ prefix? What to do, what to do? dimopoulos 11/29/2002 6:47 PM
Does this bother any one else? fishtails 11/29/2002 11:47 PM
Re: Does this bother any one else? msula 11/30/2002 1:38 AM
Re: Does this bother any one else? fishtails 11/30/2002 2:02 AM
UBBT headers in PhotoPost fishtails 11/30/2002 4:06 AM
Re: Does this bother any one else? Dave_L_dup1 11/30/2002 4:29 AM
Re: Does this bother any one else? fishtails 11/30/2002 4:49 AM
Re: Does this bother any one else? shortbus 11/30/2002 4:54 AM
Re: Does this bother any one else? msula 11/30/2002 4:54 AM
Re: Does this bother any one else? Dave_L_dup1 11/30/2002 5:01 AM
Re: UBBT headers in PhotoPost - I got it now... fishtails 11/30/2002 7:05 AM
Re: UBBT headers in PhotoPost - I got it now... l_cherrio 12/04/2002 8:22 AM
Re: UBBT headers in PhotoPost - I got it now... AllenAyres 12/04/2002 8:41 AM
Re: UBBT headers in PhotoPost - I got it now... AllenAyres 12/04/2002 8:43 AM
Re: UBBT headers in PhotoPost - I got it now... l_cherrio 12/04/2002 6:39 PM
Re: UBBT headers in PhotoPost - I got it now... AllenAyres 12/05/2002 1:00 AM
Re: UBBT headers in PhotoPost - I got it now... fishtails 12/08/2002 7:51 PM
Re: Who uses PhotoPost with their threads? tenxx 10/27/2003 2:12 PM
Re: Who uses PhotoPost with their threads? PhotoPost 10/28/2003 3:16 AM
Re: Who uses PhotoPost with their threads? omegatron 10/28/2003 3:25 PM
Re: Who uses PhotoPost with their threads? shortbus 10/29/2003 1:43 AM
Re: Who uses PhotoPost with their threads? JustDave 11/01/2003 8:51 PM
Re: Who uses PhotoPost with their threads? PhotoPost 11/03/2003 9:12 PM

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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
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-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)