Results 1 to 13 of 13

Thread: question >>mod rewrite >>Categorise

  1. #1
    Join Date
    Jul 2005
    Posts
    14

    Exclamation question >>mod rewrite >>Categorise

    i need a explanation by pitures for way of activation mod rewrite
    by categorise and detail ...

    i try much in this until now not succeed
    too not understand this

    (Normally to call detail page is:

    detail.php?id=44137

    where 44137 is the link id. With mod-rewrite:

    detail-inventive_minds-44137.html

    where inventive_minds is the link title and 44137 is link id)


    please tell me explanation by pic

    thank for all

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

    Default

    well, it not very good and I didn't ever finish it but see...

    http://www.indexuhelp.com/forum/inde...t=msg&goto=885



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

    .

  3. #3
    Join Date
    Jul 2005
    Posts
    14

    Default

    thank you esm

    but i need explanation by arabic it available ?

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

    Default

    no.


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

    .

  5. #5
    Join Date
    Jul 2005
    Posts
    14

    Default

    ok no problem i am will try again too translation into Arabic copy Indexu

    thank you for help me

  6. #6
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default

    Its a part of 3.2, you only must search the definition of mod_rewrite title and rewrite for all arabic letters.
    If I remember right you must search 4 places in the script, mainly category.class and link.cass.
    Also you must change the template of all pages which links to details.

    Frank

  7. #7
    Join Date
    Jul 2005
    Posts
    14

    Default

    thank you Frank71 ..
    ok i now understand .. links changes in file category.class and link.class perfect

    now i am when to build the category to create link category by manner html >
    example > category-Name_-44137.html
    how to change
    $href = strtolower("<a href=browse-$name2-$cat-6.html>");
    please explication this
    sorry to error write i not good write english
    Last edited by Master; 07-14-2005 at 12:37 PM.

  8. #8
    Join Date
    Jul 2005
    Posts
    14

    Default

    Frank71 can help me
    step by step

    first open control panel indexu next create category by name (soft) next open home

    indexu and page category soft to form this ( browse-soft-9.html )
    as to tell me open file category.class and change line 307
    $href = strtolower("<a href=browse-$name2-$cat-6.html>");

    -- to do this but not activate

    how to change ... are you can help me

    too error ( browse.php )
    Fatal error: Call to a member function on a non-object in c:\apache\htdocs\web\lib\category.class.php on line 336
    Last edited by Master; 07-15-2005 at 12:35 PM.

  9. #9
    Join Date
    Jul 2005
    Posts
    14

    Default

    frank where you ?

  10. #10
    Join Date
    Jul 2005
    Posts
    14

    Default

    i need to help

  11. #11
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default

    Uff, sorry but at the moment I'm not working with indexu and my time is short

    $name2 - search the variable in the files, by sample in category.class at the begining you can change the code like this to your requirments:

    //$href = "<a href=$file?cat=$cat>";
    $mod_rewrite_replacement_str_arr =
    array(' ','_','/','\\','#',':',';','\'','"','[',']',
    '{','}','|','`','~','!','@','%','$','^','*','=','+ ');
    $name2 = str_replace($mod_rewrite_replacement_str_arr,'-',$name);
    $name2 = str_replace (array("ä", "ö", "ü", "ß", "&", "Ä", "Ö", "Ü","&"), array("ae", "oe", "ue", "ss", "und", "ae", "oe", "ue","und"), $name2);
    $href = strtolower("<a href=browse-$name2-$cat-1.html>");
    $close_href = "</a>";

    But do good tests, you must find all places and there are more, by sample somewhere subcategory links needs the same change, also all category path links in browse and link detail.

    As writen as I remember right there are 4 places to change, but not sure yet I mix link title and category title.

    Regards
    Frank

  12. #12
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default

    Ah, one moment, not sure yet too if this is a copy of a development version , if the "-" makes problems use again the "_".

    Frank

  13. #13
    Join Date
    Jul 2005
    Posts
    14

    Default

    thank you frank

    i can not change ..
    make final link >> browse.php?cat=1

Similar Threads

  1. Removing comment tag or enable mod rewrite
    By seomontreal in forum v5.x
    Replies: 1
    Last Post: 07-07-2005, 09:37 AM
  2. here's a question for you
    By gnr in forum Pre-Sales Questions
    Replies: 2
    Last Post: 12-21-2004, 05:09 AM
  3. Mod ReWrite Problems
    By Veg in forum v5.x
    Replies: 11
    Last Post: 11-18-2004, 12:01 PM
  4. Another presale Question
    By donhugo in forum Pre-Sales Questions
    Replies: 1
    Last Post: 11-01-2004, 10:19 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
  •