#1 (permalink)  
Old 11-11-2008, 03:09 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default $cat_path_link_style

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.
I must be missing something
Attached Images
File Type: jpg cat_path.JPG (2.2 KB, 16 views)
__________________
____________________________
http://www.articleconveyer.com
Give Your Articles Exposure


Reply With Quote
  #2 (permalink)  
Old 11-11-2008, 03:51 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

$cat_link_style <- changes colour of root category on index page
$cat_path_link_style <- changes colour of Top on browse pages
$subcat_link_style <- changes colour of subcats on index page

Why it works like that I have no idea. I can only assume it's to show users the path back to root.

Where would you change the rest of the path? You guessed it, category.class.php
Reply With Quote
  #3 (permalink)  
Old 11-11-2008, 04:28 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default

Code:
Content visible to License Owner only.
I understand,

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.
and figured $cat_path_link_style would set the entire path style but like you say its for styling TOP.

So within the
Code:
Content visible to License Owner only.
section im looking for the code that generates the subcategory links.

I have had a good look around honest
__________________
____________________________
http://www.articleconveyer.com
Give Your Articles Exposure


Reply With Quote
  #4 (permalink)  
Old 11-11-2008, 04:43 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

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.
Reply With Quote
  #5 (permalink)  
Old 11-11-2008, 04:56 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

Perhaps this is a bug, I'll ask Dody to look into it tonight since I can't see what we are looking for.
Reply With Quote
  #6 (permalink)  
Old 11-11-2008, 04:58 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default

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.
Reply With Quote
  #7 (permalink)  
Old 11-11-2008, 08:02 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default

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.
Reply With Quote
  #8 (permalink)  
Old 11-11-2008, 08:27 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default

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


Reply With Quote
  #9 (permalink)  
Old 11-11-2008, 08:41 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

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?
Reply With Quote
  #10 (permalink)  
Old 11-12-2008, 12:25 AM
esm's Avatar
esm esm is offline
Active Member
 
Join Date: Apr 2003
Location: Atlanta GA
Posts: 3,411
esm is on a distinguished road
Default

Code:
Content visible to License Owner only.
the category path has not been built dynamically since v3.2 (prior to that is was built dynamically which caused category-intensive pages to sometimes time out).

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."

.
Reply With Quote
  #11 (permalink)  
Old 11-12-2008, 12:47 AM
esm's Avatar
esm esm is offline
Active Member
 
Join Date: Apr 2003
Location: Atlanta GA
Posts: 3,411
esm is on a distinguished road
Default

Code:
Content visible to License Owner only.
$subcat_link_style affects only the subcats (if displayed) on the index page, not the "breadcrumbs" path at the top of the page.

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."

.
Reply With Quote
  #12 (permalink)  
Old 11-12-2008, 09:14 AM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default

How much does the training course cost ...
__________________
____________________________
http://www.articleconveyer.com
Give Your Articles Exposure


Reply With Quote
  #13 (permalink)  
Old 11-12-2008, 01:45 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

999.99 per day, minimum three weeks plus board and room
Reply With Quote
  #14 (permalink)  
Old 11-12-2008, 01:59 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default

Code:
Content visible to License Owner only.
What happens if you feel like part of the furniture
__________________
____________________________
http://www.articleconveyer.com
Give Your Articles Exposure


Reply With Quote
  #15 (permalink)  
Old 11-12-2008, 02:29 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

lol you might just get sat on
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 06:01 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate