PDA

View Full Version : subscribed


ramesh_umk3
05-22-2014, 02:34 PM
Hello all,

if a user is subscribed to particular thread he should see unsubscribed link were as my users always see subscribed link on subscribed threads aswell i added OR statement that also didnt worked looking for help below is my code

<vb:if condition="$show['subscribed']">
<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;t={vb:raw threadid}" rel="nofollow" class="newcontent_textcontrol"><span>-</span> {vb:rawphrase unsubscribe_from_this_thread}</a>
<vb:else />
<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=addsubscription&amp;t={vb:raw threadid}" rel="nofollow" class="newcontent_textcontrol"><span>+</span> {vb:rawphrase subscribe_to_this_thread}&hellip;</a>

</vb:if>

thanks waiting for reply :o