coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: tiptipon on September 14, 2006, 12:13:57 PM

Title: smiles in pic
Post by: tiptipon on September 14, 2006, 12:13:57 PM
hello

i have an coppermine-gallery in my site www.paotiptipon.co.il in israel
it is a site for kindergarden .
i have uploaded meny icons to the -coppermine/images/smiles.
but my problem is that they do not appere.
i think there is a file to edit the name of the new files but i dont know the name of it or place to look for it.

i will be very happy if you tell me the name off that file and the exact place to find it
if you have a program to edit thise files i will be happy to get it.

sorry abuot my english

tiptipon

www.paotiptipon.co.il
Title: Re: smiles in pic
Post by: Gizmo on September 14, 2006, 12:33:57 PM
You need to add your smilies to the smilies.inc.php located in the include directory. You can edit this file with notepad.
Title: Re: smiles in pic
Post by: tiptipon on September 14, 2006, 01:01:34 PM
ok
i need help

i found the file to edit but when i edit it i get blank page in my copermine

please help me to lern how to edit this file in deatailes

2. can i put PNG/BMP or just gif?

tiptipon
www.paotiptipon.co.il
Title: Re: smiles in pic
Post by: Gizmo on September 14, 2006, 01:07:10 PM
You should edit this file with a simple text editor only. I use notepad and Crimson Editor - http://www.crimsoneditor.com/ (http://www.crimsoneditor.com/). You can also change the extension of this file to .txt and attach it so we can see what you've changed.
Title: Re: smiles in pic
Post by: tiptipon on September 14, 2006, 08:35:33 PM
i have edit 1 icon an still gut blank page

Title: Re: smiles in pic
Post by: Gizmo on September 15, 2006, 04:01:17 AM
You forgot the comma separating the 2 arrays.

Your code

        ...
        array(':mrgreen:', 'icon_mrgreen.gif', $lang_smilies_inc_php['Mr. Green'])
        array(':|:', 'icon_8735-2046710580322u27.gif', $lang_smilies_inc_php['BGB'])


with comma added

        ...
        array(':mrgreen:', 'icon_mrgreen.gif', $lang_smilies_inc_php['Mr. Green']),
        array(':|:', 'icon_8735-2046710580322u27.gif', $lang_smilies_inc_php['BGB'])


Title: Re: smiles in pic
Post by: tiptipon on September 15, 2006, 08:47:20 AM
ok itworkd for one file:)

is there eny program that edit auotomatic 500 icon name to 1 txt file that i can copy/peast to the php file?

tiptipon
Title: Re: smiles in pic
Post by: Joachim Müller on September 15, 2006, 08:52:42 AM
No program that will do this automatically, but you can come up with a textual representation of the content of a folder by doing something likedir > textfile.txtat the command prompt on your client and then edit the text file further.

However, I consider 500 smileys to be an absolute overkill and a good example for over-modifying your gallery. This is a matter of taste though.
Title: Re: smiles in pic
Post by: tiptipon on September 15, 2006, 10:34:27 AM
ok thenks i did it:)