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

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

0 Members and 1 Guest are viewing this topic.

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [Mod] Mini-Top
« Reply #45 on: October 12, 2005, 10:58:13 PM »
hhmm,

thanks but......


see -> http://www.terraristik-galerie.de/categories.php?cat_id=6   (scroll down)
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [Mod] Mini-Top
« Reply #46 on: October 12, 2005, 11:09:19 PM »
code updated.

hhmm,

thanks but......


see -> http://www.terraristik-galerie.de/categories.php?cat_id=6   (scroll down)
:?: and the question is ?????
ch€ri{Bi}²


Offline spellchecker

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [Mod] Mini-Top
« Reply #47 on: October 12, 2005, 11:11:43 PM »
code updated.

hhmm,

thanks but......


see -> http://www.terraristik-galerie.de/categories.php?cat_id=6   (scroll down)
:?: and the question is ?????


I think JensF was expecting to find something there, even though that category IS empty.

JensF: Subcats are not part of the parent category's minitop.


I guess it would be useful not to display anything, if the category is empty.

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [Mod] Mini-Top
« Reply #48 on: October 12, 2005, 11:15:37 PM »
hhmm,

the Text in the Box are not good. Ok, i can change it but i think it is better than the complete Mini Top is Invisible when no Pics are in the categorie...
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [Mod] Mini-Top
« Reply #49 on: October 12, 2005, 11:51:55 PM »
i think it is better than the complete Mini Top is Invisible when no Pics are in the categorie...

well, look at this link  : http://www.terraristik-galerie.de/top.php?cat_id=6
IMO it does not matter that images are present or not in the category, the treatment is the same one.
the principle is identical  on this mod except that the user is warned by $lang['no_images'] (and you're right : change this to whatever you want).

I do not see where is the problem  :roll:
ch€ri{Bi}²


Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [Mod] Mini-Top
« Reply #50 on: October 16, 2005, 10:31:54 PM »
Hello,

what must i do to see in empty categories the main top Images. I mean the pics they i can see on the index.php
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [Mod] Mini-Top
« Reply #51 on: October 27, 2005, 11:36:24 AM »
great MOD .. thanks

Offline Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [Mod] Mini-Top
« Reply #52 on: November 03, 2005, 07:18:33 PM »
what if I don't want a category to be incloded in mini top ?

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [Mod] Mini-Top
« Reply #53 on: November 04, 2005, 11:10:46 AM »
what must i do to see in empty categories the main top Images. I mean the pics they i can see on the index.php
if I understood your request, you would like that when there are no top images in the category, it shows picture from the general top.
 :?  that is likely to be confused for the user who must surely expect to find the shown pics in the category in progress !

the problem is as follows: when you are in a specific category, the parameter of the category is used for the request.
 :arrow:  it's possible but the implementation of your request will increase the quantity of SQL requests and will change the code to a significant degree...


what if I don't want a category to be incloded in mini top ?
that's the way the original mod works !!!   :wink:
 :arrow:  do not install mini-top for all categories if you don't want to see the category in your mini-top.

Regards.
ch€ri{Bi}²


Offline Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [Mod] Mini-Top
« Reply #54 on: November 04, 2005, 07:08:36 PM »
Quote
what if I don't want a category to be incloded in mini top ?
that's the way the original mod works !!!   :wink:
 :arrow:  do not install mini-top for all categories if you don't want to see the category in your mini-top.

Regards.
I want the MOD to be working as it is .. but there is an expert artist's gallery that I don't want to be incloded in Mini-Top at the home.html page ..
so is there is a way to do this ?

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [Mod] Mini-Top
« Reply #55 on: November 04, 2005, 09:40:04 PM »
:oops:  sorry... you think about the entire mod...
well, here is the solution to exclude some selected categories from the mini-top.

open/edit mini_top.php file

 :arrow: 1 - find :
Quote
$selection = array('rating', 'votes', 'hits', 'comments', 'downloads');
 $selection_alt = array('votes DESC', 'rating DESC', 'name ASC', 'name ASC', 'name ASC');

add after :
Code: [Select]
$not_in_cat = ""; //list of categories which should not be included in top image, separated by coma (i.e. "1,2,3,7")
 :arrow: 2 -  find in the SQL query:
Quote
WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")".$selection_cutoff[$cnt]."
replace by:
Code: [Select]
WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN ($not_in_cat) AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")".$selection_cutoff[$cnt]."

it should works  :wink:

Cheers.
ch€ri{Bi}²


Offline Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [Mod] Mini-Top
« Reply #56 on: November 04, 2005, 11:35:11 PM »
it's works .. thank you very much :D

Offline ivan

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.279
    • View Profile
    • Bilder Gallery
Re: [Mod] Mini-Top
« Reply #57 on: November 08, 2005, 09:09:09 AM »
hello,
the following problem has, with me on the side (mini top) lang_hits and lang_downloads is not indicated.  appear only pay, the language however not.

in which file where do I have to still insert this??

Code: [Select]
"lang_hits" => $lang['hits']
"lang_downloads" => $lang['downloads'],

here again the problem:

now 28 | 1
correctly hits 28 | downloads 1


gruss ivan

http://www.bildergallery.com
greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.420
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [Mod] Mini-Top
« Reply #58 on: November 08, 2005, 09:40:00 AM »
ich antworte mal auf deutsch... *g*

eigentlich ist das schon in der mini_top.php definiert...

Kann man sich das mal anschauen?

Offline ivan

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.279
    • View Profile
    • Bilder Gallery
Re: [Mod] Mini-Top
« Reply #59 on: November 08, 2005, 12:21:45 PM »
hallo,

danke für dein bescheid!

hier das example...




code mini_top_bit.html

Code: [Select]
{lang_mini_top_mode}

{thumbnail}

{image_name} {if image_is_new}{lang_new}{endif image_is_new} ({user_name_link})

{cat_name}
{lang_hits} {image_hits} | {lang_downloads} {image_downloads}
greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery