coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: niks_007 on February 09, 2006, 12:43:59 PM

Title: wish to edit title bar
Post by: niks_007 on February 09, 2006, 12:43:59 PM
hi......
       I want to edit what the title bar displays i want the album name to come fist in the title bar and when viewing image image title first in the title bar so the search engines can more effectively find images on my website as i got thousands of image on it... but they are not reciving enough response from search engines as my old custom pages does where i use img tag to show images they got more response but not the gallery is doing so i want the title bar to display image title first...

I hope you will help me

Thanks
www.lakesparadis.com
Title: i want to edit title bar...
Post by: niks_007 on February 22, 2006, 03:00:03 PM
Please Help Any one...

let me know from where i can manage what title i wish to show the order...

See Details

I want to edit what the title bar displays i want the album name to come fist in the title bar and when viewing image image title first in the title bar so the search engines can more effectively find images on my website as i got thousands of image on it... but they are not reciving enough response from search engines as my old custom pages does where i use img tag to show images they got more response but not the gallery is doing so i want the title bar to display image title first...

Thanks
Niks
www.lakesparadise.com
Title: Re: wish to edit title bar
Post by: Joachim Müller on February 22, 2006, 03:46:51 PM
edit themes/yourtheme/theme.php, find        '{TITLE}' => $CONFIG['gallery_name'] . ' - ' . strip_tags(bb_decode($section)),   and edit accordingly. If you don't have this section in your custom theme file, pastefunction pageheader($section, $meta = '')
{
    global $CONFIG, $THEME_DIR;
    global $template_header, $lang_charset, $lang_text_dir;

    $custom_header = cpg_get_custom_include($CONFIG['custom_header_path']);

    header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
    user_save_profile();

    $template_vars = array('{LANG_DIR}' => $lang_text_dir,
        '{TITLE}' => $CONFIG['gallery_name'] . ' - ' . strip_tags(bb_decode($section)),
        '{CHARSET}' => $CONFIG['charset'] == 'language file' ? $lang_charset : $CONFIG['charset'],
        '{META}' => $meta,
        '{GAL_NAME}' => $CONFIG['gallery_name'],
        '{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
        '{SYS_MENU}' => theme_main_menu('sys_menu'),
        '{SUB_MENU}' => theme_main_menu('sub_menu'),
        '{ADMIN_MENU}' => theme_admin_mode_menu(),
        '{CUSTOM_HEADER}' => $custom_header,
        );

    echo template_eval($template_header, $template_vars);
}
into a new line right before?>
Title: Re: wish to edit title bar
Post by: niks_007 on February 23, 2006, 08:14:56 AM
Thanks for your reply it is working but i still have some problem

When i click on album name it shows title like this
Priyanka Chopra Wallpapers @ 1024x768 resolution on Lakesparadise.com

but when we click on a thoumb image to view it larger the title bar shwos it this
Priyanka Chopra/Priyanka Chopra Wallpapers @ 1024x768 resolution on Lakesparadise.com

i wnat to remove this "/" or if we cant do that i would like to replace it with a "," comma

Please let me know how could i do this

one more thing when we click on any category name it shows title like this
Home > Bollywood Unlimited > Bollywood Actress... Wallpapers @ 1024x768 resolution on Lakesparadise.com

but i want to show like this
Bollywood Actress... Wallpapers @ 1024x768 resolution on Lakesparadise.com

i dont want the Home > Bollywood Unlimited here how to remove that also

I hope you will help me
Thanks
Waiting fro reply
Nishant Shrivastava
Title: Re: wish to edit title bar
Post by: Joachim Müller on February 23, 2006, 08:25:58 AM
browse your theme for other instances of {TITLE} if you want to change the page title in other places as well. We have a "one question per thread" policy you agreed to respect, so your second question shouldn't have gone into this thread. It could have been answered if you read the coppermine docs (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#changing) first. The item you want removed is named "breadcrumb" in "the content of the main page" in coppermine's config.