forum.coppermine-gallery.net

Support => Older/other versions => cpg1.1d PHPnuke Support (deprecated) => Topic started by: vat on September 28, 2003, 08:29:25 am

Title: Some problems, clickable links and admin mode
Post by: vat on September 28, 2003, 08:29:25 am
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://forum.coppermine-gallery.net/index.php?topic=134
 
It doesn't really look good...
Title: Some problems, clickable links and admin mode
Post by: klaskruse on October 01, 2003, 10:58:32 pm
To use html in the custom user fields I modyfied the displayimage.php.
On ~row 228 find:
Code: [Select]
                   $info[$CONFIG['user_field'.$i.'_name']] = make_clickable($CURRENT_PIC_DATA['user'.$i]);

Replace with:
Code: [Select]
                       $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 (http://www.terralights.de/terralightsII/modules.php?name=coppermine&file=displayimage&album=random&cat=&pos=-201) ("Hinweis des Autors:" German only, sorry)