Announcement

#1 2003-10-25 12:38:51

bisounours
Member
Lausanne/Suisse
2002-09-09
105

Html In Comments / Order Category By Name

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

 

#2 2003-10-26 09:28:01

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Html In Comments / Order Category By Name

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 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

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

Offline

 

#3 2003-10-26 12:13:25

bisounours
Member
Lausanne/Suisse
2002-09-09
105

Re: Html In Comments / Order Category By Name

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 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

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

 

#4 2003-10-26 12:23:27

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Html In Comments / Order Category By Name

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

 

#5 2003-10-26 15:36:57

bisounours
Member
Lausanne/Suisse
2002-09-09
105

Re: Html In Comments / Order Category By Name

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

 

#6 2003-10-26 19:03:40

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Html In Comments / Order Category By Name

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

Code:

    190   $query.= ' ORDER BY rank ASC, dir ASC';

by

Code:

$query.= ' ORDER BY dir ASC';

Offline

 

#7 2003-11-10 15:18:46

Eric B
Member
2003-10-02
90

Re: Html In Comments / Order Category By Name

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

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact