Previous Thread
Next Thread
Print Thread
Rate Thread
#273209 05/11/2004 4:28 AM
Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
I've set up a forum specifically for unregistered users, so they can post there if they are having trouble either logging in or registration.
Theres a problem.
If you post a topic when not logged in, it all goes through ok, but doesnt acrually show up.
When I log back in, I can see the post has been entered on the list of forums, but when you click on the post, theres nothing there. So basically the header is there, but no body.

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Try this query - my guess is that you're missing the placeholder user - user#1.

SELECT U_Username
FROM w3t_Users
WHERE U_Number = 1


If that doesn't return any results - then you need to insert the "DONOTDELETE" user.

INSERT INTO w3t_Users
(U_Username,U_Groups)
VALUES
('**DONOTDELETE**','-4-')

Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
ok, just done that, and it still returns no results.

Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
any other ideas? (in case this thread had been forgotten)

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I posted what to do if you didn't get any results - your DONOTDELETE placeholder user is missing.

[]JoshPet said:

If that doesn't return any results - then you need to insert the "DONOTDELETE" user.

INSERT INTO w3t_Users
(U_Username,U_Groups)
VALUES
('**DONOTDELETE**','-4-') [/]

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

But - I did forget to also do this query:

UPDATE w3t_Users
SET U_Number = 1
WHERE U_Username = '**DONOTDELETE**'


That *should* do it. <fingers crossed>

Joined: Jun 2001
Posts: 356
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 356
Works like a dream now!
thanks josh!


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
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
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
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)