about the comment

aihugongwu

Joined: 2003-06-05
Posts: 22
Posted: Thu, 2003-06-05 03:28

hi, i am new here, and i need some help:
1. how can i change the font size of the comments? html tag seems not work with comments.
2. is it possible to change the color of the comments avaible sigature "*" by the date when latest comment added?

thanks in advance!

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Thu, 2003-06-05 05:08

HTML tags are stripped out of comments because people could add "bad" HTML code that would break your site layout.

1. The comments are specified by the "caption" style, which you can edit in the css/embedded_style.css.default file. Edit that file (and save it without the .default on the end):

.caption /* photo captions on all pages */
        { 
          font-size: 10px; 
        }

This changes the font size for the captions as well. If you want to make a new style without changing the caption style, then you'll need to edit the code in layout/commentdraw.inc.

2. Find this line in view_album.php:

   echo("<span class=error>*</span>");

(The "error" style defaults to red.) Change it to something like:

   echo("<span style='color: #ABC123;'>*</span>");

-Beckett (

)

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Thu, 2003-06-05 07:41
aihugongwu wrote:
hi, i am new here, and i need some help:

2. is it possible to change the color of the comments avaible sigature "*" by the date when latest comment added?

That would be a lot of work. You might want to try alternative solution
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=3355&highlight=mostrecentcomment

 
aihugongwu

Joined: 2003-06-05
Posts: 22
Posted: Fri, 2003-06-06 02:10

all of ur advices worked!
thanks beckett and joan!
joan's "most recent comment" mod works pretty, and i recognized it should be a little difficult to make the color changes dynamicly, but now i prefer the info in string than the info in color.
1 more question:
how can i change the encode of the time stamp shows after the comment? it seems gallery automatically get the encode form my os info, but when u run a site for different language with ur os, it comes to be a cumber.
the forum is very helpful! i love it!

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Fri, 2003-06-06 07:09

find getDatePosted in classes/Comment.php.

Change the date call. If it's not obvious, read http://uk.php.net/manual/en/function.date.php

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Fri, 2003-06-06 09:05

You might find my post in this thread helpful:

http://gallery.sf.net/forums.php?topic=5355

-Beckett (

)

P.S. What language? Are you aware there is a multi-language version of Gallery available?
http://gallery-translation.ath.cx/

 
aihugongwu

Joined: 2003-06-05
Posts: 22
Posted: Thu, 2003-06-12 04:28

i edited the date format in comment.php and successed to get rid of the locale info. :)
thanks again.
i have a gallery running for chinese (in english interface, i havenot found any version for fareast countries ), i just set the defaultcharset in apache to gb2312, and japanese comment is also print well, so i am satisfied now. but if itis very easy to make a translated version, maybe i will try it later. but i know nothing about php... :roll:

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Thu, 2003-06-12 10:39

For information about translations, visit http://gallery-translation.ath.cx/main.php

I think you'll find a japanese version there (Link is down just at the moment)