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.


Topics - webbug

Pages: [1]
1
When I search for a keyword, it list me all the images sorted by oldest. I want the other way round.

It seems a simple thing to configure but can't find it.

I appreciate your support

2
Is there anyway I can configure it to display new images by image date not by the date of upload?

Thanks

Code: [Select]
<?php
define
('ROOT_PATH''./');

include(
ROOT_PATH.'config.php');
$site_db = new Db($db_host$db_user$db_password$db_name);


$num_images 4;
$config['image_cells'] = 2;
$i 0;
$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."
        ORDER BY a.image_id DESC
        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'];
  if(
$i == $config['image_cells']) {
    echo 
"<td>&nbsp;</td></tr><TR><td>&nbsp;</td>";
  }
  
$thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : ROOT_PATH.THUMB_DIR."/".$cat_id."/".$row['image_thumb_file'];
  echo 
"<td><a href=\"".ROOT_PATH."details.php?image_id=$image_id\"><img width=\"98\" height=\"98\" src=\"".$thumb_src."\" class=\"imageBoxSmall\" alt=\"$image_name | $image_comments comments\"></a></td>";
  echo 
$cat_cache[$subcat_id];
  
$i++;
}
?>


3
I did search and found some old mods which I all tried but seems not compatible with my version. The flash version, database version,etc. all seems for older version.

Is there anyone with v1.7.6 have a slide show working perfectly? 

Thanks

4
I use the following

http://www.XXXXXX/4images/search.php?search_keywords=USA

but it retrieves the word USA in all fields: title, description and keywords.  

What shall I put/use to display only keywords using the URL?

Anyone?

5
when I try to search by keywords, I get the following message: "Your search resulted in no matching records."

searching for "New Images", "by category" and "by user" is working fine though!

How can I trouble shoot it?

6
I want to use random_image.html that shows the thumbs but without the additional text such as the comment, user and title and instead embedding the comment and title inside the image using "alt". 

This is the code:

Code: [Select]
{thumbnail} <br /><b>{image_name}</b>{if image_is_new} <sup class="new">{lang_new}</sup>{endif image_is_new}
<br />
{if allow_comments}{lang_comments} {image_comments}{endif allow_comments}<br />{user_name}

So I need to delete everything and leave only {thumbnail} but the question is how and from where I can modify thumbnail parameters?

7
Mods & Plugins (Requests & Discussions) / 2 each row, How to?
« on: January 06, 2009, 11:05:38 AM »
I have the following code which list 4 images in each row.  I need to list 2 images per row please!

Code: [Select]
<?php
define
('ROOT_PATH''./');

include(
ROOT_PATH.'config.php');
$site_db = new Db($db_host$db_user$db_password$db_name);


$num_images 4;
$config['image_cells'] = 2;

$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."
        ORDER BY a.image_id DESC
        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 
"&nbsp;&nbsp;<a href=\"".ROOT_PATH."details.php?image_id=$image_id\"><img src=\"".$thumb_src."\" border=\"1\" alt=\"$image_name\"></a>&nbsp;&nbsp;";
  echo 
"<b>$image_name</b>\n";
  echo 
"Comments: $image_comments<hr>\n";
}
?>


8
ok here what i want: I need to have 2 random images in the details page.  A good workaround to this is to include another {random_cat_image}

But

when i have {random_cat_image}{random_cat_image}, it shows the same image.

Now

I thought of having {random_cat_image2} which calls random_cat_image2.html

where can I do this?

Pages: [1]