Show Posts

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.


Messages - *handsome*

Pages: 1 [2] 3 4 5
16
i want to use this mod but the problem is that my wordpress and 4images useing different Database :-s let me know how can i use it?

17
i am getting this error

No category selected, nothing to annotate...

i slect catagory and wite Id etc

but still getting the error :(

18
welll i want to show more than one images plz help

and how can i shopw images of specific catagory i had try this

        AND a.cat_id=4

but it is not working Sad

*handsome* use this:
Code: [Select]
<?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');

$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)) ? 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 
        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."
        AND a.cat_id = 4
        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'];

  echo 
"<a href=\"".ROOT_PATH."details.php?image_id=$image_id\"><img src=\"".$thumb_src."\" border=\"0\" alt=\"$image_name\"></a><br>\n";
  echo 
"<b>$image_name</b><br>\n";
  echo 
"Comments: $image_comments<hr>\n";
}
?>


thanks for help..

but is it possible to open image in new window... forexample when visitor click on random image its open in new window

i try to add blank tag but it is not working (givving some errors

19
Discussion & Troubleshooting / Re: Paging line Problem...
« on: September 29, 2008, 02:37:10 PM »
plz help me in this matter


20
FAQ, Tips / Re: How can I add more allowed file extensions?
« on: September 29, 2008, 02:35:08 PM »
plz teach me step by step i am not getting from there :(
How about this, you put back the 4images copyright notice back to your gallery or buy 4images Copyright-Removal-License, then we'll talk. Otherwise if you disrespect 4images license, don't expect much of a help here.

ok help me now

21
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: September 22, 2008, 07:55:13 AM »
welll i want to show more than one images plz help

and how can i shopw images of specific catagory i had try this

        AND a.cat_id=4

but it is not working Sad

22
Discussion & Troubleshooting / Re: Images on Main page?
« on: September 22, 2008, 07:27:24 AM »
Hi,

Quote
i wanna show random or latest images at my main page

=> http://www.4homepages.de/forum/index.php?topic=1020.0

Kurt


thanks for help

24
FAQ, Tips / Re: How can I add more allowed file extensions?
« on: September 21, 2008, 09:29:21 AM »
I wanna add jar files plz help me out

25
Discussion & Troubleshooting / Images on Main page?
« on: September 21, 2008, 08:25:00 AM »

I am runing my Gallery here www.domain.com/gallery

i wanna show random or latest images at my main page www.domain.com

let me know is it possible?

Please guide me how can i do this

26
Discussion & Troubleshooting / Re: how can i change URL plz?
« on: April 09, 2008, 04:34:06 AM »
than you  have to change image_id in all scripts, mySQL tables

plz explane how?

did i go to my PHP admin panel?

27
Discussion & Troubleshooting / how can i change URL plz?
« on: April 04, 2008, 10:00:34 AM »
I want to change URL of detail page

i mean

here is the orignal URL

Code: [Select]
http://web.com/gellery/details.php?[b]image[/b]_id=34
i want to make it like that

Code: [Select]
http://web.com/gellery/details.php?[b]video[/b]_id=34
thanks in advance

28
Discussion & Troubleshooting / Re: index not wroking
« on: February 10, 2008, 05:13:05 PM »
ok ever ything working fine now problem was in indexhtml :)

29
Discussion & Troubleshooting / Re: index not wroking
« on: February 10, 2008, 05:06:16 PM »
Hi,

you lost from a {tag}

Code: [Select]
{or
Code: [Select]
}or one of the group:
Code: [Select]
{if ...}   {endif ...}
 
problem is where ? in index.html or template.php ?

Kurt


30
Discussion & Troubleshooting / index not wroking
« on: February 10, 2008, 11:08:56 AM »
well i had just edit home.html page after uploading it i am getting this eroor


Parse error: syntax error, unexpected $end in /home/nokialov/public_html/wallpapers/includes/template.php(101) : eval()'d code on line 105

Pages: 1 [2] 3 4 5