Oblivion Knight
06-23-2005, 10:00 PM
This is an addon (if it can be called that) to the following modification:
New posts as posts, Instead of updated threads. (https://vborg.vbsupport.ru/showthread.php?t=77703)
Many of my users didn't like the change and asked me how they could use the "old" layout (meaning threads). So I created an option in the User CP for users to choose, and by default it's set to display by Threads..
Firstly, create a new User Profile Field.
AdminCP -> User Profile Fields -> Add New User Profile Field
Select "Single-Selection Menu" from the dropdown menu, and set the following options..
Title: Search Display Mode
Description: When displaying New Posts or Today's Posts, there are two interface types available to you.
Options: Updated Threads
New Posts
Set Default: Yes, but No First Blank Option
Which page displays this option? Options: Other
Save and make a note of the field number that has been allocated to it.
Now, where you have added or changed a search.php link in your templates to include
&showposts=1at the end of the address, change it to
<if condition="$bbuserinfo['fieldX']=='New Posts'">&showposts=1</if>Changing X in fieldX, to the allocated field number of your User Profile Field.
AdminCP -> Styles & Templates -> Style Manager
New posts as posts, Instead of updated threads. (https://vborg.vbsupport.ru/showthread.php?t=77703)
Many of my users didn't like the change and asked me how they could use the "old" layout (meaning threads). So I created an option in the User CP for users to choose, and by default it's set to display by Threads..
Firstly, create a new User Profile Field.
AdminCP -> User Profile Fields -> Add New User Profile Field
Select "Single-Selection Menu" from the dropdown menu, and set the following options..
Title: Search Display Mode
Description: When displaying New Posts or Today's Posts, there are two interface types available to you.
Options: Updated Threads
New Posts
Set Default: Yes, but No First Blank Option
Which page displays this option? Options: Other
Save and make a note of the field number that has been allocated to it.
Now, where you have added or changed a search.php link in your templates to include
&showposts=1at the end of the address, change it to
<if condition="$bbuserinfo['fieldX']=='New Posts'">&showposts=1</if>Changing X in fieldX, to the allocated field number of your User Profile Field.
AdminCP -> Styles & Templates -> Style Manager