Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 22 May 2011, 20:35
kirupa kirupa is offline
 
Join Date: Dec 2002
Including External HTML File in Template

Hi everyone,
I'm running into a weird issue that I am not able to debug. I am trying to include an external HTML file in my header template. I've read the following posts that describe how to do this: http://www.vbulletin.com/docs/html/t..._externalfiles and http://www.vbulletin.org/forum/showthread.php?t=242454

The problem is that this doesn't seem to be working for me. Here is what I've done.

Created the new Plugin
The new plugin hook location is global_init_start, and the execution order is 5. The code I am using is:

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

I've verified that this file exists. The forums live in http://www.kirupa.com/forum, and the file I am trying to include lives in: http://www.kirupa.com/ssi/forums/defaultHeader2.shtml

Referencing it in the Template
The next thing I do is go to the Styles Manager and make a reference to this plug-in:

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

When I save everything and test how this works on my board, nothing shows up.

Can someone please tell me what I am doing that may be wrong?

Thanks,
Kirupa
Reply With Quote
  #2  
Old 22 May 2011, 20:52
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
As part of debugging to see where the issue lies, try this:

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

Do you get any output now?
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 22 May 2011, 21:11
kirupa kirupa is offline
 
Join Date: Dec 2002
Hi Lynne,
Unfortunately, no - no output is displayed. I have ensured that Plugins are enabled.

Thanks,
Kirupa
Reply With Quote
  #4  
Old 23 May 2011, 02:56
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
OK, I just tried this myself. I assume you meant global_bootstrap_init_start instead of just global_init_start.

You're gonna kick yourself over this... you have an extra space in your call here - see yours, with what should be underneath:

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

__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #5  
Old 23 May 2011, 07:18
kirupa kirupa is offline
 
Join Date: Dec 2002
Lynne - you were right! The extra space was what did me in. I am kicking myself as we speak :P
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 00:56.

Layout Options | Width: Wide Color: