Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 06 Apr 2016, 15:27
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
whats wrong with my if subscribed condition

whats wrong with this its not working =/

ive looked it over 10+ times

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

trying to use it on forumbit lvl 2 post
__________________
If you need custom work done please use Dirt RIF CustUmz
Owner of vBTeam
vBulletin 3.8.14 DRC Edition PHP 7.4 Compatible- NOT a null, NOT complete files Requires a legit copy of vBulletin 3.8.11.
Reply With Quote
  #2  
Old 06 Apr 2016, 17:16
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Real name: Kris
The single forward slash on the else doesn't appear correct.

In php a single forward slash is a division operator.
Reply With Quote
  #3  
Old 06 Apr 2016, 17:21
TheLastBatman's Avatar
TheLastBatman TheLastBatman is offline
 
Join Date: Apr 2016
Real name: Batman
Thats how if else statements work in vb3

<if condition="something">
do something
<else />
do something else
</if>
Reply With Quote
  #4  
Old 06 Apr 2016, 17:44
Dave Dave is offline
 
Join Date: Jun 2010
Looks fine to me. Are you sure those $show array keys are usable in the forumbit templates?
Reply With Quote
  #5  
Old 06 Apr 2016, 18:46
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan

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

is in the template by default, even without the member condition it still doesn't function =/

and i haven't found an option for subscriptions anywhere... i may have overlooked it

--------------- Added 06 Apr 2016 at 19:34 ---------------

after searching a crap ton of different things, i finally came across this

http://tracker.vbulletin.com/browse/VBIV-8931

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

no it wasnt issued as a bug for vb3 but I said ok ill give it a shot since it was exactly my issue

so i first double checked my code in forumbit lvl 1 & lvl 2 post (since thats where the if condition im trying to get to work is)

I open up functions forumlist.php

quick search for

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

change the line to

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

and presto it now works =)

so this is an issue that needs to be addressed in an update i take it, since i am on the latest vb3 and this problem is still here.

why have a default template conditional if the code doesnt even function properly...

--------------- Added 06 Apr 2016 at 19:50 ---------------

looking into it further, this only fixed forumdisplay. forumhome still is not functioning properly, this has also caused other issues that may or may not be my template messing it up lol.

but the default code in lvl1 & lvl 2 post i have not yet found any other way to make it actually show the unsubscribe if subscribed.

--------------- Added 06 Apr 2016 at 20:36 ---------------

ok the other errors were in my templates, but the fix for this only applies to forumdisplay, im going through files now to see i can get it to work on forumhome. ....its supposed to, by default... so it shouldnt be too hard... right?

its just bugging me now lol
__________________
If you need custom work done please use Dirt RIF CustUmz
Owner of vBTeam
vBulletin 3.8.14 DRC Edition PHP 7.4 Compatible- NOT a null, NOT complete files Requires a legit copy of vBulletin 3.8.11.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Subscribed Threads, Subscribed Forums, and Event Reminders calorie vBulletin 3.6 Add-ons 7 30 Aug 2011 15:39



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 23:56.

Layout Options | Width: Wide Color: