vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   PHP Widget Help Pse (https://vborg.vbsupport.ru/showthread.php?t=248085)

CFodder 08-06-2010 07:57 AM

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.

Lynne 08-06-2010 02:15 PM

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 08-06-2010 07:23 PM

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 03:55 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00968 seconds
  • Memory Usage 1,705KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete