PDA

View Full Version : Code to change destination for NEW THREAD for specific forum id's


grimmer
10-30-2005, 03:55 AM
In previous versions I was able to change the destination for a specific forum id's NEW THREAD button by replacing the following code in 'Forum Display Templates => FORUMDISPLAY'

<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 />

With somthing like this

<if condition="$show['newthreadlink']"><a href="<if condition="$foruminfo['forumid'] == 13">/newthread.php?do=blahblah
<else /></if></if>"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />


Now though I get this error when I try and save to the template.

Parse error: parse error, unexpected '\"', expecting ']' in /var/www/html/forum/includes/adminfunctions_template.php(3523) : eval()'d code on line 471

I have spoken to a few people and we all agree that 3.5 is very tempermental with code. I have gone through it a dozen times trying to change it around to be accepted but I cant get it to work properly.

Any help would be greatly appreciated.

Thanks in advance.

grimmer
10-31-2005, 09:17 PM
bump :(