• [Mod] Mini-Top 5 0 5 1
Currently:  

Author Topic: [Mod] Mini-Top  (Read 234952 times)

0 Members and 2 Guests are viewing this topic.

Offline Foxhound

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: [Mod] Mini-Top
« Reply #165 on: November 28, 2010, 02:14:30 PM »
how can i change the settings how many entries are displayed?

thanks!

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: [Mod] Mini-Top
« Reply #166 on: November 28, 2010, 02:16:53 PM »

Offline Foxhound

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: [Mod] Mini-Top
« Reply #167 on: November 28, 2010, 06:49:45 PM »
danke dir benny,
aber: man kann nur max. 5 aneziegn lassen obwohl ich 10 eingestellt habe werden auch nur 5 angezeigt?

lg!

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: [Mod] Mini-Top
« Reply #168 on: November 29, 2010, 08:41:12 PM »
Es sollte auch gehen wenn du da 10 hinschreibst!
Du hast auch mehr als 5 Files gerade online!?
Wenn das so ist, dann wüsste ich pers. jetzt nicht warum das so ist!

Offline ilaslan

  • Newbie
  • *
  • Posts: 44
    • View Profile
i need small php --> sql help
« Reply #169 on: January 19, 2011, 03:33:45 AM »
hello mans
i need your helps.
in this mod have this code
WHERE i.image_active AND c.cat_id i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")".$selection_cutoff[$cnt]."


but

i want to exclude some categories numbers.
$cat_ext_adsense = array(84,85,86,87,88,89,95,96);

.......
i  had use this code some files. like this


WHERE i.image_active AND c.cat_id i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN")."," . implode(",", $cat_ext_adsense) .")




i try some many possible  code . but db error  :oops:






Rembrandt

  • Guest
Re: i need small php --> sql help
« Reply #170 on: January 19, 2011, 05:50:28 AM »

WHERE i.image_active AND c.cat_id i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")".$selection_cutoff[$cnt]." AND i.cat_id NOT IN (".implode("", $cat_ext_adsense)."

mfg Andi

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: [Mod] Mini-Top
« Reply #171 on: September 05, 2011, 08:10:53 AM »
I`ve this error:

Fatal error: Call to undefined function get_permission() in ***\Server\root\mini_top.php on line 5

Line 5:

Code: [Select]
$user_access = get_permission();
Strange!

Offline SweD

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [Mod] Mini-Top
« Reply #172 on: November 02, 2011, 01:29:43 PM »
Why one is shown and too the image: rating and votes?

But in top.php images The different (see image - top)

Offline pwa

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [Mod] Mini-Top
« Reply #173 on: November 07, 2011, 09:54:35 PM »
Das würde mich auch sehr interessieren. Hat jemand eine Idee und kann helfen?
MINI TOP of the DAY
MINI TOP of the WEEK
MINI TOP of the MONTH

hi there! no problem. I am willing to share my solution with the world!

I have reworked the entire mini-top mod...

..cut...

I use this solution but it has TRAP :-(
for young gallery, with few images per day it has loop without end:

Code: [Select]
//image 3
$mini_top_images_new .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n"; 
$count = 0;
while (($top_image[2][$count]['image_id'] == $image_r1['image_id']) || ($top_image[2][$count]['image_id'] == $image_r2['image_id'])) {
$count++;
}
$image_r3 = $top_image[2][$count];
show_image($image_r3);
$site_template->register_vars("lang_mini_top_mode", $lang['mini_top_hits']);
$mini_top_images_new .= $site_template->parse_template("mini_top_bit");
$mini_top_images_new .= "\n</td>\n";

Im not php programmer - I just commented out this section.



Offline cabrote

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [Mod] Mini-Top
« Reply #174 on: March 28, 2012, 07:53:28 PM »
Is there a way to show most viewed, most voted, etc. But only for a period of a Week o r a Month maybe?

 Because if not the Most viewd image would be  probably allways the most viewed one cause itīs appears in home and the possibilities that a person clicks on it is very hi.

Offline cabrote

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [Mod] Mini-Top
« Reply #175 on: April 01, 2012, 06:02:25 PM »
Help please, is there support?  :oops:

I canīt modify code for searching only in last 30 days pictures. The code shown in page 12 doesnīt work well. It output wrong information. The original Mini top Mod works perfect but I canīt figure out how to add in database search onlly image with upload date from 30 days.

Tried with variatons of time() - 60 * 60 * 24 but Iīm not a programmer and all ends with php errors  :D

Offline waseem

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [Mod] Mini-Top
« Reply #176 on: July 03, 2017, 07:23:20 PM »
im getting this error plz help me
Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM igdagesmt_images i, igdagesmt_categories c LEFT JOIN igdagesmt_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0, 1, 2, 3) AND i.cat_id = '1' ORDER BY i.image_comments DESC, i.image_name ASC
Unknown column 'i.user_id' in 'on clause'

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: [Mod] Mini-Top
« Reply #177 on: July 03, 2017, 08:09:02 PM »
Hello,

Please use the search function.
This has all been discussed several times.

Go to the search field: (Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id,)

Helping people help themselves  :wink:

nobby