Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
Slight bread crumb navigation problem after adding additional forum
Posted: 26 September 2004 06:58 AM   [ Ignore ]  
Summer Student
Total Posts:  13
Joined  2003-08-16

Recently I setup a Forums site with only a single forum to start out with. Now that I have added an additional forum I have a slight bread crumb navigation problem.

When navigating down to Thread level in the new forum (and only in the new forum the first behaves as expected) created part of the bread crumb navigation is missing, let me illustrate:

Normally it would look like below:

Site > Forums > Forum > Thread

But when nagivation to thread level in the new forum it looks like below:

Site > Forums > > Thread

As you can see it doesn’t show the respective Forum name.

How can I fix this rather annoying issue?

Regards
Henrik Walther

Profile
 
 
Posted: 27 September 2004 11:57 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

Did you add the new forum information to your forum/forum_names.php file?

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 29 September 2004 06:40 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  13
Joined  2003-08-16

Yes like below but maybe I did it the wrong way?

function get_forum_name($which = “”){

if ($which != “”)
{
switch ($which)
{

case “mainforum” : return “Exchange 2000/2003”;
break;

case “feedback” : return “Feedback”;
break;

// case “private_name” : return “Public Name”;
// break;

}
}
}

Profile
 
 
Posted: 29 September 2004 10:39 AM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

That appears correct.  Can you share a link to your forums so we can see this in action?

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 29 September 2004 01:52 PM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  13
Joined  2003-08-16

Of course the forum can be found at:

http://www.exchange-faq.dk/forum/index.php

It the forum called Feedback that experiences the problem and Exchange 2000/2003 which works as expected.

Thanks.

Profile
 
 
Posted: 29 September 2004 04:09 PM   [ Ignore ]   [ # 5 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

Hmm… I wonder if this is caused because your forum name starts with an “F”.  There is code in the “threads.php” page which checks for this because of the way additional page results are handled in pMachine.

Try this to make sure pM is trying to get the right information:

1. Open up your threads.php file for editing

2. Look around line 23 and you’ll see this:

$which = $query->obj->weblog;

3. Echo the variable right after that:

$which = $query->obj->weblog;

echo
"The 'which' variable -->" . $which . "<--";


Now, go to an entry in the “feedback” forum (such as this one and you should see some text at the very top of the page.  What text do you see?

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 30 September 2004 01:53 AM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  13
Joined  2003-08-16

I get: The ‘which’ variable—>Feedback<—

So I guess the reason is that the forum starts with F?

If this is the case would I be able to solve this problem without renaming the Forum or would you suggest I simply rename it?

Profile
 
 
Posted: 30 September 2004 10:03 AM   [ Ignore ]   [ # 7 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

So your forum is actually named “Feedback” and not “feedback”; i.e. with the capital “F”?  In your exceprt from the forum_names.php file above you’re using a lowercase “F”, so you might try changing that to uppercase.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 30 September 2004 10:54 AM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  13
Joined  2003-08-16

You’re the man Chris that minor change actually did it. I wasn’t aware the forum names was case sensitive.

Thanks for your help smile

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 64518 Total Logged-in Users: 0
Total Topics: 81078 Total Anonymous Users: 0
Total Replies: 436319 Total Guests: 14
Total Posts: 517397    
Members ( View Memberlist )
Active Members: