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

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

0 Members and 1 Guest are viewing this topic.

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #135 on: August 31, 2005, 10:51:57 AM »
My problem is no text appears over the photo of the day picture thumbnail. Nothing. I did edit /lang/english/main.php but i'm not sure what went wrong. is there any specific place to add the new lines? or can anyone give me the main.php file?

I GOT this problem Too :(

Someone can help-me?

I install the Photo Of The Day.. but... no text appears over the photo of the day picture thumbnail too :(


Not sure what text you are looking to have.
If you only want it to say Photo of the Day then you will need to edit your potd_image.html file and add the text yourself.

Here is what I did:
Code: [Select]
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr><td class="head2" height="20" align="center"><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />Photo
   of The Day</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 />{thumbnail}<br /><b>{image_name}</b><br /></td></tr>
  <tr><td align="center" class="row1">{lang_potd_type}<br />Image by Hits<br /></td></tr>
  <tr><td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td></tr>
</table>

As you can see I also edited the botton to say "Image by Hits". You can also change this to say what ever you want.

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #136 on: August 31, 2005, 10:59:18 AM »
I am having an issue adding the potd to an external html file.
I would greatly appreciate any help on getting this to work in the next few days.

I see that an earlier post it says something about the random image mod. However I do not know if this needs to be used as the randmon image is already included with the gallery.
I have potd working on the directory it was installed, but just can not get it to call the potd to an external page in the root directory.

I have added the potd.php to the root directory and made changes as I saw them in the forum and still get an error and have no idea on why.
I can only see an error if I use it in a .php page the I created just to see the error.
I know nothing about php but have someone helping me with it. This is the error I get:
Quote
DB Error: Bad SQL Query: SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_thumb_file, a.image_comments, a.image_comments, a.image_downloads, a.image_votes, a.image_rating, a.image_hits FROM gallery_images a, gallery_categories b WHERE a.image_active=1 AND a.cat_id = b.cat_id AND b.auth_viewcat=0 AND b.auth_viewimage=0 ORDER BY 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 'DESC LIMIT 1' at line 4
 
Selected by rates

Now I originally set it up to post the potd by "hits" so I am not sure if this is why I am getting the error.

SLL if you are willing to help, maybe even get this working for me I can pay you for it. You just have to send me a PM on how much and how to pay you. I am limited on how much I can pay, but still let me know and I will return the PM as soon as I can.

Offline Itapeva

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #137 on: August 31, 2005, 01:59:08 PM »
My problem is no text appears over the photo of the day picture thumbnail. Nothing. I did edit /lang/english/main.php but i'm not sure what went wrong. is there any specific place to add the new lines? or can anyone give me the main.php file?

I GOT this problem Too :(

Someone can help-me?

I install the Photo Of The Day.. but... no text appears over the photo of the day picture thumbnail too :(


Not sure what text you are looking to have.
If you only want it to say Photo of the Day then you will need to edit your potd_image.html file and add the text yourself.

Here is what I did:
Code: [Select]
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr><td class="head2" height="20" align="center"><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />Photo
   of The Day</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 />{thumbnail}<br /><b>{image_name}</b><br /></td></tr>
  <tr><td align="center" class="row1">{lang_potd_type}<br />Image by Hits<br /></td></tr>
  <tr><td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td></tr>
</table>

As you can see I also edited the botton to say "Image by Hits". You can also change this to say what ever you want.

But.. I turn "random" images :(

SO.. if I called it for:
  <tr><td align="center" class="row1">{lang_potd_type}<br />Image by Hits<br /></td></tr>

Get one error :(

aff.. my gallery dont show the names :(

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #138 on: August 31, 2005, 02:17:15 PM »
Quote

But.. I turn "random" images :(

SO.. if I called it for:
  <tr><td align="center" class="row1">{lang_potd_type}<br />Image by Hits<br /></td></tr>

Get one error :(

aff.. my gallery dont show the names :(

Not sure what you mean by "turn random images".?
Are you sure all the code is correct if it is not displaying the name?
Even when I first added this I would get the name, but no image until I fixed the code.

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #139 on: September 03, 2005, 10:29:42 AM »
I am having an issue adding the potd to an external html file.
I would greatly appreciate any help on getting this to work in the next few days.
long time ago i've posted a small script to show random/latest picture at the external page, even on different server. unfortunatelly, now i can't find it nether here, nor on my computer. probably it was lost during phpbb hack. maybe other users here could help you to find it, if so you can slightly modify it to show picture of the day.

Offline Itapeva

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #140 on: September 03, 2005, 02:39:31 PM »
My problem is no text appears over the photo of the day picture thumbnail. Nothing. I did edit /lang/english/main.php but i'm not sure what went wrong. is there any specific place to add the new lines? or can anyone give me the main.php file?

I GOT this problem Too :(

Someone can help-me?

I install the Photo Of The Day.. but... no text appears over the photo of the day picture thumbnail too :(


Not sure what text you are looking to have.
If you only want it to say Photo of the Day then you will need to edit your potd_image.html file and add the text yourself.

Here is what I did:
Code: [Select]
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr><td class="head2" height="20" align="center"><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />Photo
   of The Day</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 />{thumbnail}<br /><b>{image_name}</b><br /></td></tr>
  <tr><td align="center" class="row1">{lang_potd_type}<br />Image by Hits<br /></td></tr>
  <tr><td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td></tr>
</table>

As you can see I also edited the botton to say "Image by Hits". You can also change this to say what ever you want.

Ok..  I set
Code: [Select]
...="4" />Photo of The Day</td...
But I cant set
Code: [Select]
lang_potd_type}<br />Image by Hits<br /></
because i set in constance.php
Code: [Select]
POTD_SELECT_MODE', 'random');
So.. if I set
Code: [Select]
lang_potd_type}<br />Image by Hits<br /></ in the home.html
All time show Images by Hits...

:( I tunr randon..
so.. it neeed show sometimes
$lang['potd_type_votes'] ...
sometimes
$lang['potd_type_hits'] ...
sometimes
$lang['potd_type_comments'] ...
sometimes
$lang['potd_type_downloads']...

aff... my {lang_potd_type} cannot show it :(

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #141 on: September 07, 2005, 12:22:40 AM »
I am having an issue adding the potd to an external html file.
I would greatly appreciate any help on getting this to work in the next few days.
long time ago i've posted a small script to show random/latest picture at the external page, even on different server. unfortunatelly, now i can't find it nether here, nor on my computer. probably it was lost during phpbb hack. maybe other users here could help you to find it, if so you can slightly modify it to show picture of the day.

I will keep looking, maybe with any luck I will find it   :o

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #142 on: September 07, 2005, 12:36:44 AM »
Itapeva,

The "Image by Hits" is only basic HTML in the potd_image.html, so it can not call what the random image is.
If you want that part to say nothing all you need to do is remove the cell or just the wording in that table.
There is no way that i know of to change the text daily unless you actually edit the html yourself daily.

Find:
Code: [Select]
<tr><td align="center" class="row1">{lang_potd_type}<br />Image by Hits<br /></td></tr>
Replace with:
Code: [Select]
<tr><td align="center" class="row1">{lang_potd_type}<br /><br /></td></tr>
This is so it will not say anything. If you want it to say something then you put whatever text you want in between the br tags.

Offline Egly

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #143 on: September 09, 2005, 11:40:00 PM »
Hi folks!

I installed this mod and got this error:

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 egly_images i,
 egly_categories c
LEFT JOIN egly_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 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 'DESC LIMIT 1' at line 5

Would somebody plz help me?

SQL Version is 4.0...

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #144 on: October 15, 2005, 09:37:46 AM »
when I chose the Random selection mode, then every day an other pic is shown. No matter how many hits, votes, a.s.o. the pic has got. Is that correct?

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #145 on: October 26, 2005, 01:26:38 PM »
I also get a Bad SQL Query
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.username FROM 4images_images i, 4images_categories c LEFT JOIN phpbb_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 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 'DESC LIMIT 1' at line 5

Offline Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #146 on: October 27, 2005, 11:28:16 AM »
thanks for this MOD I'm using it

Offline RuthE

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Discover Kate Gallery
Re: [Mod] Photo Of The Day
« Reply #147 on: November 03, 2005, 09:03:16 PM »
I just installed this mod and it's working great, except none of the language is showing up. My title is missing and the text that says how the picture was chosen. I must have done something wrong, but I've redone the language file several times now.

http://www.discoverkate.com/gallery/

Offline RuthE

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Discover Kate Gallery
Re: [Mod] Photo Of The Day
« Reply #148 on: November 08, 2005, 09:21:24 PM »
Well, I've checked and re-checked this code, it looks like the text ought to be there, but it's just not coming up. Anything to go on as to why text wouldn't be getting pulled up by the lang tag?

Offline cinestar

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #149 on: December 17, 2005, 07:53:06 PM »
I have been using the mod now for 4 days, I though it was working fine the first day, but its been four days now and the image hasnt changed.

What could be wrong?