PDA

View Full Version : Conditional on the 'New Thread' button in FORUMDISPLAY


DoctorDoom
02-10-2007, 05:03 PM
I've got the Event Forums (https://vborg.vbsupport.ru/showthread.php?t=123416) hack installed, and there is now a 'New Thread' button and a 'New Event' button in that forum. I only want a 'New Event' button in that forum.

in FORUMDISPLAY there is


<if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>
<if condition="$show['neweventlink']">&nbsp;<a href="newthread.php?$session[sessionurl]do=newevent&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newevent.gif" alt="$vbphrase[lv_vb_eventforums_phrase_post_new_event]" border="0" /></a></if><else />&nbsp;</if>

How can I get something like

<if condition="!$show['neweventlink']"><a href="newthread.php...

so that the 'New Thread' button is turned off when the 'New Event' button is true? I'm not up at all on my php or vb syntax. Thanks for any help.

Gray Matter
02-10-2007, 11:49 PM
This should work:

<if condition="$show['neweventlink']">
&nbsp;<a href="newthread.php?$session[sessionurl]do=newevent&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newevent.gif" alt="$vbphrase[lv_vb_eventforums_phrase_post_new_event]" border="0" /></a>
<else />
<if condition="$show['newthreadlink']">
<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>
<else />
&nbsp;
</if>
</if>

DoctorDoom
02-11-2007, 04:28 AM
works great, thanks!