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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 652
  • Total: 653
  • tino

Align forums with side blocks on main forum page

Started by sam_stripy, September 07, 2009, 01:24:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sam_stripy

Link to my site: http://www.total-darkness.com/testforum/ in pieces atm because of editing various files
SMF version: SMF ver. 1.1.0
TP version: TP ver. TinyPortal v1.0 beta 4
Theme name and version: Default (basically just editing core theme)
Browser Name and Version: Use both when changing theme and design - Firefox 3.5.2and IE
Mods installed:
Related Error messages: None

I have managed to remove the board name from the linktree, so that on main forum page it will all line up nicely but how can I nudge it up now that the main board name has gone? I have firebug for firefox installed and have used inspect element to find the what it is that needs changing but it is not telling me what file it is in, I can see the table is being padded down by 10px on firebug and if I temp change it on firebug it fixes it, anyone tell me which file it is in to permanently nudge the forums up 10px now thats the linktree on main forum page is not there?

Thanks




IchBin

I'm not sure exactly what part you are talking about. Its hard to tell based on your description. Are you talking about how the block and main forum don't line up on your main forum page?

How did you get rid of the linktree? I still see that there is a <div> associated with your linktree that is pushing the main part of your forum down.

sam_stripy

Below is the code of the modified linktree code from my Load.php.

// Assume they are not a moderator.
$user_info['is_mod'] = false;
$context['user']['is_mod'] = &$user_info['is_mod'];

      // Start the linktree off empty..not quite, have to insert forum
             $context['linktree'] = array();

// Load this board only if the it is specified.
if (empty($board) && empty($topic))


All seems right there? Below is a screenshot of what I got and what I want to do.

http://www.total-darkness.com/Screenie2.jpg

IchBin

You may have emptied the array, but that does not mean the linktree code does not show. As I stated above, the <div> from the function linktree() in the index.template.php is still being called. Although it is not showing the forum word, it is still showing the <div>.

ZarPrime

sam_stripy,

Well, since you don't even have any tabs in the header to navigate your Forum, you need those as well.

Anyway, since you are using TP 1.0 beta 4, you could just setup an upper php block at the top with no title or content, and set to "use just the title" and to show in "All Forum related sections".It will put what looks like a spacer that will be lined up with both the left and right panels above the area where the linktree was located.  It looks good most of the time.  If you want to see what it looks like in the default SMF theme, click the link below for the TP Team testsite ...
http://www.tinyportal.net/index.php?action=forum

ZarPrime

Freddy


ZarPrime

Thanks freddy.  What you can do with TP is limited only by your imagination. :D

ZP

sam_stripy

#7
Thanks Zar, but i am already aware that a top panel will line it up,  would just like to have the option not too seeing as though i am not going to be editing this theme when it is complete anytime soon.

I dont need the forum tabs to navigate I have a flash banner with the tabs on going in laters.

As for the linktree fix it was taken off a problem solved post on here, can you pls explain where the extra div tag is please, code is below, I dont want to remove the linktree just the board root on main forum page, which is what I thought I had done as the linktree appears fine navigating away from the forum root http://total-darkness.com/testforum/index.php?action=forum :-

// 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: 2ex; margin-top: 2ex;">';

// 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 '<b>&nbsp;', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';

// 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>';
}


Just need to know now how to nudge it up to align with blocks.

Edit: having just re-read your replys IchBinâ„¢ I see you misunderstood the first line of my original post. I don't want to totally remove the linktree hence why the <div> is still there, as I said 'I have managed to remove the board name from the linktree' and just wish to know what is stopping the forums from aligning with the blocks on the main forum page when no link tree is called there.

IchBin

Well, since you removed that part of the linktree, the linktree is blank on the page. Hence, the <div> that is empty which causes your out of alignment issue. Either you need to have the linktree back to normal, or you need to remove the linktree completely. In your code above, you can see there is a <div> in it. That is the container for the linktree. If you have taken the forum out of the linktree text, then you will have an empty <div>.

This website is proudly hosted on Crocweb Cloud Website Hosting.