SimplePortal

Customization => Custom Coding => Topic started by: vatrsa on February 21, 2009, 11:36:20 AM

Title: How to remove the frame?
Post by: vatrsa on February 21, 2009, 11:36:20 AM
Hi, I use SimplePortal 2.1 and I have a problem.   
My home page looks like this, and I want to delete the frame.
(http://img17.imageshack.us/img17/513/59742838.png) (http://imageshack.us)
(http://img17.imageshack.us/img17/59742838.png/1/w770.png) (http://g.imageshack.us/img17/59742838.png/1/)
I want to look like this:
(http://img119.imageshack.us/img119/2395/15299032.png) (http://imageshack.us)
(http://img119.imageshack.us/img119/15299032.png/1/w770.png) (http://g.imageshack.us/img119/15299032.png/1/)
What do I need to do this, what files to edit?
Yours, Vatrsa (:
Title: Re: How to remove the frame?
Post by: [SiNaN] on February 21, 2009, 01:00:32 PM
SPortalBlocks1-1.template.php

Find:

Code: [Select]
if ($block['type'] == 'sp_boardNews')
Replace:

Code: [Select]
if ($block['type'] == 'sp_boardNews' || $block['id'] == 'BLOCK_ID')
Change 'BLOCK_ID' as the id of the block. You can see it from the edit/delete block links in Admin CP.

In version 2.2, we will have Advanced Style Options for each block. ;)
Title: Re: How to remove the frame?
Post by: vatrsa on February 21, 2009, 08:16:54 PM
Thank you very much, but of course, not works );
Your method works for blocks other than sp_html, sp_php, sp_bbc, and my block is a block of php.

Help me?

Title: Re: How to remove the frame?
Post by: [SiNaN] on February 22, 2009, 03:55:23 AM
Okay, try this then:

Find:

Code: [Select]
if ($block['type'] == 'sp_boardNews')
Replace:

Code: [Select]
if ($block['id'] == 'ID_BLOCK')
{
$block['type']($block['content']);

echo '
<br />';

return;
}

if ($block['type'] == 'sp_boardNews')
Title: Re: How to remove the frame?
Post by: vatrsa on February 22, 2009, 06:49:16 PM
Thank you, now it works.

Nice theme on the forum (;
Title: Re: How to remove the frame?
Post by: [SiNaN] on February 23, 2009, 12:16:02 AM
You're welcome.

Thanks, I love it.
Title: Re: How to remove the frame?
Post by: fl4pj4ck on February 27, 2009, 09:59:23 PM
vatrsa can you please tell me how did you managed to make that block?
can be in polish ;)
SimplePortal 2.3.8 © 2008-2024, SimplePortal