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

0 Members and 1 Guest are viewing this topic.

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Picture of the month
« Reply #75 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?
: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 KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Picture of the month
« Reply #76 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

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Picture of the month
« Reply #77 on: December 04, 2005, 10:09:27 AM »
search for user_name and replace it with username
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Picture of the month
« Reply #78 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

Offline oswald

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

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Picture of the month
« Reply #80 on: December 10, 2005, 11:24:16 PM »
yes i have phpbb_mod... and the picture_MOD doesn´t work in my site :|
: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 TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: Picture of the month
« Reply #81 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

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: Picture of the month
« Reply #82 on: March 01, 2006, 11:43:53 PM »
Anybody? 

Offline boerdi

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

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: Picture of the month
« Reply #84 on: July 01, 2006, 01:08:51 AM »
Hi!

Did anyone make Photo of the week from this mode?

Offline HorrorCrafT

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

Offline HorrorCrafT

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

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: Picture of the month
« Reply #87 on: August 27, 2006, 06:06:21 PM »
And what about show the Last Month Winner (image) at home.html ???

Offline HorrorCrafT

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • HYPOfun online
Re: Picture of the month
« Reply #88 on: August 28, 2006, 02:42:04 PM »
i'm also interested on this alternative! :D

Offline HorrorCrafT

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • HYPOfun online
Re: Picture of the month
« Reply #89 on: August 30, 2006, 12:00:55 PM »
no php specialist who can help? :cry: