Results 1 to 5 of 5

Thread: Customize style sheets in V3.1 ?

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

    Default Customize style sheets in V3.1 ?

    Hello,

    first some comment to the new version - i don't like your template , but I like your work you have done in V3.1 - great !

    Now my question:

    In admin setupt I can type for the categoriy links font face and size or better a style. If I use a style, the font tags are blank:

    ->FONT FACE= SIZE=><B><A HREF="browse.php?cat=2&PHPSESSID=e6c4763e6cf9b8496 8bc698e9db8bfe6" style="font-size: 11px; color: #0033cc;">Board Games</A></B<-

    I think this is not so good for the code, bad to check it by codecheckers and space for noting.
    So I want to delete FONT FACE and SIZE
    -> Where can I do this ?

    After this I want to use only extern style sheets. This will also save space and time (there are a lot style tags in the code !).
    So I have to find the place there style=" is definded and change it to a class=".
    Then I can choose the class direct in the admin setup and define it with hovers and something else in my extern style sheet.
    Where can I change this ?

    Hope someone can help.

    Greetings
    Frank

  2. #2
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    ->FONT FACE= SIZE=>Board Games
    I think this is not so good for the code, bad to check it by codecheckers and space for noting.
    So I want to delete FONT FACE and SIZE
    -> Where can I do this ?
    Yes, but at the result is correct. Most browser will take style tag as higher priority. Although you have FONT FACE = arial, but if you set style to verdana, browser will use verdana.

    So I want to delete FONT FACE and SIZE
    -> Where can I do this ?
    It is in /lib/category.class.php, search for display() function, about line 454. Or just go to line 586-587, change this code:

    PHP Code:
    $category .= "$image <FONT FACE=$cat_font_face
    SIZE=$cat_font_size>"
    ;

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


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

    Thumbs up THanks and next question

    Thats great, thank you !!

    I had some problems in the past with older browsers to show font size 2 and so I want delete all this font tags.

    Next question:
    Is it right, that the name of a category only is given in the category class ?

    I'm preparing Indexu for a second language and created a new field "name_en" and now I'm searching all the codes, where "name" is used and there are a lot

    But for me, only the display categroy name function and the funtion to order them.

    Greetings
    Frank

  4. #4
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Is it right, that the name of a category only is given in the category class ?
    Yes, indexu system is centralized. What you're looking for in in category.class.php. Indexu class file is self-explained. I have put a lot of comment on it so you can modify as you need.

    In top of class, I have listed variables/attribute and function/method you can use. Just search for what you need.



    PHP Code:
      var $separator "::";
      var 
    $header "";
      var 
    $image_path "";
      ..........................

      
      
    // GetAccessPermission($cat)
      // GetContent($cat)
      // GetMetaKeyword($cat)
      // GetMetaDescription($cat)
      
      // Display()
      
      // UpdateNumberOfLinksInAllCategories()    
      // UpdateNumberOfLinksInCategory($cat_id)
      // GetAddLinkPermission($cat)
      // GetCategoryName($cat)
      
      // DisplayCategoryListBox($cat,$show_main_category=false)
      
    ......................... 

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

    Default css

    Ok, this is the next job - the first indexu with more then one language is coming sone

    But first I'm fighting with css:

    I removed all font and faces for the category and it works fine, ok withou t one thing - > this my css:

    A.katlink:link {font-size: 11pt; text-decoration: none; color:blue; font-family: Arial, Verdana, Helvetica }
    A.katlink:visited { text-decoration: none }
    A.katlink:active { text-decoration: none }
    A.katlink:hover { text-decoration: underline; color:#ff9900 }

    My knowledge is, that I should online define what I change, but I have still a active color in my links - the rest works fine ??!!!

    And after that I'm searching for the playe where I can give the "category_path_with_link" a class ?!

    Greetings
    Frank

Similar Threads

  1. Need help with 2 hacks that won't work with V3.1
    By Frank71 in forum Help Wanted/Job Request
    Replies: 0
    Last Post: 08-27-2003, 02:15 PM
  2. Customize header template in V3.1 ?
    By Frank71 in forum Templates
    Replies: 5
    Last Post: 06-05-2003, 04:02 PM
  3. Replies: 4
    Last Post: 05-28-2003, 06:39 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
  •