121
like thunder would say.
purfect
purfect
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.
well thanx alot but i still want it to be perfect
1) i want a hyperlink of category on category name.
2) i wont the font in "CENTER" , "VERDENA" and "Size.2".
3) is it possile to use friendly urls ?
<?php
/**************************************************************************
* *
* 4images - A Web Based Image Gallery Management System *
* ---------------------------------------------------------------- *
* *
* File: random_more_pics.php *
* Copyright: (C) 2002 Jan Sorgalla *
* Email: jan@4homepages.de *
* Web: http://www.4homepages.de *
* Scriptversion: 1.0 for 4images 1.6.1 *
* *
* Never released without support from: Nicky (http://www.nicky.net) *
* *
**************************************************************************
* *
* Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz- *
* bedingungen (http://www.4homepages.de/4images/lizenz.php) für *
* weitere Informationen. *
* --------------------------------------------------------------- *
* This script is NOT freeware! Please read the Copyright Notice *
* (http://www.4homepages.de/4images/lizenz_e.php) for further *
* information. *
* *
*************************************************************************/
// PATH to your 4images Gallery / PFAD zu Ihrer 4images Gallerie
define('ROOT_PATH', './');
include(ROOT_PATH.'config.php');
include(ROOT_PATH.'includes/db_mysql.php');
include(ROOT_PATH.'includes/constants.php');
define('SCRIPT_URL', 'http://www.wallpaperspecial.com/wallzz/');
$site_db = new Db($db_host, $db_user, $db_password, $db_name);
function is_remote($file_name) {
return (preg_match('#^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $file_name)) ? 1 : 0;
}
echo "<body bgcolor=\"#5D8FB5\" topmargin=\"0\" leftmargin=\"0\" rightmargin=\"0\" bottommargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n";
// NUMBER OF THUMBNAILS TO DISPLAY / NUMMER DER GEWÜNSCHTEN THUMBNAILS
$num_images = 1;
$sql = "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_thumb_file, a.image_comments, a.image_hits, b.cat_name
FROM (".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b)
WHERE a.image_active=1
AND a.cat_id = b.cat_id
AND b.auth_viewcat=".AUTH_ALL."
AND b.auth_viewimage=".AUTH_ALL."
ORDER BY RAND()
LIMIT $num_images";
$result = $site_db->query($sql);
echo "<table border='0' width='133' bgcolor='#5D8FB5' align='left'>\n";
while ($row = $site_db->fetch_array($result)){
$image_id = $row['image_id'];
$cat_id = $row['cat_id'];
$image_name = $row['image_name'];
$image_comments = $row['image_comments'];
$thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : ROOT_PATH.THUMB_DIR."/".$cat_id."/".$row['image_thumb_file'];
$image_hits = $row['image_hits'];
$cat_name = $row['cat_name'];
echo "<tr>\n";
echo "<td><a href=\"".SCRIPT_URL."details.php?image_id=$image_id\" target=\"_blank\"> <img src=\"".SCRIPT_URL.$thumb_src."\" border=\"0\" alt=\"$image_name\"></a></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td><font face='Verdana' size='2'><a href=\"".SCRIPT_URL."details.php?image_id=$image_id\" target=\"_blank\"><b>$image_name</b></a></font></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td><font face='Verdana' size='2'>Views: $image_hits</font></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td><font face='Verdana' size='2'><a href=\"".SCRIPT_URL."categories.php?cat_id=$cat_id\" target=\"_blank\">$cat_name</a></font></td>\n";
echo "</tr>\n";
}
echo "</table>\n";
?>
echo "<TD bgcolor='#FFFFFF'> <a href=\"".SCRIPT_URL."details.php?image_id=$image_id\" target=\"_blank\"> <b>$image_name</b></a><br>\n";
echo "<TD bgcolor='#FFFFFF'>Views: $image_hits</TD>\n";
<img src=\"".SCRIPT_URL.$thumb_src."\" border=\"0\" alt=\"$image_name\">
$images = mysql_query('SELECT image_id,image_active,image_date FROM ' . $table_prefix . 'images');
query for images$images = mysql_query('SELECT image_id,image_name,image_active,image_date FROM ' . $table_prefix . 'images ORDER by image_id ASC limit 0,20000');
entry for .htaccessRewriteRule ^sitemap.xml$ google.php
call for google: http://www.google.com/webmasters/sitemaps/ping?sitemap=http://yourdomain_com/gallery/sitemap.xml
$images = mysql_query('SELECT image_id,image_active,image_date FROM ' . $table_prefix . 'images');
query for images$images = mysql_query('SELECT image_id,image_name,image_active,image_date FROM ' . $table_prefix . 'images ORDER by image_id ASC limit 20000,20000');
entry for .htaccessRewriteRule ^sitemap2.xml$ google2.php
call for google: http://www.google.com/webmasters/sitemaps/ping?sitemap=http://yourdomain_com/gallery/sitemap2.xml
$images = mysql_query('SELECT image_id,image_active,image_date FROM ' . $table_prefix . 'images');
query for images$images = mysql_query('SELECT image_id,image_name,image_active,image_date FROM ' . $table_prefix . 'images ORDER by image_id ASC limit 40000,20000');
entry for .htaccessRewriteRule ^sitemap3.xml$ google3.php
call for google: http://www.google.com/webmasters/sitemaps/ping?sitemap=http://yourdomain_com/gallery/sitemap3.xml
<?php
/**************************************************************************
* *
* 4images - A Web Based Image Gallery Management System *
* ---------------------------------------------------------------- *
* *
* File: random_more_pics.php *
* Copyright: (C) 2002 Jan Sorgalla *
* Email: jan@4homepages.de *
* Web: http://www.4homepages.de *
* Scriptversion: 1.0 for 4images 1.6.1 *
* *
* Never released without support from: Nicky (http://www.nicky.net) *
* *
**************************************************************************
* *
* Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz- *
* bedingungen (http://www.4homepages.de/4images/lizenz.php) für *
* weitere Informationen. *
* --------------------------------------------------------------- *
* This script is NOT freeware! Please read the Copyright Notice *
* (http://www.4homepages.de/4images/lizenz_e.php) for further *
* information. *
* *
*************************************************************************/
// PATH to your 4images Gallery / PFAD zu Ihrer 4images Gallerie
define('ROOT_PATH', './');
include(ROOT_PATH.'config.php');
include(ROOT_PATH.'includes/db_mysql.php');
include(ROOT_PATH.'includes/constants.php');
define('SCRIPT_URL', 'http://www.wallpaperspecial.com/wallzz/');
$site_db = new Db($db_host, $db_user, $db_password, $db_name);
function is_remote($file_name) {
return (preg_match('#^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $file_name)) ? 1 : 0;
}
// NUMBER OF THUMBNAILS TO DISPLAY / NUMMER DER GEWÜNSCHTEN THUMBNAILS
$num_images = 4;
$sql = "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_thumb_file, a.image_comments, a.image_hits
FROM ".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b
WHERE a.image_active=1
AND a.cat_id = b.cat_id
AND b.auth_viewcat=".AUTH_ALL."
AND b.auth_viewimage=".AUTH_ALL."
ORDER BY RAND()
LIMIT $num_images";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)){
$image_id = $row['image_id'];
$cat_id = $row['cat_id'];
$image_name = $row['image_name'];
$image_comments = $row['image_comments'];
$thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : ROOT_PATH.THUMB_DIR."/".$cat_id."/".$row['image_thumb_file'];
$image_hits = $row['image_hits'];
echo "<table border='0' width='133' bgcolor='#FFFFFF' Align=left>\n";
echo "<TR>\n";
echo "<TD><a href=\"".SCRIPT_URL."details.php?image_id=$image_id\" target=\"_blank\"> <img src=\"".SCRIPT_URL.$thumb_src."\" border=\"0\" alt=\"$image_name\"></a><br>\n";
echo "</TR>\n";
echo "<TR>\n";
echo "<TD bgcolor='#FFFFFF'> <a href=\"".SCRIPT_URL."details.php?image_id=$image_id\" target=\"_blank\"> <b>$image_name</b></a><br>\n";
echo "</TR>\n";
echo "<TR>\n";
echo "<TD bgcolor='#FFFFFF'>Views: $image_hits</TD>\n";
echo "</TR>\n";
echo "</table>\n";
}
?>
define('ROOT_PATH', './wallzz/');
should bedefine('ROOT_PATH', './');
define('SCRIPT_URL', 'http://www.wallpaperspecial.com/wallzz');
todefine('SCRIPT_URL', 'http://www.wallpaperspecial.com/wallzz/');
Is there anyway that when using this mod. . . . . When the thumbnail is clicked the page opens up in a New/blank window? Setting the Target for the link to blank ?
I am guessing setting the target to blank in this line somewhere. . . Just not sure where. . Any thoughts?
document. write('<a href=\"". SCRIPT_URL. "details. php?image_id=$image_id\"><img src=\"". $full_src. "\" border=\"1\" alt=\"$image_name\"></a>');
document. write('<a href=\"". SCRIPT_URL. "details. php?image_id=$image_id\" target=\"_blank\"><img src=\"". $full_src. "\" border=\"1\" alt=\"$image_name\"></a>');