MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completely customizable, expandable and suitable for all needs.
Moderators: Moderators
Forum RSS feedReply
sitemap.php for tags
AuthorText
onurelveda
Senior Member

Posts: 345
Contributes: 217

Gender: _NEUTRAL_
Online: No

Version: mixer
Country: Turkiye
Languages: Turkish,Romanian,English
Date: 19/10/2010 15:43
sitemap.php for tags
#post24406
Site url: http://www.aybilgi.net
MemHT version: mixer
Hosting OS: Linux,
PHP and MySQL versions: 5.0
Installed addons/scripts: none
Error/Problem: none

i have a sitemap.php i tryed creat a tags for sitemap.php

doesn't work it. how can i entegre tags for sitemap
Delete Edit Quote
 
slashado
Donator

Posts: 323
Contributes: 350

Gender: _MALE_
Online: No

Version: 4.0.1
Country: Brasil
Languages: Português, Inglês (via Google), e todas as outras (via google)
Date: 19/10/2010 20:18
Re: sitemap.php for tags
#post24407
Tag for sitemap? I did not understand your question, can best explain what they're trying to do?
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Soon, Virtual Store with Modules and Templates for MemHT!
Eager for MemHT 5
Delete Edit Quote
 
onurelveda
Senior Member

Posts: 345
Contributes: 217

Gender: _NEUTRAL_
Online: No

Version: mixer
Country: Turkiye
Languages: Turkish,Romanian,English
Date: 19/10/2010 20:42
Re: sitemap.php for tags
#post24409
//tags
function tags() {
global $siteConfig,$dblink,$now;

$result = $dblink->get_list("SELECT *,DATE_FORMAT(data,'%Y-%m-%d') as date FROM memht_news WHERE enabled=1 ORDER BY id DESC LIMIT 500");
foreach ($result as $row) {
$id = intval($row['id']);
$name = outCode($row['nome']);
$date = $row['date'];
if ($date=="0000-00-00") { $date = $now; }

echo "<url>n";
if ($siteConfig['modrewrite']) {
echo "<loc>".$siteConfig['site_url']."/tags/{$id}_".mem_urlencode($name).".html</loc>n";
} else {
echo "<loc>".$siteConfig['site_url']."/index.php?page=tags&op=readNews&id=$id&title=".mem_urlencode($name)."</loc>n";
}
echo "<lastmod>$date</lastmod>n";
echo "<changefreq>weekly</changefreq>n";
echo "<priority>0.9</priority>n";
echo "</url>n";
}
}
Delete Edit Quote
 
onurelveda
Senior Member

Posts: 345
Contributes: 217

Gender: _NEUTRAL_
Online: No

Version: mixer
Country: Turkiye
Languages: Turkish,Romanian,English
Date: 19/10/2010 22:27
Re: sitemap.php for tags
#post24411
like that i tryed a lot of times it doest work
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7300
Contributes: 4879

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 20/10/2010 13:18
Re: sitemap.php for tags
#post24416
I really suggest you NOT to put tags in the sitemap because the tags db table tends to be big and that could seriously affect the sitemap loading time... and search engines have (very) short loading time limits.
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
Reply
Twitter updates...
MemHT Wiki
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.107.179.232

Username
Password
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo