• [MOD] Dynamic Page Title for v1.7 & v1.7.1 5 0 5 1
Currently:  

Author Topic: [MOD] Dynamic Page Title for v1.7 & v1.7.1  (Read 299195 times)

0 Members and 4 Guests are viewing this topic.

Offline artistichideaway

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #75 on: May 04, 2006, 08:41:08 AM »
this is interesting because I have 7dana template as well, and it doesn't work for me either as I have mentioned on a previous page.

my header.html in 7dana has the correct line:
<title>{site_name} {page_title}</title>

and still it doesn't work.

Could the template be a problem maybe?
Because it seems we are only 2 people who have problem with it and we both have the same template.




« Last Edit: November 01, 2006, 09:59:18 AM by artistichideaway »

Offline redlock

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #76 on: May 04, 2006, 12:06:41 PM »
RE: artistichideaway
wow. nice galery and it works by you !!! and you hava the same 7dana template.

why does it work at one time with you?  what did you change?

RE: BartAfterDark
what you see in the browser is the code of the frameset and not the realy the header.html.

the header is an include-file and only php and this would not parse or can show in this sight.

Offline artistichideaway

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #77 on: May 04, 2006, 05:49:13 PM »
Quote
RE: artistichideaway
wow. nice galery and it works by you !!! and you hava the same 7dana template.
why does it work at one time with you?  what did you change?

Oh, it works now, yes, you are right. It must have been the google. It took almost a month to update my links in google and I thought it wasn't working.
The links look great now.  :lol:

So everything's fine...thanks.


Offline redlock

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #78 on: May 08, 2006, 07:16:16 PM »
why does it work at one time with you?  what did you change?

i dont understand you. with you google helped?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #79 on: May 09, 2006, 06:57:36 AM »
Since you are using frameset on your site, only title of the parent (main) frame will be visible on the browser.
And only with some javascript you might be able change it (aka copy title from a child page).
Its nothing to do with a template you are using.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline redlock

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #80 on: May 09, 2006, 05:48:48 PM »
thanks for all. it works.
where can i modifiy the pfad "Home/Städte/Arraial do cabo" -> it have no blank.
when i search to "/" and "category" i found nothing

Offline koikonut

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://www.konradin.net
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #81 on: May 10, 2006, 12:21:32 AM »
thanks for all. it works.
where can i modifiy the pfad "Home/Städte/Arraial do cabo" -> it have no blank.
when i search to "/" and "category" i found nothing

I think that is a little bug of the 4images version 1.7.2 that the blanks that you add in the ACP are removed by updating the ACP again. Add in ACP "Settings" to

"Category delimiter (in category paths)" -> &nbsp;/&nbsp;

bye Konradin

Offline redlock

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #82 on: May 11, 2006, 07:51:50 PM »
thanks. work great.

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #83 on: May 12, 2006, 09:07:26 AM »
hmm i would like to have in detail.php

Photo Titel ¦ category ¦ Keywords

thanks for any help!

vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline koikonut

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://www.konradin.net
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #84 on: May 13, 2006, 03:35:13 AM »
hmm i would like to have in detail.php

Photo Titel ¦ category ¦ Keywords

thanks for any help!

vincent

Category separator: "&nbsp;&brvbar;&nbsp;" or "&nbsp;&#166;&nbsp;" (look here for special chairs (german) http://www.mediaevent.de/tutorial/sonderzeichen.html)

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #85 on: May 13, 2006, 08:05:33 AM »
@konradin
it is not the separator which is important but to have them in this order it could also be a / \ ¦ | but photo titel - category - keywords
sincerly
vincent
hmm i would like to have in detail.php

Photo Titel ¦ category ¦ Keywords

thanks for any help!

vincent

Category separator: "&nbsp;&brvbar;&nbsp;" or "&nbsp;&#166;&nbsp;" (look here for special chairs (german) http://www.mediaevent.de/tutorial/sonderzeichen.html)
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline himu

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • Point Of View
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #86 on: May 13, 2006, 09:05:56 PM »
Hey thanks :)
It works now perfect
TIP: code should be replace in 2 places in member.php

I've got a better solution... my previous fix was not proper ... it was also taking out the hyperlink from the clickstream.

Find (3 times):
Code: [Select]
$txt_clickstream = "";
Replace ALL with:
Code: [Select]
$txt_clickstream = "";
$txt_clickstream_t = "";

Next Find ALL lines starting with (9 times):
Code: [Select]
$txt_clickstream = get_category_path(
Duplicate that line and make following changes in the duplicated line:
Code: [Select]
$txt_clickstream_t = get_category_path_nohtml(
Now Find ALL lines starting with (9 times):
Code: [Select]
$txt_clickstream .= $lang
Duplicate that line and make following changes in the duplicated line:
Code: [Select]
$txt_clickstream_t .= $lang

Lastly Find:
Code: [Select]
$page_title = $config['category_separator'].$txt_clickstream;
Replace with:
Code: [Select]
$page_title = $config['category_separator'].$txt_clickstream_t;
That's it.. hope it works for all..

Offline cusoon

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #87 on: May 28, 2006, 09:58:08 PM »
I've applied this MOD successfully on v.1.7 (thanks for a great MOD btw!) but in v.1.7.2 it doesn't seem to work. I've checked and rechecked all the code that needed to be changed and followed all the steps to the tee, but I keep on getting this (http://www.photoalbum.co.za/mockup/) on the index page & any category page. When selecting anything else tho, it works 100% - any ideas? I'd appreciate some guidance here  :)

Offline sanitarium

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #88 on: June 11, 2006, 07:51:38 PM »
Open includes/page_header.php, locate:
Code: [Select]
//-----------------------------------------------------
//--- Parse Header & Footer ---------------------------
//-----------------------------------------------------
if (isset($main_template) && $main_template) {
  $header = $site_template->parse_template("header");
  $footer = $site_template->parse_template("footer");
  $site_template->register_vars(array(
    "header" => $header,
    "footer" => $footer
  ));
  unset($header);
  unset($footer);
}

We need to move this logic to each of the top-level php files, so comment out this code by replacing it with:
Code: [Select]
/********** ORIGINAL
//-----------------------------------------------------
//--- Parse Header & Footer ---------------------------
//-----------------------------------------------------
if (isset($main_template) && $main_template) {
  $header = $site_template->parse_template("header");
  $footer = $site_template->parse_template("footer");
  $site_template->register_vars(array(
    "header" => $header,
    "footer" => $footer
  ));
  unset($header);
  unset($footer);
}
**********/

Hi,
I'm using 1.7.2 version. When I replace the code at above, sub pages work fine but index.php template to spoil. How can I fix this problem? Help please...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #89 on: June 11, 2006, 07:58:55 PM »
perhaps by doing the next step? :roll:
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)