![]() |
if user dont want see a widget..disable it. how?
i was wondering about make an select option on user control panel, to give user the permission for disable or enable a widget of forumblock
for example.. on my site i have 2 news widgets (a widget from a newspaper of spain and other from argentina). if user is from spain..their dont want to see news from argentina,...so how can he disable argentinian news widget? is any way to do this? thank you very much! |
Create a user profile field for the users that they can set to Yes or No and then put a condition around your widget code (assuming it is a php widget you wrote yourself) that will either do, or not do the contents based on the profile field value. If it's not a php widget, then create your own template to use with the other widget and put the condition around the template code.
|
no really what to do...
i use html for the widget how should i wrote the condition? i dont know the syntax i know is easy, i only need a hand (or two :P ) |
All times are GMT. The time now is 09:13 AM. |
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:
|