vBulletin Mods

The Official vBulletin Modifications Site

PHP Widget Help Pse
by CFodder
06 Aug 2010 09:57

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.

Lynne 06 Aug 2010 16:15

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.

CFodder 06 Aug 2010 21:23

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.

All times are GMT. The time now is 11:42.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.