I would like to know how to Capitalize the Meta Tags
12 posts • Page 1 of 1
In musicvideo.php how to capitalize the Artist name for the meta tags?????
- musicuploadz
- Verified Customer
- Posts: 143
- Joined: Feb 09, 2011 4 am
- Reputation points: 10
"He who sacrifices freedom for security deserves neither." - Ben Franklin
http://www.youtrippy.com
http://www.youtrippy.com
- Xarex
- Verified Customer
- Posts: 319
- Joined: Jun 13, 2011 10 pm
- Reputation points: 246
hmmm thx but not sure where that goes
i found the code but dont know where to code the capitalize
$meta_title = sprintf($lang['detail_title'], $video['video_title'], $video['artist']);
i found the code but dont know where to code the capitalize
$meta_title = sprintf($lang['detail_title'], $video['video_title'], $video['artist']);
- musicuploadz
- Verified Customer
- Posts: 143
- Joined: Feb 09, 2011 4 am
- Reputation points: 10
anyone know this?????
- musicuploadz
- Verified Customer
- Posts: 143
- Joined: Feb 09, 2011 4 am
- Reputation points: 10
Try this:
For proper case:
sprintf has to do with the conversion format.
strtoupper would make it all uppercase.
- Code: Select all
$meta_title = strtoupper($lang['detail_title'], $video['video_title'], $video['artist']);
For proper case:
- Code: Select all
$meta_title = ucwords(strtolower($lang['detail_title'], $video['video_title'], $video['artist']));
sprintf has to do with the conversion format.
strtoupper would make it all uppercase.
"He who sacrifices freedom for security deserves neither." - Ben Franklin
http://www.youtrippy.com
http://www.youtrippy.com
- Xarex
- Verified Customer
- Posts: 319
- Joined: Jun 13, 2011 10 pm
- Reputation points: 246
What about making it capitalize for each first word????
thx
thx
- musicuploadz
- Verified Customer
- Posts: 143
- Joined: Feb 09, 2011 4 am
- Reputation points: 10
That didnt work. It left error and it didnt case anything.
Anything else you think would work???? thx so much
Anything else you think would work???? thx so much
- musicuploadz
- Verified Customer
- Posts: 143
- Joined: Feb 09, 2011 4 am
- Reputation points: 10
What is the error? Maybe you did something small wrong.
PHP Melody Plugins developer
PHP Melody plugins + themes for 1.6 and 1.7-2.7 | Subscribe to news of my work | Follow me on Facebook
PHP Melody plugins + themes for 1.6 and 1.7-2.7 | Subscribe to news of my work | Follow me on Facebook
-
Trace - Verified Customer
- Posts: 2543
- Joined: Aug 16, 2010 3 pm
- Location: The Netherlands
- Reputation points: 1329
Hey,
I replace sprintf with that other word ucwords it didnt work
still the artist is lower cased
I replace sprintf with that other word ucwords it didnt work
still the artist is lower cased
- musicuploadz
- Verified Customer
- Posts: 143
- Joined: Feb 09, 2011 4 am
- Reputation points: 10
try
- Code: Select all
$meta_title = sprintf($lang['detail_title'], $video['video_title'],ucwords( $video['artist']));
PHP Melody Plugins developer
PHP Melody plugins + themes for 1.6 and 1.7-2.7 | Subscribe to news of my work | Follow me on Facebook
PHP Melody plugins + themes for 1.6 and 1.7-2.7 | Subscribe to news of my work | Follow me on Facebook
-
Trace - Verified Customer
- Posts: 2543
- Joined: Aug 16, 2010 3 pm
- Location: The Netherlands
- Reputation points: 1329
Your the man it worked but one more thing!
$meta_title = sprintf($lang['detail_title'], $video['video_title'],ucwords( $video['artist']));
$meta_title = sprintf($lang['detail_title'], $video['video_title'],ucwords( $video['artist']));
What about the video title how do i add ucwords there?????
- musicuploadz
- Verified Customer
- Posts: 143
- Joined: Feb 09, 2011 4 am
- Reputation points: 10
Ah, just needed to put it around each.
ucwords( $video['video_title'] )
ucwords( $video['video_title'] )
"He who sacrifices freedom for security deserves neither." - Ben Franklin
http://www.youtrippy.com
http://www.youtrippy.com
- Xarex
- Verified Customer
- Posts: 319
- Joined: Jun 13, 2011 10 pm
- Reputation points: 246
12 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest