Results 1 to 4 of 4

Thread: Related Category Display

  1. #1
    Harkster is offline Registered User
    Join Date
    Mar 2008
    Posts
    127

    Default Related Category Display

    I think that placing an @ after the category (especially without a space) is quite ugly. Took quite a bit of time to dig it up but I found where to change appearance.

    Since I like @ Category much better than either Category@ or Category @. I know it is just a small thing to most but can be changed by:

    In category.class.php at about line 454 change
    Code:
                // if related category put @ after its name
                if (in_array($cat_id, $related)) 
                  $cat_name .= "@";
    to
    Code:
                // if related category put @ before its name
                if (in_array($cat_id, $related)) 
    	      $cat_name = "@ " . $cat_name;
    If you just want to add a space change $cat_name .= "@"; to $cat_name .= " @";

  2. #2
    FSGDAG's Avatar
    FSGDAG is offline Moderator
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Maybe I'm having a senior moment ( I'm 35!!! ) but is this something that is in all templates, or a specific one? Where exactly do you find this in the template?

    Also, do you think you have the ability to turn this into a plugin? Do you understand how plugins work / are created? I'm asking because the idea of changing core files makes upgrading a S.O.B., but when you make the changes through plugins, you dont have to worry about it
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  3. #3
    Harkster is offline Registered User
    Join Date
    Mar 2008
    Posts
    127

    Default

    Quote Originally Posted by FSGDAG View Post
    Maybe I'm having a senior moment ( I'm 35!!! ) but is this something that is in all templates, or a specific one? Where exactly do you find this in the template?
    Since the category.class.php is located in the lib directory I assume this isn't template dependent.

    Also, do you think you have the ability to turn this into a plugin? Do you understand how plugins work / are created? I'm asking because the idea of changing core files makes upgrading a S.O.B., but when you make the changes through plugins, you dont have to worry about it
    Ain't got a clue about building a plugin.
    Yes, making this type of changes is not for casual use and there must be a system to record them and not to forget attention may be required when doing upgrades.
    Would be nice to control this at the template level.
    For most this is likely a small thing but there is a method to my madness as in I what a 'different' look from every other and sometimes a small thing can make a big difference.
    Doing as a plugin may be a good idea. Any documentation laying around somewhere?

  4. #4
    Harkster is offline Registered User
    Join Date
    Mar 2008
    Posts
    127

    Default

    5 min passed and couldn't edit the last so - Didn't dawn on me when I posted this that it could cause people problems. I won't be offended if you delete the post.

Similar Threads

  1. Related category not working
    By Voyageur in forum INDEXU DELUXE v1.x
    Replies: 1
    Last Post: 04-05-2009, 01:22 PM
  2. Replies: 1
    Last Post: 03-13-2007, 12:19 AM
  3. Related category
    By aladdin1 in forum v5.x
    Replies: 21
    Last Post: 11-10-2004, 11:38 AM
  4. category display
    By Hart_House in forum v5.x
    Replies: 1
    Last Post: 12-03-2001, 05:57 PM
  5. Replies: 6
    Last Post: 11-21-2001, 07:21 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
  •