Page Index Toggle Pages: 1 ReplyAdd Poll Send Topic
Normal Topic Link to This Topic (Read 1474 times)
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Link to This Topic
Dec 31st, 2014 at 10:32pm
Mark & QuoteQuote  
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.
  

Link_to_This_Topic_2611.zip ( 4 KB | 116 Downloads )
link_to_this_topic_German_files.zip ( 3 KB | 129 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 165
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Mood: Depressed
Zodiac sign: Libra
Re: Link to This Topic
Reply #1 - Jan 5th, 2015 at 11:36pm
Mark & QuoteQuote  
Um ... I am not 100% sure, but I think this is throwing in some ampersands (&) that do not belong ....

  

LinkToProbs.jpg ( 81 KB | 109 Downloads )

If you don't know where you are, but you don't care, you're not lost ... you're exploring!
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Link to This Topic
Reply #2 - Jan 6th, 2015 at 3:13am
Mark & QuoteQuote  
The problem is that mod_security fix - it's turning all the html entities in the form query string from things like < into &

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> 


  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 165
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Mood: Depressed
Zodiac sign: Libra
Re: Link to This Topic
Reply #3 - Jan 6th, 2015 at 6:41am
Mark & QuoteQuote  
That small replacement did, indeed, fix everything perfectly.

Computers ... can't live with them, can't take over the world without them!
  

If you don't know where you are, but you don't care, you're not lost ... you're exploring!
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Link to This Topic
Reply #4 - Feb 17th, 2016 at 12:35pm
Mark & QuoteQuote  
Updatet for YaBB 2.6.12
  

Link_to_This_Topic_2612.zip ( 4 KB | 119 Downloads )

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
Link to This Topic

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry