Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 06 Aug 2010, 09:57
CFodder CFodder is offline
Join Date: Mar 2008
PHP Widget Help Pse

I've created a php direct execution widget containing my code (a mixture of php and html) and placed it on my home page. The contents of the widget appear above my forum banner and the widget itself, with the title, where it should be on the page.

I've also tried creating this as a static html page but all I got was the html portions displayed with none of the php data in them.

Have also tried using obj_start(); & obj_clean(); at the start and end of the php, but this just seems to have stopped any output being displayed at all.

Read through some of the articles here re creating templates (also tried this with the module not even being displayed) but nothing I've tried with them has worked either.

If anyone could help, or point me in the right direction I'd appreciate it thanks.
Reply With Quote
Old 06 Aug 2010, 16:15
Lynne's Avatar
Lynne Lynne is offline
Join Date: Sep 2004
Real name: Lynne
You need to have the output from your widget get assigned to a variable and then put the variable into your widget template. Go download one of the many widgets in the modification forums and see how they do it.
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
Old 06 Aug 2010, 21:23
CFodder CFodder is offline
Join Date: Mar 2008
Thanks Lynne I'll give that a go. I know this is a reasonably simple thing but damned if I can get my head around it at the moment.
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 02:13.

Layout Options | Width: Wide Color: