Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Breadcrumbs nested or on a single line
Avatar
mann
Member
Free Members
sp_UserOfflineSmall Offline
Mar 8, 2012 - 12:11 am

Yellow Swordfish said
One of the major points about moving to themes and templates is that display options should now be set by the tags - not by hard coded options. The problem - I do appreciate - is that there is no documentation for these as yet but of you want to make this change let me know and I will tell you where and how.

Oh - why wait!

The template is the spHead.php

The tag is:

sp_BreadCrumbs('tagClass=spLeft spBreadCrumbs&tree=1', __sp('Home'));

Just change the 'tree' parameter from 1 to a zero.

Worked like a charm!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 8, 2012 - 8:22 am

Thanks for the update.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Matthew Bonner
Member
Free Members
sp_UserOfflineSmall Offline
Jul 2, 2012 - 4:23 pm

Is there a plug in to make the bread crumbs appear like the ones you guys are using, single line with the gray background?

Avatar
Duke Leto III
Member
Free Members
sp_UserOfflineSmall Offline
Jul 2, 2012 - 5:28 pm

Lee H said
try adding &homeLink= to your args

Can you elaborate? 

I tried: sp_BreadCrumbs('tagClass=spLeft spBreadCrumbs&tree=0 &homeLink= ', __sp('Home'));

which seemed to have no effect. 

 

Also, How would one go about changing the arrows to '>' or '/' or some such? 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 2, 2012 - 6:17 pm

No, its just a modification to standard non tree breadcrumbs... a little css magic and some images...

Brandon C did the work for our theme, so I will let him give you some tips when he stops by the forum... you could of course, inspect the css here to see what is done... >

Avatar
Matthew Bonner
Member
Free Members
sp_UserOfflineSmall Offline
Jul 2, 2012 - 7:00 pm

Okay I see, I'm familiar with CSS just not sure what SP file to post it in ...my theme overlay?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 2, 2012 - 7:17 pm

you would want to put any css files in your sp theme, the main theme file - not the overlay...

additionally, you will need to grab the 3 images we use... and put the following in your spFunctions.php file for the sp theme..

/* Functions for Breadcrumb Z-Index Sorting */
function spSortBreadcrumbs($breadCrumbs, $a='', $crumbEnd='', $crumbSpace='', $treeCount='') {
    global $no;
    $no = substr_count($breadCrumbs, 'spLink') + 2;
    $breadCrumbs = preg_replace_callback(
        '|href=|',
        create_function(
            '$matches',
            'global $no; $no--; return \'ID="BreadcrumbPosition\'.$no.\'" \" style="z-index:\'.$no.\'" \'.$matches[0];'
        ),
        $breadCrumbs);
        
    return $breadCrumbs;
}
add_filter('sph_BreadCrumbs', 'spSortBreadcrumbs');

so, yeah, sorry a bit more than just css... the above php code is adding in some z-index css to control display...

If the custom php and css is too much, you can always contact Brandon via the Custom SP Theme Work banner in the right sidebar...

Avatar
Matthew Bonner
Member
Free Members
sp_UserOfflineSmall Offline
Jul 2, 2012 - 7:53 pm

Thanks a lot, I'm gonna tinker with it tonight! Sorry if it seems I post frequently, but this plugin seems almost endless with possibilities. It's truly the most smoothly integrated forum plugin I've worked with EVER. Glad to be a customer.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 2, 2012 - 8:47 pm

No worries - that's why we are here... Thanks for the kind words! Nice to hear now and then... wink

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Jul 2, 2012 - 8:47 pm

@Duke Leto III - Diid you enter the actual link into the code after homeLink=?

@Matthew Bonner - Let us know if you need any help but the code and images are really in a beta mode step. What Mr. Papa posted works but there is a small syntax error in the breadcrumbs function and the images need to be combined for better user interaction.

@Mr Papa - You double posted #25 & #26. PBE issue?

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625