Results 1 to 6 of 6

Video-Directory Remixed

This is a discussion on Video-Directory Remixed within the General Discussion forums, part of the vBSEO Google/Yahoo Sitemap category; IS there anyway i can add this mod to the sitemap index? Thanks Mike Video-Directory Remixed...

  1. #1
    Senior Member Vodkaholic's Avatar
    Real Name
    Mike
    Join Date
    Sep 2008
    Posts
    164
    Liked
    0 times

    Video-Directory Remixed

    IS there anyway i can add this mod to the sitemap index?

    Thanks
    Mike

    Video-Directory Remixed

  2. #2
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    Sure. you can use the extra-urls.txt file to manually add urls to the sitemap.

    Or, you can make a custom sitemap plugin (or ask the mod author to made one). There are examples in the /addons/ folder. a basic sql query is really all you need to write.

  3. #3
    Junior Member
    Real Name
    Matt
    Join Date
    May 2009
    Posts
    19
    Liked
    0 times
    This is a quick and dirty one I made for video directory. The bad part is that the URL's for video directory are pretty search engine friendly (include category titles and video titles in the URL). I got lazy and excluded those, but this will pull all your active categories and videos that have not been reported and include them in your sitemap which is better than nothing I guess. Hope somone with some free time can update this code to include the SEO friendly URL's for video directory.

    PHP Code:
    <?php
        $vba_video_url 
    $vbseo_vars['bburl'];

    //pull video categories that are active
        
    $lnkg $db->query_read("SELECT * FROM " TABLE_PREFIX "videocategory WHERE active = 1");
        while (
    $lnk $db->fetch_array($lnkg))
        {
            
    $url 'video.php?do=viewdetails&categoryid='.$lnk['videocategoryid'];
            if(
    VBSEO_ON)
                
    $url vbseo_any_url($url);

              
    vbseo_add_url($url1.0$lnk['lastupdated'], 'daily');
        }

    // pull videos that have not been reported
        
    $lnkg $db->query_read("SELECT * FROM " TABLE_PREFIX "video WHERE reportthreadid = 0");
        while (
    $lnk $db->fetch_array($lnkg))
        {
            
    $url 'video.php?do=viewdetails&categoryid='.$lnk['videocategoryid'].'&videoid='.$lnk['videoid'];

            if(
    VBSEO_ON)
                
    $url vbseo_any_url($url);

              
    vbseo_add_url($url0.5$lnk['lastupdated'] ? $lnk['lastupdated'] : $lnk['dateline'], 'weekly');
        }

    ?>
    Last edited by WeaponsCache; 10-29-2009 at 03:56 AM.

  4. #4
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    You should be able to wrap the vbseo_any_url() function about the $url variable. If a CRR is defined, it will pull those style URLs.

    see #7:

    vBSEO Functions for Extensibility

  5. #5
    Junior Member
    Real Name
    Matt
    Join Date
    May 2009
    Posts
    19
    Liked
    0 times
    got it, saw that you edited it accordingly. thanks
    Last edited by WeaponsCache; 10-29-2009 at 03:57 AM.

  6. #6
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    wasn't me... lol

Similar Threads

  1. Video Directory Addon For vBSEO Google/Yahoo Sitemap
    By kaptanblack in forum General Discussion
    Replies: 7
    Last Post: 09-24-2009, 01:55 PM
  2. Video Directory
    By UnderEstimated in forum Custom Rewrite Rules
    Replies: 4
    Last Post: 01-12-2009, 02:10 PM
  3. video
    By tsak76 in forum Custom Rewrite Rules
    Replies: 6
    Last Post: 10-07-2008, 02:58 PM
  4. Video Ads
    By FightRice in forum Ad Networks
    Replies: 3
    Last Post: 12-03-2007, 02:58 PM

Posting Permissions

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