News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Inline Link Format Suggestion

Started by anunlike, May 12, 2005, 01:34:47 AM

Previous topic - Next topic

anunlike

Hi.

I want to make a simple suggestion in regards to the format of the inline link feature. I was just wanting to suggest that the topic being displayed be listed on the line below.

So, instead of:
Simple Machines Community Forum  |  SMF Support  |  Feature Requests (Moderator: A.M.A)  |  Topic: Inline Link Format Suggestion

To something along the lines of:
Simple Machines Community Forum  |  SMF Support  |  Feature Requests (Moderator: A.M.A) 
Topic: Inline Link Format Suggestion


I know it's pretty trivial. Though, I think, for the sake of aesthetics, things would just look better if it was like that. In this case, it would be much less likely to have the text wrap to the next line and would give more room for moderators and the "<< previous next >>" text or whatever else would go there.

A.M.A

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

replace with:
// Show the link, including a URL if it should have one.
if ( $link_num != count($context['linktree']) - 1)
   echo '', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '';
else
   echo '<br /><b>', $settings['linktree_link'] && isset($tree['url']) ? '' . $tree['name'] . '' : $tree['name'], '</b>';
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

anunlike

Thanks A.M.A

I actually figured out how to do this. I was just throwing it out for consideration for the developers or whoever.

A.M.A

Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

[Unknown]

But then we can't call them inline links, can we?

-[Unknown]

anunlike

Well, for the most part, i guess you still could, if it's just the topic that's on the next line and (especially) if the topic wasn't linked.

But, it perhaps could be another option (of course, giving it a new name).

Advertisement: