![]() |
whats wrong with my if subscribed condition
whats wrong with this its not working =/
ive looked it over 10+ times Code:
<if condition="$show['member']"> |
The single forward slash on the else doesn't appear correct.
In php a single forward slash is a division operator. |
Thats how if else statements work in vb3
<if condition="something"> do something <else /> do something else </if> |
Looks fine to me. Are you sure those $show array keys are usable in the forumbit templates?
|
Code:
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if> and i haven't found an option for subscriptions anywhere... i may have overlooked it --------------- Added [DATE]1459967670[/DATE] at [TIME]1459967670[/TIME] --------------- after searching a crap ton of different things, i finally came across this http://tracker.vbulletin.com/browse/VBIV-8931 Code:
Create a subforum. 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 Code:
$show['forumsubscription'] Code:
$show['forumsubscription'] = !empty($forum['subscribeforumid']); 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 [DATE]1459968612[/DATE] at [TIME]1459968612[/TIME] --------------- 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 [DATE]1459971413[/DATE] at [TIME]1459971413[/TIME] --------------- 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 |
All times are GMT. The time now is 03:54 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|