The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Hello. I admin two boards with 200+ forums. I'd like to be able to create a forums list for the users, and do it in templates. I have some idea of what's involved but am looking for advice on some specifics.
1) Create a text user profile field that can't be modified from the usercp. 2) Create an entry on the FORUMDISPLAY template that adds an option to "Add this forum to favorites" Link that to "forumdisplay.php?do=addfavorite&f=$forumid" 3) Have the PHP_Include template intercept the $_REQUEST['do'] and process by calling up the appropriate $bbuserinfo[field] and storing an array of all forumid's the user has clicked. 4) PHP_Inlcude start will pull the $bbuserinfo[field] and run a query to determine the names of the forums in the array - I'll need help with this query. The forum titles need to be in an associate array with their id's. Then PHP Include start will build a variable called $myfavorites that will later be called in the navbar. 5) Back in the forumdisplay template, a conditional will be put around the "Add this forum to favorites". If the forum's id is already in the $bbuserinfo array this link becomes a "Delete this forum from favorites" 6) PHP Inlude start will get a that do action as well. 7) Finally, the navbar will have the field "my favorites" that displays on the condition that $myfavorites isn't empty. Anything I'm missing here? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|