Add "News Links" Block After Every Post » DataLife Engine Support

DLEVIET - DataLife Engine Support Home Page

DataLife Engine Support » DataLife Engine » Edit Code » Add "News Links" Block After Every Post

Add "News Links" Block After Every Post

  • Author: admin;  
  • Views: 7568;  
  • Date: 26 April 2009;  
Add "News Links" Block After Every Post

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=&#34'+window.location+'&#34>{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=&#34'+window.location+'&#34>{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 -->
We encourage you to Register or Login to website under your name.

chandoi

Posted 1 April 2010 07:37 Register: 27.03.2010
not work for DLE 8.5

lovelyboy9870

Posted 16 May 2010 11:40 Register: 15.05.2010
Both codes work perfectly with dle 8.5

vmx

Posted 31 May 2010 05:59 Register: 4.04.2010
works perfect thanks

webcam

Posted 5 June 2010 20:39 Register: 5.06.2010
thankyou

rejisor

Posted 6 July 2010 00:35 Register: 11.05.2010
thanks its work

ScriptKing

Posted 8 April 2011 16:26 Register: 17.03.2010
works with 9.2 but its not the best...
Information
Members of Guest cannot leave comments.

Pagerank Update

    Updates Yandex SEO
    13.04.2012
    16.02.2012
    04.02.2012
    Updates Yandex search
    17.05.2012
    15.05.2012
    12.05.2012
    Updates Yandex Catalogue
    18.05.2012
    16.05.2012
    11.05.2012
    Updates Google
    03.05.2012
    06.02.2012
    08.11.2011

Find us on Facebook

Poll

How do you know DataLife Engine Support?

Search Engine
Other DLE Support websites
Forum
Friends
Others

Sponsor

Calendar

«    May 2012    »
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
Contact us in social network

Facebook

Twitter