Results 1 to 5 of 5

Thread: [Expert] Validate indexu

  1. #1
    Join Date
    Jan 2002
    Posts
    46

    Default [Expert] Validate indexu

    Hi...
    I've rewrite code to web standard (w3c)
    I've a problem with %category_path% (home > directory) because h ref are without ""

    Ex: home > directory
    code wrong:
    <a href=/index.php>HomePage</a> > <a href=browse-directory-2-1.html>Directory</a></li>

    code right:
    <a href="/index.php">HomePage</a> > <a href="browse-directory-2-1.html">Directory</a></li>

    In browse.php i've correct bug
    $category_path = "<a href=\"/index.php\">".$msg["10011"]."</a>".$category_obj->separator.$category_path;

    but how insert " in directory??

    It's very important...

    Thanks a lot...

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

    Default

    Quote Originally Posted by marko

    but how insert " in directory??
    the Display function in the category.class.php file?



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

    .

  3. #3
    Join Date
    Jan 2002
    Posts
    46

    Default

    Quote Originally Posted by esm
    the Display function in the category.class.php file?



    .
    I've searched in category.class.php and I found

    // method to display the category path
    // -----------------------------------

    but where is <a href=....directory...></a>

    <a href=....sub-directory...></a>

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

    Default

    Quote Originally Posted by marko

    but where is <a href=....directory...></a>
    well, there are only 3 instances of <a href in the Display function and the third one has to do with the search.

    look for:
    $category .= "<B><A HREF=\"$cat_url\" style=\"$this->cat_link_style\"> $cat_name</A></B> $html_number_of_links \n";

    <a href=....sub-directory...></a>
    for the sub cat see:
    $category .= "<A HREF=\"$sub_url\" style=\"$this->subcat_link_style\"> $sub_name</A> ";
    Actually you will need to search for the HREF tags throughout the category.class.php file as dody did not use quotes on any of the necessary places.

    Finally, you may want to deal with the use of the table to create the cat/sub-cat listings.

    it starts with:
    if($num_cats!=0) {
    $category = $this->header;
    $category .= "<table width=$this->cat_table_width cellspacing=$this->cat_cellspacing>\n";
    $category .= "<tr>";
    Keep us informed...


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

    .

  5. #5
    Join Date
    Nov 2004
    Posts
    17

    Default

    I was bored this night so i desided to make fast2web valid xhtml and i'm almost there.

    I need only to add one sub category to make the frontpage of fast2web.no
    XHTML 1.0 Transitional valid

    I wrote more in

    http://www.nicecoder.com/community/s...ead.php?t=2841

Similar Threads

  1. Replies: 26
    Last Post: 06-25-2007, 09:45 PM
  2. INDEXU v4.0 preview website.
    By dody in forum v5.x
    Replies: 93
    Last Post: 04-19-2005, 12:02 PM
  3. Indexu 4 ???? or Indexu PPC?
    By nooralam in forum v5.x
    Replies: 15
    Last Post: 06-07-2004, 04:04 PM
  4. Indexu v4 part 2
    By TLC in forum v5.x
    Replies: 5
    Last Post: 05-14-2004, 08:22 AM

Posting Permissions

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