| Re: Sitemap Newbb XML failure after adding sub pages? |
| by wizanda on 2008/6/14 13:14:03 Thxz, yet the sub links were added purposely for Google... Thinking to make a simpler plug-in for newbb, as that’s a lot of code to do a simple task.... Something more like this: As mydownloads, mylinks, etc, look something like that, not sure why we would want all that checking done in the first place..... Still need to fix that, yet as long as all forums show and all sub links, I will be happy. |
| Re: Sitemap Newbb XML failure after adding sub pages? |
| by trabis on 2008/6/14 12:43:58 Well, probably you want to keep thoose sub pages(links) int sitemap but not in the xml so do this: replace xml_google.php line 57 with le="color: #000000"><?php $sitemap = sitemap_show(1); at sitemap.php line 5 le="color: #000000"><?php function sitemap_show($skip = 0) { global $xoopsUser, $xoopsConfig, $sitemap_configs ; $plugin_dir = XOOPS_ROOT_PATH . "/modules/sitemap/plugins/"; at sitemap.php line 42 le="color: #000000"><?php if (count($sublinks) > 0 && !($skip == 1 && $modules[$i]->getVar('dirname') == 'newbb')) {
|
| Re: Sitemap Newbb XML failure after adding sub pages? |
| by trabis on 2008/6/14 11:51:04 Sitemap seems to grab sublinks and then the plugin. Yo can try this Hack include/sitemap.php at line 42 le="color: #000000"><?php if (count($sublinks) > 0 && $modules[$i]->getVar('dirname') != 'newbb') { foreach($sublinks as $sublink){ $block['modules'][$i]['sublinks'][] = array('name' => $sublink['name'], 'url' => XOOPS_URL.'/modules/'.$modules[$i]->getVar('dirname').'/'.$sublink['url']); } } It will skip the newbb sublinks. |
| Re: Sitemap Newbb XML failure after adding sub pages? |
| by wizanda on 2008/6/14 7:59:19 Below the templates....with numbers now added.... le="color: #000000"><?php /*subpages*/ $modversion['sub'][0]['name'] = _MI_SEARCH; $modversion['sub'][0]['url'] = "search.php"; $modversion['sub'][1]['name'] = _MI_ALLPOSTS; $modversion['sub'][1]['url'] = "viewpost.php"; $modversion['sub'][2]['name'] = _MI_VANP; $modversion['sub'][2]['url'] = "viewpost.php?new=1"; $modversion['sub'][3]['name'] = _MI_ALL; $modversion['sub'][3]['url'] = "viewall.php"; $modversion['sub'][4]['name'] = _MI_DIGEST; $modversion['sub'][4]['url'] = "viewall.php?type=digest"; $modversion['sub'][5]['name'] = _MI_UNREPLIED; $modversion['sub'][5]['url'] = "viewall.php?type=unreplied"; $modversion['sub'][6]['name'] = _MI_UNREAD; $modversion['sub'][6]['url'] = "viewall.php?type=unread"; $modversion['sub'][7]['name'] = _MI_RSS; $modversion['sub'][7]['url'] = "rss.php?c=0";
|
| Re: Sitemap Newbb XML failure after adding sub pages? |
| by trabis on 2008/6/14 1:59:30 Could we see that xoops_version.php? |