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

Results 1 to 6 of 6
  1.     
    #1
    Member
    Website's:
    LulzCovers.com LulzTroll.com

    Default WCDDL Sitemap - Simplified

    Save the code as sitemap.php
    place rss.php in your wcddl dir where funcs.php is stored.
    it works for wcddl v2.1

    demo: http://the-ddl.org/sitemap.php

    PHP Code: 
    <?php
    $xmlHeader 
    "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";

    header('Content-type: application/xml; charset="utf-8"',true);
    print 
    "$xmlHeader\n";
    date_default_timezone_set('Europe/London');
    include 
    "funcs.php";

    $query mysql_query("
    SELECT * FROM wcddl_downloads order by id desc limit 0, 50;
    "
    );

    ?>

    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

        <url>
            <loc><?=$core->siteurl?></loc>
            <priority>1.0</priority>
            <lastmod><?=date("D, d M Y H:i:s")?></lastmod>
            <changefreq>daily</changefreq>

        </url>
        
        <url>
            <loc><?=$core->siteurl?>/apps</loc>
            <priority>1.0</priority>
            <lastmod><?=date("D, d M Y H:i:s")?></lastmod>
            <changefreq>daily</changefreq>

        </url>

        <url>
            <loc><?=$core->siteurl?>/game</loc>
            <priority>1.0</priority>
            <lastmod><?=date("D, d M Y H:i:s")?></lastmod>
            <changefreq>daily</changefreq>

        </url>\

        <url>
            <loc><?=$core->siteurl?>/movie</loc>
            <priority>1.0</priority>
            <lastmod><?=date("D, d M Y H:i:s")?></lastmod>
            <changefreq>daily</changefreq>

        </url>

        <url>
            <loc><?=$core->siteurl?>/music</loc>
            <priority>1.0</priority>
            <lastmod><?=date("D, d M Y H:i:s")?></lastmod>
            <changefreq>daily</changefreq>

        </url>
        
        <url>
            <loc><?=$core->siteurl?>/tv</loc>
            <priority>1.0</priority>
            <lastmod><?=date("D, d M Y H:i:s")?></lastmod>
            <changefreq>daily</changefreq>

        </url>

        <url>
            <loc><?=$core->siteurl?>/porn</loc>
            <priority>1.0</priority>
            <lastmod><?=date("D, d M Y H:i:s")?></lastmod>
            <changefreq>daily</changefreq>

        </url>
        
        <url>
            <loc><?=$core->siteurl?>/other</loc>
            <priority>1.0</priority>
            <lastmod><?=date("D, d M Y H:i:s")?></lastmod>
            <changefreq>daily</changefreq>

        </url>
        
        

    <?php

    while($dl mysql_fetch_array($query)) {
      echo 
    "
      <url>
        <loc>
    $core->siteurl/download-".htmlspecialchars($dl['type'])."-".htmlspecialchars($dl['id'])."-".seoname($dl['title']).".html</loc>
        <priority>0.8</priority>
        <lastmod>"
    .date("D, d M Y H:i:s"$dl['dat'])."</lastmod>
          <changefreq>daily</changefreq>
      </url>
      "
    ;
    }

    ?>
        
        
    </urlset>
    You can customize your custom pages, here its taken as apps,game,music,movie,tv.. etc..
    You can customize the sql for your limits.. here it takes first 50 downloads from the queue.

    To have this working you need to seo your links as instructed here by DEViANCE: http://warezcoders.com/forum/viewtopic.php?f=15&t=835

    Regards,
    deAthbLisS
    deAthbLisS Reviewed by deAthbLisS on . WCDDL Sitemap - Simplified Save the code as sitemap.php place rss.php in your wcddl dir where funcs.php is stored. it works for wcddl v2.1 demo: http://the-ddl.org/sitemap.php <?php $xmlHeader = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; header('Content-type: application/xml; charset="utf-8"',true); Rating: 5
    Contact me for Traffic, SEO, WCDDL, Wordpress, IPB related Services or queries.
    Template Designing, PSD to HTML, Wordpress


  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    some servers don't have short tags switched on, edit your code so that <?= become <?php echo for safe reasons!
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  4.     
    #3
    Member
    It would make it more universal if you pull the categories from the database, some sites have loads of categories

    eg. SELECT DISTINCT type FROM downloads
    and array_unique in a loop

  5.     
    #4
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    Go Gava, you really moving up in the php world now, i remember when you was just a nipper lool
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  6.     
    #5
    Member
    I had to do somthing like that when i wrote streamscene.me script

  7.     
    #6
    Member
    Website's:
    zomgbbqpizza.com evilddl.com scenemarket.org
    Sorry to bump an old thread but forund this useful. Thanks

    PS: the only problem is you have the date format wrong but its easily changed.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. WCDDL RSS - Simplified
    By deAthbLisS in forum Web Application/Script Support
    Replies: 2
    Last Post: 29th Jun 2011, 02:02 AM
  2. [WCDDL] WCDDL Sitemap genrator
    By mannNmeet in forum Web Application/Script Support
    Replies: 2
    Last Post: 7th May 2011, 06:08 PM
  3. [Selling] WCDDL Sitemap Generator
    By deAthbLisS in forum Completed Transactions
    Replies: 0
    Last Post: 21st Mar 2011, 09:23 AM
  4. [Selling] WCDDL Sitemap Generator
    By CyberJ37 in forum Completed Transactions
    Replies: 0
    Last Post: 20th Mar 2011, 04:00 PM
  5. WCDDL Link Exchange Module Simplified
    By deAthbLisS in forum Web Application/Script Support
    Replies: 2
    Last Post: 8th May 2010, 12:38 PM

Tags for this Thread

BE SOCIAL