Joined: Aug 29, 2004 Posts: 7487 Location: Arizona
Posted:
Sun Nov 27, 2005 9:10 am
KennyW, For backend.php, I believe you will have to modify the code directly since calls to this will not be going through the GT code in the core nuke files. You will need to modify the code which writes to headlines links to match your GT statements in your GT-News.php and .htaccess files.
I am not familiar with a tool/module for "sitemap". Are you referring to some tool that is generating a sitemap for you? If so, you will need to take the output from that generation process, and similarly to backend.php, you'll need to manually change the links to match your respective GT and .htaccess files. A good text editor, such as Textpad or UltraEdit, will help you make those find/replace edits.
Joined: Dec 19, 2004 Posts: 2287 Location: Germany:Moderator German NukeSentinel Support
Posted:
Sun Nov 27, 2005 1:32 pm
I´m afraid I´m not the sitemap expert and I´m not using any sitemaps therefore I ´can´t help. But there are different addresses to generate a sitemap for your nuke website I´m sure you `ll find the best address here in the forum.
Some month before I have generate a sitemap.xml but just for fun. Your sitemap should look something like this.
Well i got it working,thanks for the help below are the sitemapscript i use,i'm not sure that it will suite all sites but it is just to edit line 66 in Sitemap and line 65 in RSS2.0
Sitemap
Code:
<?php
/**
* Google-Sitemap (sitemap.php)
* <code>
* XMG-Modul-ID 71
* Google-Sitemap Erweiterung
* ~
* Help on http://guggemahier.de/help:google-sitemap
* ~
* This Modul is tested with:
* - mmc-XMG larger Version 3.x from http://guggemahier.de
* - vkpMX2.1a and pragmaMX 0.1 from http://pragmamx.org
* - C-Portal Light from http://c-portal.de
* - PHPNuke larger Version 5.5 from http://phpnuke.org
* - PHP-Version 4.10
* ~
* * Output completly XML
* * Documentation german only!
*
* __
* __ __ (__) ___ ___ ___
* / \/ \/ \/ __\/ _// \
* <___\/___>__/\___/\_\ \___/
* ______ ____ __ _
* / ____/___ / / /__ _____/ /_(_)___ ____
* / / / __ \/ / / _ \/ ___/ __/ / __ \/ __ \
* / /___/ /_/ / / / __/ /__/ /_/ / /_/ / / / /
* \____/\____/_/_/\___/\___/\__/_/\____/_/ /_/
* ® 2002/2005 http://guggemahier.de
* google-sitemap 1.0
* </code>
*
*
* Preview: http://guggemahier.de/sitemap.php
* http://guggemahier.de
*
* @link http://guggemahier.de Micro's Home
* @version $Id: sitemap.php,v 1.3 2005/10/03 18:47:28 micro Exp $
* @copyright 2005 by microg
* @since 20.05.2005
* @deprec Vorläufige Dokumentation!
* This module is open license, if the last line is not changed or is not deleted! All rights reserved by micro http://guggemahier.de
* @license This module is open license, if the last line is not changed or is not deleted! All rights reserved by micro
*/
define('mmc_sys', "system");
if(file_exists(mmc_sys . "/mmc_sys_init.php")){
require_once(mmc_sys . "/mmc_sys_init.php");
}else{
include ("mainfile.php");
}
// Settings
// sitemap.xml muss vorhanden und mit Schreibrechten versehen sein!
$fileout = 0;
$res = sql_query("SELECT sid, time FROM " . $prefix . "_stories ORDER BY sid ASC", $dbi);
// do not touch this!
// Diese Zeile NICHT ändern!
// This module is open license, if this lines is not changed or is not deleted!
$out .= "
<url>
<loc>http://guggemahier.de</loc>
<lastmod>" . $time . "</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>";
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/* */
/************************************************************************/
/* Additional security checking code 2003 by chatserv */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/
/* RSS/Atom feed created by Brennan Stehling (2004) */
/* http://brennan.offwhite.net/blog/ - http://portal.spiderlogic.com */
/************************************************************************/
@require_once("mainfile.php");
global $prefix, $db, $nukeurl;
header("Content-Type: text/xml");
$result = $db->sql_query("SELECT s.sid,t.topicname,s.informant,s.title,s.time,s.hometext FROM ".$prefix."_stories s, ".$prefix."_topics t where s.topic = t.topicid ORDER BY sid DESC LIMIT 10");
Yeah the adress is in there to Mirko he even helped me out with it,and I only need the sitemap for my news,but hey it's a start and you could easily build on this one and add more to it.
Last edited by KennyW on Sun Nov 27, 2005 2:31 pm; edited 1 time in total
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum