vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How do I include PHP file in CMS Widget? (https://vborg.vbsupport.ru/showthread.php?t=231522)

gator777 12-29-2009 02:52 AM

How do I include PHP file in CMS Widget?
 
I've read these forums and could not find the answer I needed.

All I need is simple instructions on how to "include" a .php file in a widget. Nothing fancy, just some simple guidlines to explain how to add the file and have it display in a Widget.

Thanks in advance for your help

--------------- Added [DATE]1262080610[/DATE] at [TIME]1262080610[/TIME] ---------------

I got the output to show up, but the output sits on top of the header and does not display in the block. What do I need to get the output to stay in the block?

Here is my code:

$output .= include ("http://www.myforum/forum/tsstatus/view.php]"); "<br />\n";

merk_aus 08-09-2010 09:13 AM

Is anyone able to help with this? I need the same thing.

Lynne 08-09-2010 02:16 PM

You cannot do any echo of your output or it will show up on the top of the page, not in the widget. So, check your code.


All times are GMT. The time now is 08:27 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.00955 seconds
  • Memory Usage 1,707KB
  • 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