Page 2 of 2 FirstFirst 12
Results 16 to 29 of 29

Thread: Different Titles for Category Pages

  1. #16
    Join Date
    Dec 2004
    Posts
    65

    Default

    Quote Originally Posted by Bruceper View Post
    If it's not there then you cant make it work unless you add the function yourself.

    There's lots of other things you can, don't get stuck on one small item.
    Other things as what? I dont look at this category titles issue as a small thing, especially when google sitemaps diagnostics section repots that I have 16,000 duplicate titles .. which is not good at all

  2. #17
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Try using $pagination

    Other things like $category, $category_name, $category_description,
    $content, $page_title and $editors

    An example would be
    $page_title - $category_name - $category_description - Edited by $editors

  3. #18
    Join Date
    Dec 2004
    Posts
    65

    Default

    Quote Originally Posted by Bruceper View Post
    Try using $pagination

    Other things like $category, $category_name, $category_description,
    $content, $page_title and $editors

    An example would be
    $page_title - $category_name - $category_description - Edited by $editors
    Tried adding these to the title, however these doesnt make title of category
    page unique..

    Anyway,

    If someone could help me with that $page function that already exists on Indexu Deluxe it would be great. That solves the problem 100%.

  4. #19
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Did you try $title

  5. #20
    Join Date
    Dec 2004
    Posts
    65

    Default

    Quote Originally Posted by Bruceper View Post
    Did you try $title
    Hey,

    Listen, I appreciate you trying to help me out however i dont think you understand exactly what I want. Ok, i will explain again. I want to add the page number to the title. If I add anything else, a category ( let's call it Auto ) that has 10 pages, won't be unique. I want each page title of the Auto category to have a number, Example: Auto - Page 1, Auto - Page 2, and so on. I see this is possible on Indexu Deluxe, However i think this is also possible on version 5.4, however i dont know how to do it.

  6. #21
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I understand what you want, it's not available. You either need to add it by writing the PHP yourself or move on to something else.

  7. #22
    Join Date
    Dec 2004
    Posts
    65

    Default

    Quote Originally Posted by Bruceper View Post
    I understand what you want, it's not available. You either need to add it by writing the PHP yourself or move on to something else.
    Well it is available, however it's available as you said, by adding the PHP. The problem is that i dont know how to do it, this is why i asked for help on the forum.

    Your response " move on to something else " does not help at all. This is the only solution i can think of to make the titles unique. Moving to another script, after 3 years of using indexu does not help my site at all.

  8. #23
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    If you want to hire someone to write it for you then go ahead. It's not a built in function in 5.x which is why I told you to move on and try something else, or upgrade to Deluxe.

  9. #24
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by rookers View Post
    Well it is available, however it's available as you said, by adding the PHP. The problem is that i dont know how to do it, this is why i asked for help on the forum.

    Your response " move on to something else " does not help at all. This is the only solution i can think of to make the titles unique. Moving to another script, after 3 years of using indexu does not help my site at all.
    Good grief...! Can anyone step in here and help this poor man. It's just an additional line of PHP code. Surely there is an active INDEXU member that has some PHP skills to solve this.

    if not, rookers, dody is online with live help occasionally. ask him.



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  10. #25
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Quote Originally Posted by Bruceper View Post
    global $header, $footer, $category, $category_name, $category_description,
    $link, $pagination, $category_path, $content, $editor,
    $category_path_search_opt, $meta_keywords, $meta_description,
    $page_title, $editors, $sponsored_link, $num_rows,
    $num_rows_sponsored, $num_rows_premium;

    I'm taking a stab at this, but is it possible to just add "$page" to the globals in the header above?? I'm not sure if you need to add something to the detail.html file or corresponding PHP file as well.

    Sorry, my PHP skills just aren't that great.
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  11. #26
    Join Date
    Dec 2004
    Posts
    65

    Default

    Quote Originally Posted by FSGDAG View Post
    I'm taking a stab at this, but is it possible to just add "$page" to the globals in the header above?? I'm not sure if you need to add something to the detail.html file or corresponding PHP file as well.

    Sorry, my PHP skills just aren't that great.
    Well there might be the need to add something to browse.php - that's the file that controls the category pages. Detail.html controls the detail pages, which are unique anyway ( their titles are unique ) .

    If someone could help out, i would really appreciate it. I think this is something we can all use, all our sites are affected.

  12. #27
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by rookers View Post
    If someone could help out, i would really appreciate it. I think this is something we can all use, all our sites are affected.
    in browse.php just after the line:
    $query .= " ) and (category_id = '$cat' or cat1 = '$cat' or cat2 = '$cat')
    and suspended = 0";

    add the following:
    // mod
    global $current_page;
    $current_page=$pg_which;

    in browse.html
    title="Browse by categories: $page_title Page: $current_page"

    Where's inspireme when you really need him...???


    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  13. #28
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    This isn't a support issue, this is a programming issue. Modifying/hacking the script is outside the scope of support. I put a bit of time into this and the results can be seen on http://www.moparmuscle.net

    The solution can be found here

    I see I shoulda refreshed the page, esm did it already. My method is slightly different, same goal.

  14. #29
    Join Date
    Dec 2004
    Posts
    65

    Default

    Thank you both. The solution offered by Bruceper works like a charm..

Similar Threads

  1. Category page titles
    By twomiracles in forum v5.x
    Replies: 4
    Last Post: 02-09-2008, 12:42 PM
  2. Category Name in Browse Pages
    By ezykiwi in forum v5.x
    Replies: 3
    Last Post: 01-17-2007, 06:54 PM
  3. Custom Category Pages
    By berto in forum Blocks and Modification
    Replies: 3
    Last Post: 08-04-2006, 03:46 AM
  4. category pages instead of browse.php?cat=1
    By webindia in forum Indexu Lite
    Replies: 2
    Last Post: 03-17-2005, 04:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •