Results 1 to 6 of 6

Doesn't list hidden forums?

This is a discussion on Doesn't list hidden forums? within the Bug Reporting forums, part of the vBSEO Google/Yahoo Sitemap category; I've got a couple of forums I don't like being shown on the main forum page but I still have ...

  1. #1
    ADM
    ADM is offline
    Senior Member ADM's Avatar
    Real Name
    Peter Papadopoulos
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    254
    Liked
    0 times

    Doesn't list hidden forums?

    I've got a couple of forums I don't like being shown on the main forum page but I still have publicly accesible by url, but they aren't getting listed on the sitemap.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Yes, Sitemap Generator is assuming that hidden forums should not be included into sitemap.

    Please apply the following modification to get invisible forums too:
    in vbseo_sitemap.php file FIND:
    cache_ordered_forums(1);
    and REPLACE this with:
    cache_ordered_forums(1,1);
    Let me know if it works correctly for you

  3. #3
    ADM
    ADM is offline
    Senior Member ADM's Avatar
    Real Name
    Peter Papadopoulos
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    254
    Liked
    0 times
    That didn't seem to do anything at all :(

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

  5. #5
    Member
    Real Name
    Michael
    Join Date
    Oct 2005
    Location
    Düren, Germany
    Posts
    70
    Liked
    0 times
    did you find a solution?

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Yes, the solution is to do the modification of vbseo_sitemap_functions.php file

    FIND:
    if (empty($iforumcache["$parentid"]))
    {
    return array();
    }

    $forumlist = array();
    foreach ($iforumcache["$parentid"] AS $baa)
    {
    if(!is_array($baa))$baa=array($baa);

    foreach ($baa AS $forumid)
    REPLACE with:
    $forumlist = array();
    $forums_scope = $parentid >0 ? $iforumcache["$parentid"] : $iforumcache;
    if (empty($forums_scope))
    {
    return array();
    }

    foreach ($forums_scope AS $baa)
    {
    if(!is_array($baa))$baa=array($baa);

    foreach ($baa AS $forumid)
    if($forumid>0)
    This will be included in the next Sitemap Generator release as standard code.

Posting Permissions

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