|
|
#21 |
|
Coder
Join Date: Mar 2006
Posts: 4,585
Rep Power: 111 ![]() ![]() |
Hmm. Im not sure where the space is coming from. The test code I gave you above works on the $breadcrumb variable which is created by functions.php so if its adding a space we should be seeing it in th etest code.
Here is a rundown of what happens, when you click a category the script category.php is called. In there the function "breadcrumb" is called which in turn creates the breadcrumb that sits above the categories showing you the category, subcategory etc. The breadcrumb is returned to the category.php scrips as a variable called $path and at the bottom of category.php the php variable $path is assigned to the template variable $breadcrumb. This is where we come in. $breadcrumb is actually a multidimensional array and thats why there are 2 foreach loops. The 1st loops through the main array and the second loops through each array within that array assigning the value to a new variable called category which we use as the filename for you header image. The only thing I can think of is that when the category was created there is a space in front of it. Can you check in admin, edit one of the categories and make sure there is no space in front of it? |
|
|
|
|
|
#22 | ||
|
Junior Member
Join Date: Oct 2006
Location: Dallas, Texas
Posts: 16
Rep Power: 12 ![]() |
Quote:
Quote:
But, I "think" I know what you are talking about with the $path var, so let me poke around a little in the functions file and I'll get back to you. Thanks Larry.
__________________
M7 v.3.1.5 Developer |
||
|
|
|
|
|
#23 |
|
Coder
Join Date: Mar 2006
Posts: 4,585
Rep Power: 111 ![]() ![]() |
Ooops, sorry I musunderstood. I wasnt getting the space myself and it wasnt until just now that I double checked and realized I was testing this on a 3.1.4 install so that may account for some of the issues.
Ill fire up a 3.1.5 ver and see what I come up with. |
|
|
|
|
|
#24 |
|
Coder
Join Date: Mar 2006
Posts: 4,585
Rep Power: 111 ![]() ![]() |
ok, simple solution, change this......
{assign var=category value=$item|strip_tags} to.... {assign var=category value=$item|strip_tags:false} Once again sorry for making you jump through all the hoops
|
|
|
|
|
|
#25 | |
|
Junior Member
Join Date: Oct 2006
Location: Dallas, Texas
Posts: 16
Rep Power: 12 ![]() |
Quote:
You did it! You did it! You did it!!! Oh Happy Day!!! Wow, I feel like I just got back from a bad trip. THANKS Larry!!! You're the Best!!! (I won't forget this Larry. Not that I can ever make it up to you but, I will sure put in a Few good words.)
__________________
M7 v.3.1.5 Developer |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Header on Featured Ads | lbrown13 | HTML, CSS, and Design Help | 10 | 05-23-2006 04:09 PM |
| Header V3.0.15 | newone | HTML, CSS, and Design Help | 17 | 05-05-2006 09:44 AM |
| header change | newone | v3.0 Questions & Support | 0 | 04-28-2006 11:25 PM |