I have 2 more questions...
(sorry, i have a lot of questions this week, but a wand to put the new gallery if possible next week...)
How can i change to put html in picture comment. (admin comment of the picture, not user comments)
with the v 1.2 you have tell me how to order the category by name at admin/category
Thanks a lot
Christophe
Offline
1. HTML in picture comment
How can i change to put html in picture comment. (admin comment of the picture, not user comments)
in admin/infos_images.php (1.3), replace
61 $query.= "'".htmlentities($_POST[$comment],ENT_QUOTES)."'";
by
$query.= "'".$_POST[$comment]."'";
Do it also in the single picture modification page : in admin/picture_modify.php (1.3), replace
51 $query.= "'".htmlentities($_POST['comment'],ENT_QUOTES)."'";
by
$query.= "'".$_POST[$comment]."'";
Now, you can use HTML tags in picture comments, they won't be modified by PhpWebGallery.
2. Ordering categories by name
with the v 1.2 you have tell me how to order the category by name at admin/category
in admin/cat_list.php, replace
190 $query.= ' ORDER BY rank ASC, dir ASC';
by
$query.= ' ORDER BY name ASC';
Just go to this page, the ordering will be made automatically
Offline
1. HTML in picture comment
How can i change to put html in picture comment. (admin comment of the picture, not user comments)
in admin/infos_images.php (1.3), replace
Code:
61 $query.= "'".htmlentities($_POST[$comment],ENT_QUOTES)."'";by
Code:
$query.= "'".$_POST[$comment]."'";Do it also in the single picture modification page : in admin/picture_modify.php (1.3), replace
Code:
51 $query.= "'".htmlentities($_POST['comment'],ENT_QUOTES)."'";by
Code:
$query.= "'".$_POST[$comment]."'";Now, you can use HTML tags in picture comments, they won't be modified by PhpWebGallery.
2. Ordering categories by namewith the v 1.2 you have tell me how to order the category by name at admin/category
in admin/cat_list.php, replace
Code:
190 $query.= ' ORDER BY rank ASC, dir ASC';by
Code:
$query.= ' ORDER BY name ASC';Just go to this page, the ordering will be made automatically
Hello,
when i change de picture_modify.php file, the comments are "cancel" each time i want to put it....
for ordering categories by name, thanks all is ok !
Christophe
<span style='color:red'>edit :
in admin/picture_modify.php (1.3), the correct line 51 is
$query.= "'".stripslashes($_POST['comment'])."'";
Thanks Pierrick for all !!</span>
Offline
when i change de picture_modify.php file, the comments are "cancel" each time i want to put it....
What it is "cancel" ? I've tried the modifs I ask you to do and it works great
Offline
I have give you my problem by icq, my english is not good to explain my problem :-(
for Ordering categories by name, i have one more question :
I have put some category with a different color with html like this :
<span style="color:#6BF47A;">RAe 4/8 (1022-1023) </span>
with the old version (1.2) it was ordner at between Q and S, it was ok, but now it is at the first line, before A...
Can you help me ?
Have a nice day.
Christophe
Offline
for Ordering categories by name, i have one more question :
I have put some category with a different color with html like this :
<span style="color:#6BF47A;">RAe 4/8 (1022-1023) </span>
with the old version (1.2) it was ordner at between Q and S, it was ok, but now it is at the first line, before A...
Can you help me ?
Yes... As I order by name, the first character found in your name is "<".... What you should do is ordering by the dir (but virtual categories will be placed first). In admin/cat_list.php, replace
190 $query.= ' ORDER BY rank ASC, dir ASC';
by
$query.= ' ORDER BY dir ASC';
Offline
ok for ordering categories by name, but what about ordering photographs (and not categories, photo inside the categories only) by name or, better, by EXIF shot date ?
Offline