Author Topic: [MOD] Top 100  (Read 87735 times)

0 Members and 1 Guest are viewing this topic.

rinaldos

  • Guest
Re: [MOD] Top 100
« Reply #30 on: April 29, 2009, 01:41:53 PM »
Codeupdate for this MOD, fixed the numbering of Positions, if you show more the 100 Images ....
Version 1.3.1 is online and added into the first post.


Gruß
Ingo
« Last Edit: April 29, 2009, 02:06:15 PM by rinaldos »

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] Top 100
« Reply #31 on: June 24, 2009, 03:45:16 PM »
Compatible-error between this MOD and [MOD] Google Friendly Urls

I don't know why... The part is obviously this one in the details.php:
Quote
// ---------  MOD TOP 100   ----------
$image_last_view_date = format_date($config['date_format'],$image_row['image_last_view']);
$image_last_view_time = format_date($config['time_format'],$image_row['image_last_view']);
$image_last_view_who = $image_row['image_last_view_who'];
// ---------  MOD TOP 100   ----------
My server gave me this hint (error-log)... I deleted this part, and now it works. Anybody knows why?
In my top100.php I only use the "hits", so there are no negatives or errors on my site after deleting this part.

Offline satine88

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
Re: [MOD] Top 100
« Reply #32 on: July 03, 2009, 11:25:43 PM »
Compatible-error between this MOD and [MOD] Google Friendly Urls

I don't know why... The part is obviously this one in the details.php:
Quote
// ---------  MOD TOP 100   ----------
$image_last_view_date = format_date($config['date_format'],$image_row['image_last_view']);
$image_last_view_time = format_date($config['time_format'],$image_row['image_last_view']);
$image_last_view_who = $image_row['image_last_view_who'];
// ---------  MOD TOP 100   ----------
My server gave me this hint (error-log)... I deleted this part, and now it works. Anybody knows why?
In my top100.php I only use the "hits", so there are no negatives or errors on my site after deleting this part.

Me too :(

rinaldos

  • Guest
Re: [MOD] Top 100
« Reply #33 on: July 04, 2009, 09:47:37 AM »
Hi

What kind of error do you get?

Ingo

Offline satine88

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
Re: [MOD] Top 100
« Reply #34 on: July 04, 2009, 02:38:22 PM »
Hi

What kind of error do you get?

Ingo

Error :

Code: [Select]
Parse error: syntax error, unexpected ';' in /home/www/5079565f25315af9bcd81d8cc489f6ec/web/details.php on line 61
line 61 :
$image_last_view_date = format_date($config['date_format'],$image_row['image_last_view']);

rinaldos

  • Guest
Re: [MOD] Top 100
« Reply #35 on: July 04, 2009, 02:59:25 PM »
Please post 10 line before and ten lines after, maybe there is an error before :-) Because line 61 is correct ......

Offline satine88

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
Re: [MOD] Top 100
« Reply #36 on: July 04, 2009, 03:09:42 PM »
Ok :)

Code: [Select]
52 :
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_last_view, i.image_last_view_who, 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".$additional_sql.", c.cat_name".get_user_table_field(", u.", "user_name").get_user_table_field(", u.", "user_email")."
        FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
        LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
        WHERE i.image_id = $image_id AND i.image_active = 1 AND c.cat_id = i.cat_id";
$image_row = $site_db->query_firstrow($sql);
$cat_id = (isset($image_row['cat_id'])) ? $image_row['cat_id'] : 0;
$is_image_owner = ($image_row['user_id'] >

// ---------  MOD TOP 100   ----------
$image_last_view_date = format_date($config['date_format'],$image_row['image_last_view']);
$image_last_view_time = format_date($config['time_format'],$image_row['image_last_view']);
$image_last_view_who = $image_row['image_last_view_who'];
// ---------  MOD TOP 100   ----------

USER_AWAITING && $user_info['user_id'] == $image_row['user_id']) ? 1 : 0;

if (!check_permission("auth_viewcat", $cat_id) || !check_permission("auth_viewimage", $cat_id) || !$image_row) {
  redirect($url);
}

$random_cat_image = (defined("SHOW_RANDOM_IMAGE") && SHOW_RANDOM_IMAGE == 0) ? "" : get_random_image($cat_id);
$site_template->register_vars("random_cat_image", $random_cat_image);
unset($random_cat_image);
-- 74

rinaldos

  • Guest
Re: [MOD] Top 100
« Reply #37 on: July 04, 2009, 03:23:29 PM »
You have not correctly insert the Code. The posted LINE 8 should not be

$is_image_owner 
= ($image_row['user_id'] > 


Maybe it should be like:

$is_image_owner 
= ($image_row['user_id'] > USER_AWAITING && $user_info['user_id'] == $image_row['user_id']) ? 0;



You have insert the code into these Line .... You see the little Mistake?


This is the correct Version!

$is_image_owner 
= ($image_row['user_id'] > USER_AWAITING && $user_info['user_id'] == $image_row['user_id']) ? 0;
// ---------  MOD TOP 100   ----------
$image_last_view_date format_date($config['date_format'],$image_row['image_last_view']);
$image_last_view_time format_date($config['time_format'],$image_row['image_last_view']);
$image_last_view_who $image_row['image_last_view_who'];
// ---------  MOD TOP 100   ----------



Gruß

P.S. I have seen the mistake in the first POST and corrected the line. My Mistake :-(

Offline satine88

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
Re: [MOD] Top 100
« Reply #38 on: July 04, 2009, 03:29:55 PM »
Yes  :D

Thanks !!!  :wink:

EDIT :

Hello,
What can you modif the urls that this mod is compatible with http://www.4homepages.de/forum/index.php?topic=17598.0  :?: :?:
« Last Edit: July 04, 2009, 06:39:50 PM by satine88 »

Offline Hagen-Roderich

  • Full Member
  • ***
  • Posts: 127
    • View Profile
    • Hof Jokers
Re: [MOD] Top 100
« Reply #39 on: August 04, 2009, 08:33:27 AM »
Hallo,
toller MOD (auch wenn ich nur einen kleinen Teil davon nutze).
Wie kann man die Hintergrundfarbe in den Ergebnisfeldern ändern? Ich habe schon "white" gegen "black" getauscht, aber das ändert nur den Hintergrund vom "mainframe".

Danke
« Last Edit: August 04, 2009, 12:27:47 PM by Hagen-Roderich »

rinaldos

  • Guest
Re: [MOD] Top 100
« Reply #40 on: August 04, 2009, 10:14:55 AM »
Guten Morgen :-)
Du kannst die Farbwerte in der datei styles.css ändern. Nimm einfach andere Werte für die Definitionen commentrow1 und commentrow2. Sollte dir das nicht gefallen kannst du auch eigene Klassen in der styles.css anlegen. Du musst dann nur in der top100.php alles was commentrow / commentrow1 heisst gegen deine neuen Variabeln austauschen :-)

LG
Ingo

Offline Hagen-Roderich

  • Full Member
  • ***
  • Posts: 127
    • View Profile
    • Hof Jokers
Re: [MOD] Top 100
« Reply #41 on: August 04, 2009, 12:28:54 PM »
Danke, hat wunderbar funktioniert.
« Last Edit: August 04, 2009, 12:42:05 PM by Hagen-Roderich »

Offline Markus/TSC

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: [MOD] Top 100
« Reply #42 on: January 31, 2010, 07:54:34 PM »
Hallo!

Ich habe ein Problem mit dem MOD. Er hat die ersten Tage nach Einbau wunderbar funktioniert, aber jetzt sind die Auswahlmöglichkeiten wonach man sortieren kann weg und werden nicht mehr dargestellt (siehe Bild im Anhang). Desweiteren ist auch aus dem Link (roter Kreis links) die Schrift "Top100" weg???

Worin kann das Problem liegen? Ich habe nur an den Formatierungen der Tabellen etwas verändert?!?!

Gruß

Markus

rinaldos

  • Guest
Re: [MOD] Top 100
« Reply #43 on: January 31, 2010, 09:43:19 PM »
Hi,
da hast du den MOD wegformatiert :-) Einfach deine formatierungen wieder rückgängig machen, und dann klappt es auch wieder. Musst eben aufpassen, das auch alle Tabellen < table > und < td > < tr > auch geschlossen werden. Sobald du eine übersiehst, kommt schnell ein Kuddelmuddel raus ...

Gruß

Offline tramfahrer

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Straßenbahn-, Bus- und Eisenbahnbilder
Re: [MOD] Top 100
« Reply #44 on: February 15, 2010, 10:26:33 PM »
Hallo, habde den Mod nach Seite 1 eingebaut alles schritt für Schritt durchgegangen, nun erhalte ich aber eine Fehlermeldung bim Upload von Dateien....

DB Error: Bad SQL Query: INSERT INTO 4images_images (cat_id, user_id, image_name, image_description, image_keywords, image_date, image_active, image_media_file, image_thumb_file, image_download_url, image_allow_comments) VALUES (16, 1, 'Testbild', 'da issn NGT zu sehen ', 'Keywords', 1266264986, 1266264986, 1, 'IMG_2315_2.jpg', 'IMG_2315_2.jpg', '', 1)
Column count doesn't match value count at row 1


woran kann das jetz liegen ?? Bitte um Hilfe .....
www.tram-und-bahnbilder.de

Gruß
Tobias