• [Mod] Photo Of The Day 4 0 5 1
Currently:  

Author Topic: [Mod] Photo Of The Day  (Read 268994 times)

0 Members and 1 Guest are viewing this topic.

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #165 on: June 26, 2006, 10:10:00 PM »
Can this Mod be only for a especific categories ?

Offline paburmester

  • Full Member
  • ***
  • Posts: 244
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #166 on: September 20, 2006, 09:36:21 AM »
Code: [Select]
DB Error: Bad SQL Query: 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, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND c.cat_id = i.cat_id ORDER BY i.image_comments DESC LIMIT 1
Unknown column 'i.user_id' in 'on clause'
How can I fix that? Please help me!
Regards,

Offline Zhra

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • Zhra Net
Re: [Mod] Photo Of The Day
« Reply #167 on: November 16, 2006, 06:07:44 PM »
I think the script don't works with version 1.7.4

Offline Yast

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #168 on: November 27, 2006, 08:36:26 PM »
The mod runs without problems in the new version, too. WIth random sort and so on.

Offline Alessio

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Webax.it [Alessio's photogallery]
Re: [Mod] Photo Of The Day
« Reply #169 on: December 15, 2006, 12:08:24 AM »
After installing this mod these errors has occurred

Quote
DB Error: Bad SQL Query: 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, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND c.cat_id = i.cat_id ORDER BY i.image_downloads DESC LIMIT 1
Unknown column 'i.user_id' in 'on clause'

Notice: Undefined index: image_rating in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 336

Notice: Undefined index: image_rating in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 338

Notice: Undefined index: image_rating in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 340

Notice: Undefined index: image_rating in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 342

Notice: Undefined index: image_rating in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 344

Notice: Undefined index: image_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 361

Notice: Undefined index: image_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 366

Notice: Undefined index: cat_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 374

Notice: Undefined index: image_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 378

Notice: Undefined index: cat_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 388

Notice: Undefined index: cat_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 395

Notice: Undefined index: image_media_file in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 400

Notice: Undefined index: image_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 421

Notice: Undefined index: user_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 422

Notice: Undefined index: image_name in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 425

Notice: Undefined index: image_date in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 428

Notice: Undefined index: image_active in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 431

Notice: Undefined index: cat_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 432

Notice: Undefined index: cat_name in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 433

Notice: Undefined index: cat_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 434

Notice: Undefined index: image_downloads in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 435

Notice: Undefined index: image_votes in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 436

Notice: Undefined index: image_rating in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 437

Notice: Undefined index: image_hits in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 438

Notice: Undefined index: image_download_url in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 446

Notice: Undefined index: image_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 448

Notice: Undefined index: image_media_file in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 451

Notice: Undefined index: image_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 451

Notice: Undefined index: cat_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 451

Notice: Undefined index: image_name in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 451

Notice: Undefined index: image_media_file in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 452

Notice: Undefined index: image_thumb_file in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 452

Notice: Undefined index: image_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 452

Notice: Undefined index: cat_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 452

Notice: Undefined index: image_name in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 452

Notice: Undefined index: image_media_file in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 453

Notice: Undefined index: image_thumb_file in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 453

Notice: Undefined index: image_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 453

Notice: Undefined index: cat_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 453

Notice: Undefined index: image_name in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 453

Notice: Undefined index: image_media_file in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 454

Notice: Undefined index: image_thumb_file in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 455

Notice: Undefined index: cat_id in /mounted-storage/home28b/sub001/sc24851-FNHZ/www/includes/functions.php on line 470


« Last Edit: December 21, 2006, 06:39:34 PM by Alessio »
Alessio
my homepage: http://www.webax.it

Offline 1Newbie

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #170 on: December 21, 2006, 05:18:31 AM »
Hi, I downloaded the file from your website for Photo of the day and followed the instructions inside the compressed file.
I'm getting error:

Parse error: syntax error, unexpected $end in /home/MYNAME/public_html/gallery/includes/functions.php on line 38

Here are Lines 36, 37, 38, 39 and 40:

return;   }    $token = serialize(md5($token));    if (isset
($download_token[$token])) {     unset($download_token[$token]);    
$site_sess->set_session_var('download_token', serialize
($download_token));   } }  function check_download_token($token) {
global $site_sess, $user_info;    if ($user_info['user_level'] ==


I used Wordpad for my editing.
Also I just want to make sure that this file: potd_image.html goes in to the templates directory and not the template current being used directory.  I have it in the templates directory as instructed in the instructions.

1Newbie.
« Last Edit: December 21, 2006, 05:29:04 AM by 1Newbie »

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #171 on: December 21, 2006, 07:58:12 AM »
Quote
lso I just want to make sure that this file: potd_image.html goes in to the templates directory and not the template current being used directory.
Yes the potd_image.html goes in the template directory.
I don't know what you mean by "template current being used directory". I have never seen that or heard anything about that.



On my functions.php line 38 I only have:

Code: [Select]
    $download_token = array();I only have a few mods added so I couldn't tell you anymore then that.

Offline 1Newbie

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #172 on: December 21, 2006, 06:17:49 PM »
Quote
lso I just want to make sure that this file: potd_image.html goes in to the templates directory and not the template current being used directory.
Yes the potd_image.html goes in the template directory.
I don't know what you mean by "template current being used directory". I have never seen that or heard anything about that.

On my functions.php line 38 I only have:

Code: [Select]
    $download_token = array();I only have a few mods added so I couldn't tell you anymore then that.

CeJay, Thank you for your help.
I only have the Image Auto Resizer and the Images Moved and Edit Mod.

Anyone else have any ideas what the problem might be?

1Newbie.

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #173 on: December 22, 2006, 12:32:12 AM »
Do you have a back up of functions.php before you did the mod?

If so try moding that again and see if you get the same error.

If all else fails upload the original files before moding for this, then re-mod it all again.
If you read back 3 or 4 pages I had some issues doing this mod as well, but I redid it about 3 times and got it to work.

Offline 1Newbie

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #174 on: December 26, 2006, 05:13:16 AM »
Do you have a back up of functions.php before you did the mod?

If so try moding that again and see if you get the same error.

If all else fails upload the original files before moding for this, then re-mod it all again.
If you read back 3 or 4 pages I had some issues doing this mod as well, but I redid it about 3 times and got it to work.

CeJay, Thank you for your suggestion.  Did you ever figure out what it was giving you your problem?

Which program do you use when you do your editing of PHP files?  Is Wordpad okay to use?

1Newb

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #175 on: December 27, 2006, 08:01:13 PM »
Quote
CeJay, Thank you for your suggestion.  Did you ever figure out what it was giving you your problem?

Which program do you use when you do your editing of PHP files?  Is Wordpad okay to use?
I never found out what was causing the error, except for something I must have did. Because after re-doing it a few times and then double checking everytime I was able to get it to work. Since then I have installed this mod on 3 other friends 4images for them and have had no problems with the install.

I originally used wordpad and found it was better to actually use a php editor.
What I use now is PHP Designer 2007 and have not had any problems since I got that.

Offline vuong184

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #176 on: January 28, 2007, 09:22:53 AM »
Mysite not a title Photo of the day under random images
Demo: http://emtoi.org/gallery/index.php
Help me

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #177 on: January 29, 2007, 01:34:03 AM »
Mysite not a title Photo of the day under random images
Demo: http://emtoi.org/gallery/index.php
Help me
As explained earlier in this thread:
http://www.4homepages.de/forum/index.php?topic=3529.135

Offline NBX

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #178 on: January 30, 2007, 02:38:40 PM »
Hi, i really need this plugin, but i have a problem - It shows:
"An unexpected error occured. Please try again later."
and the picture shows 404 error..
What did i do wrong?

Thanks!

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #179 on: January 30, 2007, 07:37:46 PM »
Hi, i really need this plugin, but i have a problem - It shows:
"An unexpected error occured. Please try again later."
and the picture shows 404 error..
What did i do wrong?

Thanks!
Restore back ups and try again. This mod does work so there must be a problem when you insterted code somewhere.