forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: kpgmza on September 22, 2011, 06:30:03 pm

Title: Autotitle in capital letters (its possible?)
Post by: kpgmza on September 22, 2011, 06:30:03 pm
Friends:

I need add a modification to my gallery. Can you helpme?

The registered members of my gallery have put a rule: all photos uploaded must have the title in capital letters. But many users do not respect this rule and the admins have to change or filling manually in each photo. It's possible a little modify to the gallery requires change the incorrect titles (not completed or filled in lowecase) to uppercase or in otherwise the title written in lowercase to be converted automatically to uppercase?

Well.. I hope you can help me...

Thank you very much!
Title: Re: Autotitle in capital letters (its possible?)
Post by: Αndré on September 22, 2011, 06:35:31 pm
The flash uploader first uploads all files and the user then has to add the title. At this point all files are already in the gallery, so any modification will only work for the simple upload form, which is not very comfortable. Converting lowercase characters to uppercase might be possible, but won't help you if there's no title at all.
Title: Re: Autotitle in capital letters (its possible?)
Post by: kpgmza on September 22, 2011, 10:07:44 pm
Thanks for the fast reply...

I understand. I've enabled the flash uploading form... so... we take the option means that the user puts the title in lower case and we need to be automatically converted to uppercase. How can I modify my code?

Thanks!

Title: Re: Autotitle in capital letters (its possible?)
Post by: Joe Carver on September 22, 2011, 11:56:24 pm
Why not just change the output / appearance?

Try adding /  testing this on your themes/your_theme/style.css

Find this :
Code: [Select]
.pic_title {
Add this and experiment...
Code: [Select]
font-variant:small-caps;
See this link:
http://www.w3schools.com/cssref/pr_font_font-variant.asp