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

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

0 Members and 1 Guest are viewing this topic.

Offline tradenet

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #150 on: December 19, 2005, 05:51:30 PM »
Yeah, I have the same porblem...
For some reason {lang_potd_title} & {lang_potd_type}
Don't show up.

 :|

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 RuthE

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Discover Kate Gallery
Re: [Mod] Photo Of The Day
« Reply #151 on: January 07, 2006, 10:12:03 PM »
I feel like I've done something obviously wrong, I've double-checked everying, I'm thinking maybe it's the potd_image.html that I messed up, so here it is. I still don't have any text showing up unless I write it in to this file manually.

Code: [Select]
<strong>{lang_potd_title}</strong><br /><br />
<div align="center"><span class="thumb">{thumbnail}</span><br />
{lang_potd_type}</div>

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #152 on: January 15, 2006, 10:57:18 PM »
Yeah, I have the same porblem...
For some reason {lang_potd_title} & {lang_potd_type}
Don't show up.

I read the whole Post and seems like i am not the only one having trouble with this mod.
Two problems so far.
1) I cant seem to use {lang_potd_title} & {lang_potd_type} in potd_image.html. They just dont show up.
 
2) I tried to change selection method of "random' to 'by_hits' and i got a long DB syntex error message.

What i think is, something needs to be change to work it with V 1.7.1

May be this part in " /includes/page_header.php "
Code: [Select]
//-----------------------------------------------------
//--- Photo Of The Day --------------------------------
//-----------------------------------------------------

$potd_image = (defined("SHOW_POTD_IMAGE") && SHOW_POTD_IMAGE == 0) ? "" : get_potd_image();
$site_template->register_vars("potd_image", $potd_image);
$site_template->register_vars(array("lang_potd_title" => $lang['potd_title']));
$site_template->register_vars(array("lang_potd_type" => $lang['potd_type_'.ereg_replace ("i.image_", "", $select_mode)]));
unset($potd_image);
//--- End Photo Of The Day ----------------------------

I m not a  Programmer.
          But
I m a Good Learner.

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: [Mod] Photo Of The Day
« Reply #153 on: January 15, 2006, 11:27:08 PM »
1) looks like you forgot add the code in your language files (lang/<your langauge>/main.php)
2) there is a misstake in the instructions.
Quote
// The choices to select Photo Of The Day are: 'by_votes', 'by_rating', 'by_comments', 'by_downloads', 'by_hits' or 'random'
should actualy looks like this:
Quote
// The choices to select Photo Of The Day are: 'votes', 'rating', 'comments', 'downloads', 'hits' or 'random'
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 Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #154 on: January 16, 2006, 02:56:18 AM »
V@no

I double checked every thing. I am not missing anything..

By ur little correction, I am now shoing POTD using "hits" and manually adding Text in potd_image.html.

{lang_potd_title} is not important but to use "random" {lang_potd_type} must be working. And i cant use it with what ever i tried. 
I m not a  Programmer.
          But
I m a Good Learner.

Offline Wistom

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #155 on: January 23, 2006, 11:44:57 PM »
V@no

I double checked every thing. I am not missing anything..

By ur little correction, I am now shoing POTD using "hits" and manually adding Text in potd_image.html.

{lang_potd_title} is not important but to use "random" {lang_potd_type} must be working. And i cant use it with what ever i tried. 


hi,
try this :

add directly the code in the page (ex. home.html of your template dir.) where you want it to be displayed (after random image for ex.):
Code: [Select]
<table width="150" border="0" cellspacing="0" cellpadding="0">
  <tr><td class="head2" height="20" align="left"><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_potd_title}</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">{potd_image}</td></tr>
  <tr><td align="center" class="row1">{lang_potd_type}<br /><br /></td></tr>
  <tr><td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td></tr>
</table>

and then modifie the potd_image.html in your template dir.
it shoud look like
Code: [Select]
<br />{thumbnail}<br /><b>{image_name}</b><br />

tell me if that works for you :)


Offline roflnator

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #156 on: March 25, 2006, 01:03:41 PM »
is it possible to modificate the mod in a way that i can
choose a image id day by day by myself?
likely a by_self variable thats not searching for an image
this variable should by the image
like
byself: 1004;
if 1004 is the image id

if dont understand php as well as its neccesarry. so plz help me
me user argue about a never changing "pic of the day"
so i want to select the image by myself and i dont wannt do
paste all links and thumb links in the potd_image.html

THANKS

Offline fish4carp

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #157 on: April 12, 2006, 09:49:58 PM »
Jusy installed this mod but it dosen't say "Photo of the Day" above the photo, please can some one help.

Offline Yast

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #158 on: April 27, 2006, 09:44:53 PM »
Hello,

First sorry for my bad english.
I have the same problem with text output, but I have built me a workaround.
I think the problem are the language files. So I put the variables in the function.
If you can't understand that, I will write an tutorial for fixing the problem.

---------

Hallo ich habe die selben Probleme mit der Textausgabe. Ich glaube das Problem gefunden zu haben und habe mir nun ein Workaround gebastelt. Das Problem hängt scheinbar mit dem Aufruf der Language- Dateien zusammen. Also erspare ich mir diesen Aufruf und setze die Übersetzung direkt in die Funktion.
In den nächsten Tagen werde ich hier ein Tutorial posten.

Mfg

Yast

Offline Chicco

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • The Picture World
Re: [Mod] Photo Of The Day
« Reply #159 on: May 02, 2006, 11:04:07 AM »
Ein Tut darüber, das nun auch endlich der entsprechende Text angezeigt wird, wenn man lang_potd_type verwendet? Also je nach typ wird auch "nach Hits" "nach Downloads" usw. angezeigt?

Prima. :lol:


Wissen ist MACHT! Nix zu wissen macht aber auch nix! ;-)

Gruß
Ch¿cco

Offline adizlaja

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #160 on: May 07, 2006, 01:16:47 AM »
Any way to change it from photo of the day to photo of the week?

thanks

Offline Chicco

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • The Picture World
Re: [Mod] Photo Of The Day
« Reply #161 on: May 08, 2006, 10:00:34 AM »
Also ich habe nun mal manche Mitglieder gefragt, bei denen dieser Mod wunderbar funktioniert und festgestellt, das diese aber alle noch die 1.7.0 Version betreiben. Keine 1.7.1 oder 1.7.2.  Jetzt müsste man quasi anfangen, herauszufinden, was sich so gross bei der 1.7l.1 Version gegenüber der 1.7.0 geändert hat und darin evtl. das Problem finden, was daran schuld ist, das diese Random-Funktion in Sache dazugehöriger Text nicht funktioniert. 8O

Oder liege ich falsch?


Wissen ist MACHT! Nix zu wissen macht aber auch nix! ;-)

Gruß
Ch¿cco

Offline kyzer

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #162 on: May 18, 2006, 07:03:37 PM »
Hi... :wink: Eih I added this Mod to my gallery, and my gallery is not working anymore...
it was working fine... and I installed as is says in the install file...
the error is this one...

Parse error: parse error, unexpected $ in /home/docelarm/public_html/acoresxtreme/galeria/includes/functions.php on line 585
can you help me with this???
thanks... :|

Offline kyzer

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [Mod] Photo Of The Day
« Reply #163 on: May 19, 2006, 12:05:39 AM »
 :mrgreen: oops... my mistake...
problem solved...

Offline Chicco

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • The Picture World
Re: [Mod] Photo Of The Day
« Reply #164 on: May 23, 2006, 02:38:42 PM »
Habe nun vor kurzem eine 4images-Homepage entdeckt, die bereits auf 1.7.2 Version läuft und ebenfalls diesen Mod beinhaltet. Dort allerdings funktioniert das mit dem Random. Der entsprechende Text wird auch angezeigt!Also doch nicht Versionsabhängig! :evil:

Zum Mäusemelken!! :x


Wissen ist MACHT! Nix zu wissen macht aber auch nix! ;-)

Gruß
Ch¿cco