coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: cgc0202 on November 04, 2006, 06:45:12 PM

Title: Copyright icon in "description"
Post by: cgc0202 on November 04, 2006, 06:45:12 PM
Hi,

I tried to search for a thread here, if someone already asked about how to include the "copyright icon" and I did not find any.  Obviously, the © does not work.

Is there a way to add the copyright icon in the photo description?

Thanks.

Cornelio

Title: Re: Copyright icon in "description"
Post by: Nibbler on November 04, 2006, 06:48:28 PM
Just copy/paste a © into the box.
Title: Re: Copyright icon in "description"
Post by: cgc0202 on November 04, 2006, 07:26:32 PM
Thanks Nibbler,

That seemed to work, with the various browsers I use in Mac -- Camino, Safari, Netscape and Firefox.  I am not sure if they show properly in Windows or other Operating sytems.

CGC
Title: Re: Copyright icon in "description"
Post by: Nibbler on November 04, 2006, 08:12:56 PM
If it doesn't it's not too hard to add a bbcode for ©
Title: Re: Copyright icon in "description"
Post by: cgc0202 on November 05, 2006, 02:24:15 PM
Quote from: Nibbler on November 04, 2006, 08:12:56 PM
If it doesn't it's not too hard to add a bbcode for ©
That was what I was trying to find out, Nibbler.  I cannot find a site that describes the conversion.
CGC
Title: Re: Copyright icon in "description"
Post by: Nibbler on November 05, 2006, 03:24:28 PM
$text = str_replace("[copyright]", '©', $text);

Just add that into the bb_decode() function in include/functions.inc.php Use whatever name you like for the new tag.
Title: Re: Copyright icon in "description"
Post by: cgc0202 on November 05, 2006, 11:35:02 PM
Thanks very much Nibbler, it worked.  I guess I can use that now as a template on how to convert many html symbols into bbCode.

CGC