Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 28 Jun 2018, 18:32
Bestrafung Bestrafung is offline
 
Join Date: Aug 2009
PHP Include Not Working in Plugin

I'm trying to include a php file in one of the templates for Bananalive's vbTournaments mod but have run into trouble. It's been a while since I've attempted something like this so I followed this guide: Including External Files but it still isn't working. If anyone could let me know what I'm doing wrong I'd greatly appreciate it.

/example.php contents:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I have real content but I scaled back to hello world for simplicity while testing.


Plugin:
Product: vB Tournaments, Ladders and Leagues Manager
Hook Location: global_start
Title: Example Block
Exec Order: 5
Code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I tried both include and require_once and I've tried both with and without the preRegister


Edit: I forgot to mention that I added {vb:raw myincludedphp} to the tmnt_index_c template, and I tested plain text in the same spot to ensure I was outside an if/else statement.

--------------- Added 28 Jun 2018 at 19:04 ---------------

Update: I still need to test my real code but I found the issue... a simple space. The code example from the manual contains an extra space in the preRegister that I didn't catch when substituting my variable name.

Last edited by Bestrafung; 28 Jun 2018 at 18:46.
Reply With Quote
Reply



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 22:41.

Layout Options | Width: Wide Color: