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

Results 1 to 9 of 9
  1.     
    #1
    Member

    Default WCDDL Rss feed (whit cache)

    PHP Code: 
    <?php
    $filename 
    'rss.xml';
    // convert the format to UTF-8 
    function makeUTF($desc)

      
    $desc UTF8_encode($desc);
      
    $desc stripslashes($desc);
      return 
    $desc;
    }

    function 
    seoname($seoit) {
      
    $seoit strip_tags($seoit);
      
    $seoit str_replace("'"""$seoit);
      
    $seoit str_replace("  "" "$seoit);
      
    $seoit preg_replace("#[\W_]+#""-"$seoit);
      
    $seoit trim($seoit);
      
    $seoit strtolower($seoit);
      return 
    $seoit;
    }

    if(
    file_exists($filename) && filesize($filename) >= 10 && time() - filemtime($filename) <= 43200//43200
    {
     
    readfile($filename);

    else {
    include 
    "funcs.php";
       
    $rss '';
    $rss .= '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">'."\n";
    $rss .= '<channel>'."\n";
    $rss .= '<atom:link href="'.$core->siteurl.'/rss.php" rel="self" type="application/rss+xml" />'."\n";
    $rss .= '<title>'$core->sitename .'</title>'."\n";
    $rss .= '<link>'$core->siteurl .'</link>'."\n";
    $rss .= '<description>The Ultimate Source of Latest Direct Downloads</description>'."\n";
    $rss .= '<copyright>Copyright 2010 '.$core->sitename.' - '.$core->siteurl.'</copyright>'."\n";
    $rss .= '<language>en</language>'."\n";

    //IF YOU HAVE AN IMAGE USE BELOW

    $rss .= '<image>'."\n";
    $rss .= ' <title>'.$core->sitename.'</title>'."\n";
    $rss .= ' <url>'.$core->site_button.'</url>'."\n";
    $rss .= ' <link>'.$core->siteurl.'</link>'."\n";
    $rss .= '</image>'."\n";

    $today date("D, d M Y H:i:s +0100");
    $rss .= "<pubDate>$today</pubDate>\n";

    $items mysql_query("SELECT * FROM wcddl_downloads WHERE type !='xxx' ORDER BY id DESC limit 0,200") or die(mysql_error());

    while(
    $article mysql_fetch_assoc($items))
    {
        
    $title makeUTF($article["title"]);
        
    $url '/latest-warez-download-'.$article["id"].'-'.seoname($article["title"]).'.html';
        
    $desc seoname($title);
        
    $desc makeUTF($desc);
       
        
    $rss .= "<item>\n";
        
    $rss .= "<title>$title</title>\n";
        
    $rss .= "<link>"$core->siteurl $url ."</link>\n";
        
    $rss .= "<guid>"$core->siteurl $url ."</guid>\n";
        
    $rss .= "<pubDate>$today</pubDate>\n";
        
    $rss .= "<description>Download ".$title." and much more ".$article["type"]."s only at ".$core->sitename."</description>\n";
        
    $rss .= "</item>\n";
    }

    $rss .= "</channel>\n";
    $rss .= "</rss>\n";


    if(
    file_exists($filename) &&  is_writable($filename)) {

    $fp fopen($filename"w");
    fputs($fp$rss);
    fclose($fp);
    }
    else
    {
        echo 
    'Error: '.$filename.' or CHMOD';
        die();
    }
    header('Content-type: text/xml');
    echo 
    $rss;
    }
    ?>
    jomasaco Reviewed by jomasaco on . WCDDL Rss feed (whit cache) <?php $filename = 'rss.xml'; // convert the format to UTF-8 function makeUTF($desc) { $desc = UTF8_encode($desc); $desc = stripslashes($desc); return $desc; } Rating: 5


  2.   Sponsored Links

  3.     
    #2
    Too busy :|
    Website's:
    L337Fx.com BeastieBay.net
    Thanks for this I'll try it on IntoDDL.com right now.

    Thanks jomasaco

  4.     
    #3
    Member
    Website's:
    eih.bz pornDDL.me sexytattoochicks.tumblr.com
    Thanks, gonna try this out too

  5.     
    #4
    Member
    Quote Originally Posted by jomasaco View Post
    PHP Code: 
    <?php
    $filename 
    'rss.xml';
    // convert the format to UTF-8 
    function makeUTF($desc)

      
    $desc UTF8_encode($desc);
      
    $desc stripslashes($desc);
      return 
    $desc;
    }

    function 
    seoname($seoit) {
      
    $seoit strip_tags($seoit);
      
    $seoit str_replace("'"""$seoit);
      
    $seoit str_replace("  "" "$seoit);
      
    $seoit preg_replace("#[\W_]+#""-"$seoit);
      
    $seoit trim($seoit);
      
    $seoit strtolower($seoit);
      return 
    $seoit;
    }

    if(
    file_exists($filename) && filesize($filename) >= 10 && time() - filemtime($filename) <= 43200//43200
    {
     
    readfile($filename);

    else {
    include 
    "funcs.php";
       
    $rss '';
    $rss .= '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">'."\n";
    $rss .= '<channel>'."\n";
    $rss .= '<atom:link href="'.$core->siteurl.'/rss.php" rel="self" type="application/rss+xml" />'."\n";
    $rss .= '<title>'$core->sitename .'</title>'."\n";
    $rss .= '<link>'$core->siteurl .'</link>'."\n";
    $rss .= '<description>The Ultimate Source of Latest Direct Downloads</description>'."\n";
    $rss .= '<copyright>Copyright 2010 '.$core->sitename.' - '.$core->siteurl.'</copyright>'."\n";
    $rss .= '<language>en</language>'."\n";

    //IF YOU HAVE AN IMAGE USE BELOW

    $rss .= '<image>'."\n";
    $rss .= ' <title>'.$core->sitename.'</title>'."\n";
    $rss .= ' <url>'.$core->site_button.'</url>'."\n";
    $rss .= ' <link>'.$core->siteurl.'</link>'."\n";
    $rss .= '</image>'."\n";

    $today date("D, d M Y H:i:s +0100");
    $rss .= "<pubDate>$today</pubDate>\n";

    $items mysql_query("SELECT * FROM wcddl_downloads WHERE type !='xxx' ORDER BY id DESC limit 0,200") or die(mysql_error());

    while(
    $article mysql_fetch_assoc($items))
    {
        
    $title makeUTF($article["title"]);
        
    $url '/latest-warez-download-'.$article["id"].'-'.seoname($article["title"]).'.html';
        
    $desc seoname($title);
        
    $desc makeUTF($desc);
       
        
    $rss .= "<item>\n";
        
    $rss .= "<title>$title</title>\n";
        
    $rss .= "<link>"$core->siteurl $url ."</link>\n";
        
    $rss .= "<guid>"$core->siteurl $url ."</guid>\n";
        
    $rss .= "<pubDate>$today</pubDate>\n";
        
    $rss .= "<description>Download ".$title." and much more ".$article["type"]."s only at ".$core->sitename."</description>\n";
        
    $rss .= "</item>\n";
    }

    $rss .= "</channel>\n";
    $rss .= "</rss>\n";


    if(
    file_exists($filename) &&  is_writable($filename)) {

    $fp fopen($filename"w");
    fputs($fp$rss);
    fclose($fp);
    }
    else
    {
        echo 
    'Error: '.$filename.' or CHMOD';
        die();
    }
    header('Content-type: text/xml');
    echo 
    $rss;
    }
    ?>
    hello mate could you help me if some one use wcddl not use seo link for this section :
    $url = '/latest-warez-download-'.$article["id"].'-'.seoname($article["title"]).'.html';

    could you give anothers coding for this seo link into default link??


  6.     
    #5
    Member
    Website's:
    eiswebhosting.com mastddl.com
    nice work dude

    i have try it but its not show on browse its look like
    RSS.php



    and xml also not work


    Host Images FREE no delete

  7.     
    #6
    (╯?□?)╯︵ ┻━┻
    Website's:
    Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.com
    Maybe do a v3 copy of this when you get time to learn the new methods and such, jomasaco.

    Would be a useful mod.
    Projects:
    WCDDL - The Professional DDL Script
    Top Secret Project: In Development - ZOMG
    ImgTrack - Never Have Dead Images Again!

  8.     
    #7
    Member
    Website's:
    4rc.org pivx.net mambaturk.com
    i tried also not works for me for v2

    • DisRespected: Dlow (Still he owe me 30$)
    • My Websites are again up!!!!Moved own server


  9.     
    #8
    Respected Developer
    Website's:
    wrzc.org
    I have a version 3 released already
    Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic

    Huge list of Warez Sites and free Multiposter Templates

  10.     
    #9
    Member
    Website's:
    4rc.org pivx.net mambaturk.com
    Thanks Mr. Happy but i need for v2

    • DisRespected: Dlow (Still he owe me 30$)
    • My Websites are again up!!!!Moved own server


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. wp super cache VS w3 total cache
    By kokosko in forum Webmaster Discussion
    Replies: 1
    Last Post: 21st Dec 2011, 07:44 PM
  2. Help me whit Design
    By mastercho in forum Wordpress
    Replies: 0
    Last Post: 11th Dec 2011, 06:05 PM
  3. [Hiring] RSS Feed autoposting module in WCDDL
    By kitty in forum Completed Transactions
    Replies: 0
    Last Post: 27th Aug 2011, 06:20 AM
  4. [Wordpress] WP Super Cache or W3 Total Cache ?
    By Rocke in forum Polling Plaza
    Replies: 13
    Last Post: 13th Dec 2010, 06:00 PM
  5. [WTS] WCDDL Cache system
    By SplitIce in forum Completed Transactions
    Replies: 2
    Last Post: 10th Aug 2009, 12:44 PM

Tags for this Thread

BE SOCIAL