TinyPortal

Development => Support => Topic started by: reaper2120 on June 24, 2006, 05:20:42 AM

Title: <---Content block
Post by: reaper2120 on June 24, 2006, 05:20:42 AM
is there code on here for a content block like the one on the left? I love the formatting with bullets and all. I searched but couldnt find it.
Title: Re: <---Content block
Post by: RoarinRow on June 24, 2006, 05:33:06 AM
I made mine by going to the Menu Manager and creating each Header, Link, and Spacer.

Title: Re: <---Content block
Post by: anunlike on June 24, 2006, 05:43:11 AM
Yep. When working with the blocks, look for a 'menubox' type of block. There's one by default and that's the one it is.

You should see one in the upper left entitled "Content" on the home page.
Title: Re: <---Content block
Post by: TreetopClimber on June 24, 2006, 05:44:56 AM
The only reference to these I have found so far is in the TPortalBlocks.template.php,
in this section // Tportal userbox
function TPortal_userbox()
{
          global $context, $settings, $options, $scripturl, $txt, $modSettings;

$bullet = '<img src="'.$settings['images_url'].'/TPdivider.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
$bullet2 = '<img src="'.$settings['images_url'].'/TPdivider2.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
$bullet3 = '<img src="'.$settings['images_url'].'/TPdivider3.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
$bullet4 = '<img src="'.$settings['images_url'].'/tpgoto.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
$bullet5 = '<img src="'.$settings['images_url'].'/tpmodule2.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
Title: Re: <---Content block
Post by: anunlike on June 24, 2006, 05:48:58 AM
The thing is, if I'm understanding the question correctly, is you don't need code to do this manually. You just go to the blocks page where you normally work with the blocks and it's the 'menubox' type of block that's already there.

Just play around with the features and you'll learn how to create the headers, links, etc.

If you need any more help, just ask.
Title: Re: <---Content block
Post by: reaper2120 on June 24, 2006, 06:10:14 PM
thanks guys, with this info im sure i can figure it out!
Title: Re: <---Content block
Post by: Xarcell on June 24, 2006, 07:40:12 PM
@ reaper

The content menu on this site is a TP default "content block". You add sure by going to your menu manager as mentioned above.
Title: Re: <---Content block
Post by: reaper2120 on June 24, 2006, 07:42:38 PM
I made it by going in and making a menu block, then using the nice and eays menu manager. Thanks again guys!
Title: Re: <---Content block
Post by: RoarinRow on June 24, 2006, 08:22:49 PM
Your thread came at the right time cause I was in the process of re-organizing my menu.