Support Forums


Go Back   68 Classifieds Forums > General > HTML, CSS, and Design Help

 
LinkBack Thread Tools Display Modes
Old 10-13-2006, 03:27 PM   #21
Coder
 
Join Date: Mar 2006
Posts: 4,585
Rep Power: 111
Lhotch is just really niceLhotch is just really nice
Default

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?
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 10-13-2006, 04:29 PM   #22
Junior Member
 
Join Date: Oct 2006
Location: Dallas, Texas
Posts: 16
Rep Power: 12
MSeven is on a distinguished road
Default

Quote:
Originally Posted by Lhotch View Post
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.
The space "Does" show up in the test code.

Quote:
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?
ok, i checked in admin, and no space.

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
MSeven is offline   Reply With Quote
Old 10-13-2006, 04:55 PM   #23
Coder
 
Join Date: Mar 2006
Posts: 4,585
Rep Power: 111
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by MSeven View Post
The space "Does" show up in the test code.
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.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 10-13-2006, 04:59 PM   #24
Coder
 
Join Date: Mar 2006
Posts: 4,585
Rep Power: 111
Lhotch is just really niceLhotch is just really nice
Default

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
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 10-13-2006, 05:42 PM   #25
Junior Member
 
Join Date: Oct 2006
Location: Dallas, Texas
Posts: 16
Rep Power: 12
MSeven is on a distinguished road
Thumbs up You Did It!!!

Quote:
Originally Posted by Lhotch View Post
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

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
MSeven is offline   Reply With Quote

Bookmarks

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


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


All times are GMT -4. The time now is 03:29 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0