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

0 Members and 1 Guest are viewing this topic.

Offline yousaf

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #165 on: May 28, 2009, 04:07:53 PM »
I am using 4images 1.7.7 on my site
i followed the steps for 1.7 successfully but when i tried to follow the next step for 1.71
Where we are told to do it for the new versions
Quote
IF you are using version 1.7, you are finished STOP HERE
i was unable to locate the lines in includes/page_header.php

what should i do now?
shall i stop here?
or i have to follow the last steps as well  without editing page_header.php?

on the 10th page of this thread Thunderstrike said that, "
I test too and is work good. No do last step for page_header.php (for header and footer). 4images is now in template for header and footer. No from page_header. ;)

Which one is the last step

Offline Benny Change

  • Addicted member
  • ******
  • Posts: 1.788
  • #WWG1WGA
    • View Profile
    • Qlobal-Change
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #166 on: May 28, 2009, 05:32:11 PM »
I Help You:

Send me your: includes/functions.php
Send me your: includes/page_header.php

And this Files:
categories.php, details.php, index.php, lightbox.php, member.php, postcards.php, register.php, search.php, top.php

I will be the same, the instructions on 1.7.7 rewrite, so that everyone can use it!
Beste Grüße
Benny

Offline comicart

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #167 on: May 28, 2009, 05:43:06 PM »
I will be the same, the instructions on 1.7.7 rewrite, so that everyone can use it!

Thank you Benny!

Offline Benny Change

  • Addicted member
  • ******
  • Posts: 1.788
  • #WWG1WGA
    • View Profile
    • Qlobal-Change
[MOD] Dynamic Page Title for v1.7.7
« Reply #168 on: May 28, 2009, 06:48:54 PM »
:flag-de: Deutsch

Diese Mod gibt einen dynamischen (ständig wechselnden) Seitentitel für deine Web-Seite aus.
Es erweitert das HTMl Markup {clickstream}, dadurch muss kein weiterer Code verwendet werden!
Wenn deine Seite "Meine Seite" heisst und du schaust dir eine Detailsseite an wo das Bild den Name "Alte Brücke" in der Subkategorie "Brücken" beinhaltet, dann wird das ganze im Seitentitel so ausgegeben:
Meine Seite / Brücken / Alte Brücke

Die Originale Modifikatiion stammt von: Chris
Link: http://www.4homepages.de/forum/index.php?topic=6613.msg29010#msg29010
Ich habe diese Modifikation an die Version 1.7.7 angepasst und mit deutscher und englischer Anleitung versehen!


:flag-en: English


This mod outputs a dynamic (ever changing) page title for your web pages. Essentially this adds the clickstream to your page title but without the added HTML markup.
If your site name is defined as "Smith Family Pictures" and you were viewing a details.php page for an image named "Old Bridge" in a subcategory named "Road Trip" which was a subcategory of a top-level "2005 Events" category and your admin control panel setting for "Category delimiter (in category paths)" was defined as "/", your page title would look like this:
Smith Family Pictures /2005 Events/Road Trip/Old Bridge

The originals Modifikatiion comes from: Chris
Link: http://www.4homepages.de/forum/index.php?topic=6613.msg29010#msg29010
I did this modification to the adapted version 1.7.7 and with German and English instructions!


:arrow: Installation - Step by Step


Step 1

Open includes/functions.php, locate:
Öffne includes/functions.php, suche:

function get_category_path($cat_id 0$detail_path 0) {
  global 
$site_sess$config$cat_cache$url;
  
$parent_id 1;
  while (
$parent_id) {
    if (!isset(
$cat_cache[$cat_id]['cat_parent_id'])) {
      return 
false;
    }
    
$parent_id $cat_cache[$cat_id]['cat_parent_id'];

    if (empty(
$path)) {
      if (
$detail_path) {
        
$cat_url ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id;
        if (
preg_match("/".URL_PAGE."=([0-9]+)/"$url$regs)) {
          if (!empty(
$regs[1]) && $regs[1] != 1) {
            
$cat_url .= "&".URL_PAGE."=".$regs[1];
          }
        }
        
$path "<a href=\"".$site_sess->url($cat_url)."\" class=\"clickstream\">".format_text($cat_cache[$cat_id]['cat_name'], 2)."</a>";
      }
      else  {
        
$path format_text($cat_cache[$cat_id]['cat_name'], 2);
      }
    }
    else {
      
$path "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id)."\" class=\"clickstream\">".format_text($cat_cache[$cat_id]['cat_name'], 2)."</a>".$config['category_separator'].$path;
    }
    
$cat_id $parent_id;
  } 
// end while
  
return $path;
}


Add after:
Darunter einfügenr:


function get_category_path_nohtml($cat_id 0) {  // MOD: Dynamic page title 1.7.7
  
global $config$cat_cache;
  
$parent_id 1;
  while (
$parent_id) {
    if (!isset(
$cat_cache[$cat_id]['cat_parent_id'])) {
      return 
false;
    }
    
$parent_id $cat_cache[$cat_id]['cat_parent_id'];

    if (empty(
$path)) {
      
$path $cat_cache[$cat_id]['cat_name'];
    }
    else {
      
$path $cat_cache[$cat_id]['cat_name'].$config['category_separator'].$path;
    }
    
$cat_id $parent_id;
  } 
// end while
  
return $path;
}


Locate:
Suche:


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;
}


Change this to:
Ändere das in:


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" => ""
  
));
  
// MOD: Dynamic page title 1.7.7 BLOCK BEGIN
  
$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 1.7.7 BLOCK END
  
$site_template->print_template($site_template->parse_template("error"));
  exit;
}


Step 2

Open categories.php, locate:
Öffne categories.php, suche:

$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].get_category_path($cat_id)."</span>";

Add after:
Füge darunter ein:

$page_title $config['category_separator'].get_category_path_nohtml($cat_id); // MOD: Dynamic page title 1.7.7

Locate:
Suche:

$site_template->register_vars(array(
  
"msg" => $msg,
  
"clickstream" => $clickstream
));


Change to:
Ändere in:

$site_template->register_vars(array(
  
"msg" => $msg,
  
"clickstream" => $clickstream,
  
"page_title" => $page_title // MOD: Dynamic page title 1.7.7
));


Locate:
Suche:

$site_template->print_template($site_template->parse_template($main_template));

On a new Line Add above:
Füge in einer neuen Zeile darüber:

// MOD: Dynamic page title 1.7.7 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 1.7.7 BLOCK END


Step 3

Open details.php, locate:
Öffne details.php, suche:
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'];

Add after:
Füge darunter:

$page_title 
$config['category_separator'].$lang['home'].$config['category_separator']; // MOD: Dynamic page title 1.7.7


Locate:
Suche


  $clickstream 
.= "<a href=\"".$site_sess->url(ROOT_PATH."lightbox.php".$page_url)."\" class=\"clickstream\">".$lang['lightbox']."</a>".$config['category_separator'];


Add after:
Füge darunter:

  $page_title 
$config['category_separator'].$lang['lightbox'].$config['category_separator']; // MOD: Dynamic page title 1.7.7


Locate:
Suche:


  $clickstream 
.= "<a href=\"".$site_sess->url(ROOT_PATH."search.php?show_result=1".$page_url)."\" class=\"clickstream\">".$lang['search']."</a>".$config['category_separator'];


Add after:
Füge darunter:

  $page_title 
$config['category_separator'].$lang['search'].$config['category_separator']; // MOD: Dynamic page title 1.7.7


Locate:
Suche:


  $clickstream 
.= get_category_path($cat_id1).$config['category_separator'];


Add after:
Füge darunter:

  $page_title 
$config['category_separator'].get_category_path_nohtml($cat_id).$config['category_separator']; // MOD: Dynamic page title 1.7.7


Locate:
Suche:


$clickstream 
.= $image_name."</span>";


Add after:
Füge darunter:


$page_title 
.= $image_name// MOD: Dynamic page title 1.7.7


Locate:
Suche:


