| |||||||
| Register | Projects | FAQ | Members List | Mark Forums Read |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| ||||
|
In setting.php i have set $cat_path_link_style = "color: #0099CC"; cleared the template cache and this is what I get So I check the rendered source code and subcats are not getting the styling infomation Code: Content visible to License Owner only.
__________________ ____________________________ http://www.articleconveyer.com Give Your Articles Exposure |
| ||||
| Code: Content visible to License Owner only. What im trying to acomplish is to set the #0099CC colour to the entire category path "bread crumbs". I have been looking in the category.class.php, i guessed it was in there somewhere. im looking arround line 229 Code: Content visible to License Owner only. So within the Code: Content visible to License Owner only. I have had a good look around honest
__________________ ____________________________ http://www.articleconveyer.com Give Your Articles Exposure |
| ||||
|
line 562 $category .= "<a href=\"$sub_url\" style=\"$this->subcat_link_style\" name=\"cat_$sub_id\">$sub_name</a>, "; And I think this is where it is. But if you change subcat_link_style it doesn't change it.
__________________ |
| ||||
|
I manually put the style in like so "<a href=\"{$href}\" name=\"cat_$cat\" style=\"color: #0099CC\">"; and it worked after i cleared the template cache, im sure i tried this , must of missed clearing the template cache. So now im wondering why the $cat_path_link_style varible is in there in the first place. Maybe putting some more descriptive comments in the file could help future users Well thank you yet again
__________________ ____________________________ http://www.articleconveyer.com Give Your Articles Exposure Last edited by echo@; 11-11-2008 at 05:00 PM. |
| ||||
|
Bruce, im having some trouble , i thought i was out the woods but no. ok so i managed to get the whole of the category_path in the correct colour, so i left the post assuming this was the way to style category_path. I then wanted to increase the font size, this worked for the $cat_path_link_style (TOP) but not for the rest of the link "subcats" anyway cut a long story short i have defaulted all the style settings in the 2 files and checked all css files and guess what , the subcat part of the url stays 0099CC. but the TOP part has defaulted back to black. I thought it may be a bug with clearing all the template cache so i manually did this So after a few hours I have found the css styless within the indexu database. inside table idx_category_path It seems if you maunally set the css style in the php (instead of using the var $cat_path_link_style) the styles are stored in the database and it ignores any changes after that.
__________________ ____________________________ http://www.articleconveyer.com Give Your Articles Exposure Last edited by echo@; 11-11-2008 at 08:04 PM. |
| ||||
|
I managed to get round it by dumping and dropping the idx_category_path table. I then replaced the styling with the styling i wanted and then created the table again in SQLquery
__________________ ____________________________ http://www.articleconveyer.com Give Your Articles Exposure |
| ||||
|
to flush the idx_category_path all you should need to do is update the category path. And perhaps you've found the clue to use $subcat_link_style. If you change that and then update category path does it do what you want?
__________________ |
| ||||
| Code: Content visible to License Owner only. once you change the $cat_path_link_style, rebuild the category path and all should display using the new style. ![]() .
__________________ esm "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology." . |
| ||||
| Code: Content visible to License Owner only. the $subcat_link_style would affect the subcats in the browse.php file if it had been added. ![]() .
__________________ esm "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology." . |
| ||||
|
How much does the training course cost ...
__________________ ____________________________ http://www.articleconveyer.com Give Your Articles Exposure |
| ||||
| Code: Content visible to License Owner only.
__________________ ____________________________ http://www.articleconveyer.com Give Your Articles Exposure |
![]() |
| Thread Tools | |
| Display Modes | |
| |