Previous Thread
Next Thread
Print Thread
Rate Thread
#281993 11/15/2004 2:05 PM
Joined: Jul 2002
Posts: 135
Journeyman
Journeyman
Joined: Jul 2002
Posts: 135
I changed ubbthreads.php into a view Favorite forums only page because it's more practical for the use of my forums. The problem, I can't figure out how to make it so they only see the Categories that they have Favorite forums in. For Example, if you go to http://www.schoolscandals.com/final/ubbthreads.php login: threadsdev / threadsdev you can see that I automatically make forums -1-2- their favorites when they sign up yet they still see the other categories. Any idea how to change this?

Sponsored Links
Joined: Mar 2000
Posts: 528
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 528
You can filter Categories by utilizing the "Cat=0" in the URL.

Set that to Cat=5 and you will see only your Announcements Category.

Cat=5,10 will show Announcements and the AZ Forum.

Cat=5,10,12 will show the CA forum as well.

You should be able to tie a users Favorite boards (U_Favorites in w3t_Users) to the B_Board table (Bo_Number=U_Favorites), and then tie THAT to the w3t_Category table (Bo_Cat=Cat_Number). Take that output, and if they have a Favorite forum in a particular Category, make the URL reflect that Cat. If not, skip it.

Hope that helps.

Joined: Jul 2002
Posts: 135
Journeyman
Journeyman
Joined: Jul 2002
Posts: 135
Makes sense but I have no idea how to actually make that work. Anyone care to jot a few lines of codee?

Joined: Mar 2000
Posts: 528
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 528
Working on this.


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
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,823
Most Online6,139
Sep 21st, 2024
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,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)