4images Forum & Community
The forum for all 4images gallery administrators
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
4images code on GitHub
Click here
to visit GitHub.
Home
Help
Search
Login
Register
4images Forum & Community
»
4images Issues / Ausgaben
»
Discussion & Troubleshooting
(Moderator:
Acidgod
) »
First letter capitalized
« previous
next »
Print
Pages: [
1
]
Author
Topic: First letter capitalized (Read 4918 times)
0 Members and 1 Guest are viewing this topic.
SOz92
Newbie
Posts: 17
First letter capitalized
«
on:
August 05, 2012, 08:42:16 PM »
Hi, i want to put in my all images the firs letter of all words capitalized.
Example:
An user upload some picture with the name: the scorpion king
I just want to come out like this: The Scorpion King
Logged
Rembrandt
Guest
Re: First letter capitalized
«
Reply #1 on:
August 06, 2012, 06:04:10 AM »
Hi!
search in member.php:
$image_name
=
get_file_name
(
$new_name
);
}
and insert below:
$image_name
=
ucwords
(
$image_name
);
$image_name
=
ucwords
(
strtolower
(
$image_name
));
test it...
mfg Andi
Logged
SOz92
Newbie
Posts: 17
Re: First letter capitalized
«
Reply #2 on:
August 06, 2012, 01:05:12 PM »
Fot the old pictures upladed, its not funtionally, i think it's on details.html
Logged
Rembrandt
Guest
Re: First letter capitalized
«
Reply #3 on:
August 06, 2012, 03:57:29 PM »
search in includes/functions.php:
$site_template
->
register_vars
(array(
"media_src"
=>
$media_src
,
insert above:
$image_name
=
ucwords
(
$image_name
);
$image_name
=
ucwords
(
strtolower
(
$image_name
));
mfg Andi
Logged
SOz92
Newbie
Posts: 17
Re: First letter capitalized
«
Reply #4 on:
August 08, 2012, 05:09:42 PM »
I put that, and doesn't work
Logged
Print
Pages: [
1
]
« previous
next »
4images Forum & Community
»
4images Issues / Ausgaben
»
Discussion & Troubleshooting
(Moderator:
Acidgod
) »
First letter capitalized