Announcement

Collapse
No announcement yet.

Change link to "Post new thread"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • enthusify
    replied
    Originally posted by Matthew Gordon View Post
    I think this'll work. Edit the FORUMDISPLAY template, find:
    Code:
    <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}"
    Replace with:
    Code:
    <a href="<vb:if condition="$foruminfo['forumid'] == 5">http://www.youurlhere.com/<vb:else />{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}</vb:if>"
    This appears multiple times. Replace 5 with the appropriate forumid and the URL with the URL you want to use.
    I just did this and it works. Thanks guys!
    Last edited by enthusify; Thu 13 Sep '12, 4:44pm.

    Leave a comment:


  • John Lester
    replied
    Originally posted by Matthew Gordon View Post
    I think this'll work. Edit the FORUMDISPLAY template, find:
    Code:
    <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}"
    Replace with:
    Code:
    <a href="<vb:if condition="$foruminfo['forumid'] == 5">http://www.youurlhere.com/<vb:else />{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}</vb:if>"
    This appears multiple times. Replace 5 with the appropriate forumid and the URL with the URL you want to use.
    My oh my this is so much easier then what I was doing thank you

    Leave a comment:


  • JabirA
    replied
    I fixed it now! The problem is that I didn't reverted the changes I made in the begin. I am sorry if causing confusion!
    Thank you again very much for the help. You guys are the best!

    Kind regards

    Leave a comment:


  • JabirA
    replied
    Wait!

    @Matthew Gordon

    This works only for the second button. The first button still creates a new thread.

    Leave a comment:


  • JabirA
    replied
    Originally posted by TheLastSuperman View Post
    omdl thanks for the catch! I was thinking reply to thread not post new thread .



    So try this then instead:

    Code:
    <vb:if condition="$show['newthreadlink']"><a href="<vb:if condition="$thread['forumid'] == 9">http://www.yourreplacmenturlhere.com<vb:else />{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}</vb:if>" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top"><span>+</span> {vb:rawphrase post_new_thread}</a></vb:if>
    And revert the changes made to SHOWTHREAD respectively .
    Originally posted by Matthew Gordon View Post
    I think this'll work. Edit the FORUMDISPLAY template, find:
    Code:
    <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}"
    Replace with:
    Code:
    <a href="<vb:if condition="$foruminfo['forumid'] == 5">http://www.youurlhere.com/<vb:else />{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}</vb:if>"
    This appears multiple times. Replace 5 with the appropriate forumid and the URL with the URL you want to use.
    Both solutions didn't work. :S
    I am very confused right now. How is this possible?

    Leave a comment:


  • Matthew Gordon
    replied
    I think this'll work. Edit the FORUMDISPLAY template, find:
    Code:
    <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}"
    Replace with:
    Code:
    <a href="<vb:if condition="$foruminfo['forumid'] == 5">http://www.youurlhere.com/<vb:else />{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}</vb:if>"
    This appears multiple times. Replace 5 with the appropriate forumid and the URL with the URL you want to use.

    Leave a comment:


  • TheLastSuperman
    replied
    Originally posted by borbole View Post
    Try this. At the FORUMDISPLAY template find the following code:

    HTML Code:
    <vb:if condition="$show['newthreadlink']"><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top"><span>+</span> {vb:rawphrase post_new_thread}</a></vb:if>
    And change it to:

    HTML Code:
    <vb:if condition="$show['newthreadlink']">
    <a href="http://www.redireclink.com" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top">
    <span>+</span> {vb:rawphrase post_new_thread}</a></vb:if>
    And replace the example link with the link where you want to redirect the Post New Thread button when clicked upon.
    omdl thanks for the catch! I was thinking reply to thread not post new thread .

    Originally posted by JabirA View Post
    @Borbole: I want this modification only in a specific forum. How do do I accomplish that?
    So try this then instead:

    Code:
    <vb:if condition="$show['newthreadlink']"><a href="<vb:if condition="$thread['forumid'] == 9">http://www.yourreplacmenturlhere.com<vb:else />{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}</vb:if>" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top"><span>+</span> {vb:rawphrase post_new_thread}</a></vb:if>
    And revert the changes made to SHOWTHREAD respectively .

    Leave a comment:


  • JabirA
    replied
    Thank you. I will look into it

    Leave a comment:


  • borbole
    replied
    Originally posted by JabirA View Post
    @Borbole: I want this modification only in a specific forum. How do do I accomplish that?
    I do not have much free time atm to look further into this. Here you have a list of conditionals. Give it a try yourself.

    http://www.vbulletin.org/forum/showthread.php?t=231525

    Leave a comment:


  • JabirA
    replied
    @Borbole: I want this modification only in a specific forum. How do do I accomplish that?

    Leave a comment:


  • borbole
    replied
    Originally posted by JabirA View Post
    Didn't work! I tried it twice.
    Try this. At the FORUMDISPLAY template find the following code:

    HTML Code:
    <vb:if condition="$show['newthreadlink']"><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top"><span>+</span> {vb:rawphrase post_new_thread}</a></vb:if>
    And change it to:

    HTML Code:
    <vb:if condition="$show['newthreadlink']">
    <a href="http://www.redireclink.com" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top">
    <span>+</span> {vb:rawphrase post_new_thread}</a></vb:if>
    And replace the example link with the link where you want to redirect the Post New Thread button when clicked upon.

    Leave a comment:


  • JabirA
    replied
    Didn't work! I tried it twice.

    Leave a comment:


  • TheLastSuperman
    replied
    Originally posted by JabirA View Post
    Hello,

    Does someone know how to change the link "Post new thread" to link to another page. If yes is it possible to do this for a specific forum?

    Thanks in advance.

    Kind regards
    You should be able to edit template SHOWTHREAD and find:
    Code:
        <div id="above_postlist" class="above_postlist">
            <vb:if condition="$show['largereplybutton']">
                <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>
                <img style="display:none" id="progress_newreplylink_top" src="{vb:stylevar imgdir_misc}/progress.gif" alt="" />
            </vb:if>
    AND:

    Code:
    <div id="below_postlist" class="<vb:if condition="!$show['inlinemod']">noinlinemod </vb:if>below_postlist">
        <vb:if condition="$show['largereplybutton']">
            <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_bottom"><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>
        </vb:if>
    Replace with:
    Code:
        <div id="above_postlist" class="above_postlist">
            <vb:if condition="$show['largereplybutton']">
                <a href="<vb:if condition="$thread['forumid'] == 9">http://www.yourreplacmenturlhere.com<vb:else />{vb:raw $vboptions.vbforum_url}{vb:if  "$vboptions['vbforum_url']", '/', ''}newreply.php?{vb:raw  session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1</vb:if>"  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>
                <img style="display:none" id="progress_newreplylink_top"  src="{vb:stylevar imgdir_misc}/progress.gif" alt="" />
            </vb:if>
    AND:

    Code:
    <div id="below_postlist" class="<vb:if condition="!$show['inlinemod']">noinlinemod </vb:if>below_postlist">
        <vb:if condition="$show['largereplybutton']">
            <a href="<vb:if condition="$thread['forumid'] == 9">http://www.yourreplacmenturlhere.com<vb:else />{vb:raw $vboptions.vbforum_url}{vb:if  "$vboptions['vbforum_url']", '/', ''}newreply.php?{vb:raw  session.sessionurl}p={vb:raw  LASTPOSTID}&amp;noquote=1</vb:if>"class="newcontent_textcontrol"  id="newreplylink_bottom"><vb:if  condition="$show['closethread']"><span>+</span>  {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase  closed_thread}</vb:if></a>
        </vb:if>
    Replacing the 9 in the added code w/ the forumid this change of the button will take place in .

    Leave a comment:


  • JabirA
    started a topic [Forum] Change link to "Post new thread"

    Change link to "Post new thread"

    Hello,

    Does someone know how to change the link "Post new thread" to link to another page. If yes is it possible to do this for a specific forum?

    Thanks in advance.

    Kind regards

Related Topics

Collapse

Working...
X