PDA

View Full Version : Custom New Topic button


Maxtor00
07-29-2013, 11:55 AM
Welcome.

I have a question. Only in one forum, wants to change the button New Topic to the one which will lead to a specific location. It's about changing the link to the button will be passed. FINE I mean to change the button link:

/newthread.php?do=newthread&f=167 to /forms.php?do=form&fid =1 as easy to do?

I saw on one forum as a button to create a new thread leads to the external form.

nerbert
07-29-2013, 11:18 PM
Just under {vb:raw poll}, Use a conditional like the green part




<div id="above_postlist" class="above_postlist">
<vb:if condition="$show['largereplybutton']">
<vb:if condition="$thread['forumid'] == 100">
<a href="YOUR NEW URL HERE" class="newcontent_textcontrol" id="newreplylink_top"><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>
<vb:else />
<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1" class="newcontent_textcontrol" id="newreplylink_top"><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>
</vb:if>
<img style="display:none" id="progress_newreplylink_top" src="{vb:stylevar imgdir_misc}/progress.gif" alt="" />
</vb:if>


Then about half way down the SHOWTHREAD template see "<div id="below_postlist" ....." and just below that do the same thing