PDA

View Full Version : Changing Site Title


phillicon
11-10-2005, 09:36 PM
Dear all as nobody turned attention to my posts I decided to take a look at the sources. As I described before the directory title is totally messed in 5.2
Here is the solution:
replace:
//$path[] = array ('ID' => '0', 'TITLE' => _L(SITE_NAME), 'TITLE_URL' => DOC_ROOT, 'DESCRIPTION' =>
SITE_DESC);
with:
$path[] = array ('ID' => '0', 'TITLE' => _L('Directory Home'), 'TITLE_URL' => DOC_ROOT, 'DESCRIPTION' => '');

in function get_path($id) {
in file
include\functions.php

some smart genius has replaced that with the SITE_DESC and SITE_NAME variable. Strange that nobody has noticed that problem. I posted it twice but nobody payed attention.

phillicon
11-10-2005, 10:14 PM
or better replace

SITE_NAME

with:

DIRECTORY_TITLE

relinkd
11-11-2005, 04:26 PM
Hey thanks!! I've been trying to figure out what's up with the names and what displays on the site, emails, reciprocal link in submit, etc... seemed messed up ..

anyway, it seems to work good... although it's still messed under submit, latest links, and top hits... to fix that you need to change a similar line in submit.php and index.php... just search for SITE_NAME

For some reason on rc5.2 the main (root) breadcrumb in top_bar.tpl is the anchor text of your desired recip url... it seems like it used to be Directory Home... I was looking through old versions trying to find when/where it changed... cause the anchor text of my recip url doesnt make sense being the root breadcrumb "anchor text" >> Furniture >> Chairs

thanks again...

phillicon
11-11-2005, 09:21 PM
I'm glad it helped others too. Indeed you are right. It must be changed on several places. The lines are same....just search for them in the directory.
;)
cheers