![]() |
On/Off Switch user profile fields
ok just installed photopost and on forum index it displays the featured photos and this is called by one line of code in forumhome which is
$photopostfeature now some members prefer to see that box whereas others dont so im lookin for a way where i can add a new profile field or whatever it is so in their options they can tick a box to turn it on or turn it off. Anyone know how to do this ? |
First of all, set up a custom profile field..
Admin CP -> User Profile Fields -> Add New User Profile Field Create it as a "Single-Selection Menu" type.. Title: Display Featured Photos Description: By default, we display some featured photos from our gallery on the forum home. If you wish, you may turn these off. Options: Yes, leave them on No, turn them off Set Default: Yes, but No First Blank Option The rest of the options are up to you, and then click "Save". Make a note of the field number on the "User Profile Field Manager" (ie. field5). Now go and edit your FORUMHOME template and find: HTML Code:
$photopostfeature HTML Code:
<if condition="$bbuserinfo['field5']!='No, turn them off'">$photopostfeature</if> |
thanks a lot oblivion knight.
EDIT - tested and worked perfect - cheers again for your help |
how would i get it so if you havent filled in a profile field it shows a message on forum home (or where ever i want to display message)
Sorry for bump :] |
All times are GMT. The time now is 05:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|