$site_template
->register_vars(array(
  
"msg" => $msg,
  
"clickstream" => $clickstream,


CHANGE to:
Ändere in:

$site_template
->register_vars(array(
  
"msg" => $msg,
  
"clickstream" => $clickstream,
  
"page_title" => $page_title// MOD: Dynamic page title 1.7.7


Locate:
Suche:

$site_template->print_template($site_template->parse_template($main_template));

Add on a new Line above:
Füge in einer neuen Zeile darüber:

// MOD: Dynamic page title 1.7.7 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 1.7.7 BLOCK END


Step 4

Open index.php, locate:
Öffne index.php, suche:

if (!empty($template)) {
  
$clickstream "<a href=\"".$site_sess->url(ROOT_PATH."index.php")."\">".$lang['home']."</a>".$config['category_separator'].str_replace("_"" "ucfirst($template));


Add after:
Füge darunter:


  $page_title 
$config['category_separator'].str_replace("_"" "ucfirst($template)); // MOD: Dynamic page title 1.7.7


Locate:
Suche:


  $site_template
->register_vars("clickstream"$clickstream);


CHANGE to:
Ändere in:


  $site_template
->register_vars(array(
    
"clickstream" => $clickstream,
    
"page_title" => $page_title // MOD: Dynamic page title 1.7.7
  
));


On the next line down, locate:
Direkt danach kommen zwei weitere Zeilen, suche:


  $site_template
->print_template($site_template->parse_template($main_template));
  include(
ROOT_PATH.'includes/page_footer.php');
}


CHANGE this to:
Ändere das in:


  $site_template
->print_template($site_template->parse_template($main_template));
  include(
ROOT_PATH.'includes/page_footer.php');
} else { 
// MOD: Dynamic page title 1.7.7
  
$page_title $config['category_separator'].$lang['home'];
  
$site_template->register_vars("page_title"$page_title);
}


Locate:
Suche:


//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  
"msg" => $msg,
  
"clickstream" => $clickstream
));


CHANGE this to:
Ändere das in:


//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  
"msg" => $msg,
  
"clickstream" => $clickstream,
  
"page_title" => $page_title // MOD: Dynamic page title 1.7.7
));


Locate:
Suche:

  $site_template->print_template($site_template->parse_template($main_template));
  include(
ROOT_PATH.'includes/page_footer.php');


Add on a new Line above:
Füge in einer neuen Zeile darüber:

// MOD: Dynamic page title 1.7.7 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 1.7.7 BLOCK END


Step 5


Open lightbox.php, locate:
Öffne lightbox.php, suche


//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$lang['lightbox']."</span>";


Add after:
Füge darunter:


$page_title 
$config['category_separator'].$lang['lightbox']; // MOD: Dynamic page title 1.7.7


Locate:
Suche:


