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

0 Members and 1 Guest are viewing this topic.

Offline sanitarium

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #90 on: June 11, 2006, 08:48:01 PM »
perhaps by doing the next step? :roll:

I'm sure, I done all steps..  :roll:

Offline cusoon

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #91 on: June 13, 2006, 10:08:02 AM »
I'm having exactly the same problem as sanitarium - followed all the steps 100%, sub-pages works 100% but index.php breaks with some error relating to template.php (see here: http://www.photoalbum.co.za/mockup/ )

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 #92 on: June 13, 2006, 02:35:59 PM »
index.php breaks with some error relating to template.php
1) "some error" is absolutly not helpfull, next time quote the exact error message not just give a link to the site.
2) your case is an error in the template. the number of {if ...} tags must match number of {endif ...}.
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 cusoon

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #93 on: June 13, 2006, 06:02:16 PM »
1) "some error" is absolutly not helpfull, next time quote the exact error message not just give a link to the site.
Hi V@no, apologies for not putting in the actual error in my post  :oops: ; will do so in future when posting.
Thanks for the help; I was missing {if categories} in my header.html file, only had the {endif categories} in there - its all working 100% now - thanks again!  :D

Offline comicart

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #94 on: June 19, 2006, 06:17:11 AM »
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


Does someone knows how to get rid of the "/ Home /" - part in the title ?
( you only see this if you go to a picture, no "home" part in title when you go to categories )
thx


I added this mod to show categories and details just fine.
However - now my home page says "HOME / Home Page Title"

How do I get rid of "HOME" on the index page? (not Home Page Title)

Curious,
Terry

Offline comicart

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #95 on: June 19, 2006, 06:24:15 AM »
I added this mod to show categories and details just fine.
However - now my home page says "HOME / Home Page Title"
How do I get rid of "HOME" on the index page? (not Home Page Title)

Through trial and error I found this is the answer my own question:
Comment out in index.php:
//  $page_title = $lang['home'].$config['category_separator'];

I hope that was right. Seems to work! :)

T

Offline sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #96 on: August 05, 2006, 05:01:51 AM »
does this mod help with SEO?
Please anybody guide me weather this mod will work with 1.7.3 and is it worth installing to get better search engine optimisation ..  i mean with google and other SE?

Offline sooner1

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #97 on: August 07, 2006, 06:08:09 PM »
 Will the instructions work for 1.7.2 ?

Offline sooner1

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #98 on: August 07, 2006, 09:55:28 PM »
I have updated all the files as expained . I am running 1.7.2
I am getting this error
Fatal error: Call to undefined function: get_category_path_nohtml() in /home/needfuls/public_html/main/details.php on line 512

Here is my code after changing

  $page_title = $config['category_separator'].$lang['search'].$config['category_separator']; // MOD: Dynamic page title
}
else {
  $clickstream .= get_category_path($cat_id, 1).$config['category_separator'];
  $page_title = $config['category_separator'].get_category_path_nohtml($cat_id).$config['category_separator']; // MOD: Dynamic page title
}



I also got this error when accessing a category
Fatal error: Call to undefined function: get_category_path_nohtml() in /home/needfuls/public_html/main/categories.php on line 166
« Last Edit: August 07, 2006, 10:08:42 PM by sooner1 »

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 #99 on: August 07, 2006, 10:23:48 PM »
I have updated all the files as expained .
No, you didnt. The very first step is where you made the misstake.
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 sooner1

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #100 on: August 07, 2006, 10:56:19 PM »
Thanks for pointing that out  :wink: I cannot believe I missed that.
Anyways I uploaded everything and I am not getting any errors. However I am not seeing any
page titles . I am using the "wallpaper" template. I changed the header.html code to
<title>{site_name} {page_title}</title>

However nothing is happening it is just as before with the site name in the browser.


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 #101 on: August 08, 2006, 12:34:59 AM »
Perhaps something else you missed? ;)
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 sooner1

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #102 on: August 08, 2006, 12:44:17 AM »
LOL  :D I just went back through and do not see anything. I went step by step .
I changed both the default header and the wallpaper header.
Can't think of anything else it could be.

Have any ideas ?
After a while of looking the code starts to run together :)

Offline sooner1

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #103 on: August 08, 2006, 08:01:14 PM »
Ok, I re loaded all fresh files then started over. Still the samething. Nothing has changed.
I do not get anything in the browser title but the website name no matter what page I am on.
I am using the wallpaper template is that the problem. I cannot see where it would be.

What is going on does anyone know ?

Offline sooner1

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: [MOD] Dynamic Page Title for v1.7 & v1.7.1
« Reply #104 on: August 12, 2006, 06:47:57 PM »
No one has any idea what is going on ? I have triple checked everything.