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 - wahban

Pages: [1]
1
Programming / Re: How to modify this sql code
« on: February 24, 2009, 10:55:55 PM »
Thaaaaaaanks aloooooot V@nо   :D

It works fine

2
Programming / How to modify this sql code
« on: February 24, 2009, 10:09:46 PM »
Hi every body,  :)

can some one help me to modfy this sql to make it get data from the man category and it's sub categories without including the id of Each sub category  :?

this is my way
Code: [Select]
AND i.cat_id IN (31,30,28,25,23,22,20,19,35,15,16,18,24,26,32,34,27,33)

 I want the code to get the sub categories automaticly

Code: [Select]
$sql = "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_rating, i.image_votes, c.cat_name, u.user_name
        FROM ".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c, ".USERS_TABLE." u
        WHERE i.image_active = 1 AND i.cat_id NOT IN ($cat_id_sql) AND i.cat_id = c.cat_id  AND i.user_id = u.user_id $cat_match_sql  AND i.cat_id IN (31,30,28,25,23,22,20,19,35,15,16,18,24,26,32,34,27,33)
        ORDER BY i.image_rating DESC, i.image_votes DESC
        LIMIT 20";

3
Thaaaanx alot  ,,,  :D

4
Hi, I want to know how can i show thumbnails of the top images in top.php

please i neeeeeed this mod

and thanks

5
Hi ,
I am new to 4images 1.7.6
and i want to know how i can do this in the home of the script:

i have 4 categories in my site
and i want to make 4 blocks in the index of the script
each bloak contan the new images from one of the 4 categories
-------------------------------------------
if we can do this , then can we make each block of the 4 blocks contan top rated, random , new


please help me  :roll:

Pages: [1]