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!
Posts: 3474
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):
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 (
)
Posts: 3473
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
Posts: 22
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!
Posts: 3473
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
Posts: 3474
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/
Posts: 22
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:
Posts: 3473
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)