Author Topic: Picture of the month  (Read 151607 times)

0 Members and 1 Guest are viewing this topic.

Offline Matthias70

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • Bildergalerie
Re: Picture of the month
« Reply #60 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"; 

Offline beseech

  • Full Member
  • ***
  • Posts: 150
    • View Profile
Re: Picture of the month
« Reply #61 on: September 08, 2005, 10:32:51 PM »
looool better than show only ":"

thanks :)

thats some i've forgot .... do on this cases  ;)

Offline yellows

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: Picture of the month
« Reply #62 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

Offline Matthias70

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • Bildergalerie
Re: Picture of the month
« Reply #63 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

Offline yellows

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: Picture of the month
« Reply #64 on: September 11, 2005, 12:21:20 AM »
ok cheers for quick reply

Offline universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: Picture of the month
« Reply #65 on: September 14, 2005, 01:11:37 PM »
http://www.funny.lt/potm.php

Can someone say why it won`t work...?
Again this addres?!
http://www.funny.lt

Offline elcorazon

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: Picture of the month
« Reply #66 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


Offline Toso

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Lachs & Leder
Re: Picture of the month
« Reply #67 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?

Offline degmore

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: Picture of the month
« Reply #68 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?

Offline degmore

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: Picture of the month
« Reply #69 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:

Offline Toso

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Lachs & Leder
Re: Picture of the month
« Reply #70 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:

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Picture of the month
« Reply #71 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...

Offline Toso

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Lachs & Leder
Re: Picture of the month
« Reply #72 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:

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Picture of the month
« Reply #73 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...

Offline Toso

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Lachs & Leder
Re: Picture of the month
« Reply #74 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...