Activity Stream
48,167 MEMBERS
6844 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1.     
    #11
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Try this javascript for full page script
    Used zpage function too

    Create a new file "autoshorten.js" or anything
    Add this in that

    PHP Code: 
    <!-- Soft2050 -- Auto Link Shortner through javascript
    var alfoundlLinks document.links;
    for (var 
    i=0i<alfoundlLinks.lengthi++) {

        if (
    chkcon(shortemalfoundlLinks[i].href)) {
                
    alfoundlLinks[i].href varurl alfoundlLinks[i].href;
        } 
        
    }

    function 
    chkcon(d_listdomain) {
        for(var 
    0d_list.lengthi++) {
            if(
    domain.toLowerCase().indexOf(d_list[i])>-1){
                return 
    true;
            }
        }
        return 
    false;

    Then in your html page, add this according to your requirements:
    PHP Code: 
    <script language="javascript" type="text/javascript">
    var 
    varurl "http://localhost/index.php?link=";
    var 
    shortem = ['mediafire.com','lulzimg.com''msn.com''megaupload.com''rapidshare.com''yoursite.com', ];
    </script> 
    Edit the var according to your setup

    Finally, add this at the end of the document (adding at top won;t work)
    PHP Code: 
    <script src="autoshorten.js" type="text/javascript"></script> 
    (Link to autoshorten.js)

    This should work for lifetalk's code or any other script which can shorten links through $_GET

  2.   Sponsored Links

  3.     
    #12
    Member
    Thanks to

    Lifetalk

    and

    soft2050

  4.     
    #13
    Member
    Really good info here, i will like to add if it?s possible to add Click N Load button somewhere (Or at a DLE Site), i read JD documents but i?m a bit confused:

    http://jdownloader.org/knowledge/wiki/glossary/cnl2 (Fully Working Example)



    You can press the button with JD open in background and add the links through ClickNLoad protocol of JD, using a secured way to transfer the links with javascript

    Is this hard to implement? Thanks in advance
    KWWHunction | [✔] 1K Posts

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Simple Logo Needed
    By CammyD in forum Graphics Area
    Replies: 6
    Last Post: 25th May 2012, 07:51 PM
  2. Needed Simple Link shortenin script full page
    By ECW in forum Web Application/Script Support
    Replies: 1
    Last Post: 7th Jan 2012, 03:42 AM
  3. [Hiring] Coder - Simple Link Checker Script
    By viruz99 in forum Completed Transactions
    Replies: 4
    Last Post: 16th Dec 2011, 06:41 PM
  4. A simple clarification needed
    By Funny in forum File Host Discussion
    Replies: 2
    Last Post: 10th Aug 2011, 04:14 PM
  5. Simple jQuery help needed
    By Netguy in forum Web Development Area
    Replies: 6
    Last Post: 4th Jan 2011, 10:20 AM

Tags for this Thread

BE SOCIAL