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

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

0 Members and 1 Guest are viewing this topic.

Offline donpedro

  • Full Member
  • ***
  • Posts: 110
    • View Profile
    • Baden bei Wien - Fotos einer Stadt
Re: [Mod] Mini-Top
« Reply #30 on: September 05, 2005, 10:22:57 AM »
Hi folks,

I tried to download the Mini Top MOD but I could not get it.

Can someone support me with the files ?

thx in advance
dp

Offline chri{Bi}

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [Mod] Mini-Top
« Reply #31 on: September 05, 2005, 01:56:12 PM »
the link works very well for me !!!

 :arrow:  http://faces.dalnet.ru/files.php?id=5&l=english
chri{Bi}


Offline donpedro

  • Full Member
  • ***
  • Posts: 110
    • View Profile
    • Baden bei Wien - Fotos einer Stadt
Re: [Mod] Mini-Top
« Reply #32 on: September 05, 2005, 05:00:05 PM »
Hi,

yep, the link works now but I receive unreadable files ... with which program can these files be opened ?

thx
dp

TheOracle

  • Guest
Re: [Mod] Mini-Top
« Reply #33 on: September 05, 2005, 05:49:31 PM »
WinRAR most likely. 8)

Offline donpedro

  • Full Member
  • ***
  • Posts: 110
    • View Profile
    • Baden bei Wien - Fotos einer Stadt
Re: [Mod] Mini-Top
« Reply #34 on: September 05, 2005, 10:36:39 PM »
what I download is not Winrar packed (I have Winrar installed)

I can open the file only with notepad and the result is (I post only some lines):

PK    5R.-m*        install.doc   `SE'iZzzAQ BK[zB%Ғ6   M-吺 \OED@Xſ(.^"ࢋ(\̛hu3'oy%=}ߣB aa2!dn?}y"wqZ5 GnMݚ̐E(H%:xk?qﺻ}[ݍmd%n޷r?s;cJ% ?|!Z짤 4|x٦߶"#I^[B"$| :/w9:v˳;k-5?>?c%`=;]ooKo{>v   ΋rOwnO"]uDKaAibc.ghmvd?0Nz:{9`osǮoV۞IB #d frɉ"5tAcwe:nJY(VMBIՠ1 Sb#z](Sm,BU٢iJQ*hLf0+""=%MkhYBDDNoJu^#4&!9^(Z^YDHlR,^V
K%Q
t


???

regards
dp


TheOracle

  • Guest
Re: [Mod] Mini-Top
« Reply #35 on: September 05, 2005, 10:40:17 PM »
Are you using the latest version of WinRAR ? Looks like you're using an old version.

Offline donpedro

  • Full Member
  • ***
  • Posts: 110
    • View Profile
    • Baden bei Wien - Fotos einer Stadt
Re: [Mod] Mini-Top
« Reply #36 on: September 05, 2005, 10:51:22 PM »
Yes, I have downloaded a lot of things during the last few days.

what I receive is nothing Winrar packed, only "files 13kb Archive"

dp

TheOracle

  • Guest
Re: [Mod] Mini-Top
« Reply #37 on: September 05, 2005, 10:54:54 PM »
Odd ... I can use the package without any problems. I open the documentation with Wordpad and the PHP files with WinRAR's integrated viewer window. It might be something to do with your downloads ... I assume you're using IE ?

Offline donpedro

  • Full Member
  • ***
  • Posts: 110
    • View Profile
    • Baden bei Wien - Fotos einer Stadt
Re: [Mod] Mini-Top
« Reply #38 on: September 05, 2005, 10:59:37 PM »
yes I do ...

and now, using Netscape, I GOT IT !

I love IE

thanks
dp

Offline fuzionative

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [Mod] Mini-Top
« Reply #39 on: September 15, 2005, 03:58:29 PM »
How in h... do you get the mini top images to be on top of each other   :?:
ex.
most viewed
most ......
most ......
most ......

so i can fit it into my page ?

been lookin for it, but frankly i suck in php

any help ?

Offline IWS_steffen

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Kreuzfahrtschiffe gestern und heute
Re: [Mod] Mini-Top
« Reply #40 on: September 25, 2005, 03:37:40 AM »
HI

This Mod works perfect ... great !!! 

Many thanks   

coooool

Steffen

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [Mod] Mini-Top - Hack : Mini-Top in all categories
« Reply #41 on: October 12, 2005, 12:02:44 AM »
Quote
my problem is, that after editing the template "categories.html", it won't show the mini-top.
although "This Mod shows additional table on the first (and/or any other page) of your gallery, with the thumbnail of one winner from each category ..."
is mentioned in the the install.doc.

 :D here is a way to add mini-top in for categories:

 :arrow: 3 files to edit from 4images root (install : less than 5 min) :

categories.php
mini_top.php
<your_template>/categories.html

--- BEGIN ---

STEP 1:
open categories.php and find:
Quote
//-----------------------------------------------------
//--- Show Images -------------------------------------
//-----------------------------------------------------

add just before :
Code: [Select]
//-------------------------------------------[ [Mod] Mini-Top ]
include(ROOT_PATH.'mini_top.php'); //---[ Mod] Mini-Top - ADD for Mini-top in categories]
//-------------------------------------------[/[Mod] Mini-Top ]

STEP 2 :
open mini_top.php and find:
Quote
for ($cnt = 0; $cnt < $num_of_cells; $cnt++) {

add just before :
Code: [Select]
$cat_match_sql = ($cat_id && check_permission("auth_viewcat", $cat_id)) ? "AND i.cat_id = '$cat_id' " : ""; //---[ [Mod] Mini-Top - ADD for Mini-top in categories]
STEP 2.1 :
still in mini_top.php and find (warning : 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]."
ORDER BY i.image_".$selection[$cnt]." DESC, i.image_".$selection_alt[$cnt];

and replace by :
Code: [Select]
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]."
$cat_match_sql
ORDER BY i.image_".$selection[$cnt]." DESC, i.image_".$selection_alt[$cnt];

STEP 3 :
open in your template categories.php and find :

Quote
{cat_description} (Hits: {cat_hits})
<hr size="1" />

add after:
Code: [Select]
<!-- [ Mod] Mini-Top - ADD for Mini-top in categories] -->
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head1">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_title} for this category</td>
<td class="head1" valign="top"align="right"><a href="{url_top_cat_images}" title="Top for current category"><b>{lang_top_images} for this category</b></a></td>
</tr>
</table></td>
</tr>
<tr>
<td class="head1" align="center">{mini_top_images}</td>
</tr>
</table>
<br />
<!-- [ Mod] Mini-Top - ADD for Mini-top in categories] -->

