Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1159
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

How to remove the frame?

Started by vatrsa, February 21, 2009, 11:36:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vatrsa

Hi, I use SimplePortal 2.1 and I have a problem.   
My home page looks like this, and I want to delete the frame.


I want to look like this:


What do I need to do this, what files to edit?
Yours, Vatrsa (:

[SiNaN]

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. ;)
And slowly, you come to realize... It's all as it should be...

vatrsa

#2
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?


[SiNaN]

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')
And slowly, you come to realize... It's all as it should be...

vatrsa

Thank you, now it works.

Nice theme on the forum (;

[SiNaN]

You're welcome.

Thanks, I love it.
And slowly, you come to realize... It's all as it should be...

fl4pj4ck

vatrsa can you please tell me how did you managed to make that block?
can be in polish ;)