Breadcrumbs making me nuts...

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post April 23rd, 2009, 11:22 am

Is there anyway with the addition of the subforums now? to get the breadcrumbs to show the Parent? It's driving me nuts when I'm in a subforum to have to go back to the main forum to re-enter the subforum. If it was in the breadcrumb it would be easy.

Case in point. Read an Introduction post. You have to go back to the main forum to get back to the General forum.

It's particularly annoying in the Special Teams subforums where there are a lot of posts.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 23rd, 2009, 11:22 am

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post April 23rd, 2009, 11:45 am

Yes I was aware of this, will try to find a solution to fix it soon.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Joined: Feb 11, 2004
  • Posts: 6741
  • Loc: Martinsburg, WV
  • Status: Offline

Post April 23rd, 2009, 12:34 pm

Just click the logo. I never use the breadcrumbs myself.
‎"Be polite, be professional, but have a plan to kill everybody you meet." Maj. Gen. James Mattis
  • grinch2171
  • Moderator
  • Genius
  • User avatar
  • Joined: Feb 11, 2004
  • Posts: 6741
  • Loc: Martinsburg, WV
  • Status: Offline

Post April 23rd, 2009, 12:36 pm

Nevermind that does the same thing, sorry.
‎"Be polite, be professional, but have a plan to kill everybody you meet." Maj. Gen. James Mattis
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post April 23rd, 2009, 1:17 pm

The logo was driving me nuts so I rigged mine to where it always leads to "/forums.html".

I just happened to be playing with breadcrumbs on a phpbb3 template, trying to get a sort of vbulletin functionality.
The Board Index has been dropped from the breadcrumbs and is only linked to by the site logo and a Board Index link on the bottom in the footer.

Attachments:
subs-ss.png

Attachments:
topic-ss.png


This is out of my "overall_header.html", I dropped the breadcrumb code from the other html files.
I don't believe I altered the PHP for any of this, but if I did it must have been a minor edit.

Code: [ Select ]
        <!-- IF FORUM_NAME or TOPIC_NAME -->
        <div class="navbar" style="margin-top:5px;">
            <div class="inner"><span class="corners-top"><span></span></span>
                <ul class="linklist navlinks" style="clear:both;">
                    <li class="breadcrumbs">
                        <div><!-- BEGIN navlinks --><!-- IF TOPIC_TITLE or FORUM_NAME != navlinks.FORUM_NAME --><a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- ENDIF --><!-- END navlinks --></div>
                        <!-- IF not TOPIC_TITLE -->
                            <h2><a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- IF not S_IS_BOT and TOTAL_TOPICS --> <small>- {TOTAL_TOPICS}</small><!-- ENDIF --></h2>
                        <!-- ELSE -->
                            <h2 class="topic"><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><!-- IF not S_IS_BOT and TOTAL_POSTS --> <small>- {TOTAL_POSTS}</small><!-- ENDIF --></h2>
                        <!-- ENDIF -->
                    </li>
                </ul>
            <span class="corners-bottom"><span></span></span></div>
        </div>
        <!-- ENDIF -->
  1.         <!-- IF FORUM_NAME or TOPIC_NAME -->
  2.         <div class="navbar" style="margin-top:5px;">
  3.             <div class="inner"><span class="corners-top"><span></span></span>
  4.                 <ul class="linklist navlinks" style="clear:both;">
  5.                     <li class="breadcrumbs">
  6.                         <div><!-- BEGIN navlinks --><!-- IF TOPIC_TITLE or FORUM_NAME != navlinks.FORUM_NAME --><a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- ENDIF --><!-- END navlinks --></div>
  7.                         <!-- IF not TOPIC_TITLE -->
  8.                             <h2><a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- IF not S_IS_BOT and TOTAL_TOPICS --> <small>- {TOTAL_TOPICS}</small><!-- ENDIF --></h2>
  9.                         <!-- ELSE -->
  10.                             <h2 class="topic"><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><!-- IF not S_IS_BOT and TOTAL_POSTS --> <small>- {TOTAL_POSTS}</small><!-- ENDIF --></h2>
  11.                         <!-- ENDIF -->
  12.                     </li>
  13.                 </ul>
  14.             <span class="corners-bottom"><span></span></span></div>
  15.         </div>
  16.         <!-- ENDIF -->
Strong with this one, the sudo is.
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post April 23rd, 2009, 1:41 pm

Should be all fixed now. For the breadcrumbs part I just did this:

