Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 07 Apr 2017, 17:17
flox80 flox80 is offline
 
Join Date: Mar 2017
hooks issue on 4.2.4

Hello,

I've been trying to add some simple html hooks, but I can not get it to show at all. Below I tried to add a very simple html on the top of the page.

1. Plugin manager, add new plugin

Product: Vbulletin
Hook location: global_start
Title: $includedhtml
Execution order: 1
Plugin PHP code: $includedhtml = implode('', file('/home/web1/*****************.com/htdocs/test4567.html'));
Plugin is active: Yes

2. Styles&Templates - Search in templates - found the header for the default style
inserted at the beginning: {vb:raw includedhtml}

In Options - Plugin/Hook System - Yes

Am i missing something? Any input would be really helpful.

Thank you.
Reply With Quote
  #2  
Old 07 Apr 2017, 17:23
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
In your plugin, you need something like:


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

Replace "$template_name" with the name of the template in which you want this variable to be available.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #3  
Old 07 Apr 2017, 17:57
flox80 flox80 is offline
 
Join Date: Mar 2017
Originally Posted by MarkFL View Post
In your plugin, you need something like:


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

Replace "$template_name" with the name of the template in which you want this variable to be available.
Got it.

Thanks a lot for your help - have a nice weekend.
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 14:39.

Layout Options | Width: Wide Color: