TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,229
  • Total Topics: 21,353
  • Online today: 976
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 122
  • Total: 122

Forum link won't go away from Frontpage

Started by Dianna, February 14, 2009, 10:28:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dianna

Hi Smoky, I've just run into a problem after removing the link tree.  I'm now discovering that I do in fact need/want the link tree or bread crumbs on my forum page. It looks great not being on the rest of my site that I've built into articles.  Do you have any suggestions on what is the easiest way to get the link tree added back into JUST the forum? 

My first thought was that I would have to make 2 different themes, one with the link tree and one without. Then give the forum the theme with the link tree.  Is that route I should take or is there easier way? 


IchBin

Put your code back to the way it was. Then in your article options, choose the option to NOT show the linktree. See if that helps. The reason the linktree shows twice is most likely because of the way the theme is made. Not any error on your part really.

Dianna

Ohhhhh, very cool!  Thanks I'll do that.  Now that you say it, I did see the linktree option. 

Once I add it back in, I'll have to look at the double issue. I think I noticed what didn't look right in the coding that was in the theme. If I can't sort it out, I'll come back here.

Thanks so much for all your help. You all are so nice here!  Especially to us "TP Challenged"  :uglystupid2: folks...hehe!  I'm getting there though. :-)

Dianna

Hi Ichbin, not sure if I should go ahead and ask about the double link tree issue here or start a new thread. I'm guessing here since we've been on the topic here.

I've looked and I don't see anything that I could pick up easily that could be problem for the double stuff. 

Here's what I have in my theme for the link tree.  Anything that you can see?

Also, here is a site page that has the linktree so you can see it again just in case:

http://schreeandbaby.com/updates/index.php?page=about



// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
   global $context, $settings, $options;

   echo '<div class="nav" style="font-size: smaller; margin-bottom: 0px; margin-top: 0px;">';

   // Each tree item has a URL and name. Some may have extra_before and extra_after.
   foreach ($context['linktree'] as $link_num => $tree)
   {
      // Show something before the link?
      if (isset($tree['extra_before']))
         echo $tree['extra_before'];

      // Show the link, including a URL if it should have one.
      echo '', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '';

      // Show something after the link...?
      if (isset($tree['extra_after']))
         echo $tree['extra_after'];

      // Don't show a separator for the last one.
      if ($link_num != count($context['linktree']) - 1)
         echo '&nbsp;>&nbsp;';
   }

   echo '</div>';
}

IchBin

Are you talking about the Forum -> About -> About ? What is the name of the category that you have put your "about" article in? The theme linktree code is just fine. I think you have named the category about, and then the article is named about as well. So it is showing the links in this way (Forum->Article Category name -> Article name).

SmokyBlue

its doing that in her forum as well ICH..

i cant see a thing wrong with the link tree code, but i just got in so..  :P

ZarPrime

Smoky,

I looked at the site a little while ago and I didn't see this doing it in the forum, only with articles.  I think Ichbin is correct.

ZarPrime

IchBin

Its most likely doing forum -> forum because she named her forum "forum". :)

When viewing the forum it shows "Name of forum-> Forum". Go into Admin -> Server settings -> Change forum title.

SmokyBlue

Quote from: SmokyBlue on February 14, 2009, 10:35:52 PM
are you asking about a forum button or the link tree??

one thing i have noticed, you have doubles in the link tree..

like:




Forum > Forum > Announcements > Announcements > Important Announcements


this is what im talking about, Zarprime ;)

follow that link in her forum. its not an article issue...

edit ya sure ICH?? that might be true then.. was just picking out the links.. didnt pay attention to where i was..  ::) ^-^

ZarPrime

Ichbin is correct.

http://schreeandbaby.com/updates/index.php?topic=1.0

The first Forum is the name of the Forum, as Ichbin says.  The second one is "action=forum".  The first Announcements is a category and the second one is a board in that category.  If topic 1 was called "Announcements" instead of "Important Announcements" there would be 3 "Announcements" in a row.

Go to the link above and hover over each item in the linktree.  There is nothing wrong with the linktree in the Forum, it's just the way it's worded.

ZarPrime

This website is proudly hosted on Crocweb Cloud Website Hosting.