- Home in the Title Tag - Home in the Title Tag
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

- Home in the Title Tag

Started by iKwak, November 28, 2004, 05:04:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

iKwak

In the index page (the first page) of the gallery,  how would you remove the  - Home from the title?

Thank you in advance.

donnoman

I'm assuming you mean on whats called the breadcrumb (the bar that shows you where you are in the hierarchy of your galleries).

What would you want to change it to?  If you simply remove it, folks won't be able to navigate back to the root of your gallery without
closing the site and re-opening it.

You can just change the word "home" to something else across all of your themes by changing your language file.

copperminefolder/lang/english.php

search for

$lang_list_categories=array(
'home' => 'Home',


Change only the capitalized 'Home'

iKwak

Hi donnoman,
I do not mean the breadcrumb but the actual head title. In the title of the browser, it reads "My Gallery - Home"
Thanks for the response.


Quote from: donnoman on November 28, 2004, 07:50:46 AM
I'm assuming you mean on whats called the breadcrumb (the bar that shows you where you are in the hierarchy of your galleries).

What would you want to change it to?  If you simply remove it, folks won't be able to navigate back to the root of your gallery without
closing the site and re-opening it.

You can just change the word "home" to something else across all of your themes by changing your language file.

copperminefolder/lang/english.php

search for

$lang_list_categories=array(
'home' => 'Home',


Change only the capitalized 'Home'

donnoman


donnoman

actually I found what you mean.

open your theme.php

find :


function pageheader($section, $meta = '')
{
   global $CONFIG, $THEME_DIR;
   global $template_header, $lang_charset, $lang_text_dir;

   $charset = ($CONFIG['charset'] == 'language file') ? $lang_charset : $CONFIG['charset'];

   header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
   header("Content-Type: text/html; charset=$charset");
   user_save_profile();

   $template_vars = array('{LANG_DIR}' => $lang_text_dir,
       '{TITLE}' => $CONFIG['gallery_name'] . ' - ' . $section,


change the:

'{TITLE}' => $CONFIG['gallery_name'] . ' - ' . $section,


to


'{TITLE}' => $CONFIG['gallery_name'] ,


Of course that whacks the section name out the title for all of your pages, If your ok with that, then your good to go.

Tranz

In the pertinent language file, presumably, lang/english.php, look for
  'home' => 'Home',
Replace Home with a space, so that you can still use the $section variable for the page titles.

donnoman

That would affect his breadcrumb though.

Perhaps he didn't know why 'Home' was in the title, and that it changed based on which section you were viewing.

Perhaps if he just changed 'Home' to something slightly more descriptive like 'Gallery'.

That would be acceptable for his breadcrumb as well.

When you change the lang files, do you have to change the UTF-8 one as well?

Joachim Müller

Quote from: donnoman on November 28, 2004, 06:05:53 PM
When you change the lang files, do you have to change the UTF-8 one as well?
Depends on the encoding setting in coppermine config - if you have set it to unicode (utf-8), you'll have to modify the -utf-8 files. If you don't, you can leave them alone (or even remove all utf-8 from the webserver to save webspace).

Joachim