PDA

View Full Version : Create Usercp option to enable/disable product


Jon1422
06-12-2009, 07:08 PM
Hi folks...

Still a newbie here, so apologies if this is in the wrong place - or if I appear completely stupid! :p

I have a small XML program written which adds the thread creation date next to the thread creator username in the forum view. What I would like to do is make this an option members can enable/disable as they wish.

I've got the program working, no problems at all, and I can create the usercp option with a pair of radial boxes (enable/disable) but how do i begin getting the two working together?

A very simple guide would be appreciated :)

Jon

P.S. These past few weeks have been a very steep learning curve!

Lynne
06-12-2009, 07:27 PM
Have you tried using a condition like this:
if ($vbulletin->userinfo['fieldxx'] == 'Whatever-yes-is')
{
your code for if user selects yes
}