$site_template
->register_vars(array(
  
"msg" => $msg,
  
"clickstream" => $clickstream,


CHANGE this to:
Ändere das in:


$site_template
->register_vars(array(
  
"msg" => $msg,
  
"clickstream" => $clickstream,
  
"page_title" => $page_title// MOD: Dynamic page title 1.7.7


Locate:
Suche:

$site_template->print_template($site_template->parse_template($main_template));

Add on a new Line above:
Füge in einer neuen Zeile darüber:

// MOD: Dynamic page title 1.7.7 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 1.7.7 BLOCK END


Step 6

Open member.php, locate:
Öffne member.php, suche:


//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$txt_clickstream."</span>";


Add after:
Füge darunter:


$page_title 
$config['category_separator'].$txt_clickstream// MOD: Dynamic page title 1.7.7


Locate:
Suche:


$site_template
->register_vars(array(
  
"content" => $content,
  
"msg" => $msg,
  
"clickstream" => $clickstream,


CHANGE this to:
Ändere das in:


$site_template
->register_vars(array(
  
"content" => $content,
  
"msg" => $msg,
  
"clickstream" => $clickstream,
  
"page_title" => $page_title// MOD: Dynamic page title 1.7.7


Locate:
Suche:

$site_template->print_template($site_template->parse_template($main_template));

Add on a new Line above:
Füge in einer neuen Zeile darüber:

// MOD: Dynamic page title 1.7.7 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 1.7.7 BLOCK END


Step 7

Open register.php, locate:
Öffne register.php, suche:


//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$lang['register']."</span>";


Add after:
Füge darunter:


$page_title 
$config['category_separator'].$lang['register']; // MOD: Dynamic page title 1.7.7


Locate:
Suche:


$site_template
->register_vars(array(
  
"content" => $content,
  
"msg" => $msg,
  
"clickstream" => $clickstream,


CHANGE this to:
Ändere das in:


$site_template
->register_vars(array(
  
"content" => $content,
  
"msg" => $msg,
  
"clickstream" => $clickstream,
  
"page_title" => $page_title// MOD: Dynamic page title 1.7.7


Locate:
Suche:

$site_template->print_template($site_template->parse_template($main_template));

Add on a new Line above:
Füge in einer neuen Zeile darüber:

// MOD: Dynamic page title 1.7.7 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 1.7.7 BLOCK END


Step 8

Open search.php, locate:
Öffne search.php, suche:


//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$lang['search']."</span>";


CHANGE this to:
Ändere das in:


//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
// $clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$lang['search']."</span>"; // Original code
// MOD: Dynamic page title 1.7.7 BLOCK BEGIN
if (!empty($search_id['search_new_images'])) {
  if( 
$search_id['search_new_images'] == )
    
$txt_clickstream $lang['new_images'];
  else
    
$txt_clickstream $lang['new_images_since'];
}
else {
  
$txt_clickstream $lang['search'];
}
$clickstream "<span class=\"clickstream\"><a title=\"".$lang['home']."\" href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].(($search_keywords) ? "<a href=\"".$site_sess->url(ROOT_PATH."search.php")."\" class=\"clickstream\">".$lang['search']."</a>".$config['category_separator'].$search_keywords $txt_clickstream)."</span>";  // Show search keywords
$page_title $config['category_separator'].$txt_clickstream;
// MOD: Dynamic page title 1.7.7 BLOCK END


Locate:
Suche:


$site_template
->register_vars(array(
  
"content" => $content,
  
"msg" => $msg,
  
"clickstream" => $clickstream,


CHANGE this to:
Ändere das in:


$site_template
->register_vars(array(
  
"content" => $content,
  
"msg" => $msg,
  
"clickstream" => $clickstream,
  
"page_title" => $page_title// MOD: Dynamic page title 1.7.7


Locate:
Suche:

$site_template->print_template($site_template->parse_template($main_template));

Add on a new Line above:
Füge in einer neuen Zeile darüber:

// MOD: Dynamic page title 1.7.7 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 1.7.7 BLOCK END


Step 9

Open top.php, locate:
Öffne top.php, suche:


//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'];
if (
$cat_id && isset($cat_cache[$cat_id])) {
  
$clickstream .= get_category_path($cat_id1).$config['category_separator'];
}
$clickstream .= $lang['top_images']."</span>";


CHANGE this to:
Ändere das in:


//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
$clickstream "<span class=\"clickstream\"><a title=\"".$lang['home']."\" href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'];
$page_title $config['category_separator']; // MOD: Dynamic page title 1.7.7
if ($cat_id && isset($cat_cache[$cat_id])) {
  
$clickstream .= get_category_path($cat_id1).$config['category_separator'];
  
$page_title .= get_category_path_nohtml($cat_id).$config['category_separator']; // MOD: Dynamic page title 1.7.7
}
$clickstream .= $lang['top_images']."</span>";
$page_title .= $lang['top_images']; // MOD: Dynamic page title 1.7.7


Locate:
Suche:


$site_template
->register_vars(array(
  
"msg" => $msg,
  
"clickstream" => $clickstream,


CHANGE this to:
Ändere das in:


$site_template
->register_vars(array(
  
"msg" => $msg,
  
"clickstream" => $clickstream,
  
"page_title" => $page_title// MOD: Dynamic page title 1.7.7


Locate:
Suche:

$site_template->print_template($site_template->parse_template($main_template));

Add on a new Line above:
Füge in einer neuen Zeile darüber:

// MOD: Dynamic page title 1.7.7 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 1.7.7 BLOCK END


Step 10

Open postcard.php, locate:
Öffne postcard.php, suche

$site_template->print_template($site_template->parse_template($main_template));

Add on a new Line above:
Füge in einer neuen Zeile darüber:

// MOD: Dynamic page title 1.7.7 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 1.7.7 BLOCK END


Step 11

Open templates/default/header.html, locate:
Öffne templates/default/header.html, suche:


<title>{prepend_head_title}{site_name}</title>


CHANGE this to:
Ändere das in:

<title>{prepend_head_title}{site_name}{page_title}</title>
Beste Grüße
Benny

Offline yousaf

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #169 on: May 28, 2009, 06:53:28 PM »
Thank you Benny for being so FAST at files editing :wink:
You did it just on the right time. :D

Offline Benny Change

  • Addicted member
  • ******
  • Posts: 1.788
  • #WWG1WGA
    • View Profile
    • Qlobal-Change
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #170 on: May 28, 2009, 06:58:42 PM »
   
Hello,

that I have gladly done so.

I hope that this guide also contains no errors.

If you find errors, then please contact me.
Beste Grüße
Benny

Offline yousaf

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #171 on: May 28, 2009, 07:55:16 PM »
Bravo man
its working like a Charm everywhere :D

i can see now titles like this

detail page             :  Andover - mysite.com / Nature & Scenic Wallpaper / Lakes / Andover
index page             :  mysite.com / home
sub Category  page :  Harry Potter - mysite.com / Movie & TV Wallpapers / Harry Potter
Category        page :  Movie & TV Wallpapers - mysite.com / Movie & TV Wallpapers
Top images    page :  mysite.com / Top images
Registration    page :  mysite.com / Registration
User profile     page :  mysite.com / User profile

now just a small kind of tweaking is still left if some how re-order the titles to such nature

detail page             :  Andover - Lakes / Nature & Scenic Wallpaper / mysite.com
index page             :  home / mysite.com
sub Category  page :  Harry Potter -  /  Harry Potter / Movie & TV Wallpapers / mysite.com
Category        page :  Movie & TV Wallpapers - Movie & TV Wallpapers / mysite.com
Top images    page :  Top images / mysite.com
Registration    page :  Registration /mysite.com
User profile     page :  User profile /mysite.com

then it will be perfect

Offline Benny Change

  • Addicted member
  • ******
  • Posts: 1.788
  • #WWG1WGA
    • View Profile
    • Qlobal-Change
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #172 on: May 28, 2009, 08:54:02 PM »
The code, I can not change. If I change the code, I have also indicated their support.

However, I do not know really how to do this that I would have time for me to see!
Beste Grüße
Benny

Offline yousaf

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #173 on: May 28, 2009, 08:57:58 PM »
Thanks anyways. Benny you did a great job.
we can go on gladly with these titles as well :D
cheers

Offline fixyou

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #174 on: May 31, 2009, 06:45:49 AM »
Hello, this mod looks very interesting to me http://www.4homepages.de/forum/index.php?topic=6729.0 ,

but I work with and this 4images 1.7.6,


As I said here, but it did not work http://www.4homepages.de/forum/index.php?topic=6613.msg136222#msg136222 .

What is really required for version 1.7.6


Thank you very much and sorry for my English :?


Offline Benny Change

  • Addicted member
  • ******
  • Posts: 1.788
  • #WWG1WGA
    • View Profile
    • Qlobal-Change
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #175 on: May 31, 2009, 11:47:23 AM »
   
This definitely works with 1.7.6
Beste Grüße
Benny

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #176 on: May 31, 2009, 01:37:14 PM »
I can say the above mod most recently posted for 1.7.7 does not work. Going back to the first page to see if it will work for 1.7.6.
As long as I can finish my site before I die.

Offline Benny Change

  • Addicted member
  • ******
  • Posts: 1.788
  • #WWG1WGA
    • View Profile
    • Qlobal-Change
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #177 on: May 31, 2009, 01:44:29 PM »
The modification works!
I did the modification for me to run and it was confirmed that it works!
Beste Grüße
Benny

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #178 on: June 04, 2009, 08:21:17 AM »
The modification works!
I did the modification for me to run and it was confirmed that it works!


Can I understand you correctly, you did the steps on the first page for 1.7 and 1.7.1 and everything worked with out any alterations from the steps in the first page for 1.7.6?
As long as I can finish my site before I die.

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #179 on: June 04, 2009, 09:06:16 AM »
in my 1.7.6 I  have not this code in page_header.php

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);
}


Ok it works if you go to stop here. Now Im going to try to get the image listed first....
« Last Edit: June 04, 2009, 10:12:22 AM by AntiNSA2 »
As long as I can finish my site before I die.