
Add "News Links" Block After Every Post
Purpose: This h@ck displays three modes of links [ HTML - BBCodes - News Links ] at the end of every post to make it easy for people to link your post.
Tested On: 7.* – 8.*
Open file fullstory.tpl of current template
Find {full-story}
add BELOW
<b><div align="left" class="text_news""><a href="javascript:ShowOrHide('nl')">News Link</a></div></b>
<div align="left" id="nl" style="display:none;">
<script>
var today=new Date()
document.write('<b>HTML:</b>Â Â <input style="font-family: tahoma; font-size: 11px; border: 1 solid #1176cc;" dir=ltr type="text" value="<a href="'+window.location+'">{title}</a>" size="65">')
</script><br />
<script>
var today=new Date()
document.write('<b>BBCode:</b>Â Â <input style="font-family: tahoma; font-size: 11px; border: 1 solid #1176cc;" dir=ltr type="text" value="[url='+window.location+']{title}[/url]"size="63">')
</script><br />
<script>
var today=new Date()
document.write('<b>Link:</b>Â Â <input style="font-family: tahoma; font-size: 11px; border: 1 solid #1176cc;" dir=ltr type="text" value="'+window.location+'"size="66"> ')
</script>
</div>
<div align="left" id="nl" style="display:none;">
<script>
var today=new Date()
document.write('<b>HTML:</b>Â Â <input style="font-family: tahoma; font-size: 11px; border: 1 solid #1176cc;" dir=ltr type="text" value="<a href="'+window.location+'">{title}</a>" size="65">')
</script><br />
<script>
var today=new Date()
document.write('<b>BBCode:</b>Â Â <input style="font-family: tahoma; font-size: 11px; border: 1 solid #1176cc;" dir=ltr type="text" value="[url='+window.location+']{title}[/url]"size="63">')
</script><br />
<script>
var today=new Date()
document.write('<b>Link:</b>Â Â <input style="font-family: tahoma; font-size: 11px; border: 1 solid #1176cc;" dir=ltr type="text" value="'+window.location+'"size="66"> ')
</script>
</div>
New code
<!-- Links on news -->
<table>
    <tr>
        <td width="30%"><b>HTML:</b></td>
            <td width="70%">
            <script>
            var today=new Date()
            document.write('<textarea readOnly style="width:100%; height:29px; font-size:11px; border:1px solid #E0E0E0;" onfocus="this.select();"><a href="'+window.location+'">{title}</a></textarea>')
            </script>
            </td>
        </tr>
        <tr>
        <td><b>BBCode:</b></td>
            <td>
            <script>
            var today=new Date()
            document.write('<textarea readOnly style="width:100%; height:29px; font-size:11px; border:1px solid #E0E0E0;" onfocus="this.select();">[url='+window.location+']{title}[/url]</textarea>')
            </script>
            </td>
        </tr>
        <tr>
        <td><b>Link:</b></td>
            <td>
            <script>
            var today=new Date()
            document.write('<textarea readOnly style="width:100%; height:29px; font-size:11px; border:1px solid #E0E0E0;" onfocus="this.select();">'+window.location+'</textarea>')
            </script>
        </td>
    </tr>
</table>
<!-- Links on news END -->
<table>
    <tr>
        <td width="30%"><b>HTML:</b></td>
            <td width="70%">
            <script>
            var today=new Date()
            document.write('<textarea readOnly style="width:100%; height:29px; font-size:11px; border:1px solid #E0E0E0;" onfocus="this.select();"><a href="'+window.location+'">{title}</a></textarea>')
            </script>
            </td>
        </tr>
        <tr>
        <td><b>BBCode:</b></td>
            <td>
            <script>
            var today=new Date()
            document.write('<textarea readOnly style="width:100%; height:29px; font-size:11px; border:1px solid #E0E0E0;" onfocus="this.select();">[url='+window.location+']{title}[/url]</textarea>')
            </script>
            </td>
        </tr>
        <tr>
        <td><b>Link:</b></td>
            <td>
            <script>
            var today=new Date()
            document.write('<textarea readOnly style="width:100%; height:29px; font-size:11px; border:1px solid #E0E0E0;" onfocus="this.select();">'+window.location+'</textarea>')
            </script>
        </td>
    </tr>
</table>
<!-- Links on news END -->

Updates
Dle templates English


