1
Mods & Plugins (Requests & Discussions) / Re: Media Library
« on: September 15, 2011, 01:15:47 AM »
ummmmmmmm
so i think thats cant be done right ?
so i think thats cant be done right ?
4images code on GitHub Click here to visit GitHub.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
<?xml version="1.0" encoding="UTF-8"?>
<service>
<svcName>DailyMotion</svcName>
<svcRegex><![CDATA[http:\/\/[a-z]*?[\.]?dailymotion\.[a-z]*?\/video\/([A-Za-z0-9]*)]]></svcRegex>
<svcURL>http://www.dailymotion.com/video/{serviceVAL}</svcURL>
<svcFeed>http://www.dailymotion.com/rss/video/{serviceVAL}</svcFeed>
<svcValue2>null</svcValue2>
<svcThumb><![CDATA[$arr['channel']['item']['media:thumbnail']['url']]]></svcThumb>
<svcTitle><![CDATA[$arr['channel']['item']['media:title']]]></svcTitle>
<svcDesc><![CDATA[$arr['channel']['item']['itunes:summary']]]></svcDesc>
<svcLength><![CDATA[$arr['channel']['item']['media:group']['media:content'][0]['duration']]]></svcLength>
<svcTags><![CDATA[$arr['channel']['item']['itunes:keywords']]]></svcTags>
<svcMovie>http://www.dailymotion.com/swf/video/{serviceVAL}?autoplay={ap10}</svcMovie>
<svcWidth>640</svcWidth>
<svcHeight>360</svcHeight>
<svcStream>null</svcStream>
<svcError>null</svcError>
<svcParams />
</service>
<?
# Create Google Sitemap for 4images
# Created by Mai Minh (minh@maingo.com http://www.vna2z.com)
# Date: 28/11/2006
# You can send ping to Google with this request: http://www.google.com/webmasters/sitemaps/ping?sitemap=URL_TO_YOUR_SITEMAP
#---------------------------------
require("config.php");
# 4images top page (with trailing slash)
$gallery_url = 'http://www.leblover.com/gallery/';
$link=mysql_connect("$db_host","$db_user","$db_password");
mysql_select_db("$db_name") or die ("Cannot connect database!");
# Priotity
$prio_img = 0.3;
$prio_cat = 0.8;
# Frequency
$freq_img = 'yearly';
$freq_cat = 'daily';
# Print XML header
xml_head();
# Print URLs
$categories = mysql_query('SELECT cat_id FROM ' . $table_prefix . 'categories');
while ($category = mysql_fetch_array($categories))
{
$catid = $category['cat_id'];
$cat_url = $gallery_url.'cat'.$catid.'.htm';
print_xml($cat_url,$prio_cat,'',$freq_cat);
}
$images = mysql_query('SELECT image_id,image_active,image_date FROM ' . $table_prefix . 'images');
while ($image = mysql_fetch_array($images))
{
if ($image['image_active'] == 1) {
$imgid = $image['image_id'];
$date = $image['image_date'];
$date = date("Y-m-d",$date)."T".date("H:i:s",$date)."+00:00";
$img_url = $gallery_url.'img'.$imgid.'.htm';
print_xml($img_url,$prio_img,$date,$freq_img);
}
}
# Print XML footer
xml_foot();
function xml_head() {
$freq = 'daily';
$priority = '1.0';
$mod = date("Y-m-d")."T".date("H:i:s")."+00:00";
echo "<?xml version='1.0' encoding='UTF-8'?>
<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/sitemap/0.84/sitemap.xsd\">
<url>
<loc>http://www.leblover.com/gallery</loc>
<lastmod>$mod</lastmod>
<changefreq>$freq</changefreq>
<priority>$priority</priority>
</url>";
}
#-----------------------------------------------
# xml_foot
#-----------------------------------------------
function xml_foot() {
echo "
</urlset>";
}
#-----------------------------------------------
# print_xml
#-----------------------------------------------
function print_xml($url,$priority,$lastmod,$changefreq) {
echo "
<url>
<loc>$url</loc>
<priority>$priority</priority>
<lastmod>$lastmod</lastmod>
<changefreq>$changefreq</changefreq>
</url>";
}
?>
Sitemap file size error
Your Sitemap exceeds the maximum file size limit. Please create multiple Sitemaps containing fewer URLs to meet the file size limit. Help Help