Page 1 of 2 12 LastLast
Results 1 to 15 of 22

Thread: Related category

  1. #1
    Join Date
    Feb 2004
    Posts
    455

    Default Related category

    The related category does not seem to works in my idrectory, any guidance?

  2. #2
    Join Date
    May 2004
    Location
    New Zealand
    Posts
    600

    Default not sure.. but maybe

    Have you checked in the other catagory... I found it was kinda around the wrong way..... but that was probibly just me..

  3. #3
    Join Date
    Feb 2004
    Posts
    455

    Default

    What is the tag name?

  4. #4
    Join Date
    Feb 2004
    Posts
    49

    Default

    Guys, did any of you manage to get it working? I can't seem to assign related category.

  5. #5
    Join Date
    Jul 2004
    Posts
    9

    Default

    i have this problem too.
    and i tried everything.

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

    Default

    the problem is probably the data type. it is currently set at SMALLINT which means is maximum value is 32767. So if your category id is larger then you will have a problem

    change the data type to INT with Length of 10

    or run the following command

    ALTER TABLE idx_category CHANGE related related INT(10) DEFAULT '0' NOT NULL
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

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

    Default

    also, I am not sure that this line is correct in the Display function in the category.class.php file

    Code:
        $query = "select * from $this->table_name where (related = $this->parent and visible = 1 and related<>0)";
    seems like it should be

    Code:
        $query = "select * from $this->table_name where (category_id= $this->parent and visible = 1 and related<>0)";
    you could try the above change
    but let me know if the original works.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  8. #8
    Join Date
    Feb 2004
    Posts
    49

    Default

    Originally posted by esm
    the problem is probably the data type. it is currently set at SMALLINT which means is maximum value is 32767. So if your category id is larger then you will have a problem

    change the data type to INT with Length of 10

    or run the following command

    ALTER TABLE idx_category CHANGE related related INT(10) DEFAULT '0' NOT NULL
    I only have 20 categories and I don't think any of those exceeded the max value of SMALLINT. I believe it is more of a coding error and I will try what you suggested on category.class.php

    But of course, they above should apply to those having more categories than the max value.

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

    Default

    use

    Code:
     $query = "select * from $this->table_name where (category_id= $this->parent and visible = 1 and related<>0)";
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  10. #10
    Join Date
    Feb 2004
    Posts
    49

    Default

    Hi ESM,

    Your code doesn't make a difference. I still can't create a RELATED category. When I do that, the whole category goes under another directory instead of a symlink-like category appears on that other directory.

    AND WHERE IS THE IDEAL SUPPORT FROM DODY???? He has NEVER responded to any of my PM or emails to him. What kind of developer who wouldn't support his clients? We pay for the software, remember????

    If not for ESM and many others like him who are supportive in this forum, I don't think Dody's little software would come this far.

  11. #11
    Join Date
    Feb 2004
    Posts
    455

    Default

    Originally posted by pip

    What kind of developer who wouldn't support his clients?
    Doby would!!

    He has been very busy speaking about Indexu 4.0 (13 month) and about Indexu 3.2 (Several months), BTW, Indexu 3.2 is going to alleviate and fix all the known bugs......... someday

  12. #12
    Join Date
    May 2004
    Location
    New Zealand
    Posts
    600

    Default Related Cat

    If your wanting to look at a working example of Related Cat, send me a pm.

    Cheers Ezy

  13. #13
    Join Date
    Feb 2004
    Posts
    49

    Default

    An example of a working code would be appreciated, Ezykiwi. I have also PM you.

  14. #14
    Join Date
    Feb 2004
    Posts
    49

    Default

    Aladdin1, did you manage to get your Related Category working?

    Am I supposed to fill in these in my category.class?

    // internal use only

    var $db_server = "mysql";
    var $db_hostname = "localhost";
    var $db_username = "";
    var $db_password = "";
    var $db_name = "";
    var $db_connect = "";

    Mine is not filled yet. Let me know if this is the cause. By the way, what should I fill in for $db_connect?

  15. #15
    Join Date
    Jul 2004
    Posts
    9

    Default

    hey everybody,
    everyones related category feature works correctly except "pip" and me ??????

    Strange isn't it ?
    Is there anyone using related category feauture in here ????????
    I think that. this is really really big problem a very big problem.

Similar Threads

  1. Multiple Related Categories MOD
    By esm in forum v3.2
    Replies: 0
    Last Post: 07-25-2004, 12:15 PM
  2. category revert
    By aladdin in forum v3.2
    Replies: 4
    Last Post: 12-06-2003, 07:49 PM
  3. Replies: 2
    Last Post: 08-05-2003, 02:16 AM
  4. Category Jump Hack/Mod ??
    By ideavirus in forum v3.2
    Replies: 9
    Last Post: 06-27-2003, 10:11 AM
  5. Category formating
    By Rob Picken in forum v5.x
    Replies: 0
    Last Post: 03-13-2003, 12:00 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
  •