Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Link to This Topic (Read 2798 times)
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Link to This Topic
Reply #4 - Feb 17th, 2016 at 12:35pm
Print Post  
Updatet for YaBB 2.6.12
  

Link_to_This_Topic_2612.zip (Attachment deleted | 19 Downloads )
Link_to_this_topic_German_files_2612.zip (Attachment deleted | 19 Downloads )

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 163
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Re: Link to This Topic
Reply #3 - Jan 6th, 2015 at 6:41am
Print Post  
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
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Link to This Topic
Reply #2 - Jan 6th, 2015 at 3:13am
Print Post  
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
 
Batchman
Full Member
***
Offline


I Love YaBB!

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

  

LinkToProbs.jpg (Attachment deleted | 50 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
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Link to This Topic
Dec 31st, 2014 at 10:32pm
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.
  

Link_to_This_Topic_2611.zip (Attachment deleted | 45 Downloads )
link_to_this_topic_German_files.zip (Attachment deleted | 32 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint