Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Link to This Topic (Read 731 times)
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 89
Joined: Apr 25th, 2012
Link to This Topic
Jan 13th, 2015 at 6:52pm
Print Post  
Link to This Topic for YaBB 2.6.11
Version: 1.5
Author: Derek Barnstrom
Description
-----------
This mod adds a 'Link to This Topic' box below threads in Message View.

Installation
------------
1) Modify YaBB files using BoardMod or manually.
2) Upload modified files to your server in ASCII mode.
3) Upload linktopic.gif to the ModImages directory in Binary mode.
4) Upload LinkTopic.lng to Languages/English/Mods in ASCII mode.
5) Go to 'Admin Center - Forum Settings - Show / Hide Items' to enable this feature.

Files to edit
-------------
Admin/ManageTemplates.pm
Admin/ModList.pm
Admin/NewSettings.pm
Admin/Settings_Main.pm
Sources/Display.pm
Templates/default/Display.template

Note: the html in this version has been separated out and put into Display.template.

Note: If you've needed to use the mod_security fix in Sources/Subs.pm you'll need to modify Templates/default/Display.template after this mod has been installed:
In Display.template find
Code (Perl)
Select All
        <td class="windowbg2"><label for="link_html"><span class="small" style="font-weight: bold; cursor: pointer; white-space: nowrap;">{yabb link_topic_txt02}:</span></label></td>
        <td class="windowbg2"><input type="text" id="link_html" class="small" style="width: 98%; cursor: pointer;" onclick="this.select();" value="&lt;a href=&quot;$scripturl?num={yabb mnum}&quot; target=&quot;_blank&quot;&gt;{yabb msubthread}&lt;/a&gt;" title="{yabb link_topic_txt06}" readonly="readonly" /></td>
    </tr><tr>
        <td class="windowbg2"><label for="link_bbcode"><span class="small" style="font-weight: bold; cursor: pointer;">{yabb link_topic_txt03}:</span></label></td>
        <td class="windowbg2"><input type="text" id="link_bbcode" class="small" style="width: 98%; cursor: pointer;" onclick="this.select();" value="&#91;url=$scripturl?num={yabb mnum}&#93;{yabb msubthread}&#91;/url&#93;" title="{yabb link_topic_txt07}" readonly="readonly" /></td> 


and replace with
Code (Perl)
Select All
        <td class="windowbg2"><label for="link_html"><span class="small" style="font-weight: bold; cursor: pointer; white-space: nowrap;">{yabb link_topic_txt02}:</span></label></td>
        <td class="windowbg2"><input type="text" id="link_html" class="small" style="width: 98%; cursor: pointer;" onclick="this.select();" value="<a href='$scripturl?num={yabb mnum}' target='_blank'>{yabb msubthread}</a>" title="{yabb link_topic_txt06}" readonly="readonly" /></td>
    </tr><tr>
        <td class="windowbg2"><label for="link_bbcode"><span class="small" style="font-weight: bold; cursor: pointer;">{yabb link_topic_txt03}:</span></label></td>
        <td class="windowbg2"><input type="text" id="link_bbcode" class="small" style="width: 98%; cursor: pointer;" onclick="this.select();" value="[url=$scripturl?num={yabb mnum}]{yabb msubthread}[/url]" title="{yabb link_topic_txt07}" readonly="readonly" /></td> 


  

Link_to_This_Topic_2611.zip ( 4 KB | Downloads )
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint