vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=327104

Trying to exclude a template using This Script but I keep getting errors
by Scalemotorcars
24 Feb 2019 04:27

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 04: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.

MarkFL 24 Feb 2019 04:36

It looks like you're using vB 3.x template logic. :)

Scalemotorcars 24 Feb 2019 04:44

I followed directions for VB4 but you may be right. :rolleyes:

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?

MarkFL 24 Feb 2019 04:48

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.


Scalemotorcars 24 Feb 2019 04:54

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 05:35 ---------------

Nevermind I just hardcoded the 2nd page to exclude that template. Its not ideal but it works.

MarkFL 24 Feb 2019 07:05

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.



All times are GMT. The time now is 06:39.

Powered by vBulletin® Version 3.8.13
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.