vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Including HTML or PHP Not Working (https://vborg.vbsupport.ru/showthread.php?t=141487)

voteforbird 03-08-2007 03:04 PM

Including HTML or PHP Not Working
 
I've attempted to include PHP?and when that didn't work, HTML?to no avail. I used the instructions here but the content simply does not echo through the variable in the template.

I'm running the latest version of 3.6. Anyone have any idea what could be the matter? Thanks.

Zachery 03-08-2007 04:26 PM

Which method are you using, what exct code are you using, and are you positive that its working but not how you want it too?

voteforbird 03-08-2007 07:56 PM

I tried both methods. For the HTML…

The HTML to include: http://www.volconvo.com/forums/neorunner_ad.html
Plugin at global_start:
PHP Code:

$neorunner_html implode(''file('home/volconvo/public_html/forums/neorunner_ad.html')); 

OR
PHP Code:

$neorunner_html implode(''file('./neorunner_ad.html')); 

OR
PHP Code:

$neorunner_html implode(''file('http://www.volconvo.com/forums/neorunner_ad.html')); 

Variable in footer template:
PHP Code:

$neorunner_html 

Nothing works! What gives?

Zachery 03-08-2007 08:17 PM

You're plugin system is turned on and the plugin is enabled?

voteforbird 03-09-2007 12:54 AM

Yes, of course.

voteforbird 03-14-2007 02:55 AM

Any help?

It would appear it's the implode that isn't working. When I use $neorunner_html = "test"; as the plugin, it works.

I finally got it to work, but the include variable would only echo out on certain templates and not others. This seems very odd to me.

TECK 03-15-2007 04:10 AM

Code:

$neorunner_html = implode('', file(DIR . '/neorunner_ad.html'));

voteforbird 03-15-2007 04:25 AM

Thanks, but as said above I actually got it to work… just not on all the templates.


All times are GMT. The time now is 01:21 PM.

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.01751 seconds
  • Memory Usage 1,725KB
  • 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)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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