Code: [ Select ]
<li><a href="{L_USER_LANG_PATH}/{L_FORUMS_INDEX_NAME}.html">{L_FORUMS}</a></li>
<!-- BEGIN navlinks --><!-- IF not navlinks.S_IS_CAT --><li><a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a></li><!-- ENDIF --><!-- END navlinks -->
  1. <li><a href="{L_USER_LANG_PATH}/{L_FORUMS_INDEX_NAME}.html">{L_FORUMS}</a></li>
  2. <!-- BEGIN navlinks --><!-- IF not navlinks.S_IS_CAT --><li><a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a></li><!-- ENDIF --><!-- END navlinks -->


For the logo itself, since it is only one link I did this:

Code: [ Select ]
<!-- IF .navlinks > 2 -->
<!-- BEGIN navlinks(-3,-2) --><!-- IF not navlinks.S_IS_CAT --><a href="{navlinks.U_VIEW_FORUM}"><img src="/images/blank.gif" width="386" height="120" alt="{L_BACK_TO} {navlinks.FORUM_NAME}"></a><!-- ENDIF --><!-- END navlinks -->
<!-- ELSE -->
<a href="{L_USER_LANG_PATH}/{L_FORUMS_INDEX_NAME}.html"><img src="/images/blank.gif" width="386" height="120" alt="{L_BACK_TO} {L_FORUMS}"></a>
  1. <!-- IF .navlinks > 2 -->
  2. <!-- BEGIN navlinks(-3,-2) --><!-- IF not navlinks.S_IS_CAT --><a href="{navlinks.U_VIEW_FORUM}"><img src="/images/blank.gif" width="386" height="120" alt="{L_BACK_TO} {navlinks.FORUM_NAME}"></a><!-- ENDIF --><!-- END navlinks -->
  3. <!-- ELSE -->
  4. <a href="{L_USER_LANG_PATH}/{L_FORUMS_INDEX_NAME}.html"><img src="/images/blank.gif" width="386" height="120" alt="{L_BACK_TO} {L_FORUMS}"></a>
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post April 23rd, 2009, 1:57 pm

I don't believe I've seen this before, what does the "(-3,-2)" part do ?

Quote:
<!-- BEGIN navlinks(-3,-2) -->
Strong with this one, the sudo is.
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post April 23rd, 2009, 2:05 pm

That starts the loop the third entry from the end, and ends it at the 2nd entry from the end. I had to do that because I wanted to go up a level. The last link in the full loop is the current forum you are in, and the 2nd to the last link is the category name that the forum belongs in.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post April 23rd, 2009, 2:20 pm

"I see", said the blind man.
Strong with this one, the sudo is.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post April 23rd, 2009, 2:20 pm

Wow and it actually works too! My blessings upon you grasshopper! I mean Bigweb!
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post April 29th, 2009, 4:28 am

FYI - the simple_header.html needs this same implementation. To see what I mean go to Introduce Yourself. Click "Mark Topics Read". When the simple_header comes up while you are waiting for the redirect the breadcrumb trail doesn't lead back to general.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • SB
  • Moderator
  • Genius
  • User avatar
  • Joined: Nov 16, 2004
  • Posts: 8677
  • Loc: Aberdeen, Scotland
  • Status: Offline

Post April 29th, 2009, 8:37 am

It's the same when you start a new topic or post a reply (not through quick reply obviously) as it shows this - "You are here>home>forums>post a reply".

Kinda crappy if i decide against starting a new topic and want to go to the forum i was just in or even the last topic. I know i could just click back, but i may not want to. I might get some sort of "scared of clicking back" phobia then i'd be stuck on this post a reply page for ages.

Infact, i won't lie, i've been sitting on this page for ages and because i typed the back phobia thing i am generally getting quite scared of it. It's just sitting there looking at me begging me to press it. I just can't :cry:
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post April 29th, 2009, 8:55 am

Well, posting.php is actually a child of Forums. Doesn't matter which forum/ topic you are posting in. Not sure that one could be altered much.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post April 29th, 2009, 9:48 am

ATNO/TW wrote:
FYI - the simple_header.html needs this same implementation. To see what I mean go to Introduce Yourself. Click "Mark Topics Read". When the simple_header comes up while you are waiting for the redirect the breadcrumb trail doesn't lead back to general.


I see what you mean with what happens when you click "Mark Topics Read", I will get that fixed -- not sure why you think its simple_header.html though ;)

simple_header.html is used for pages that do not show the ozzu logo, for example when you click "Find a member" in the acp user admin area.
Ozzu Hosting - Want your website on a fast server like Ozzu?

Post Information

  • Total Posts in this topic: 14 posts
  • Users browsing this forum: No registered users and 22 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.