Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 24 Feb 2019, 03:27
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Real name: Daniel
Trying to exclude a template using This Script but I keep getting errors

Ive read the posts and tried several ways but all keep giving me errors. Im using 4.2 on a php5 server. Any help would be great. Thanks.

All Im trying to do is exclude a template from one specific page using the "This Script" from that page.


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

This is the error I get while attempting the template change.

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

This is the warning that is displayed at the top of the page.

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

--------------- Added 24 Feb 2019 at 03:32 ---------------

Actually, I just noticed something and I need to exclude it from 2 pages. It runs a JS that conflicts with those 2 pages.

Thanks again.
__________________
ScaleMotorcars.com Large scale model building at its best. Check it out.
Reply With Quote
  #2  
Old 24 Feb 2019, 03:36
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
It looks like you're using vB 3.x template logic.
__________________
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 24 Feb 2019, 03:44
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Real name: Daniel
I followed directions for VB4 but you may be right.

The plugin for the template is


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

On the footer template, I have the standard vb:raw


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

And the template is cached

So, any ideas on how to exclude this template from just 2 pages?
__________________
ScaleMotorcars.com Large scale model building at its best. Check it out.
Reply With Quote
  #4  
Old 24 Feb 2019, 03:48
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
What I mean is you want to use the following format within the template:


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

__________________
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
  #5  
Old 24 Feb 2019, 03:54
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Real name: Daniel
Good lord, how did I not see that? Works perfectly on the one page.

Any clue how to exclude on two pages? You know This Script and This Script. I cant find how to do this.

And thanks for the help....

--------------- Added 24 Feb 2019 at 04:35 ---------------

Nevermind I just hardcoded the 2nd page to exclude that template. Its not ideal but it works.
__________________
ScaleMotorcars.com Large scale model building at its best. Check it out.
Reply With Quote
  #6  
Old 24 Feb 2019, 06:05
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
If you want to exclude multiple scripts, I would use for the condition:


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

__________________
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
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 02:27.

Layout Options | Width: Wide Color: