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
<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>
and replace with
<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>