xtremlee Posted July 26, 2008 Share Posted July 26, 2008 i need to change my title this is what i got .. i know its pulling the title from somewhere but i can not find it in any of my files. any suggestions on where to look? <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title><?=SITE_TITLE?></title> <link href="styles-puppyfinder.css" rel="stylesheet" type="text/css" /> <script type="text/JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc; } Quote Link to comment https://forums.phpfreaks.com/topic/116733-need-to-change-title/ Share on other sites More sharing options...
DarkWater Posted July 26, 2008 Share Posted July 26, 2008 1) Why are you using short tags? (<?= ?>) 2) I'd probably suggest using the utf-8 charset. 3) Are you using a Microsoft web design product for that Javascript? Write it yourself. It ends up working better. Edit: Oh yeah. Look for any place where you define constants. Not how I'd personally assign site titles, but whatever. Quote Link to comment https://forums.phpfreaks.com/topic/116733-need-to-change-title/#findComment-600234 Share on other sites More sharing options...
discomatt Posted July 26, 2008 Share Posted July 26, 2008 i need to change my title this is what i got .. i know its pulling the title from somewhere but i can not find it in any of my files. any suggestions on where to look? <title><?=SITE_TITLE?></title> Look for define( 'SITE_TITLE', 'The title of your site' ); Quote Link to comment https://forums.phpfreaks.com/topic/116733-need-to-change-title/#findComment-600237 Share on other sites More sharing options...
discomatt Posted July 26, 2008 Share Posted July 26, 2008 1) Why are you using short tags? (<?= ?>) If the script won't be distributed on multiple servers, there's nothing wrong with this 2) I'd probably suggest using the utf-8 charset. Why? Unless you actually require the wider character set, you're better off using 8859-1 3) Are you using a Microsoft web design product for that Javascript? Write it yourself. It ends up working better. Looks like dreamweaver... and I've never had problems with their rollover code Learning javascript is never a bad thing, but if you only need a snippet here or there, is there really a point to learning a new language ( especially a client-side one that can vary enough from browser to browser to make you wanna rip your hair out ) Quote Link to comment https://forums.phpfreaks.com/topic/116733-need-to-change-title/#findComment-600247 Share on other sites More sharing options...
DarkWater Posted July 26, 2008 Share Posted July 26, 2008 1) Why are you using short tags? (<?= ?>) If the script won't be distributed on multiple servers, there's nothing wrong with this 2) I'd probably suggest using the utf-8 charset. Why? Unless you actually require the wider character set, you're better off using 8859-1 3) Are you using a Microsoft web design product for that Javascript? Write it yourself. It ends up working better. Looks like dreamweaver... and I've never had problems with their rollover code Learning javascript is never a bad thing, but if you only need a snippet here or there, is there really a point to learning a new language ( especially a client-side one that can vary enough from browser to browser to make you wanna rip your hair out ) If one day his host turns off short tags, he's screwed. He should just type the extra like...8 characters. =P And why not use utf-8? If eventually he'll need to use characters not in iso-8859-1...it'll save him from posting on the forum. =P And it's either Dreamweaver or like Frontpage *shudders*. Anyway...CSS rollovers are cooler. Quote Link to comment https://forums.phpfreaks.com/topic/116733-need-to-change-title/#findComment-600250 Share on other sites More sharing options...
discomatt Posted July 26, 2008 Share Posted July 26, 2008 CSS rollovers are a bitch, but once you get em working on all the browsers they're really nice. I wouldn't have been so critical on your suggestions if you had originally posted why... Telling people what to do without reason isn't the best teaching method. Let him know why you think he should make those changes, and let him decide if he needs to. Quote Link to comment https://forums.phpfreaks.com/topic/116733-need-to-change-title/#findComment-600259 Share on other sites More sharing options...
xtremlee Posted July 26, 2008 Author Share Posted July 26, 2008 i did not write this i can do basic html but thats. would this be a seperate file that it is pulling this title from? Quote Link to comment https://forums.phpfreaks.com/topic/116733-need-to-change-title/#findComment-600274 Share on other sites More sharing options...
DarkWater Posted July 26, 2008 Share Posted July 26, 2008 Well, if it's not set there, then I'd assume so. Can you please place this at the very top of your page? <?php error_reporting(E_ALL); ?> And tell me if you get something along the lines of: Notice: Use of undefined constant in /path/to/your/file on line 5 Just made up a file and line number. =P Quote Link to comment https://forums.phpfreaks.com/topic/116733-need-to-change-title/#findComment-600277 Share on other sites More sharing options...
discomatt Posted July 26, 2008 Share Posted July 26, 2008 i did not write this i can do basic html but thats. would this be a seperate file that it is pulling this title from? It's possible... look for include( 'file.php' ) or require( 'file.php' ) or require_once, or include_once.... Quote Link to comment https://forums.phpfreaks.com/topic/116733-need-to-change-title/#findComment-600278 Share on other sites More sharing options...
peranha Posted July 26, 2008 Share Posted July 26, 2008 yes it could be, if it is not in this file, Look for what discomatt said earlier in each file to find it. Look for define( 'SITE_TITLE', 'The title of your site' ); Quote Link to comment https://forums.phpfreaks.com/topic/116733-need-to-change-title/#findComment-600279 Share on other sites More sharing options...
xtremlee Posted July 26, 2008 Author Share Posted July 26, 2008 found it includes/config.php thanks Quote Link to comment https://forums.phpfreaks.com/topic/116733-need-to-change-title/#findComment-600301 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.