SimplePortal
Customization => Custom Coding => Topic started 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 (:
-
SPortalBlocks1-1.template.php
Find:
if ($block['type'] == 'sp_boardNews')
Replace:
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. ;)
-
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?
-
Okay, try this then:
Find:
if ($block['type'] == 'sp_boardNews')
Replace:
if ($block['id'] == 'ID_BLOCK')
{
$block['type']($block['content']);
echo '
<br />';
return;
}
if ($block['type'] == 'sp_boardNews')
-
Thank you, now it works.
Nice theme on the forum (;
-
You're welcome.
Thanks, I love it.
-
vatrsa can you please tell me how did you managed to make that block?
can be in polish ;)