vBulletin Mods

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

Custom HTML not accepting vb conditions
by Dr.CustUmz
25 Sep 2020 22:23

3 Attachment(s)
I've made a setting in forum manager which adds an extra option to add custom html to each forum.

my problem is when i use if conditions
EXAMPLE:

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

they are not functioning and both sections show up regardless. All other HTML works fine, just not if conditions.


I created the row

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

Template:

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

Global start plugin:

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

There are of coarse the forum options and all but I think those are irrelevant to the problem, the data is stored in the database as text. It renders the text inside the if condition, just not the condition itself which is what i need.

Seven Skins 25 Sep 2020 22:56

May be this


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


Dr.CustUmz 25 Sep 2020 23:05

Quote:

Originally Posted by Seven Skins (Post 2604053)
May be this


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

its not only the this script condition, no if condition at all is working within this. :(
I think it has something to do with the way the data is used from the DB but Im at a loss right now.

Dr.CustUmz 29 Sep 2020 05:39

I did come up with a workaround by creating 2 separate options within the forum manager, one for forumdisplay, and one for showthread, but I really do need some help getting these to both be within one option.

blind-eddie 29 Sep 2020 12:09

I have been using Add banner above forum
It allows you to add html per forum and still works with 3.8

Dr.CustUmz 30 Sep 2020 00:40

3 Attachment(s)
Quote:

Originally Posted by blind-eddie (Post 2604093)
I have been using Add banner above forum
It allows you to add html per forum and still works with 3.8

that's actually the hack I have modified. But I cant get
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

To work within it. Or any if conditions at all

Glad to see your still around eddie =)

PinkMilk 30 Sep 2020 17:21

Your trying to add the if conditions as the custom html but it's basicly seen as php and will not render meaning all it spits out is the html/text.

My suggestion would be to maybe just double up i.e create 2 sets of options 1 for showthread and 1 for forumdisplay rather then if else as it currently is, then have an enable/disable option for each.


All times are GMT. The time now is 01:29.

Powered by vBulletin® Version 3.8.14
Copyright © 2022, 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.