Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
breadcrumbs
Avatar
Charlie Badenhop
Member
Free Members
sp_UserOfflineSmall Offline
Aug 9, 2013 - 7:26 am

Apologies if I am being a bit pesky on this, but could someone give me some steps in how to make breadcrumbs like you all have in these forums? Thanks.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 9, 2013 - 3:40 pm

start here:  https://simple-press.com/suppo.....ne/page-3/

some basic instructions... its not as simple as a setting though... you need to create the css and images to use...

if you just want them flat instead of tree, that is easy...  but the arrows and graphics are more involved...

Avatar
Charlie Badenhop
Member
Free Members
sp_UserOfflineSmall Offline
Aug 9, 2013 - 7:50 pm

Thanks. I'll give it a try. I've been doing some simple css and creating simple images. Maybe it's time for me to advance to the next level!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 9, 2013 - 8:23 pm

if it helps, here is the css we use on the site...

#spMainContainer #spBreadCrumbs {
    font-size: 0.85em;
    min-width: 75%;
    line-height: 1.2em;
    margin-left: 2px;
}

#spMainContainer #spBreadCrumbs span.spBreadCrumbs {
    margin-left:17px;
    min-height:2px;
}

#spMainContainer #spBreadCrumbs a {
    color: #333333;
    display: block;
    float: left;
    font-family: inherit;
    font-weight: inherit;
    font-size: 0.9em;
    height: 34px;
    line-height: 34px;
    margin-right: -8px;
    padding: 0 18px 0 15px;
    position: relative;
    text-decoration: none;
    text-transform: Capitalize;
}

#spMainContainer #spBreadCrumbs a:first-child {
    padding-left:11px;
}

#spMainContainer #BreadcrumbPosition2 {
    background: url("images/breadCrumbArr2.png") no-repeat scroll right 2px transparent;
}
#spMainContainer #BreadcrumbPosition2:hover {
    background: url("images/breadCrumbArr2.png") no-repeat scroll right 2px transparent;

}

#spMainContainer #BreadcrumbPosition3 {
    background: url("images/breadCrumbArrCombined.png") no-repeat scroll right 1px transparent;
}
#spMainContainer #BreadcrumbPosition3:hover {
    background: url("images/breadCrumbArrCombined.png") no-repeat scroll right -38px transparent;
    color:#4682B4;
}

#spMainContainer #BreadcrumbPosition4 {
    background: url("images/breadCrumbArrCombined.png") no-repeat scroll right 1px transparent;
}
#spMainContainer #BreadcrumbPosition4:hover {
    background: url("images/breadCrumbArrCombined.png") no-repeat scroll right -38px transparent;
    color:#4682B4;
}

#spMainContainer #BreadcrumbPosition5 {
    background: url("images/breadCrumbArrCombined.png") no-repeat scroll right 1px transparent;
}
#spMainContainer #BreadcrumbPosition5:hover {
    background: url("images/breadCrumbArrCombined.png") no-repeat scroll right -38px transparent;
    color:#4682B4;
}

but we also do some filtering to make things better... so in our spFunctions.php, we also do this:

/* Functions for Breadcrumb Z-Index Sorting */
add_filter('sph_BreadCrumbs', 'spBlueSortBreadcrumbs',15,5);
function spBlueSortBreadcrumbs($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;
}

Avatar
Charlie Badenhop
Member
Free Members
sp_UserOfflineSmall Offline
Aug 10, 2013 - 12:42 am

Wow, okay, I have my work cut out for me. Will give it a try.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 10, 2013 - 10:49 am

good luck!

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