Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Reikia viena modifikacija pritaikyti v6 fusion'ui
Parašė Roksys· 2009 Gru. 2 18:12:48
#1
Reikia viena modifikacija pritaikyti v6 fusion'ui. Atsiskaitau banku. Skype relas123
Parašė RmxLT· 2009 Gru. 2 18:12:54
#2
bet pasakyk kokios reikia:)
Parašė Roksys· 2009 Gru. 2 18:12:08
#3
Ten sitemap modifikacija is vienos tvs. Tik vienas failas.
Parašė maxas66· 2009 Gru. 2 18:12:30
#4
Parodyk pavyzdį bent..:?:?
Parašė RmxLT· 2009 Gru. 2 18:12:29
#5
Kasko nori bet net nesakai nei ko nei parodai, slapstaisi cia kasko, ciudnas tu man. Turbut c|
Parašė Roksys· 2009 Gru. 2 18:12:06
#6
Va modifikacija, beje as naudoju .html nuorodas
<?php
//If this is useful for you please reply here and if you want you can put in your pages my link:
//Title: Jocuri
//Description: Jocuri Gratuite Online
//Link: http://www.d0.ro
//Site Wide: yes/no (your choise)
include('config.php');
$azi=date("Y-m-d");
header('Content-Type: application/xml');
//FIRST LINE OF xml FILE
$smoutput = '<'.chr(63).'xml version="1.0" encoding="UTF-8"'.chr(63).'><urlset xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/si...>';
echo $smoutput;
//index.php PAGE
$smoutput = "
<url>
<loc>".$site_url."</loc>
<lastmod>".$azi."</lastmod>
<changefreq>daily</changefreq>
<priority>1</priority>
</url>";
echo $smoutput;
//CATEGORIES PART
$sql = mysql_query("SELECT * FROM ava_cats ORDER BY name");
$total_cats = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM ava_cats"),0);
$total_cats2 = 0;
while($row = mysql_fetch_array($sql))
{
$total_cats2 = ($total_cats2 + 1);
$abcd= $row['name'];
$abcd = str_replace (" ", "-", $abcd);
$abcd = preg_replace ( "/[\.,\";'\:]/", "", $abcd );
//PLEASE CHANGE HERE FOR YOUR CATEGORIES LINKS
//**********************************************
$url = $site_url.'/cat/'.$row['id'].'/'.$abcd.'/p1.htm';
//**********************************************
// END OF CHANGE
$smoutput = "
<url>
<loc>".$url."</loc>
<lastmod>".$azi."</lastmod>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>";
echo $smoutput;
if ($cat_numbers == 1)
{
$cat_numb = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM ava_games WHERE catergory_id=".$row['id'].""),0);
}
}
// GAMES LINKS PART
$sql_query = "SELECT * FROM `ava_games`";
$result = mysql_query($sql_query);
if (mysql_num_rows($result) != 0)
{
while ($row = mysql_fetch_assoc($result))
{
$abcd = $row['name'];
$abcd = str_replace(" ", "-", $abcd);
//PLESAE CHANGE "/view/" HERE FOR YOUR GAMES LINKS AND PUT .'.html' AT END OF LINE IF YOUR LINKS ARE WITH .html
//**************************************************************
$url = $site_url.'/view/'.$row['id'].'/'.$abcd;
//**************************************************************
//END OF CHANGES
$smoutput = "
<url>
<loc>".$url."</loc>
<lastmod>".$azi."</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>";
echo $smoutput;
}
}
//NEWS PART
$sql = mysql_query("SELECT * FROM ava_news ORDER BY id");
while($row = mysql_fetch_array($sql))
{
$sql2 = mysql_query("SELECT * FROM ava_users WHERE id='".$row['user']."'");
while($row2 = mysql_fetch_array($sql2))
{
$abcd= $row['title'];
$abcd = str_replace (" ", "-", $abcd);
$abcd = preg_replace ( "/[\.,\";'\:]/", "", $abcd );
//PLEASE CHANGE HERE IF YOUR LINKS ARE DIFFERENT
//***********************************************
$news_url = $site_url.'/task/news/item/'.$row['id'].'/'.$abcd.'.html';
//**************************************************
//END OF CHANGE
$smoutput = "
<url>
<loc>".$news_url."</loc>
<lastmod>".$azi."</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>";
echo $smoutput;
}
}
// PARTEA FINALA
$endstring = "
</urlset>";
echo $endstring;
?>
Parašė Roksys· 2009 Gru. 5 22:12:49
#7
Hm, o dar sako krize pinigu nera, o niekam darbelio nereik ;(
Parašė bruzgis· 2009 Gru. 6 10:12:16
#8
Kuo tau netinka v6 sitemapai? :) ir pinigu moket nereiks.
Parašė Roksys· 2009 Gru. 6 11:12:03
#9
nemaciau analogisko modo ant v6 :(