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

0 Members and 1 Guest are viewing this topic.

Offline donpedro

  • Full Member
  • ***
  • Posts: 110
    • View Profile
    • Baden bei Wien - Fotos einer Stadt
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #30 on: September 07, 2005, 07:01:53 PM »
fotograf74

you can easily change it in the admin :

Zeichen zur Trennung der Kategorien in den Kategoriepfaden (I dont know how its called in the english admin, I think "category separator" or so.

change  /  to:   -   and thats it.

the "-" will appear in the clickstream and in the title.

dp

Offline bunelul

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #31 on: September 09, 2005, 10:18:08 AM »
Hello

Only 2 questions regarding this mode:

1. Is possible to print on the title search string like: " keyword / search / site_title " ?
2. On 2 different sites the same happens on http://mysite.com/member.php?action=uploadform&cat_id=nn
on the title is printed
...a href="./categories.php?cat_id=nn" class="clickstream">category_title</a>&nbsp;/&nbsp;Upload Image&nbsp;/&nbsp; Site_title...

Could somebody help me?
On The rest of pages the dinamic title page works well.

Thanks.

Offline bunelul

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #32 on: September 12, 2005, 05:16:44 PM »
bump !!!  :oops:

Offline IWS_steffen

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Kreuzfahrtschiffe gestern und heute
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #33 on: September 23, 2005, 10:07:18 PM »
Hi Chris

This Mod works perfect ... great !!!  :)

Many thanks   

coooool

Steffen

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #34 on: October 01, 2005, 09:12:32 AM »
Okay that mod works, but what I have to do when I installed the guestbook http://www.4homepages.de/forum/index.php?topic=7409.0?

What must I change in the guestbook.php?

PLZ help  :|

Project offline

Offline urmasmuld

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #35 on: October 06, 2005, 10:05:58 AM »
I have same question, I have installed the Memberlist MOD, but I get only this : Gallery name / should be Gallery name / Memberlist

Offline binuj01

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Sourcestravel
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #36 on: October 06, 2005, 08:32:43 PM »
I have installed this for ver 1.7 .. Can someone check my site and see if it is working as expected.
www.iphotovideo.com
Thanks
Binu
www.sourcestravel.com
See your travel destnations ahead.

Offline urmasmuld

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #37 on: October 07, 2005, 01:13:38 PM »
I have same question, I have installed the Memberlist MOD, but I get only this : Gallery name / should be Gallery name / Memberlist
Figured it out
in memberlist.php
find:
Code: [Select]
$clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'];
$clickstream .= $lang['lang_userlist_title'];
$clickstream .= $config['category_separator'].$lang['lang_userlist_page'].$page."</span>";
add after:
Code: [Select]
$page_title = $config['category_separator'].$lang['lang_userlist_title'].$config['category_separator'].$lang['lang_userlist_page'].$page; // MOD: Dynamic page title
find:
Code: [Select]
$site_template->register_vars(array(
  "msg" => $msg,
  "clickstream" => $clickstream,
 
replace:
Code: [Select]
$site_template->register_vars(array(
  "msg" => $msg,
  "clickstream" => $clickstream,
  "lang_userlist_title" => $lang['lang_userlist_title'],
find:
Code: [Select]
$site_template->print_template($site_template->parse_template($main_template));
add before:
Code: [Select]
// MOD: Dynamic page title BLOCK BEGIN
//-----------------------------------------------------
//--- 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);
}
// MOD: Dynamic page title BLOCK END

Offline urmasmuld

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #38 on: October 07, 2005, 02:38:27 PM »
Okay that mod works, but what I have to do when I installed the guestbook http://www.4homepages.de/forum/index.php?topic=7409.0?

What must I change in the guestbook.php?

PLZ help  :|
I haven't tried that by myself (don't know if it's working), but try this!

in guestbook.php
find:
Code: [Select]
$clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator']
            ."<a href=\"".$site_sess->url(ROOT_PATH."guestbook.php?action=showcomments")."\">".$lang['guestbook']."</a>".$config['category_separator'].$txt_clickstream."</span>";
add after:
Code: [Select]
$page_title = $config['category_separator'].$lang['guestbook']; // MOD: Dynamic page title

find:
Code: [Select]
$site_template->register_vars(array(
  "contents" => $contents,
  "guestbook_comments" => $comments,
  "lang_sign_my_guestbook" => $lang['sign_my_guestbook'],
  "msg" => $msg,
  "clickstream" => $clickstream
));
replace:
Code: [Select]
$site_template->register_vars(array(
  "contents" => $contents,
  "guestbook_comments" => $comments,
  "lang_sign_my_guestbook" => $lang['sign_my_guestbook'],
  "msg" => $msg,
  "clickstream" => $clickstream,
  "page_title" => $page_title // MOD: Dynamic page title
 ));
find:
Code: [Select]
$site_template->print_template($site_template->parse_template($main_template));
add before:
Code: [Select]
// MOD: Dynamic page title BLOCK BEGIN
//-----------------------------------------------------
//--- 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);
}
// MOD: Dynamic page title BLOCK END

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #39 on: October 07, 2005, 03:37:53 PM »
Yeah this works fine!

THANKS! THANKS! THANKS! THANKS! THANKS! THANKS! THANKS! THANKS! THANKS!

Project offline

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #40 on: October 07, 2005, 09:34:00 PM »
Sorry but something is wrong :?

I made changes by bentleykf and now it should be e.g.

Picture Name / Sub-Category / Main-Category / HP-Title but it is

Picture Name / Main-Category / Sub-Category / Home / HP-Title



Something I have mixed !?!?? I have changed the details.php ones more but it still looks like before...

Please help again  :oops:

Project offline

Offline Jasmine

  • Newbie
  • *
  • Posts: 21
    • View Profile
Reverse cat order fix.
« Reply #41 on: October 15, 2005, 10:33:46 PM »
To reverse the order of categories, change the following line in the get_category_path_nohtml function in includes/functions.php from:

Code: [Select]
$path = $cat_cache[$cat_id]['cat_name'].$config['category_separator'].$path;
To:
Code: [Select]
$path = $path . $config['category_separator'] . $cat_cache[$cat_id]['cat_name'];
Jasmine

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #42 on: October 15, 2005, 10:42:32 PM »
Yeah! Thatīs it!

Thank you very much!  :lol:

Project offline

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #43 on: October 23, 2005, 11:51:21 PM »
Okay, another MOD another problem  :oops:

I have installed the PMv2 MOD - now I tried to change the pm.php but I donīt know what I have to change :

I tried this:

Code: [Select]
$clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator']."<a href=\"".$site_sess->url(ROOT_PATH."pm.php")."\">".$lang['pm_short']."</a>".$config['category_separator'].$txt_clickstream."</span>";
$page_title = $config['category_separator'].$lang['lang_pm'].$config['category_separator'].$lang['lang_pm'].$page; // MOD: Dynamic page title

And add this:

Code: [Select]
"clickstream" => $clickstream,
  "msg" => get_msg($msg),
  "content" => $content,
  "title" => $title
));
// MOD: Dynamic page title BLOCK BEGIN
//-----------------------------------------------------
//--- 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);
}
// MOD: Dynamic page title BLOCK END

I think itīs no wunder that it wonīt work  :roll: PLZ help help help help  :mrgreen:

Project offline

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #44 on: November 16, 2005, 04:04:45 PM »
is it possible that server restrictions prevents this mod to work ?
i moved to another server with two sites, and mod doesn't work any more.

I also added the "internal caching for images 1.7" mod, and inserted the template engine from 1.7.1 into 1.7....
maybe this is causing the problem ?

 :roll: