• [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 299166 times)

0 Members and 1 Guest are viewing this topic.

Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #15 on: April 20, 2005, 09:12:23 AM »
2 Vano: this solution don't working

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 #16 on: April 20, 2005, 02:34:33 PM »
not working HOW?
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 vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #17 on: April 20, 2005, 03:45:57 PM »
Clickstream included in header not shown.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #18 on: April 21, 2005, 01:16:16 AM »
There is a lot to edit.  Recheck your steps VERY carefully.  You must have missed something

It's supposed to be
Code: [Select]
{page_title} anyway and not clickstream...

Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #19 on: April 21, 2005, 09:19:00 AM »
I'm understand. But clickstream and page title shown on all pages, exept error page

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #20 on: April 21, 2005, 03:06:28 PM »
You never said anything about the error page.  You said

Clickstream included in header not shown.

And there is no clickstream information for the error page. That is why there is nothing shown.

Offline graficalicus

  • Full Member
  • ***
  • Posts: 235
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #21 on: April 21, 2005, 05:00:08 PM »
had no problems - thanks!

Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #22 on: April 21, 2005, 10:14:55 PM »
Chris, in functions.php you can see this function:
Code: [Select]
function show_error_page($error_msg, $clickstream = "") {
  global $site_template, $site_sess, $lang, $config;
  if (empty($clickstream)) {
    $clickstream = "<a href=\"".$site_sess->url(ROOT_PATH."index.php")."\">".$lang['home']."</a>".$config['category_separator'].$lang['error'];
  }
  $site_template->register_vars(array(
    "error_msg" => $error_msg,
    "lang_error" => $lang['error'],
    "clickstream" => $clickstream,
    "random_image" => ""
  ));
  $site_template->print_template($site_template->parse_template("error"));
  exit;
}

I mean, what when this function is working you don't have any info in page_title and clickstream (if clickstream is placed in header.html). For default template clickstream is working well...

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #23 on: April 22, 2005, 12:37:19 AM »
I'm still confused.  What exactly do you expect to appear?

<title>{site_name} Error</title>  :?:

Then change that code to:
Code: [Select]
function show_error_page($error_msg, $clickstream = "") {
  global $site_template, $site_sess, $lang, $config;
  if (empty($clickstream)) {
    $clickstream = "<a href=\"".$site_sess->url(ROOT_PATH."index.php")."\">".$lang['home']."</a>".$config['category_separator'].$lang['error'];
  }
  $site_template->register_vars(array(
    "error_msg" => $error_msg,
    "lang_error" => $lang['error'],
    "clickstream" => $clickstream,
    "page_title" => $config['category_separator'].$lang['error'],
    "random_image" => ""
  ));
  $site_template->print_template($site_template->parse_template("error"));
  exit;
}

Offline 5images

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #24 on: May 29, 2005, 08:46:46 PM »
not working HOW?

Hi Vano,
I think he means, that the error page is shown without code out of the header- and footer-template, if you try to log in with an invalid username- and password-kombination. header- and footer-template is not included, so the error page appears incomplete. this ist a result of this mod (first post in this thread), if you activate the old code at page_header.php again, the page is displayed correct again.

Any solutions?
All the best
Juergen

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #25 on: June 01, 2005, 01:36:29 AM »
Thank you for the explanation.  Now I understand what's going on.  I'll update the original post with the patch that fixes this

Please test it though as I just don't have the time to do so tonight.

Offline fotograf74

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #26 on: June 03, 2005, 09:06:19 AM »
How can i display this in my title:

Now I see:  / MAIN-CATEGORY /  SUB-CATEGORY / PICTURE NAME

I want to see this: PICTURE NAME | SUB-CATEGORY | MAIN-CATEGORY

And I want to change the slash (/) in this |

Who can help me,
A long time ago there was a description, but then came the Forum-Crash

Thanks for your help

Offline fotograf74

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #27 on: August 01, 2005, 03:57:28 PM »
Anybody can help me?

How can i display this in my title:

Now I see:   / MAIN-CATEGORY /  SUB-CATEGORY / PICTURE NAME

I want to see this: PICTURE NAME | SUB-CATEGORY | MAIN-CATEGORY

And I want to change the slash "/" in this "|"

Who can help me,
A long time ago there was a description, but then came the Forum-Crash

Thanks for your help

----

Hallo wer kann mir helfen

Offline fotograf74

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #28 on: August 31, 2005, 12:01:37 AM »
No one out there, who can help me???

Offline djith

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #29 on: September 07, 2005, 01:34:19 PM »
This Mod works perfect ..... great !!!
Many thanks :) :) :)

joehoe !!!!

www.avatarcorner.com