The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
About Disable / Enable Code
Hello I Have A Question Plz
I Have An Html Code Lets Say HTML Code:
<Center>vBulletin</Center> So It Show (( vBulletin )) I Need The Ability To Make Users Disable / Enable The Show Of This Code From The Usercp Panel |
#2
|
|||
|
|||
I think you might find what you need in the vb manual here: http://www.vbulletin.com/docs/html?m...rsion=30806601
Go to the section called "Custom Profile Fields" |
#3
|
|||
|
|||
Yeah I Know How To make Custom Profile I Mean What Is The Code Or Hook
That Give The User Permission To Enable/Disable Some Ads In Header For Example From There Profile |
#4
|
|||
|
|||
OK. For example if you add a radio button custom profile field with 'Enabled' and 'Disabled' as the options and it's field11, then you could do this:
Code:
<if condition="$bbuserinfo['field11'] == 'Enabled'> // put ad code here </if> |
#5
|
|||
|
|||
mmmm Let Me Explain More
Now I Have Marquee Ads In My Forum Header It Show The Last Topics Games , Software , Movies ( For Example ) How Can I Make The User Open His Ucercp And Enable / Disable This Ads Lets Say That The Ad Code Is This <img src="vBulletin.Jpg" alt ="" /> What Should I Do To Make The User Able To Enable / Disable |
#6
|
|||
|
|||
Well, you said above that you know how to add a custom profile field, but maybe you misunderstood and thought I meant customizing the profile. If you look at the link I posted above, it shows you how to add an option to the usercp. Please look at it before you decide you already know how to do it, to make sure we are talking about the same thing. (ETA: Here's another link directly to the page I'm talking about: http://www.vbulletin.com/docs/html/main/profile_add)
Once you've added the custom profile field, you should be able to put your code inside an "if" like the example I posted. Of course it's also possible that I don't uderstand what you're asking, in which case maybe someone else can help you. |
#7
|
||||
|
||||
That sounds to me like what he's saying. You want ads that users can opt out of. That's how you'd do it.
|
#8
|
|||
|
|||
Quote:
I need U To Know That I Created 12 Custom Fields In My Forum So I Know How To Make it But I Need To Ask About Something Else I Will Give U Example I Have Advertisement Code In My Header Contain 12 Banner Ok ? How Can I Make The User Able To Disable The Show Of This Banners From His Usercp ? Did You Got What I Need ? And Sorry If I Miss Understood Something mmm Thank U For Reply See My Upper Post It Contain The Full Example I Need |
#9
|
|||
|
|||
OK. Sorry, it's just that, if you know how to make a custom field then I don't see what the problem is - make a custom field with radio buttons (or a checkbox), then put a conditional in the template to check it.
|
#10
|
||||
|
||||
Quote:
You create a Yes/No custom profile field, then put your banner code inside the condition kh99 showed you, where field11 is the ID number of your custom field. That's how you create a banner that user's can turn on and off in their User CP. You can do this for multiple banners on the page and can customize it to use just one Yes/No field, or multiple Yes/No fields. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|