Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jul 2002
Posts: 135
Journeyman
Journeyman
Joined: Jul 2002
Posts: 135
Hi, I'm trying to use a forum to automatically create forums. I have a list of possible forums and then when someone clicks on one it checks if it exists. If it doesn't it creates ones. Everything seems to be working perfectly except when I try to get to the automatically created forums it says: "Access Denied." I go into the database and compare a forum that works (created by hand) to the broken forum and can't find a single difference. Anything come to mind? Perhaps this will help: http://www.schoolscandals.com/create_test/check.php (view source)

Thanks in advance!

Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I've been racking my brains trying to figure this one out but I've come up with nothing. The boards seem to be alright.

That you are getting Access Denied suggests that there are something wrong with the groups permissions, that the user isn't in any of the given groups, but it's even set to 4, so even guests should be able to read it.

Are the forums showing up on ubbthreads.php? It's on the postlist.php script that you get Access Denied right?

BTW, you are sure that you are using the correct Board keywords? Those wore pretty long. Just have to ask.

Joined: Jul 2002
Posts: 135
Journeyman
Journeyman
Joined: Jul 2002
Posts: 135
Yeah they show up on ubbthreads.php but not postlist.php. The Keywords are correct. So frustrating.

Joined: Jul 2002
Posts: 135
Journeyman
Journeyman
Joined: Jul 2002
Posts: 135
Still haven't figured it out. I attached the file as a txt.

Attachments
89865-TESTF.txt (0 Bytes, 26 downloads)

Joined: Jul 2002
Posts: 135
Journeyman
Journeyman
Joined: Jul 2002
Posts: 135
*bump* anyone?

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Is there a test site to see it in action

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
The data records that is inserted into the db would also help.

Joined: Jul 2002
Posts: 135
Journeyman
Journeyman
Joined: Jul 2002
Posts: 135
user: xguest
pass: guest

The system begins at http://www.schoolscandals.com/ubbthreads/tests.php
If you need to see the php of any of the scripts used just change php to txt and they'll be there.

Data Records?

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
the entry that is created in your w3t_boards table when you submit your form.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Go ahead and paste the contents of what is created in your boards table when that script is run like Astaran stated.

Although like Gardener I think it is an authentication error. You might want to change your blank authentication in your scripts to ones like in postlist or ubbthreads.

Sponsored Links
Joined: Jul 2002
Posts: 135
Journeyman
Journeyman
Joined: Jul 2002
Posts: 135
I'm not sure if this is what you're looking for but I copied the boards straight from the database.
Attachments
90581-data.txt (0 Bytes, 18 downloads)

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Well now we know what is wrong.

Things look a little off with the first one created by your script. However it is easy to tell the problem

Your script is not setting the Bo_Read_Perm

In a regular forum this is set when you create the forums and edit which groups have access. Your script is creating the forum but no one has access. Try editing the forums from the admin area and giving the groups access and see if the access deny error dissapears. You will notice the groups are listed like this in your attachment

-1-2-3-4-

Under the attachment your script created forum is lacking these.

Now back to looking at the code to see why things aren't set.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I looked at the code and the values are listed in testf.php

You might try defining them above then placing the value call in the line. It looks like the ones defined above the query are set when the board is created yet the ones you just place values on the line are not being passed.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
The read_perms seems to be set in the database, the only strange thing I can see is that there seems to be a newline in the title of the board created by the script. Maybe this is throwing it off?

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Yep Gardener your right it is not that they are not set as it is there however things are shifted and not lined up correctly.


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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,834
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2947
Topics Created 0
Posts Made 0
Users Online 2
Birthdays 29
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 20261026)