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

0 Members and 1 Guest are viewing this topic.

Offline HorrorCrafT

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • HYPOfun online
Re: Picture of the month
« Reply #135 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)

Offline HorrorCrafT

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • HYPOfun online
Re: Picture of the month
« Reply #136 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:

Offline redlich

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Picture of the month
« Reply #137 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.
« Last Edit: January 13, 2007, 05:01:37 PM by redlich »

Offline HorrorCrafT

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • HYPOfun online
Re: Picture of the month
« Reply #138 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:

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Picture of the month
« Reply #139 on: March 16, 2007, 12:30:28 AM »
please the url file doesn't work. anyone could atach it??
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline CeJay

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

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Picture of the month
« Reply #141 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?
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: Picture of the month
« Reply #142 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.

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Picture of the month
« Reply #143 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
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: Picture of the month
« Reply #144 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.

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Picture of the month
« Reply #145 on: March 18, 2007, 11:42:08 AM »
ok, I changed and there isn't any change.. . the picture still is there
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: Picture of the month
« Reply #146 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?

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Picture of the month
« Reply #147 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
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: Picture of the month
« Reply #148 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.

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Picture of the month
« Reply #149 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
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more