PDA

View Full Version : How to make PHP widget .


K a M a L
01-07-2015, 06:47 PM
Hello ,
I want to ask what is the proper way to create a PHP widget in Vbulletin 5 .
I'm not able to output anything in the widget
I tried
echo 'test';
and
return 'test';
and
$output= 'test';
but didn't get any output in all cases .. Also I want to ask where is widget is processed and what is the variable scope available there ..
Thank you!

Lynne
01-07-2015, 09:43 PM
The first one should work (it does on my site). Did you try to do Maintenance > Clear System Cache after writing it and see if that fixes your issue?

http://www.vbulletin.com/docs/html/sitebuilder_modules_PHP?manualversion=50104500

K a M a L
01-08-2015, 01:04 AM
Thank Lynne .. it is working fine now!

ozzy47
01-10-2015, 01:57 AM
Glad to hear you got it working now. :)