Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: wish to edit title bar  (Read 4106 times)

0 Members and 1 Guest are viewing this topic.

niks_007

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
wish to edit title bar
« 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
Logged

niks_007

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
i want to edit title bar...
« Reply #1 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: wish to edit title bar
« Reply #2 on: February 22, 2006, 03:46:51 pm »

edit themes/yourtheme/theme.php, find
Code: [Select]
        '{TITLE}' => $CONFIG['gallery_name'] . ' - ' . strip_tags(bb_decode($section)),   and edit accordingly. If you don't have this section in your custom theme file, paste
Code: [Select]
function 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
Code: [Select]
?>
Logged

niks_007

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: wish to edit title bar
« Reply #3 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: wish to edit title bar
« Reply #4 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 first. The item you want removed is named "breadcrumb" in "the content of the main page" in coppermine's config.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.