Author Topic: Show image name and category name in title bar?  (Read 11123 times)

0 Members and 1 Guest are viewing this topic.

Offline nobita

  • Jr. Member
  • **
  • Posts: 61
  • ondesktop.org
    • View Profile
    • Car Wallpapers
Show image name and category name in title bar?
« on: May 08, 2007, 05:40:25 PM »
how to can i show image name and category name in title bar?

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Show image name and category name in title bar?
« Reply #1 on: May 12, 2007, 01:10:34 AM »
it depends where you want to shown.
details.php, member.php...
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline nobita

  • Jr. Member
  • **
  • Posts: 61
  • ondesktop.org
    • View Profile
    • Car Wallpapers
Re: Show image name and category name in title bar?
« Reply #2 on: May 13, 2007, 03:08:10 PM »
Could you show me more detail about the way to perform this work?

Thank you!

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Show image name and category name in title bar?
« Reply #3 on: May 13, 2007, 03:27:09 PM »
>-< sorry I didn't understood your question . i wrote the last reply at 01:10:34 AM .. and ZZZzzz XD
at the moment I can't help you because I'm not in my home, but this night i will try to help you ;)
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Show image name and category name in title bar?
« Reply #4 on: May 14, 2007, 10:58:06 AM »
 :lol: I did it. It's very important to robots like google.

But you will have to change a lot of files, it will depends what mods you have installed. If you need help, I will try to help you

Ok. Beging your request

Open: templates/your_theme/header.html
search:
Code: [Select]
<title>{site_name}</title>
overwrite to:
Code: [Select]
<title>{titulo}</title>
Open: categories.php
search:
Code: [Select]
  "cat_name" => format_text($cat_cache[$cat_id]['cat_name'], 2),Add after:
Code: [Select]
  "titulo" => $config['site_name']." // ".format_text($cat_cache[$cat_id]['cat_name'], 2),-> I will show in your title bar:   SiteName (from config) // Name from categorie
If you want only cat name delete from the line above :
Code: [Select]
$config['site_name']." // ".
Open: details.php
search:
Code: [Select]
//--- Show Image --------------------------------------
//-----------------------------------------------------

After add:
Code: [Select]
//-- Show Title--
$titulo = $config['site_name']." // ".$image_row['cat_name']." // ".$image_row['image_name'];
$site_template->register_vars("titulo", $titulo);
unset($titulo);
It will show : SiteName // Category Name // Image Name

But now index.php, lightbox.php, search.php, top.php, register.php, postcards.php and member.php don't show any title... So you need to change all that files to show a title, like we changed the last files.  In all that files you can...

search:
Code: [Select]
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
add after:
Code: [Select]
"titulo" => $config['site_name'],
That's all. If you have any question I'm here ;)

Please put solved at title from the topic if i solved your problem ^^
« Last Edit: May 14, 2007, 11:58:08 AM by ccsakuweb »
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Show image name and category name in title bar?
« Reply #5 on: May 14, 2007, 04:42:13 PM »
 8O this mod alredy exists : http://www.4homepages.de/forum/index.php?topic=6613.0 I didn't know that before to do the modifications above. The mod from the link is better so I recommend you install it but it the same that i posted above although is more dinamic than my mod
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline nobita

  • Jr. Member
  • **
  • Posts: 61
  • ondesktop.org
    • View Profile
    • Car Wallpapers
Re: Show image name and category name in title bar?
« Reply #6 on: October 28, 2007, 07:27:33 AM »
8O this mod alredy exists : http://www.4homepages.de/forum/index.php?topic=6613.0 I didn't know that before to do the modifications above. The mod from the link is better so I recommend you install it but it the same that i posted above although is more dinamic than my mod

Oh,

Thank you very much!