--- END ---

Open your categories and sub-categories, and you will find a mini-top for current category only 8)

Let me know if you meet problems with this part :wink:


When i have no Pics in a categorie i see this http://www.terraristik-galerie.de/categories.php?cat_id=6 (scroll down). What must i do to invisible the Mini Mod when no Pics are in the categorie...????
Mit freundlichem Gru
Jens Funk



-> Sorry for my bad English <-

Offline chri{Bi}

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [Mod] Mini-Top
« Reply #42 on: October 12, 2005, 11:29:22 AM »
Quote
What must i do to invisible the Mini Mod when no Pics are in the categorie...????

 :?: what do you want to make invisible? the entire block or only the parts which don't have a classification?
chri{Bi}


Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [Mod] Mini-Top
« Reply #43 on: October 12, 2005, 11:33:56 AM »
I think the best is

the parts which don't have a classification
Mit freundlichem Gru
Jens Funk



-> Sorry for my bad English <-

Offline chri{Bi}

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [Mod] Mini-Top
« Reply #44 on: October 12, 2005, 12:54:06 PM »
here a fast solution which answers your request... but it will be necessary to improve it:

open mini_top.php and find :
Quote
show_image($result);
 $site_template->register_vars("lang_mini_top_mode", $lang['mini_top_'.$selection[$cnt]]);
 $mini_top_images .= $site_template->parse_template("mini_top_bit");
replace by :
Code: [Select]
if (!$result) {
$mini_top_images .= "<b>".$lang['no_images']."<br><br>";
$mini_top_images .= "<b>".$lang['mini_top_'.$selection[$cnt]]."<b><br>";
} else {
show_image($result);
$site_template->register_vars("lang_mini_top_mode", $lang['mini_top_'.$selection[$cnt]]);
$mini_top_images .= $site_template->parse_template("mini_top_bit");
}

tell me if that is appropriate to you :wink:
chri{Bi}


 

Post your comments here