Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 14 Aug 2010, 23:12
kingMOB kingMOB is offline
Join Date: Nov 2007
Help in outputting PHP results to widget

I have this PHP widget to output game servers status:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It works outside the widget system in a simple PHP page, but I want to put the results in a widget. The var that I want is the $results, how can I output it to the vbcms_widget_execphp_page template?

Reply With Quote
Old 14 Aug 2010, 23:29
Lynne's Avatar
Lynne Lynne is offline
Join Date: Sep 2004
Real name: Lynne
You need to convert all your print statements to be outputting to the $output variable. There are several php widgets here in the mods forum. You may want to download a couple of them and see how they went about this. (When I wrote mine, I actually created it's own template instead of using the vbcms_widget_execphp_page template, but other users did you that template.)
Former Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 19:18.

Layout Options | Width: Wide Color: