4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Huski on April 05, 2005, 03:33:31 PM

Title: Picture of the month
Post by: Huski on April 05, 2005, 03:33:31 PM
Hallo,

I am searching the POTM Mod now since 2 days, but I can not find it.
I saw it on many gallerys in the net.
Has someone perhaps a download link for me??

Greetings Christian
Title: Re: Picture of the month
Post by: amam on April 06, 2005, 08:32:41 PM
Hi,

This MOD was created by myself. A big discussion with troubles and good question is lost, because of the last forum crash.
That is very bad....  :evil:

You can download this MOD with description and installation guide under: http://www.koebs.org/Download/MOD_potm.zip

A demo here: http://www.foto-kocher.biz/potm.php

bye
AM
Title: Re: Picture of the month
Post by: Vincent on April 06, 2005, 09:17:53 PM
it is not working with SQL 3.23.39
could you tell me what to change to run it?

sincerly
vincent
Title: Re: Picture of the month
Post by: JensF on April 07, 2005, 12:03:54 AM
it is not working with SQL 3.23.39
could you tell me what to change to run it?

sincerly
vincent


Hi, da kannst du nichts tun außer deinen Provider anzuschreiben ob er ein Update macht. Ich hatte das Problem damals auch, habe dann meinen Anbieter angeschrieben und der wollte kein Update machen. Naja, hab mich dann dazu entschlossen woanders hinzugehen ;)
Title: Re: Picture of the month
Post by: artpics on May 03, 2005, 04:20:14 AM
 :D

great mod very easy to install thanks
Title: Re: Picture of the month
Post by: V@no on May 03, 2005, 04:24:07 AM
@amam:
Would u post it as a mod in the
Mods & Plugins (Publishing & Support) (http://www.4homepages.de/forum/index.php?board=15.0) forum, with more information about what it is and such?
Title: Re: Picture of the month
Post by: artpics on May 10, 2005, 05:55:28 PM
hello i love your MOD for 4 images 1.7 POTM, but i have upgraded to 1.71 all works apart from the link to see last months winners can you please update the code if this is the case

thanks

RT
Title: Re: Picture of the month
Post by: amam on May 10, 2005, 07:11:42 PM
Hi,

I have not installed the 1.71 version. I´m using my own adapted version, so i have not a good reference. So i installed
the 1.7 as a baseline. But sorry i can´t install the 1.7.1 and perhaps a 1.7 -> 1.7.1, that is too much work.

Does anyone have a 1.7.1 working with this MOD and can help RT.

bye
AM
Title: Re: Picture of the month
Post by: artpics on May 10, 2005, 08:25:06 PM
thanks amam, this baby deserves a place in the MOD  forum, i think it is a tag  every thing is okay apart from the "view last months winner" that is all  :D

thanks again    :wink:
Title: Re: Picture of the month
Post by: Michael on May 20, 2005, 03:48:11 PM
Hallo,

ist es möglich das nur aus einer einzelnen Kategorie gewählt werden kann?

Gruß, Michael  :D
Title: Re: Picture of the month
Post by: Jan Senf on May 20, 2005, 05:27:15 PM
The mod seems to work - there is no error message, but I can´t see any pictures to vote for ?  8O

I can see only the empty TEMPLATE of the POTM !?!?!?!?!?!?!?
Title: Re: Picture of the month
Post by: HaKkE on May 20, 2005, 06:30:16 PM
Hallo

Wie bei der Demo angebildet werden die Auswahlbilder zum POTM in der Mitte angezeigt. Ist es den möglich die Auswahlbilder nach rechts zu setzten? Kann man das direkt einstellen oder müsste ich dann was im Code ändern? Wollt ich nur mal wissen bevor ich es drüberinstalliere  8)

thx
Title: Re: Picture of the month
Post by: Michael on May 20, 2005, 06:36:13 PM
@HaKkE

Quote
Wie bei der Demo angebildet werden die Auswahlbilder zum POTM in der Mitte angezeigt. Ist es den möglich die Auswahlbilder nach rechts zu setzten? Kann man das direkt einstellen oder müsste ich dann was im Code ändern? Wollt ich nur mal wissen bevor ich es drüberinstalliere

dazu musst Du potm.html bearbeiten
Title: Re: Picture of the month
Post by: artpics on May 28, 2005, 11:26:15 PM
ok i have found a way to use this with 1.71 even though it may be wrong but it works

the problem was i could not see last months winners so in potm.html
i added this link

http://yoursite/4images/potm.php?action=lw

and it works hope this helps someone

RT
Title: Re: Picture of the month
Post by: Vincent on June 23, 2005, 11:13:32 AM
on the 6 April i had problem! beliving it is the SQL-version!

yesterday i was starting the potm.php direct just to have a look - and it was working!
http://www.foto-kocher.biz/potm.php

i don't know why?
please try if it is really working well!  :wink:

sincerly
vincent
Title: Re: Picture of the month
Post by: Vincent on June 23, 2005, 04:30:51 PM
Hello
i think it would be a nice feature - the voter could add his email adresse and at the end of the month he got a email with the winner
and he could be asked to vote again this month!

sincerly
vincent
Title: Re: Picture of the month
Post by: maikew on June 23, 2005, 05:06:22 PM
der mod ist toll und funktioniert prima auf meiner seite.ist es möglich das gewinnerfoto in einer box der galerie anzeigen zu lassen wie z.b. das foto des tages oder das zufallsbild?
Title: Re: Picture of the month
Post by: Vincent on June 27, 2005, 11:01:46 AM
ich fände es toll wenn der abstimmende noch seine email adresse hinterlassen könnte - nach der abstimmung würde er eine info erhalten - welches bild gewonnen hat! und eine aufforderung doch nochmals teilzunehmen!

gruss
vincent
Title: Re: Picture of the month
Post by: Pitt on June 30, 2005, 11:14:20 AM
Wird der Link Gewinner der letzten Monate erst angezeigt, wenn es welche gab?
Hab den Mod heute installiert, aber er ist noch nicht zu sehen, allerdings gab es ja auch noch keinen Gewinner...
???
Title: Re: Picture of the month
Post by: Pitt on June 30, 2005, 12:11:49 PM
Mir ist außerdem nicht klar, wie Fotos in die Auswahl kommen????
Ich hab 50 eingestellt, aber es werden nur 8 zur Auswahl gestellt. Modus ist
Code: [Select]
$potm_selection = 3;
Title: Re: Picture of the month
Post by: maikew on June 30, 2005, 02:21:50 PM
diese zeile in der potm.php editieren

$potm_nop = 8;                                          // number of pictures for monthly voting

und 50 anstelle der 8 eingeben.

hoffe das funktioniert  :wink:
Title: Re: Picture of the month
Post by: Pitt on June 30, 2005, 02:40:35 PM
Jepp hab ich gemacht und dann meine Cookies gelöscht..und ... wieder nur 8 Bilder zur Auswahl..
Man müsste eine spezielle Kategorie haben, wo man die in einem Zeitraum von 3 Wochen (am Anfang des Monats) reinstellt und dann die letzte Woche dann das Voting erst erlaubt ist.
So ist der Mod zwar nett, aber nicht wirklich effektiv..und seine eignen Fotos bewerten sollte man auch nicht können, weder hier noch in der Galerie selber...
Ich tippe mal, der schaut nur nach den letzten Fotos der letzten 24 Stunden...? Das käme zumindest bei mir hin...
Title: Re: Picture of the month
Post by: maikew on June 30, 2005, 03:08:55 PM
mag sein,so gut kenne ich mich mit dem mod auch noch nicht aus *g* hätt ja klappen können. :mrgreen:
aber ich glaube es gibt hier irgendwo ein mod,wo man die bilder direkt aus bestimmten kategorien nehmen kann und diese erscheinen dann im voting.
weiss aber nicht mehr genau wie dieser mod heisst  :? sorry
Title: Re: Picture of the month
Post by: Pitt on June 30, 2005, 03:20:34 PM
Naja und keinesfalls sollte man sein eignes Bild bewerten könne.
Übrigens ist die Cookielösung eine schlechte, löscht man seine Cookies kann man wieder voten und der Zähler tickt eins weiter.
Also ist findigen Usern Tür und Tor geöffnet zu beschei*en ..
hihi
Title: Re: Picture of the month
Post by: maikew on June 30, 2005, 03:26:21 PM
ich würde v@no ja gern mal fragen ob es da eine möglichkeit gibt,doch mein englisch ist wirklich mehr als bescheiden  :?
meldet sich jemand freiwillig? *g*
Title: Re: Picture of the month
Post by: Michael on June 30, 2005, 04:06:31 PM
ach ich hab hier schon so viele Fragen (auch per PM an V@no) gestellt und keine Antworten erhalten  :?
Vielleicht sollte man Geld bieten  :mrgreen:  :?:
Title: Re: Picture of the month
Post by: maikew on June 30, 2005, 04:07:40 PM
*lol* hmm...wäre eine möglichkeit *g* aber ich glaube die lassen sich hier nicht bestechen :D
ich glaub da hilft wohl nur php lernen  :roll:

hast übrigens eine schöne homepage,die werde ich mir gleich mal näher anschauen  :)
Title: Re: Picture of the month
Post by: amam on June 30, 2005, 09:40:44 PM
Hallo,

Das ist richtig, das man nur den Cookie löschen muss und man kann dann nochmal wählen. Aber das unterstellt den Leuten schon böse Absicht, wer sucht denn extra den Cookie raus und löscht den ? Ja, ich weiss, so Leute gibt es....  8O

Beim Auswählen der Kriterien für das MOD hatte ich verschiedene Alternativen. Ich wählte die Idee mit dem Cookie, so können alle Leute wählen, nicht nur die registrierten User und man hat ein wenig Schutz mit dem Cookie.
Es gebe noch die Möglichkeit nur Members voten zu lassen und die Stimme aufzuzeichnen. Aber das war mir damals zu aufwendig und ich wollte alle Leute voten lassen. Und da Gäste die Cookie löschen können, die IP wechseln können, sich eine neue Session holen oder sonstiges ist die Kontrolle fast nicht durchzuführen....

Bis dann
AM
Title: Re: Picture of the month
Post by: Gulper on July 01, 2005, 12:32:22 AM
Can someone change it so, that the votes are stored in a DB? So that Registered users can really only vote one time even when deleting their cookies....
Title: Re: Picture of the month
Post by: Vincent on July 01, 2005, 12:34:29 AM
 :D  :D Hello
 :P OK ein neuer monat hat gestartet und der Mod funktionier

 :roll: http://www.foto-kocher.com/potm.php

gruss
vincent
Title: Re: Picture of the month
Post by: dirk2903 on July 01, 2005, 07:55:04 PM
Mod ist soweit drin, aber egal welche Option (Hits,Date usw.) ich einstelle, es werden keine Pics zur abstimmung festgelegt, oder muß ich da noch etwas machen?

cu
Title: Re: Picture of the month
Post by: Albert on July 01, 2005, 10:55:13 PM
Hi,

If possible please post in english... i can't understant...  :oops:

Thanks..

 :wink:
Title: Re: Picture of the month
Post by: fpatton on July 01, 2005, 11:05:40 PM
If possible please post in english... i can't understant...  :oops:
Quote from: dirk2903
Mod ist soweit drin, aber egal welche Option (Hits,Date usw.) ich einstelle, es werden keine Pics zur abstimmung festgelegt, oder muß ich da noch etwas machen

My german is somewhat rusty, but I think the gist of it was:
Mod ist soweit drin, - The Mod (Pic o Day/Month)
aber - but what option is used to determine the winnner (hits, date, user views) if no-one votes?  or must some-one
cast a vote [or is it: must the site admin manually select one]

Title: Re: Picture of the month
Post by: Vincent on July 02, 2005, 09:08:36 PM
dirk
welche sql version hast du?
gruss
vincent
Title: Re: Picture of the month
Post by: Vincent on July 14, 2005, 11:59:32 PM
Jan Senf
kannst du mal den code zeigen sowohl HTML und PHP

und könntest du das noch anpassen damit man helfen kann ohne sich anzumelden

$potm_public = 1;         // access for all visitors (true 1) only members ( false 0)

und den neuen user vinc kannst du löschen - merci!

gruss
vincent
Title: Re: Picture of the month
Post by: Jan Senf on July 15, 2005, 12:27:04 AM
Hi...

also die potm.php sieht so aus...
Code: [Select]
<?php 
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: potm.php                                             *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.8                                                  *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

define('GET_CACHES'1);
define('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
$user_access get_permission();

$main_template 'potm';                                   // template name
include(ROOT_PATH.'includes/page_header.php');
     
global $cat_id$site_db$site_sess$HTTP_COOKIE_VARS$site_template$lang$user_table_fields;  

//-----------------------------------------------------
//--- Parameters --------------------------------------
//-----------------------------------------------------
$potm_public 1;                                       // access for all visitors (true 1) only members ( false 0)
$potm_nop 8;                                          // number of pictures for monthly voting
$potm_top 3;                                          // after vote show top X images of this month vote
$potm_lw  12;                                         // show last x 'photo of the month' winners
$potm_table "450";                                    // table witdt or use with %
$potm_selection 4;                                    // selection of picturey by
                                                        // 0 - hits
                                                        // 1 - votes
                                                        // 2 - rating
                                                        // 3 - by date, latest pictures
                                                        // 4 - automatically choose one of the three above

//-----------------------------------------------------
//--- Init --------------------------------------------
//-----------------------------------------------------


if ($user_info['user_level'] < $potm_public * -){   
  show_error_page
($lang['no_permission']);
  exit;
}

$cookie_name = (defined("COOKIE_NAME")) ? COOKIE_NAME "4images_";
if (isset(
$HTTP_COOKIE_VARS[$cookie_name.'potm']))
{
   $cookie_date unserialize(stripslashes($_COOKIE[$cookie_name.'potm'])) ;
}

//-----------------------------------------------------
//--- Check Date --------------------------------------
//-----------------------------------------------------

$datum date("Y-m") . "-01";
if ( 
$config['potm_date'] != $datum )
{
   if $potm_selection == 
      $potm_selection date("m") % 4;
   if $potm_selection == 
      $sql_add "hits";
   elseif $potm_selection == )  
       $sql_add 
"votes"
   elseif $potm_selection == 
       $sql_add "rating";
   else
       $sql_add 
"date";  
   $sql 
"UPDATE ".IMAGES_TABLE."
          SET image_potm =  1
          WHERE image_potm_date = '"
.$config['potm_date']."'
          ORDER BY image_potm_votes DESC
          LIMIT 1"
;
   $site_db->query($sql);
   $sql "UPDATE ".IMAGES_TABLE."
          SET image_potm_date =  '0000-00-00', image_potm_votes = 0
          WHERE image_potm_date = '"
.$config['potm_date']."' AND image_potm = 0";
   $site_db->query($sql);
   $sql "UPDATE ".IMAGES_TABLE."
          SET image_potm_date =  '"
.$datum."'
          WHERE image_potm = 0
          ORDER BY image_"
.$sql_add." DESC
          LIMIT "
.$potm_nop;
   $site_db->query($sql);
   $sql "UPDATE ".SETTINGS_TABLE."
          SET setting_value =  '"
.$datum."'
          WHERE setting_name = 'potm_date'"
;
   $site_db->query($sql);
}

//-----------------------------------------------------
//--- Voting ------------------------------------------
//-----------------------------------------------------

if ( $action == "potm_voting" ){
  if ( $cookie_date != $datum )
  {  
        $sql 
"UPDATE ".IMAGES_TABLE."
        SET image_potm_votes = image_potm_votes + 1
        WHERE image_id = "
.$id;
   $site_db->query($sql);
   $sql_datum "AND i.image_potm_date = '".$datum."'";
$nop $potm_top;
   $potm_description $lang['potm_top_title'];
   $cookie_value = isset($HTTP_COOKIE_VARS[$cookie_name.'potm']) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookie_name.'potm'])) : array();
   $cookie_potm_rated $datum;
   $cookie_expire mktime(0,0,0,date("m") + 11date("Y") );
   setcookie($cookie_name.'potm'serialize($cookie_potm_rated), $cookie_expireCOOKIE_PATHCOOKIE_DOMAINCOOKIE_SECURE);
   }
   else
   
{
        show_error_page($lang['potm_no_permission']);
        exit;
   }
   $sql_order "i.image_potm_votes DESC, i.image_hits";
   $nop $potm_top;
}

//-----------------------------------------------------
//--- Leaders of current Vote -------------------------
//-----------------------------------------------------

if ( $action == "locv" ){
  if ( $cookie_date == $datum )
  {
     $sql_order "i.image_potm_votes DESC, i.image_hits";
     $sql_datum "AND i.image_potm = 0 AND i.image_potm_date = '".$datum."'";
     $nop $potm_top;
     $potm_description $lang['potm_locv'];
  }
  else
  {
     show_error_page($lang['potm_no_permission']);
     exit;
  }
}

//-----------------------------------------------------
//--- Show candidates ---------------------------------
//-----------------------------------------------------

if ( $action == "" ){
    if ( $cookie_date != $datum )
    {
      $sql_datum "AND i.image_potm = 0 AND i.image_potm_date = '".$datum."'";
      $sql_order "i.image_name, i.image_hits ASC";
      $nop $potm_lw;
    }
    else
    {    
      $sql_order 
"i.image_potm_votes DESC, i.image_hits";
      $sql_datum "AND i.image_potm = 0";
      $nop $potm_top;
      $potm_description $lang['potm_locv'];
    }
}

//-----------------------------------------------------
//--- Last Winner -------------------------------------
//-----------------------------------------------------

if ( $action == "lw" ){
  if ( $cookie_date != $datum )
    $potm_menu_link "<a href=\"".$site_sess->url(ROOT_PATH."potm.php")."\">{lang_potm_vote_menu}</a>";
  $nop $potm_lw;
  $sql_datum "AND i.image_potm = 1";
  $sql_order "i.image_potm_date DESC, i.image_hits";
  $potm_description $lang['potm_winners_title'];
}
else {
  $potm_menu_link "<a href=\"".$site_sess->url(ROOT_PATH."potm.php?action=lw")."\">{lang_potm_lastwinners}</a>";
}
if ( 
$cookie_date == $datum )
  $potm_menu_link .= "<br><br><a href=\"".$site_sess->url(ROOT_PATH."potm.php?action=locv")."\">{lang_potm_locv}</a>";


//-----------------------------------------------------
//--- Menu --------------------------------------------
//-----------------------------------------------------

$cat_match_sql = ($cat_id && check_permission("auth_viewcat"$cat_id)) ? "AND i.cat_id = '$cat_id' " "";
 
$cat_id_sql get_auth_cat_sql("auth_viewcat""NOTIN");

$sql "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_media_file, i.image_thumb_file, i.image_rating, i.image_votes, i.image_comments, c.cat_name, u.user_name, i.image_downloads, i.image_hits, i.image_potm, i.image_potm_date, i.image_potm_votes 
        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 ".$sql_datum."
        ORDER BY " 
$sql_order ."
        LIMIT 
$nop";
$result $site_db->query($sql);
$potm_list = array();
$i 1;
while (
$row $site_db->fetch_array($result))
{
  $potm_list[$i] = $row;
  $i++;
}
$site_db->free_result();



$potm_menu "<table width=".$potm_table." border=\"0\" cellpadding=\"3\" cellspacing=\"0\">\n<form method=\"post\" action=\"{self}\">";

for (
$i 1$i <= $nop$i++) {
  if (isset($potm_list[$i])) {
    if (empty($potm_list[$i]['image_thumb_file'])) {
      $thumb_file ICON_PATH."/".get_file_extension($potm_list[$i]['image_media_file']).".gif";
    
    else 
    {
      $thumb_file = (is_remote($potm_list[$i]['image_thumb_file'])) ? $potm_list[$i]['image_thumb_file'] : THUMB_PATH."/".$potm_list[$i]['cat_id']."/".$potm_list[$i]['image_thumb_file'];
    }
    $potm_menu .= "<tr class=\"row". (($i 2) == "1" "2") ."\">\n<td width=100 align=\"center\" valign=\"center\">";
    $potm_menu .= (check_permission("auth_viewimage"$potm_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$potm_list[$i]['image_id'])."\"><img src=\"".$thumb_file."\" border=\"1\" align=\"center\" alt=\"".$lang['clickhere']." &quot;".$potm_list[$i]['image_name']."&quot;\"/></a>" "<img src=\"".$thumb_file."\" width=\"$new_width\" height=\"$new_height\" border=\"1\" align=\"center\" alt=\"".$potm_list[$i]['image_name']."\" />";
    $potm_menu .= "</td><td>";
    $potm_menu .= (check_permission("auth_viewimage"$potm_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$potm_list[$i]['image_id'])."\">".$potm_list[$i]['image_name']."</a>" : ($potm_list[$i]['image_name']);
    $potm_menu .= "<br>{lang_top_user}: " "<a href=\"".$site_sess->url((!empty($url_show_profile)) ? preg_replace("/{user_id}/"$potm_list[$i]['user_id'], $url_show_profile) : ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$potm_list[$i]['user_id'])."\">".htmlspecialchars($potm_list[$i]['user_name'])."</a>";
    $potm_menu .= "<br>{lang_top_category}: " "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$potm_list[$i]['cat_id'])."\">".$potm_list[$i]['cat_name']."</a>";
    if ( $action != "" )
    
      $potm_menu .= "<br>".$lang['hits']." ".$potm_list[$i]['image_hits'];
      $potm_menu .= "<br>".$lang['rating']." ".$potm_list[$i]['image_rating'];
    }
    $potm_menu .= "<br>".$lang['comments']." ".$potm_list[$i]['image_comments'];
    $potm_menu .= "</td><td>\n";  
    
if ( $action == "" && $cookie_date != $datum 
       $potm_menu .= "<input type=\"radio\" name=\"id\" value=\"" .$potm_list[$i]['image_id']. "\" onclick=\"this.form.submit()\"/>{lang_potm_vote}\n";
    else if ( $action == "lw" 
         {
            $datum_array explode("-",$potm_list[$i]['image_potm_date']);
            $potm_menu .= "<b>".$lang['potm_winner']."<br>".$lang['month_array'][(int)$datum_array[1]-1]." ".$datum_array[0]."</b>"
         }
         else
            $potm_menu 
.= "<br>{lang_potm_votes} " $potm_list[$i]['image_potm_votes'];

  }
  $potm_menu .= "</td>";
  if ( $action == "" && $cookie_date != $datum ) {
     $potm_menu .= "<input type=\"hidden\" name=\"action\" value=\"potm_voting\"></tr>";
  }
}
$potm_menu .= "</form></table>";

//-----------------------------------------------------
//--- Template vars -----------------------------------
//-----------------------------------------------------

$site_template->register_vars(array(
"potm_menu" => $potm_menu,
"potm_menu_link" => $potm_menu_link,
"lang_potm_title" => $lang['potm_title'],
"lang_potm_vote" => $lang['potm_vote'],
"lang_potm_votes" => $lang['potm_votes'],
"lang_potm_vote_menu" => $lang['potm_vote_menu'],
"lang_potm_lastwinners" => $lang['potm_lastwinners'],
"lang_top_category" => $lang['top_category'],
"lang_top_user" => $lang['top_user'],
"lang_potm_description" => $potm_description,
"lang_potm_locv" => $lang['potm_locv']
));

unset(
$action);

//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------

$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator']. $lang['potm_link'];
$title $config['site_name'];

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  "clickstream" => $clickstream,
  "title" => $title
));
$site_template->print_template($site_template->parse_template($main_template));
include(
ROOT_PATH.'includes/page_footer.php');
?>



und die potm.html im template verzeichnis sieht so aus ...
Code: [Select]
{header}
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td>
<table cellpadding="0" cellspacing="0"  width="100%"  border="0" bgcolor="#006699" >
 <tr>
  <td width="100%">
   <table border="0" cellpadding="0" cellspacing="0" bgcolor="#3d3d3d" width="100%" height="62" background="bbcell.gif" >
    <tr>
     <td width="30%" align="left"><a target="_self" href="http://www.event-pics.de"><img border="0" src="{template_url}/images/4imgs.gif" width="246" height="58" align="center" alt="" /></a></td>
 <td width="40%" align="left" valign="middle">
     <?php
include("http://www.event-pics.de/4images/banner/banner.php");
?>

</td>
     <td width="30%" align="right" >
        <form method="post" action="{url_search}">
              <table border="0" cellspacing="0" cellpadding="1">
                <tr>
                  <td>
                    <input type="text" name="search_keywords" size="15" class="searchinput" />
                  </td>
                  <td>
                    <input type="submit" value="{lang_search}" class="button" name="submit" />&nbsp;
                  </td>
                </tr>
                <tr valign="top">
                  <td colspan="2"><a href="{url_search}" class="smalltext">{lang_advanced_search}</a></td>
                </tr>
             </table>
            </form>
     </td>
   </tr>
  </table>
</td>
</tr>
</table>
    </td>
  </tr>
  <tr>
    <td class="bordercolor">
      <table width="100%" border="0" cellspacing="1" cellpadding="0" height="466">
        <tr>
          <td class="tablebgcolor" height="465">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
    <td class="navbar" height="23">
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
       <td align="left" width="50%">
        <img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" /><a href="http://www.event-pics.de/4images">event-pics.de | Galerie</a>
       </td>
       <td align="right" width="50%">
<a href="http://www.event-pics.de/4images/member.php?action=uploadform"><b>UPLOAD</b></a> | &nbsp
<a href="{url_potm_link}"><b>{lang_potm_link}</b></a>&nbsp |
<a href="{url_top_images}"><b>{lang_top_images}</b></a> | &nbsp
<a href="{url_new_images}"><b>{lang_new_images}</b></a>&nbsp
       </td>
      </tr>
     </table>
    </td>
   </tr>
  </table>
            <table width="1155" border="0" cellspacing="0" cellpadding="0" height="447">
              <tr>
                <td width="100" class="row2" valign="top" height="447">
                  <table width="150" border="0" cellspacing="0" cellpadding="0">
                   <tr>
                      <td class="head2" height="20"><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_registered_user}</td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="center" class="row1">{user_box} </td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                  </table>
                  {if random_image}
                  <table width="150" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head2" height="20"> <img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_random_image}</td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="center" class="row1">
                                            <br />
                        {random_image}
                                                <br />
                        <br />
                      </td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                  </table>
                {endif random_image}
{potd_image}
                  <p align="center">
                    <?php
                    
echo date("d.m.Y, H:i");
                        ?>

                  </p>
<p align="center">
<?php include("4darkm.php"); ?>
                </td>
                <td width="921" valign="top"><br />
                  <b class="title">{lang_potm_title}</b><hr size="1" />
                   <p>
                  {if msg}</p>
                  <div class="msg{msg_color}">{msg}</div>
                                    <p>{endif msg} </p>
                                    <p><b>{lang_potm_description} </b> </p>
                                    <p>{potm_menu}</p>
                                                    <p align="center">{potm_menu_link}</p>
                                    <br />
                  <p>
                                  <br />
                                  </p>
                  <p>&nbsp;<br />
                  </p>
                                  <br />
                                  <br />
                                  <br />
                  <p>&nbsp;</p>
                </td>
                <td width="39" valign="top"><img src="{template_url}/images/spacer.gif" width="19" height="19" alt="" /></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table width="640" border="0" cellspacing="0" cellpadding="0" class="tablebottom">
        <tr>
          <td width="6"><img src="{template_url}/images/footer_left.gif" width="6" height="19" alt="" /></td>
          <td width="405">&nbsp;</td>
          <td width="225">&nbsp;</td>
          <td width="6"><img src="{template_url}/images/footer_right.gif" width="6" height="19" alt="" /></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
{footer}

Ich blicke es einfach nicht ! 8O

Jan Senf
Title: Re: Picture of the month
Post by: Vincent on July 15, 2005, 04:33:26 PM
@Jan Senf
eigentlich geht es aber die thumbs werden jetzt nicht angezeigt weil ich nicht berechtigt bin! Somit habe ich das gefühl das das Problem in deinem Mod mehr daran liegt das berechtigungen nicht klappen!

gruss
vincent
Title: Re: Picture of the month
Post by: Jan Senf on July 16, 2005, 03:16:06 PM
@vincent: mir wird ja auch nix angezeigt und ich bin als ADMIN eingelogged und sehe i.d.R. alle Bilder ?

... eigentlich sollte ich ja alle Berechtigungen haben !

Hast Du den Code so bei Dir zum Laufen gebracht ?????
Title: Re: Picture of the month
Post by: Vincent on July 16, 2005, 03:27:37 PM
@Jan Senf
ja bei mir geht es - aber  - erst seit dem PHP update!
Vielleicht mal abchecken ob ein PHP Code teil drinn ist der mit deiner Version nicht passt
seit ich  PHP Version 4.3.11 and SQL 3.23.49  have funktionierts!

gruss
vincent
Title: Re: Picture of the month
Post by: kindian on July 26, 2005, 12:47:03 PM
This might be stupid because it could be already explained, but is it possible to choose the pictures to be voted?
Instead of the:

--- 0 - hits // 1 - votes // 2 - rating // 3 - by date, latest pictures // 4 - automatically choose one of the three above ----

There should be a 5th choice that allows the admin to choose the pictures that he want.
Is it possible?

Title: Re: Picture of the month
Post by: KurtW on July 31, 2005, 11:59:33 AM
Hi,

bab den Mod auch auf meiner Seite integriert:
http://www.malediven-bilder.de/potm.php

Jedoch hab ich auch den phpbb Mod ,
http://www.4homepages.de/forum/index.php?topic=1658.0
und somit läuft die Userverwaltung ja anders ab.

Erhalte folgende Fehlermeldung:


Code: [Select]
DB Error: Bad SQL Query: SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_media_file, i.image_thumb_file, i.image_rating, i.image_votes, i.image_comments, c.cat_name, u.user_name, i.image_downloads, i.image_hits, i.image_potm, i.image_potm_date, i.image_potm_votes FROM maledivenimages i, maledivencategories c, phpbb_users u WHERE i.image_active = 1 AND i.cat_id NOT IN (0, 122, 123) AND i.cat_id = c.cat_id AND i.user_id = u.user_id AND i.image_potm = 1 ORDER BY i.image_potm_date DESC, i.image_hits LIMIT 12
Unknown column 'u.user_name' in 'field list'

Hat ja was mit der Usertable zu tun und ich hab auch schon einiges in der potm.php versucht zu ändern, aber ich bin zu blöd für so was.
Hat vielleicht einer eine Lösung ?

Daaaaaaaaanke



Gruß
Kurt
Title: Probleme mit Link für Last Winners
Post by: nika2000 on August 02, 2005, 10:13:30 AM
Hallo!

Wie binde ich in die potm.html den Link für die letzten Gewinner/aktuell führenden Bilder ein?
Das müsste doch {potm_menu_link} sein, oder?
Wenn ich das einbinde passiert leider nix....
Kann mir jemand weiter helfen?

LG
Nika2000
Title: Re: Picture of the month
Post by: Vincent on August 02, 2005, 10:30:32 AM
nika2000
ich denke das geht nicht direkt - du kannst die führende nur anschauen wenn du schon abgestummen hast!

gruss
vincent
Title: Re: Picture of the month
Post by: nika2000 on August 02, 2005, 02:57:57 PM
Ja, aber selbst da geht's bei mir nicht?!

Ich hab sicher nen falschen Link eingebunden.
Das ist ja alles eine html. und wenn die action= lw soll der Link zu den führenden angezeigt werden und umgekehrt....
Verstehst Du, was ich meine?

LG
Nika2000
Title: Re: Picture of the month
Post by: Vincent on August 02, 2005, 03:05:40 PM
also deine homepage - ich gehe mal abstimmen  :wink:
Title: Re: Picture of the month
Post by: nika2000 on August 02, 2005, 03:09:21 PM
www.kleine-fotoschmiede.de
Title: Re: Picture of the month
Post by: Vincent on August 02, 2005, 07:06:45 PM
nika2000
da scheint sonst noch etwas nicht zu stimmen - ich kann immer wieder abstimmen! eigentlich sollte ich nach dem ersten mal für bis ende Monat gesperrt sein!

gruss
vincent
Title: Re: Picture of the month
Post by: om6acw on August 03, 2005, 05:15:11 AM
great mod, thank you!!!
Ondrej
Title: Re: Picture of the month
Post by: KurtW on August 06, 2005, 12:11:46 PM
HI,

i love this mod !!

Only one problem: The script dont select pictures from the gallery automatically.
When i select the pics by hand in the database all works fine with the voting.

database    : MySQL 3.23.55
PHP Version: 4.3.11

Can anyone help me?

http://www.malediven-bilder.de/potm.php


Der Mod ist geil.
Einziges Problem, das ich nun habe:
Das Script wählt nicht automatisch Bilder aus der Datenbank aus.
Wenn ich diese per Hand aus der Datenbank auswähle, klappt alles wunderbar mit dem Voting usw.

Hat jemand eine Idee oder kann mir weiterhelfen?

http://www.malediven-bilder.de/potm.php

Gruß
Kurt
Title: Re: Picture of the month
Post by: KurtW on August 08, 2005, 06:10:22 PM
Hi nochmals,

hat denn keiner eine Idee ??
no idea about my problem ??

 :cry:

Kurt
Title: Re: Picture of the month
Post by: Loda on August 11, 2005, 08:42:43 PM
einzelne categorie:
nach:
Code: [Select]
$sql = "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_media_file, i.image_thumb_file, i.image_rating, i.image_votes, i.image_comments, c.cat_name, u.user_name, i.image_downloads, i.image_hits, i.image_potm, i.image_potm_date, i.image_potm_votes
        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 ".$sql_datum."

das einfügen:
Code: [Select]
AND i.cat_id IN (x)x=deine id für deine categorie
Title: Re: Picture of the month
Post by: kindian on August 11, 2005, 09:45:05 PM
When i select the pics by hand in the database all works fine with the voting.

How did you do that? I mean "by hand", I need to do that but havent found the solution....  :(
Title: Re: Picture of the month
Post by: Vincent on September 03, 2005, 05:44:03 PM
please vote für a picture  8) http://www.foto-kocher.com/potm.php  :wink:
Title: Re: Picture of the month
Post by: beseech on September 08, 2005, 06:06:14 PM
one simply question :

this show me this

Admin
: Beseech
: Male users
Comments: 3


how can i put before ":" Username and Category ??

Admin
Username : Beseech
Category  : Male users
Comments: 3


??? any ideias ?

Title: Re: Picture of the month
Post by: Matthias70 on September 08, 2005, 06:36:21 PM
Did you check your language/main.php?
Title: Re: Picture of the month
Post by: beseech on September 08, 2005, 07:06:57 PM
Code: [Select]
//-----------------------------------------------------
//--- Photo of the month ------------------------------
//----------------------------------------------------- 
$lang['potm_link'] = "Photo of the month";
$lang['potm_title'] = "Vote for photo of the month";
$lang['potm'] = "potm";
$lang['potm_vote'] = "Vote";
$lang['potm_votes'] = "Votes:";
$lang['potm_lastwinners'] = "Winners of the last months";
$lang['potm_vote_menu'] = "Back to vote";
$lang['potm_winner'] = "Winner of the month";
$lang['potm_top_title'] = "Leading photos";
$lang['potm_winners_title'] = "Winners of the last months";
$lang['potm_no_permission'] = "You have already voted. You can vote only once a month.";
$lang['potm_locv'] = "Leading photos of current vote";
$lang['top_user'] = "User";
$lang['top_category'] = "Category";
$lang['month_array'] = array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");

but on potm page show only " : "  !!!!

Title: Re: Picture of the month
Post by: Matthias70 on September 08, 2005, 08:01:43 PM
When you can not find the problem, you can write the text directly into the potm.html file.
Matthias
Title: Re: Picture of the month
Post by: beseech on September 08, 2005, 08:07:23 PM
i will try ;)
Title: Re: Picture of the month
Post by: Matthias70 on September 08, 2005, 08:12:32 PM
Sorry the text ist in the potm.php not potm.html
Matthias
Title: Re: Picture of the month
Post by: beseech on September 08, 2005, 08:56:38 PM
and what i need change of added ?


Title: Re: Picture of the month
Post by: Matthias70 on September 08, 2005, 09:24:13 PM
It's a dirty solution, but it helps

In potm.php find the following part an change
{lang_top_user}: to user:
that's it.

Code: [Select]
    $potm_menu .= "<tr class=\"row". (($i % 2) == 1 ? "1" : "2") ."\">\n<td width=100 align=\"center\" valign=\"center\">";
    $potm_menu .= (check_permission("auth_viewimage", $potm_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$potm_list[$i]['image_id'])."\"><img src=\"".$thumb_file."\" border=\"1\" align=\"center\" alt=\"".$lang['clickhere']." &quot;".$potm_list[$i]['image_name']."&quot;\"/></a>" : "<img src=\"".$thumb_file."\" width=\"$new_width\" height=\"$new_height\" border=\"1\" align=\"center\" alt=\"".$potm_list[$i]['image_name']."\" />";
    $potm_menu .= "</td><td>";
    $potm_menu .= (check_permission("auth_viewimage", $potm_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$potm_list[$i]['image_id'])."\">".$potm_list[$i]['image_name']."</a>" : ($potm_list[$i]['image_name']);
    $potm_menu .= "<br>{lang_top_user}: " . "<a href=\"".$site_sess->url((!empty($url_show_profile)) ? preg_replace("/{user_id}/", $potm_list[$i]['user_id'], $url_show_profile) : ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$potm_list[$i]['user_id'])."\">".htmlspecialchars($potm_list[$i]['user_name'])."</a>";
    $potm_menu .= "<br>{lang_top_category}: " . "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$potm_list[$i]['cat_id'])."\">".$potm_list[$i]['cat_name']."</a>";
    if ( $action != "" )
    {
      $potm_menu .= "<br>".$lang['hits']." ".$potm_list[$i]['image_hits'];
      $potm_menu .= "<br>".$lang['rating']." ".$potm_list[$i]['image_rating'];
    }
    $potm_menu .= "<br>".$lang['comments']." ".$potm_list[$i]['image_comments'];
    $potm_menu .= "</td><td>\n"; 
Title: Re: Picture of the month
Post by: beseech on September 08, 2005, 10:32:51 PM
looool better than show only ":"

thanks :)

thats some i've forgot .... do on this cases  ;)
Title: Re: Picture of the month
Post by: yellows on September 11, 2005, 12:05:13 AM
when i change the parameters number of photos etc - nothing happens

any help will be much appreciated



http://www.sexymalecelebs.co.uk/Galeries/potm.php
Title: Re: Picture of the month
Post by: Matthias70 on September 11, 2005, 12:09:21 AM
Changing the parameters will have an an effect in the next month.
You just have to wait

Matthias
Title: Re: Picture of the month
Post by: yellows on September 11, 2005, 12:21:20 AM
ok cheers for quick reply
Title: Re: Picture of the month
Post by: universal on September 14, 2005, 01:11:37 PM
http://www.funny.lt/potm.php

Can someone say why it won`t work...?
Title: Re: Picture of the month
Post by: elcorazon on November 01, 2005, 05:23:55 AM
ok i have found a way to use this with 1.71 even though it may be wrong but it works

the problem was i could not see last months winners so in potm.html
i added this link

http://yoursite/4images/potm.php?action=lw

and it works hope this helps someone

RT

hello,

Thank you, very useful for me your message.  :P
Title: Re: Picture of the month
Post by: Toso on November 02, 2005, 11:25:53 AM
Wie kann ich denn das aktuell führende Bild anzeigen lassen, ohne vorher abzustimmen?

Auf http://www.foto-kocher.com/ geht es mit ?action=locv, aber wie binde ich das in meine potm.php ein?
Title: Re: Picture of the month
Post by: degmore on November 08, 2005, 09:42:53 AM
.....You can download this MOD with description and installation guide under http://www.dignado.de/MOD_potm.zip.....

This seems to have disappeared, can anyone tell me where to find it please?
Title: Re: Picture of the month
Post by: degmore on November 08, 2005, 02:30:15 PM
.....This seems to have disappeared, can anyone tell me where to find it please?

I have now managed to download it...... it seems I had a firewall issue.
 :roll:
Title: Re: Picture of the month
Post by: Toso on December 01, 2005, 04:44:57 PM
Mal eine generelle Frage:

Macht es eigentlich Sinn am Anfang des Monats das "Picture of the month" zu wählen? Wäre es nicht viel sinnvoller am Ende des Monat das beste Bild zu wählen.  Dann wäre doch die Auswahl viel größer?!  :roll:
Title: Re: Picture of the month
Post by: Acidgod on December 01, 2005, 05:08:00 PM
Mal eine generelle Frage:

Macht es eigentlich Sinn am Anfang des Monats das "Picture of the month" zu wählen? Wäre es nicht viel sinnvoller am Ende des Monat das beste Bild zu wählen.  Dann wäre doch die Auswahl viel größer?!  :roll:
Ist das dein ernst?
Ob man eine Umfrage am Anfang oder Ende des Monats beginnt ist doch egal oder nicht?
Die Laufzeit ist doch entscheidend...
Title: Re: Picture of the month
Post by: Toso on December 02, 2005, 08:36:10 AM
Ja, das ist mein ernst. Wenn am ersten Tag des Monat die Bilder ausgewählt werden, können die kommenden Bilder doch garnicht mehr mit an der Wahl teilnehmen.

Am Ende des Monats kannst du dir jedoch die mit den meistens Hits, Vote, etc auswählen.

 :mrgreen:
Title: Re: Picture of the month
Post by: Acidgod on December 02, 2005, 10:31:09 AM
ach und am anfang des monats geht das also nicht? *g*

MAn wählt halt im Dez das Bild des Monats November, wie willst du es anders machen? man wartet vom 1. Nov - 30 Nov. und am Anfang des Dez. wählt man dann das Bild... *kopfschüttel*
Ist das nicht genau das was Du meinst?

Denk mal drüber nach...
Title: Re: Picture of the month
Post by: Toso on December 02, 2005, 12:05:50 PM
Soweit sogut.
 Ich versteh schon was du meinst, dann wählt der aber bei mir die falschen Bilder aus  :?

Bie $potm_selection = 0;  (hits)  werden aber nur Bilder aus den aktuellen Monat, und nicht aus dem Vormonat dargestellt...
Title: Re: Picture of the month
Post by: ccsakuweb on December 04, 2005, 03:04:52 AM
hi.. i installed your mod but.. i have the next error db :

Code: [Select]
DB Error: Bad SQL Query: SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_media_file, i.image_thumb_file, i.image_rating, i.image_votes, i.image_comments, c.cat_name, u.user_name, i.image_downloads, i.image_hits, i.image_potm, i.image_potm_date, i.image_potm_votes FROM 4images_images i, 4images_categories c, phpbb_users u WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND i.cat_id = c.cat_id AND i.user_id = u.user_id AND i.image_potm = 0 AND i.image_potm_date = '2005-12-01' ORDER BY i.image_name, i.image_hits ASC LIMIT 12
Unknown column 'u.user_name' in 'field list'

could you help me?
Title: Re: Picture of the month
Post by: KurtW on December 04, 2005, 09:52:29 AM
hi ccsakuweb ,

i think, you have also the PhpBB-Mod :!:
Than its a problem. Im the phpBB-Mod too, and i found no way..

cu
Kurt
Title: Re: Picture of the month
Post by: V@no on December 04, 2005, 10:09:27 AM
search for user_name and replace it with username
Title: Re: Picture of the month
Post by: KurtW on December 04, 2005, 10:39:49 AM
Hi veno,

yes, the first step.
but
dont work..

http://www.malediven-bilder.de/potm.php

cu
Kurt
Title: Re: Picture of the month
Post by: oswald on December 08, 2005, 01:15:44 AM
When calling the "photo of the month" funktion for the first time, I get this:
Code: [Select]
DB Error: Bad SQL Query: UPDATE 4images_images SET image_potm = 1 WHERE image_potm_date = '0001-01-01' ORDER BY image_potm_votes DESC LIMIT 1
You have an error in your SQL syntax near 'ORDER BY image_potm_votes DESC LIMIT 1' at line 4

DB Error: Bad SQL Query: UPDATE 4images_images SET image_potm_date = '2005-12-01' WHERE image_potm = 0 ORDER BY image_hits DESC LIMIT 2
You have an error in your SQL syntax near 'ORDER BY image_hits DESC LIMIT 2' at line 4

When calling POTM a second time, I do not get any more errors, but there are also no pics.... all I see it the default "Vote for photo of the month" message with nothing under it...

Please help...
Title: Re: Picture of the month
Post by: ccsakuweb on December 10, 2005, 11:24:16 PM
yes i have phpbb_mod... and the picture_MOD doesn´t work in my site :|
Title: Re: Picture of the month
Post by: TIMT on March 01, 2006, 12:30:57 AM
ok i have found a way to use this with 1.71 even though it may be wrong but it works

the problem was i could not see last months winners so in potm.html
i added this link

http://yoursite/4images/potm.php?action=lw

and it works hope this helps someone

RT

hello,

Thank you, very useful for me your message.  :P


This is only the link to the "last months winners". But when I see this winners, I want to have the link back to the leading pictures of this months. I dont know, why the link {potm_menu_link} is not shown. Can anybody help me?

Thanks
Title: Re: Picture of the month
Post by: TIMT on March 01, 2006, 11:43:53 PM
Anybody? 
Title: Re: Picture of the month
Post by: boerdi on June 01, 2006, 11:15:37 PM
Hello!
Also...ab wann die potm.php zu starten beginnt, ist in der 4images_settings table zu ändern!

Und zwar unter potm_date einfach anpassen!

Glaube schon, dass es funktioniert..kann das wer probieren?:-)

lg
Title: Re: Picture of the month
Post by: Lucifix on July 01, 2006, 01:08:51 AM
Hi!

Did anyone make Photo of the week from this mode?
Title: Re: Picture of the month
Post by: HorrorCrafT on August 26, 2006, 08:48:14 PM
so, hab mir diesen MOD auch mal angeschaut und eingebaut.

warum neben dem bild nur ":" und kein "Benutzer:" oder "Kategorie:" steht oder warum der {potm_menu_link} link nicht sichtbar ist, ist ein bug der sich durch die gesamte potm.php zieht und zwar folgendermaßen:

ursprünglicher scriptauszug aus der potm.php:

$potm_menu .= "<br>{lang_top_category}: " . "<a href=\"".$site_sess->url(ROOT_PATH. .... usw.

das "<br>{lang_top_category}: " kann so nicht aufgelöst werden und muss umgeschrieben werden auf:

$potm_menu .= "<br>".$lang['top_category'].": " . "<a href=\"".$site_sess->url(ROOT_PATH. .... usw.

nun kann die sprachvariable aus der main.php gezogen und hier angezeigt werden. wenn ihr also auch die linkvariablen so umschreibt, werden sie auch in der 1.7.1er version sichtbar.

eine späte info, ich weiss, aber das hätte eigentlich der programmierer dieses MODs oder einer der großen zampanos hier, korrigieren müssen :wink: :D ansonsten aber ein feiner MOD!!! danke dafür!
Title: Re: Picture of the month
Post by: HorrorCrafT on August 27, 2006, 05:18:09 PM
kann ein admin eigentlich bilder auch händisch auswählen und zur auswahl stellen? wenn ja, wie geht das?

can admin select pictures "by hand"? if it works, how can i do that? - my english - sorry  :oops: :D
Title: Re: Picture of the month
Post by: Stoleti on August 27, 2006, 06:06:21 PM
And what about show the Last Month Winner (image) at home.html ???
Title: Re: Picture of the month
Post by: HorrorCrafT on August 28, 2006, 02:42:04 PM
i'm also interested on this alternative! :D
Title: Re: Picture of the month
Post by: HorrorCrafT on August 30, 2006, 12:00:55 PM
no php specialist who can help? :cry:
Title: Re: Picture of the month
Post by: Loda on August 30, 2006, 03:12:01 PM
ok.. here are a simply way to do that! is my alternative code.. sorry for confusing php code parts.. but it works!

step 1:
 :arrow:
find in include/pages_header.php
Code: [Select]
//-----------------------------------------------------
//--- Random Image ------------------------------------
//-----------------------------------------------------

insert above:
Code: [Select]
$random_image_3 = (defined("SHOW_RANDOM_IMAGE") && SHOW_RANDOM_IMAGE == 0) ? "" : get_random_image();
$site_template->register_vars("random_image_3", $random_image_3);
unset($random_image_3);
step 2:
 :arrow:
in index.php find:
Code: [Select]
$site_template->register_vars("new_images", $new_images);
unset($new_images);
insert after:
Code: [Select]
//------------------------------------
//------- Random Images_3 --------------
//------------------------------------

$sql = "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_media_file, i.image_thumb_file, i.image_rating, i.image_votes, i.image_comments, c.cat_name, u.user_name, i.image_downloads, i.image_hits, i.image_potm, i.image_potm_date, i.image_potm_votes
       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_active = i.image_potm AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")
        ORDER BY  i.image_potm_date DESC
        LIMIT 1";
     // end new
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);

if (!$num_rows)  {
$random_images_3 = "";
$random_images_3 .= "</td></tr></table>";
}
else  {
$random_images_3 = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";
$count = 1;
$bgcounter = 1;
while ($image_row = $site_db->fetch_array($result)){
   if ($count == 0) {
     $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
     $random_images_3 .= "<tr class=\"imagerow".$row_bg_number."\">\n";
   }
   $random_images_3 .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";

   show_image($image_row);
   $random_images_3 .= $site_template->parse_template("thumbnail_bit_potm"); // original code

   $random_images_3 .= "\n</td>\n";
   $count++;
   if ($count == $config['image_cells']) {
     $random_images_3 .= "</tr>\n";
     $count = 0;
   }
} // end while

if ($count > 0)  {
   $leftover = ($config['image_cells'] - $count);
   if ($leftover >= 1) {
     for ($f = 0; $f < $leftover; $f++) {
       $random_images_3 .= "";
     }
     $random_images_3 .= "";
   }
}
$random_images_3 .= "</table>\n";
} // end else


$site_template->register_vars("random_images_3", $random_images_3);
unset($random_images_3);

//----- End Random Images_3---------
step 3:
 :arrow:
you made a new template in template/default: thumbnail_bit_potm :
Code: [Select]
<div align="center">{thumbnail}<br>
  <b>{image_name}</b> {if image_is_new}<sup class="new">{lang_new}</sup>{endif image_is_new} {if image_is_potm} <sup class="new">{lang_potm}</sup> {endif image_is_potm}</div>
step 4:
 :arrow:
in user_logininfo.html/user_loginform.html or home.html insert this:
Code: [Select]
{random_images_3}
i hope it works...
Title: Re: Picture of the month
Post by: HorrorCrafT on August 30, 2006, 03:48:35 PM
hey, thank you very much! i test the code and give feedback to you - my wonderful english i know  :D :D

in deutsch würde es besser gehen - ich bedanke mich recht herzlich und werde den code heute abend einbauen. so richtig testen kann ich ihn allerdings erst ab 1. september da mein "picture of the month" erst seit ca. einer woche läuft und es deshalb noch kein bild des monats für die anzeige gibt.

danke dir für deine mühe!!
Title: Re: Picture of the month
Post by: HorrorCrafT on September 01, 2006, 12:45:28 AM
hello Loda!

now, i have tested your code an get this error:

Code: [Select]
Warning: implode() [function.implode]: Bad arguments. in /is/htdocs/wp1008189_Y0VAU6S438/www.hypofun.com/pixgalerie/index.php on line 158

DB Error: Bad SQL Query: SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_media_file, i.image_thumb_file, i.image_rating, i.image_votes, i.image_comments, c.cat_name, u.user_name, i.image_downloads, i.image_hits, i.image_potm, i.image_potm_date, i.image_potm_votes FROM 4imagesimages i, 4imagescategories c LEFT JOIN 4imagesusers u ON (u.user_id = i.user_id) WHERE i.image_active = i.image_potm AND c.cat_id = i.cat_id AND i.cat_id IN (0, 37, 44, 47, 50, 55, 32, 22, 14, 18, 20, 38, 60, 54, 25, 43, 23, 17, 7, 26, 46, 33, 42, 40, 15, 59, 53, 12, 24, 13, 16, 45, 27, 34, 41, 57, 49, 19, 35, 6, 56, 48, 28, 21, 52, 36, 29, 51, 30, 8, 9, 31, 10, 11) AND i.cat_id IN () ORDER BY i.image_potm_date DESC LIMIT 1
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY i.image_potm_date DESC LIMIT 1' at line 4

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /is/htdocs/wp1008189_Y0VAU6S438/www.hypofun.com/pixgalerie/includes/db_mysql.php on line 116

do you have an idea what's wrong? :D

thanks for your help!!

here is my index and page_header.php:
Title: Re: Picture of the month
Post by: Loda on September 01, 2006, 07:14:28 AM
i think you have mysql version 5?
than you have to insert (  )
change step 2 with this:
 :arrow:
Code: [Select]
//------------------------------------
//------- Random Images_3 --------------
//------------------------------------

$sql = "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_media_file, i.image_thumb_file, i.image_rating, i.image_votes, i.image_comments, c.cat_name, u.user_name, i.image_downloads, i.image_hits, i.image_potm, i.image_potm_date, i.image_potm_votes
       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_active = i.image_potm AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").") AND i.cat_id IN (".implode(", ", $cat_in).")
        ORDER BY  i.image_potm_date DESC
        LIMIT 1";
     // end new
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);

if (!$num_rows)  {
  $new_images = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
 $new_images .= "</td></tr></table>";
}
else  {
$random_images_3 = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";
$count = 1;
$bgcounter = 1;
while ($image_row = $site_db->fetch_array($result)){
   if ($count == 0) {
     $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
     $random_images_3 .= "<tr class=\"imagerow".$row_bg_number."\">\n";
   }
   $random_images_3 .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";

   show_image($image_row);
   $random_images_3 .= $site_template->parse_template("thumbnail_bit_potm"); // original code

   $random_images_3 .= "\n</td>\n";
   $count++;
   if ($count == $config['image_cells']) {
     $random_images_3 .= "</tr>\n";
     $count = 0;
   }
} // end while

if ($count > 0)  {
   $leftover = ($config['image_cells'] - $count);
   if ($leftover >= 1) {
     for ($f = 0; $f < $leftover; $f++) {
       $random_images_3 .= "";
     }
     $random_images_3 .= "";
   }
}
$random_images_3 .= "</table>\n";
} // end else


$site_template->register_vars("random_images_3", $random_images_3);
unset($random_images_3);

//----- End Random Images_3---------
Title: Re: Picture of the month
Post by: Stoleti on September 01, 2006, 08:14:06 AM
and what show the last month winner at main page ???

 :wink:
Title: Re: Picture of the month
Post by: HorrorCrafT on September 01, 2006, 09:54:53 AM

hmmm, my statistic say i use mysql 4.1.15 and php 5.1.5
i check your changes after weekend. i'm now in italy for 3 days :D

thanks for your help again!! :D

@Stoleti:

with {random_images_3} you can show last winner pic on mainpage (insert this code in home.html - see also Loda changelog posting)
Title: Re: Picture of the month
Post by: Loda on September 01, 2006, 12:48:51 PM
also bei mir geht es.
@HorrorCrafT : vielleicht bastelst du ein wenig mit step zwei mal rum.. ich habe es nochmals im letzten posting geupdatet. es liegt bei dir wohl an der "if (!$num_rows)  {" bla bla sache...
Title: Re: Picture of the month
Post by: HorrorCrafT on September 01, 2006, 01:11:33 PM
okay, danke für die info! ich probier's mal mit der klammer und wenn das auch nicht geht dann meld ich mich nochmals. leider bin ich in php zu wenig fitt als dass ich da im code wild selber rumbasteln könnte. kleinigkeiten check ich ja noch aber sobald ich irgendwelche tabellenzugriffe auf die mysql datenbank anpassen muss, reicht mein wissen nicht mehr aus. in der von dir genannten zeile bräucht ich dann halt nochmals hilfe von dir. würde es gerne noch heute testen, geht sich aber leider nicht mehr aus. ich melde mich montag oder dienstag wieder.

ist nett, dass mir weiterhilfst, danke!
Title: Re: Picture of the month
Post by: Stoleti on September 05, 2006, 04:27:52 AM
Warning: implode(): Bad arguments. in /home2/****/public_html/index.php on line 216

DB Error: Bad SQL Query: SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_media_file, i.image_thumb_file, i.image_rating, i.image_votes, i.image_comments, c.cat_name, u.user_name, i.image_downloads, i.image_hits, i.image_potm, i.image_potm_date, i.image_potm_votes FROM (4images_images i, 4images_categories c) LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = i.image_potm AND c.cat_id = i.cat_id AND i.cat_id IN (0, 1, 9, 35) AND i.cat_id IN () ORDER BY i.image_potm_date DESC LIMIT 1
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY i.image_potm_date DESC LIMIT 1' at line 4

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home2/****/public_html/includes/db_mysql.php on line 116


Both codes for MySQL 4.XX or for MySQL 5 , give me this error at index.php
Title: Re: Picture of the month
Post by: V@no on September 05, 2006, 06:17:50 AM
1) please use BBCode when quote something
2) and on line 216 in index.php is...it should be the obvious first thing one should look at when see any error messages...
3) I dont see anything in the instructions about modifications in index.php
Title: Re: Picture of the month
Post by: HorrorCrafT on September 05, 2006, 11:20:34 PM
Loda, ich hab es nun nochmals versucht, leider ohne erfolg. es kommt die selbe fehlermeldung wie oben gepostet :cry:

also bei mir ist es die zeile 158 in der index.php:
Code: [Select]
WHERE i.image_active = i.image_potm AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").") AND i.cat_id IN (".implode(", ", $cat_in).")die offenbar probleme macht (siehe fehlermeldung oben). leider hab ich keine ahnung wie so ein sql aufruf funktioniert, deshalb kann ich da überhaupt nichts umschreiben. hast du vielleicht noch eine idee? an den klammern liegt es jedenfalls nicht, es muss offenbar ein fehler in dieser zeile geben?

ich habe in der index.php einen weiteren sql aufruf der schon immer drinn war und auch funktioniert:
Code: [Select]
$sql = "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".$additional_sql.", c.cat_name".get_user_table_field(", u.", "user_name")."
        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_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN").")
        ORDER BY i.image_date DESC
        LIMIT $num_new_images";
der grundsätzliche sql aufruf deiner modifikation ist also korrekt und erhärtet die annahme dass lediglich in der zeile 158 was nicht stimmt.

V@no, i don't understand your point 3. it's needful to modification the index.php! you are also a php guru - any idea what's wrong? :D
Title: Re: Picture of the month
Post by: V@no on September 06, 2006, 12:37:45 AM
V@no, i don't understand your point 3. it's needful to modification the index.php! you are also a php guru - any idea what's wrong? :D
Where does it say anything about index.php? I dont see it in the instructions from http://www.dignado.de/MOD_potm.zip package.
Title: Re: Picture of the month
Post by: HorrorCrafT on September 06, 2006, 01:08:59 AM
V@no you are right but we have a discussion how can i see the last "picture of the month" winner on home.html (under random image) - this addon is not in the official MOD but a nice extension :D
Title: Re: Picture of the month
Post by: Loda on September 06, 2006, 02:05:03 PM
hallo!
@ horrorcraft: dann tausche deine zeile doch mal gegen dieses aus:
Code: [Select]
WHERE i.image_active = i.image_potm
Title: Re: Picture of the month
Post by: V@no on September 06, 2006, 02:19:12 PM
V@no you are right but we have a discussion how can i see the last "picture of the month" winner on home.html (under random image) - this addon is not in the official MOD but a nice extension :D
Oh, I see...I guess Loda either has some other code that generates a $cat_in array, or they forget add that part in their tutorial...there is no such variable as $cat_in in the default index.php - thats the problem...
Title: Re: Picture of the month
Post by: HorrorCrafT on September 06, 2006, 07:29:15 PM
thanks for this hint V@no!

Loda, dein tipp war auch klasse denn jetzt funktioniert's!!!!! :D :D :D werd jetzt noch schauen ob ich die überschrift (z.b. "bild des monats august") noch ohne hilfe hinbekomme, dann bin ich wunschlos glücklich :D

thanks for great job Loda and V@no!

EDIT: ich bin so schlecht ... Loda, falls du noch einen tipp hast wie ich das datum in die index.php bekomme, dann kannst das gerne posten, ist aber nicht mehr so wichtig - nice to have wie man so schön sagt :D
Title: Re: Picture of the month
Post by: Stoleti on September 06, 2006, 09:51:40 PM
1) please use BBCode when quote something
2) and on line 216 in index.php is...it should be the obvious first thing one should look at when see any error messages...
3) I dont see anything in the instructions about modifications in index.php

Check step 2 by Loda ;) theres the step to added code at index.php

line 216 is :

Quote
WHERE i.image_active = i.image_potm AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").") AND i.cat_id IN (".implode(", ", $cat_in).")

and also
Quote
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY i.image_potm_date DESC LIMIT 1' at line 4

code:

Quote
        ORDER BY  i.image_potm_date DESC
        LIMIT 1";

 :|
Title: Re: Picture of the month
Post by: HorrorCrafT on September 06, 2006, 11:38:39 PM
Stoleti,

replace in index.php code:
Code: [Select]
WHERE i.image_active = i.image_potm AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").") AND i.cat_id IN (".implode(", ", $cat_in).")
with:
Code: [Select]
WHERE i.image_active = i.image_potm
then it works perfect!! (see posts from Loda and V@no)
Title: Re: Picture of the month
Post by: lemccoy on September 08, 2006, 02:34:53 PM
OK I have two questions. 

First, is there anyway to reset the pictures?  I am installing now, and while it works, I didn't have the right settings setup.  I don't want to wait until next month. 

Second, has anyone done a select by random image or hand pick option?

Thanks!
Title: Re: Picture of the month
Post by: Loda on September 08, 2006, 04:22:56 PM
Stoleti,

replace in index.php code:
Code: [Select]
WHERE i.image_active = i.image_potm AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").") AND i.cat_id IN (".implode(", ", $cat_in).")
with:
Code: [Select]
WHERE i.image_active = i.image_potm
then it works perfect!! (see posts from Loda and V@no)
i have update my first posting...
Title: Re: Picture of the month
Post by: HorrorCrafT on September 08, 2006, 04:41:50 PM

Loda, du könntest diesen script auch gleich noch in dein erstes posting packen weil ich denke die überschrift zum bild des monats dürfte auch für andere noch interessant sein, meinste nicht?

Quote from: Loda

ein tipp mit der überschrift:
in der page_header.php einfach mal unter:
Code: [Select]
"lang_potm_link" => $lang['potm_link'],das einfügen:
Code: [Select]
"lang_potm_home" => $lang['potm_home'],dann in deiner lang/main.php über ?>
Code: [Select]
$lang['potm_home'] = "Foto des Monats";dann in deiner thumbnail_bit_potm dieses:
Code: [Select]
<div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="head2" height="18"> <img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" /> {lang_potm_home}
      <script>
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("So","Mo","Di","Mi","Do","Fr","Sa")
var montharray=new Array("Januar","Februar","M&auml;rz","April","Mai","Juni","July","August","September","Oktober","November","Dezember")
document.write(""+montharray[month-1]+" "+year+"</>")
</script>      </td>
  </tr>
  <tr>
    <td class=""><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
  </tr>
  <tr>
    <td class=""><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
  </tr>
</table>
{thumbnail}<br>
  <b>{image_name}</b> {if image_is_new}<sup class="new">{lang_new}</sup>{endif image_is_new} {if image_is_potm} <sup class="new">{lang_potm}</sup> {endif image_is_potm}</div>

Title: Re: Picture of the month
Post by: V@no on September 09, 2006, 01:37:09 AM
Stoleti,

replace in index.php code:
Code: [Select]
WHERE i.image_active = i.image_potm AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").") AND i.cat_id IN (".implode(", ", $cat_in).")
with:
Code: [Select]
WHERE i.image_active = i.image_potm
then it works perfect!! (see posts from Loda and V@no)
I dont think it works perfect...unless you dont use any permissions in the categories...
it could work alright if you remove just AND i.cat_id IN (".implode(", ", $cat_in).") from that line, but replace the way you did only makes more load on the database (it reads everything from categories table) and removes all permission restrictions...
Title: Re: Picture of the month
Post by: HorrorCrafT on September 09, 2006, 12:15:36 PM
okay i have only removed AND i.cat_id IN (".implode(", ", $cat_in).") and it works also without problems. thx V@no!
Title: Re: Picture of the month
Post by: HorrorCrafT on October 01, 2006, 08:03:06 PM
zuerst in deutsch - das kann ich besser:

hab nun die "picture of the month" wahl schon zwei monate am laufen. eingestellt hab ich für die letzte auswahl nach den meisten hits (also 0). bei der ersten auswahl der bilder hat auch alles wunderbar geklappt, bei der zweiten kommen nun die selben bilder nochmal, bis auf jenes das gewonnen hat. das find ich allerdings etwas blöd weil die leute wollen natürlich x neue bilder für die wahl nicht die selben (verlierer) nochmal. gibt es da eine möglichkeit oder ist das halt so? am liebsten wäre mir sowieso wenn ich bilder die zur wahl antreten sollen, irgendwie händisch auswählen könnte. es sind halt meistens nicht die ersten x bilder nach hits, datum oder was auch immer die besten, sondern halt von mir aus auch mal das 50ste in einer kategorie. würd mich echt freuen wenn mir da jemand weiterhelfen kann. vielen dank!

and now in english :oops:
by my last "picture of the month" poll i took the setting 0 (by hits) for picture selection. now, one month later i thought the system needs the next x pictures by most hits but it takes the same pictures only without the winner - thats not very good because people want x new pictures for vote. how can i get the next x pictures by most hits, date or whatever without the looser of the poll before or how can i select pictures for the poll manually? THANKS for help!!
Title: Re: Picture of the month
Post by: desperate_housewif on October 02, 2006, 11:17:50 AM
Mein Picture of the month läuft bereits in der Testphase. Nach dem ersten Monatsablauf erscheint nirgends ein Link auf eine Seite zum Gewinner des letzten Monats. Fehlt etwas bei mir oder muß ich per Hand nacharbeiten (das wird schwierig).
Title: Re: Picture of the month
Post by: HorrorCrafT on October 03, 2006, 11:35:08 PM
php gurus was ist los? :D gibt es vielleicht eine möglichkeit auch die "verlierer" bilder wie das bild welches die wahl gewonnen hat zu "markieren" damit bei der nächsten wahl wieder komplett neue bilder angezeigt werden und nicht nur das gewinner-bild aussortiert wird? wäre eine idee, hab aber leider zu wenig php kenntnisse um das selber umzusetzen. vielleicht gibt es auch eine andere möglichkeit? ich weiss, freizeit ist ein wertvolles gut, aber vielleicht kann das ja jemand auch für sich nutzen? würd mich über feedback freuen, danke!!

is there a way to mark "looser" pics too, not only the winner pic so that in the next round all pics are new? its an idea but my php knowledge is not so perfect to make it same. thanks for your trouble!!
Title: Re: Picture of the month
Post by: desperate_housewif on October 18, 2006, 05:16:03 PM
Haaaallo, ist noch ein Verlierer!

Nochmal, die Bilder werden wahrlos aus meinem Pool herausgegriffen. Die Sortierung sollte aber sein:

1. Einstelldatum des vergangenen Monats
2. Anzahl der Bewertungen
3. Anzahl der Hits.
Title: Re: Picture of the month
Post by: Darkness2001 on October 23, 2006, 07:23:45 PM
so, hab mir diesen MOD auch mal angeschaut und eingebaut.

warum neben dem bild nur ":" und kein "Benutzer:" oder "Kategorie:" steht oder warum der {potm_menu_link} link nicht sichtbar ist, ist ein bug der sich durch die gesamte potm.php zieht und zwar folgendermaßen:

ursprünglicher scriptauszug aus der potm.php:

$potm_menu .= "<br>{lang_top_category}: " . "<a href=\"".$site_sess->url(ROOT_PATH. .... usw.

das "<br>{lang_top_category}: " kann so nicht aufgelöst werden und muss umgeschrieben werden auf:

$potm_menu .= "<br>".$lang['top_category'].": " . "<a href=\"".$site_sess->url(ROOT_PATH. .... usw.

nun kann die sprachvariable aus der main.php gezogen und hier angezeigt werden. wenn ihr also auch die linkvariablen so umschreibt, werden sie auch in der 1.7.1er version sichtbar.

eine späte info, ich weiss, aber das hätte eigentlich der programmierer dieses MODs oder einer der großen zampanos hier, korrigieren müssen :wink: :D ansonsten aber ein feiner MOD!!! danke dafür!


Hi,

thanks for this  :lol:

Greez Darkness
Title: Re: Picture of the month
Post by: desperate_housewif on October 24, 2006, 12:16:55 PM
Ist mir auch schon als "Anfänger" aufgefallen. Habe das dann gelöscht und mit Freitext versehen. Funktioniert dann aber eben nur in deutsch.
Habe es geändert und funktioniert wunderbar, der gleiche entsteht aber auch bei "Mitglied". Wie ändere ich diesen Bereich? Und hat für meine obigen Fragen noch jemand eine Antwort?
Title: Re: Picture of the month
Post by: Darkness2001 on October 29, 2006, 08:09:51 PM
Hallo,

habe den Mod eingebaut und alles lief...

jetzt bekomme ich auf einmal diese Fehlermeldung, wer weiss RAT ?

DB Error: Bad SQL Query: SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_media_file, i.image_thumb_file, i.image_rating, i.image_votes, i.image_comments, c.cat_name, u.user_name, i.image_downloads, i.image_hits, i.image_potm, i.image_potm_date, i.image_potm_votes FROM 2_images i, 2_categories c, 2_users u WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND i.cat_id = c.cat_id AND i.user_id = u.user_id ORDER BY LIMIT
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT' at line 5


Greez Darkness  :mrgreen:
Title: Re: Picture of the month
Post by: ipicture on November 01, 2006, 09:42:47 AM
am liebsten wäre mir sowieso wenn ich bilder die zur wahl antreten sollen, irgendwie händisch auswählen könnte. es sind halt meistens nicht die ersten x bilder nach hits, datum oder was auch immer die besten, sondern halt von mir aus auch mal das 50ste in einer kategorie. würd mich echt freuen wenn mir da jemand weiterhelfen kann. vielen dank!

and now in english :oops:
by my last "picture of the month" poll i took the setting 0 (by hits) for picture selection. now, one month later i thought the system needs the next x pictures by most hits but it takes the same pictures only without the winner - thats not very good because people want x new pictures for vote. how can i get the next x pictures by most hits, date or whatever without the looser of the poll before or how can i select pictures for the poll manually? THANKS for help!!

Ich habe den Mod auch neu installiert. Die Auswahl der Bilder habe ich ganz einfach so beeinflusst, dass ich in phpMyAdmin unter "XXX_images" -> "Suche" -> "image_name" immer eins der gewünschten Bilder in der DB ausfindig gemacht habe. Anschließend Eintrag markieren/ändern (Bleistift) klicken. In dem Feld "image_potm_date" jetzt einfach das Datum des Monats eintragen, z.B. 2006-11-01. Das wiederholen mit allen gewünschten Bildern. Man kann auch schon die nächsten Monate vorkonfigurieren, z.B. 2006-12-01 usw. Alle anderen bleiben auf 0000-00-00.
Vielleicht kann ein PHP-Profi das entsprechende DB-Feld im Admin unter "Bilder" hinzufügen...

I have installed this mod also. Due to manual selection of the pictures by the admin I did this: Go in phpMyAdmin -> "XXX_images" -> "Search" -> "image_name" find  the picture by name and edit it -> "image_potm_date" type the first of the month you wish f.e. 2006-11-01. Repeat this with the other pics. You can configure also the next months f.e. 2006-12-01. All not used pics stay on 0000-00-00. Maybe a php-profi can add the specified field in the admin menu under pictures.

My Demo: http://www.ipicture.de/4images/potm.php

Gruß
Klaus
Title: Re: Picture of the month
Post by: andreoid on November 01, 2006, 11:41:17 AM
Hallo Leute
Ich grüsse alle


Es ist mein erster Beitrag hier, aber ich bin Fan von 4images seit zwei Jahre und bis jetzt habe ich keine großen Probleme  gehabt. [Dank gelesenen Posten aus diesem Forum]

Viele dank für alle, die so hielfreicht  mit den rat und wiesen  anderen helfen.
Ganz großen LOB an Euch
.


Aber ich habe jetzt ein Problem, genauso wie  Darkness2001,
ich schätze es ist  nach den update vom 1.7.3 auf  1.7.4 passieret. Genau kann ich auch nicht sagen.
[leider habe ich nicht aufgepasst]

Wenn jemand möchte Voten bei  Picture of the month, dann  kommt diese Fehlermeldung:

Quote
DB Error: Bad SQL Query: SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_thumb_file, i.image_media_file, i.image_thumb_file, i.image_rating, i.image_votes, i.image_comments, c.cat_name, u.user_name, i.image_downloads, i.image_hits, i.image_potm, i.image_potm_date, i.image_potm_votes FROM 4images_images i, 4images_categories c, 4images_users u WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND i.cat_id = c.cat_id AND i.user_id = u.user_id ORDER BY LIMIT
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT' at line 5

Hat vielleicht jemand eine Lösung?

Hier link:  http://www.an-net24.com/serwis/galeria_pl/potm.php
Title: Re: Picture of the month
Post by: desperate_housewif on November 01, 2006, 06:41:08 PM
Quote
hab nun die "picture of the month" wahl schon zwei monate am laufen. eingestellt hab ich für die letzte auswahl nach den meisten hits (also 0). bei der ersten auswahl der bilder hat auch alles wunderbar geklappt, bei der zweiten kommen nun die selben bilder nochmal, bis auf jenes das gewonnen hat. das find ich allerdings etwas blöd weil die leute wollen natürlich x neue bilder für die wahl nicht die selben (verlierer) nochmal.
Den gleichen Fehler wie horrorcraft habe ich jetzt auch! Und Änderungen von der Sortierreihenfolge in der potm.php werden ignoriert. Will aber auch nicht bis zum nächsten Monat warten, der hat gerade erst begonnen!
Title: Re: Picture of the month
Post by: HorrorCrafT on November 07, 2006, 01:17:31 PM
Ich habe den Mod auch neu installiert. Die Auswahl der Bilder habe ich ganz einfach so beeinflusst, dass ich in phpMyAdmin unter "XXX_images" -> "Suche" -> "image_name" immer eins der gewünschten Bilder in der DB ausfindig gemacht habe. Anschließend Eintrag markieren/ändern (Bleistift) klicken. In dem Feld "image_potm_date" jetzt einfach das Datum des Monats eintragen, z.B. 2006-11-01. Das wiederholen mit allen gewünschten Bildern. Man kann auch schon die nächsten Monate vorkonfigurieren, z.B. 2006-12-01 usw. Alle anderen bleiben auf 0000-00-00.
Vielleicht kann ein PHP-Profi das entsprechende DB-Feld im Admin unter "Bilder" hinzufügen...

I have installed this mod also. Due to manual selection of the pictures by the admin I did this: Go in phpMyAdmin -> "XXX_images" -> "Search" -> "image_name" find  the picture by name and edit it -> "image_potm_date" type the first of the month you wish f.e. 2006-11-01. Repeat this with the other pics. You can configure also the next months f.e. 2006-12-01. All not used pics stay on 0000-00-00. Maybe a php-profi can add the specified field in the admin menu under pictures.

My Demo: http://www.ipicture.de/4images/potm.php

Gruß
Klaus

servus Klaus! vielen dank für diesen genialen tipp! ist zwar ein bisschen aufwändig aber das stört mich nicht. allerdings hab ich ein nicht unentscheidendes problem: meine bilder nummeriere ich in jeder kategorie von 0 bis xx durch, bei der suche des image_name finde ich natürlich 100e 001er bilder ... aber während des schreibens hab ich mir die frage grad selber beantwortet: ich suche einfach nach cat_id und dann ist alles im grünen bereich! :mrgreen:

besten dank nochmal für diesen tipp!!
Title: Re: Picture of the month
Post by: realmasterd on November 24, 2006, 06:25:35 PM
downloadlink auf seite 1 geht nicht.

hat jemand nen anderen?

greetz
Title: Re: Picture of the month
Post by: HorrorCrafT on November 28, 2006, 04:18:34 PM
ich hab den MOD noch im urzustand auf meiner platte und kann ihn dir am abend auf meinen webspace laden und einen entsprechenden link posten.
Title: Re: Picture of the month
Post by: HorrorCrafT on November 28, 2006, 07:55:31 PM
amam i hope it's okay for you. if not, i delete my download link promptly!

hier der link zum download: http://www.koebs.org/Download/MOD_potm.zip
Title: Re: Picture of the month
Post by: desperate_housewif on December 01, 2006, 06:46:48 PM
Wieder ein neuer Monat, wieder die gleichen Bilder wie in den letzten Monaten. Lediglich der Gewinner ist weg. Das kann doch sonicht richtig sein!
Title: Re: Picture of the month
Post by: HorrorCrafT on December 03, 2006, 04:42:42 PM
desperate_housewif, du musst das datum händisch setzen wie Klaus ein paar postings weiter oben beschrieben hat wenn du eine individuelle und unterschiedliche auswahl von bildern haben möchtest. per phpmyadmin ist das ein kinderspiel.

one question i have: wehn i select pictures by hand (set date with phpmyadmin), can i remove this script in potm.php?

Code: [Select]
//-----------------------------------------------------
//--- Check Date --------------------------------------
//-----------------------------------------------------

$datum = date("Y-m") . "-01";
if ( $config['potm_date'] != $datum )
{
   if ( $potm_selection == 4 )
      $potm_selection = date("m") % 4;
   if ( $potm_selection == 0 )
      $sql_add = "hits";
   elseif ( $potm_selection == 1 )
       $sql_add = "votes";
   elseif ( $potm_selection == 2 )
       $sql_add = "rating";
   else
       $sql_add = "date";
   $sql = "UPDATE ".IMAGES_TABLE."
          SET image_potm =  1
          WHERE image_potm_date = '".$config['potm_date']."'
          ORDER BY image_potm_votes DESC
          LIMIT 1";
   $site_db->query($sql);
   $sql = "UPDATE ".IMAGES_TABLE."
          SET image_potm_date =  '0000-00-00', image_potm_votes = 0
          WHERE image_potm_date = '".$config['potm_date']."' AND image_potm = 0";
   $site_db->query($sql);
   $sql = "UPDATE ".IMAGES_TABLE."
          SET image_potm_date =  '".$datum."'
          WHERE image_potm = 0
          ORDER BY image_".$sql_add." DESC
          LIMIT ".$potm_nop;
   $site_db->query($sql);
   $sql = "UPDATE ".SETTINGS_TABLE."
          SET setting_value =  '".$datum."'
          WHERE setting_name = 'potm_date'";
   $site_db->query($sql);
}

i got last month too many pictures because the system select also pictures :mrgreen:

EDIT:

i have tested it and i think it's okay but i think you need the line
Code: [Select]
$datum = date("Y-m") . "-01";
if it not correct, please tell me the right answer. THX!!
Title: Re: Picture of the month
Post by: desperate_housewif on December 03, 2006, 06:55:29 PM
Aber das kann doch nicht Sinn und Zweck des ganzen Mods sein, dass ich jeden Monat einen riesen Aufwand betreiben muss. Bei anderen scheint es ja auch zu laufen.
Ist das richtig, wenn ich Einstellungen in der potm.php mache und ich keinen Monat warten will, das ich im Bereich
Code: [Select]
$datum = date("Y-m") . "-01";z.B. am 2. der Monats in die Zeile "-03" eingeben muss und die Änderungen dann am nächsten Tag laufen?
Title: Re: Picture of the month
Post by: desperate_housewif on December 03, 2006, 07:13:42 PM
Aber das kann doch nicht Sinn und Zweck des ganzen Mods sein, dass ich jeden Monat einen riesen Aufwand betreiben muss. Bei anderen scheint es ja auch zu laufen.
Ich muss nicht unbedingt bestimmte Bilder heraussuchen, es sollen nur jeden Monat andere Bilder erscheinen. Und praktischerweise die Bilder das Monats, die bereits die höchsten Bewertungen haben.
Da bei mir den dritten Monat in Folge immer die gleichen Bilder angezeigt werden, wirds für die Bewertenden auch langweilig.

Ist das richtig, wenn ich Einstellungen in der potm.php mache und ich keinen Monat warten will, das ich im Bereich
Code: [Select]
$datum = date("Y-m") . "-01";z.B. am 2. der Monats in die Zeile "-03" eingeben muss und die Änderungen dann am nächsten Tag laufen?
Title: Re: Picture of the month
Post by: ipicture on December 04, 2006, 08:29:42 AM
Ist das richtig, wenn ich Einstellungen in der potm.php mache und ich keinen Monat warten will, das ich im Bereich
Code: [Select]
$datum = date("Y-m") . "-01";z.B. am 2. der Monats in die Zeile "-03" eingeben muss und die Änderungen dann am nächsten Tag laufen?

Ich hab das noch nicht probiert, ob die Anpassung in der DB auch für jeden Tag möglich ist. Wenn Du erst heute, am 4.12. bestimmte neue Bilder in die Auswahl "Foto des Monats" Dezember bestimmen willst, Suche Dir die 5 aus und gib ein: 2006-12-01. Welche Bilder werden dann bei Dir angezeigt?
Gruß
Klaus
Title: Re: Picture of the month
Post by: HorrorCrafT on December 04, 2006, 10:40:16 AM
es müsste einen zufallsgenerator geben damit wirklich immer unterschiedliche bilder zur auswahl stehen. also ich finde es nicht einen riesen aufwand, bei 10 (oder 8) bildern schnell ein datum einzutragen, im gegenteil, so kann ich mir wirklich 10 (oder 8) coole bilder selber aussuchen. ich weiss nicht wie es bei anderen ist aber ich hatte ja auch das problem dass wenn ich eine bestimmte auswahl in der potm.php eingestellt hatte (z.b. nach hits) dann sind bis auf den gewinner, nächsten monat wieder die selben bilder zur auswahl gestanden. ist irgendwie auch wieder logisch weil das sind schließlich jene bilder mit den meisten hits. also ich bin zufrieden mit der händischen auswahl. ist eine sache von nicht mal 5 minuten. also das sind mir meine user schon wert :wink: :mrgreen: :mrgreen:
Title: Re: Picture of the month
Post by: HorrorCrafT on January 02, 2007, 10:18:09 AM
ich hab mit dem neuen monat herausgefunden dass mit meinem vorschlag, einen gewissen script teil aus der potm.php zu löschen, etwas nicht ganz passt. ich bekomm seither auf der startseite bei der überschrift des gewinner bildes "Bild des Monats undefined 2007" und der wert "image_potm" wird am ende des monats nicht mehr automatisch auf 1 gesetzt was notwendig ist damit dieses bild als sieger gekennzeichnet ist.
den script teil habe ich deshalb gelöscht weil zu beginn des monats dezember bei händischem eintrag des "image_potm_date" per phpmyadmin das system noch zusätzlich bilder hinzugefügt hat, statt nur meine händisch eingetragenen zu nehmen. das hat jetzt im jänner zwar geklappt aber dafür ist der gewinner nicht sauber abgehandelt. falls jemand einen tipp für mich hat, welcher code tatsächlich gelöscht werden kann, dann bitte um info, ansonsten muss ich schauen wo der hund begraben ist aber ich bin leider kein wirkliches php genie :oops: :mrgreen:

EDIT: ich glaube dieses problem mit der überschrift (undefined 2007) haben alle und liegt nicht an meinem weggelöschten code. habe diese fehlermeldung auch auf http://www.loda.de (http://www.loda.de) gesichtet. wie kann dieser fehler behoben werden und welchen code muss ich in der potm.php stehen lassen damit beim sieger bild image_potm am ende eines monats automatisch auf 1 gestellt wird? danke für die hilfe!!

ach ja und allen ein gutes neues jahr!! :mrgreen: :mrgreen:
Title: Re: Picture of the month
Post by: Loda on January 02, 2007, 01:57:45 PM
hallo!
das "undefined 2007 " kommt daher, weil ich den javascriptcode so umgeschrieben habe, dass immer der vormonat eines jahres angezeigt wird.
da es in 2007 keinen monat vor januar eigentlich gibt, erscheint das "undefined"
wenn du diesen monat noch abwartest, erledigt sich das problem von selbst.  :wink:

Title: Re: Picture of the month
Post by: HorrorCrafT on January 02, 2007, 02:55:15 PM
servus Loda!

hab ich mir fast gedacht :mrgreen: ich denke mal es müsste recht einfach möglich sein den monat abzufragen und wenn der 1 ist, muss eine spezielle abhandlung bzgl. des datums passieren? ich probier da am abend mal ein bisschen rum, vielleicht find ich eine einfache lösung.
ein paar postings weiter oben hab ich geschrieben dass ich etwas code aus der potm.php rausgelöscht habe damit das system zu meinen händisch ausgewählten bilder nicht nochmal welche dazufügt. so funktioniert das aber leider nicht. hast du mir einen tipp welchen code ich wirklich rauslöschen darf damit das system die bilder nicht automatisch auswählt aber eben nur diesen teil ausläst? so wie ich es gemacht habe wird z.b. image_potm nicht auf 1 gesetzt was zur folge hat dass das gewinnerbild auf der startseite nicht aktualisiert wird. außerdem zeigt es mir wenn ich meine stimme abgegeben habe und nochmal auf "Bild des Monats Wahl" klicke, die auswahl von der letzten wahl an, wenn ich aber auf den link "Führende Fotos der aktuellen Wahl" klicke, zeigt es die richtige auflistung an. ich denke das hängt alles mit meinem etwas zuviel rausgelöschten code zusammen :mrgreen:
(zu testen unter http://www.hypofun.com (http://www.hypofun.com))
Title: Re: Picture of the month
Post by: HorrorCrafT on January 02, 2007, 09:07:35 PM
so, ich hab ein wenig gebastelt und wen es interessiert, hier ein paar infos:

die "undefined 2007" fehlermeldung hab ich wie folgt gelöst:

suche in thumbnail_bit_potm.html
Code: [Select]
document.write(""+montharray[month-1]+" "+year+"</>")
und ersetze mit
Code: [Select]
       if (month<2) {
        document.write(""+montharray[month+11]+" "+(year-1)+"</>")
       } else {
       document.write(""+montharray[month-1]+" "+year+"</>")
       }

in der potm.php darf doch nicht soviel code auskommentiert/gelöscht werden! wer die bilder per phpmyadmin selber auswählt (indem das image_potm_date händisch gesetzt wird) muss in der potm.php folgenden code auskommentieren/löschen:
Code: [Select]
$sql = "UPDATE ".IMAGES_TABLE."
          SET image_potm_date =  '".$datum."'
          WHERE image_potm = 0
          ORDER BY image_".$sql_add." DESC
          LIMIT ".$potm_nop;
   $site_db->query($sql);

ich hoffe das war's :mrgreen: :mrgreen:
Title: Re: Picture of the month
Post by: redlich on January 13, 2007, 03:39:19 AM
Ich möchte auf meiner Webseite auch ein Bild des Monats integrieren. Das Monatsbild soll aber entweder per Zufall oder im Adminfrontend als Name eingegeben werden können. Also ohne irgenwelche User Abstimmungen oder das man da mit PHPmyAdmin da rumfummeln muss.

Das Bild des Monats hätte ich gern auch zusätzlich auf meiner Startseite, die eine reine HTML Seite ist, die dann auf 4image verweißt.


================================

I will integrate picture of the month on my website too. The picture of Month should be fixed random or in admin frontend by enter name of picture. I do not want a user vote etc. or have to crack things with phpadmin.

I want to show the picture of the month aditional on my startpage what is a normal html site.
Title: Re: Picture of the month
Post by: HorrorCrafT on February 01, 2007, 01:06:59 AM
soooo ... wieder ist ein monat um, wieder gibt es eine wahl zum bild des monats :mrgreen:
erfreulich ist, dass diesen monat bis auf die überschrift zum bild des monats auf der startseite, alles BESTENS geklappt hat (mit händischer auswahl der bilder).

einen kleinen fehler gibt es noch zu beheben in der thumbnail_bit_potm.html und zwar sollte die if abfrage auf den monat natürlich so lauten:
Code: [Select]
if(month==0) {
document.write(""+montharray[month+11]+" "+(year-1)+"</>");
}
else {
document.write(""+montharray[month-1]+" "+year+"</>");
}

ich habe angenommen dass der monat jänner = 1 ist. das ist jedoch falsch, er hat die zahl 0 ... flüchtigkeitsfehler wenn man von javascript keine ahnung hat :wink: :oops: :mrgreen:
Title: Re: Picture of the month
Post by: ccsakuweb on March 16, 2007, 12:30:28 AM
please the url file doesn't work. anyone could atach it??
Title: Re: Picture of the month
Post by: CeJay on March 16, 2007, 07:28:14 AM
please the url file doesn't work. anyone could atach it??
Look at this post and see if it has the correct files attached: http://www.4homepages.de/forum/index.php?topic=7242.msg84059#msg84059

If it does maybe you can attach it somwhere here so it is still available  :wink:
Title: Re: Picture of the month
Post by: ccsakuweb on March 16, 2007, 09:05:40 PM
thank you very much

how could i add potm winner in top pictures page?? (top.php) addon loda's only is for home.html and userinfo
anyone knows how to do this?
Title: Re: Picture of the month
Post by: Loda on March 18, 2007, 09:46:46 AM
hi,
you insert step 2 at the end off page_header.php bevor ?>
now you can use the {random_images_3} tag on every site.
Title: Re: Picture of the month
Post by: ccsakuweb on March 18, 2007, 10:43:38 AM
Thanks!!  :)
I see a picture from December, and this picture hasn't been voted in potm.php, is it working ok?

See it here: http://www.myart.es/potm.php  I see with {random_images_3} a picture different to the winner picture
Title: Re: Picture of the month
Post by: Loda on March 18, 2007, 11:16:53 AM
hi,
no.. do you delete step 2 from the index.php?
if not, you have to do so.
Title: Re: Picture of the month
Post by: ccsakuweb on March 18, 2007, 11:42:08 AM
ok, I changed and there isn't any change.. . the picture still is there
Title: Re: Picture of the month
Post by: Loda on March 18, 2007, 01:07:05 PM
hmm..
i see the photo "imagen sencilla"...
where are the other winners? where can i find the last winners on your site?
Title: Re: Picture of the month
Post by: ccsakuweb on March 18, 2007, 06:18:39 PM
it the first time that i install this mod.. and.. i don't see any link with this mod to the last month..
I think that it would be here http://www.myart.es/potm.php?action=lw but.. the last month nobody vote in potm.php

Imagen sencilla is from December and the picture of the month must be Gatita Kawaii because is more voted and winner in the ranking

I installed too Picture of the day but I added your addon that it show a picture from this month is here: http://www.myart.es/top.php The picture is Gatita Kawaii . POTD mod with your addon is really Picture of the month?? the difference is that in potd you can't vote them right?

It would be nice that potm works in my site.. but i think that "Imagen sencilla" isn't the picture winner of the month
Title: Re: Picture of the month
Post by: Loda on March 18, 2007, 07:35:18 PM
hi,
potd has nothing to do with this mod..
maybe ist will not works with the version 1.7.3... i don't know.
Title: Re: Picture of the month
Post by: ccsakuweb on March 18, 2007, 07:41:11 PM
potd has nothing to do with this mod..

yeah.. I know.. but i don't see potm winner with your addon .. .  :roll: you hed seen it T_T

 thank you so much for your quick replys and for your help
Title: Re: Picture of the month
Post by: masterred on January 30, 2008, 09:38:46 AM
hi

how can resize the image in index.php, change {thumbnail} for {image} in thumbnail_bit_potm.html

thanks
Title: Re: Picture of the month with 1.7.6.
Post by: ipicture on March 14, 2008, 07:07:10 PM
Does somebody tried to use this mod with the actual Version 1.7.6. ? At my page no radio button to vote and no link to previous votes are shown...