Little Hack for Title Tag

13 years 7 months ago #12015 by M3gaHeRtZ
Hi everyone! I have mada a little hack for show an appended phrase on the page title. Look on http://www.psicopatico.net for example.

Open includes/joomla.php and go at the function getHead (aprox on line 536) and modify at this mode:
[code:1]function getHead() {
//#######RANDOM PHRASE BY MHZ##########
$appendphrase[1] = " - Phrase u want show";
$appendphrase[2] = " - Phrase u want show";
$appendphrase[3] = " - Phrase u want show";
$appendphrase[4] = " - Phrase u want show";
$n = count($appendphrase) - 1;
$random = rand(1,$n);
$texttoprint = $appendphrase[$random];
$head = array();
$head[] = '<title>' . $this->_head . $texttoprint . '</title>';
//##########RANDOM PHRASE BY MHZ END#######
[/code:1]
U can add an unlimited number or random phrase to append,this is good for the search engine (u add keywords on title)!
SORRY FOR MY BAAAAAD ENGLISH!!!:woohoo:

ByeZzZz!!!;)
Moderators: beatnantkrileon
Time to create page: 1.614 seconds

Facebook Twitter LinkedIn