Results 1 to 13 of 13

DownloadsII Plugin and MOD-Rewrite

This is a discussion on DownloadsII Plugin and MOD-Rewrite within the General Discussion forums, part of the vBSEO Google/Yahoo Sitemap category; I am running the sitemap with downloadsII plugin. After some initial problems it is running and adding the downloads URLs ...

  1. #1
    Senior Member Dave Hybrid's Avatar
    Real Name
    Dave Hybrid
    Join Date
    Mar 2007
    Location
    UK
    Posts
    400
    Liked
    8 times

    DownloadsII Plugin and MOD-Rewrite

    I am running the sitemap with downloadsII plugin.

    After some initial problems it is running and adding the downloads URLs to the sitemap.

    The issue is that the URLs being added are the php URLs and not the rewritten ones.

    Any help in fixing this much appreciated.

    Thanks.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times

  3. #3
    Senior Member Dave Hybrid's Avatar
    Real Name
    Dave Hybrid
    Join Date
    Mar 2007
    Location
    UK
    Posts
    400
    Liked
    8 times
    Can't see that line oleg, here is my downloadsII addon code.

    Code:
    <?php
    
     /******************************************************************************************
     * vBSEO Google/Yahoo Sitemap Generator for vBulletin v3.x.x by Crawlability, Inc.         *
     *-----------------------------------------------------------------------------------------*
     *                                                                                         *
     * Copyright � 2005-2007, Crawlability, Inc. All rights reserved.                          *
     * You may not redistribute this file or its derivatives without written permission.       *
     *                                                                                         *
     * Sales Email: sales@crawlability.com                                                     *
     *                                                                                         *
     *-------------------------------------LICENSE AGREEMENT-----------------------------------*
     * 1. You are free to download and install this plugin on any vBulletin forum for which    *
     *    you hold a valid vB license.                                                         *
     * 2. You ARE NOT allowed to REMOVE or MODIFY the copyright text within the .php files     *
     *    themselves.                                                                          *
     * 3. You ARE NOT allowed to DISTRIBUTE the contents of any of the included files.         *
     * 4. You ARE NOT allowed to COPY ANY PARTS of the code and/or use it for distribution.    *
     ******************************************************************************************/
    
        $dyna_url = 'http://www.computer-juice.com/';
        $mods = $db->query("SELECT * FROM " . TABLE_PREFIX . "dl_cats");
        while ($mod = $db->fetch_array($mods))
        {    
            $url = 'downloads.php?do=cat&title='.urlencode($mod['name']).'&id='.$mod['id'];
    
            if(VBSEO_ON)
                $url = vbseo_any_url($url);
    $url = $dyna_url . $url;
               vbseo_add_url($url, 1.0, $mods['lastupdated'], 'daily');
        }
    
        $mods = $db->query("SELECT ff.id as fid, ff.name as fname, fc.id as caid, fc.name as cname FROM " . TABLE_PREFIX . "dl_files ff LEFT JOIN dl_cats fc ON ff.id=fc.id");
        while ($mod = $db->fetch_array($mods))
        {
            
            $url = 'downloads.php?do=file&title='.urlencode($mod['fname']).'&cid='.$mod['caid'].'&ctitle='.urlencode($mod['cname']).'&id='.$mod['fid'];
    
            if(VBSEO_ON)
                $url = vbseo_any_url($url);
          $url = $dyna_url . $url;
               vbseo_add_url($url, 1.0, $mods['lastupdated'], 'daily');
        }
    ?>

  4. #4
    Senior Member Dave Hybrid's Avatar
    Real Name
    Dave Hybrid
    Join Date
    Mar 2007
    Location
    UK
    Posts
    400
    Liked
    8 times
    Can I just add this code to the top of my file?

    Code:
    $dl_seourls = true;

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Have you installed updated add-on file linked in that post?

  6. #6
    Senior Member Dave Hybrid's Avatar
    Real Name
    Dave Hybrid
    Join Date
    Mar 2007
    Location
    UK
    Posts
    400
    Liked
    8 times
    No, that download is vbseo_sm_downloads.php

    I am running your vbseo_sm_downloads2.php

    What is the difference of the two? Both are supplied by vbseo.

  7. #7
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    You should use the one attached in that post.

  8. #8
    Senior Member Dave Hybrid's Avatar
    Real Name
    Dave Hybrid
    Join Date
    Mar 2007
    Location
    UK
    Posts
    400
    Liked
    8 times
    Great, appears to be working fine, thank you.

  9. #9
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    You are welcome!

  10. #10
    Senior Member
    Real Name
    mreyes
    Join Date
    May 2008
    Posts
    125
    Liked
    3 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Holy thread resurrection

    Is this addon still valid for vbseo 3.2.0 and sitemap 2.2?

    The reason I ask it that I have just installed downloads II, and both the vbseo and sitemaps addons for it but the URLs for the file page don't seem to be included in the sitemap

  11. #11
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Did you include add-on name in vBSEO Sitemap Generator options->addons list?

  12. #12
    Senior Member
    Real Name
    mreyes
    Join Date
    May 2008
    Posts
    125
    Liked
    3 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Did you include add-on name in vBSEO Sitemap Generator options->addons list?
    Yes, the addon textbox contains the following:

    vbseo_sm_downloads.php

    this file exists in:

    vbseo_sitemap/addons

    EDIT: Just rechecked and they are in there now, no settings have change so not sure what the problem was.

  13. #13
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Did you regenerate sitemap? Make sure that you have latest vBSEO Sitemap Generator (2.5).

Similar Threads

  1. DownloadsII
    By Maroboy in forum Pre-Sales Questions
    Replies: 8
    Last Post: 08-22-2011, 05:08 PM
  2. DownloadsII Addon
    By batman1983 in forum Deutsch
    Replies: 25
    Last Post: 04-27-2010, 02:36 PM
  3. More downloadsII optimization.
    By Dave Hybrid in forum General Discussion
    Replies: 0
    Last Post: 03-10-2008, 10:53 AM
  4. DownloadsII not working now
    By jimjam in forum Troubleshooting
    Replies: 2
    Last Post: 01-07-2008, 11:06 AM
  5. DownloadsII and vbSeo?
    By cmpolis in forum Custom Rewrite Rules
    Replies: 4
    Last Post: 10-01-2007, 12:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •