News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Some problems, clickable links and admin mode

Started by vat, September 28, 2003, 08:29:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vat

When I exit admin mode, it throws me back in to the site index (index.php) after saying "leaving admin mode"

What happens when you have a long link? Like: http://coppermine-gallery.com/forum/index.php?topic=134
 
It doesn't really look good...

klaskruse

To use html in the custom user fields I modyfied the displayimage.php.
On ~row 228 find:
                   $info[$CONFIG['user_field'.$i.'_name']] = make_clickable($CURRENT_PIC_DATA['user'.$i]);

Replace with:
                       $info[$CONFIG['user_field'.$i.'_name']] = $CURRENT_PIC_DATA['user'.$i];
                        $info[$CONFIG['user_field'.$i.'_name']] = str_replace("&lt;", '<', $info[$CONFIG['user_field'.$i.'_name']]);
                        $info[$CONFIG['user_field'.$i.'_name']] = str_replace("&gt;", '>', $info[$CONFIG['user_field'.$i.'_name']]);
                        $info[$CONFIG['user_field'.$i.'_name']] = str_replace("&quot;", '"', $info[$CONFIG['user_field'.$i.'_name']]);


Example ("Hinweis des Autors:" German only, sorry)
Klas
[size=9]NEVER forget to BACKUP the original[/size]
.