collapse 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 login or register.

* Who's Online

  • Dot Guests: 144
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* 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]

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: Rounded blocks, gone?  (Read 1988 times)

0 Members and 1 Guest are viewing this topic.

Offline Nick

  • Jr. Member
  • **
  • Posts: 97
  • Gender: Male
    • GearedGamers
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Rounded blocks, gone?
« on: July 29, 2010, 07:24:03 PM »
SMF Version: 2.0RC3
SP Version: 2.3.2

Most, if not all of my blocks had the rounded feature by using the Default Body Class of Windowbg2, Now there square... I think it was around the time i added this;

http://simpleportal.net/index.php?topic=5332

I want to keep the blocks in blocks but i also want rounded corners. I'm not 100% sure it was the blocks in blocks that did this but i noticed it when i added it. Heres my blocks in blocks code;

Code: [Select]
$block = current(getBlockInfo(false, 49, false, false));  // Load block info$block['style'] = sportal_parse_style('explode', $block['style'], true);  //Parse block style parameters.template_block($block); // Output the block.

$columns = 2;$block_ids = array(17);$block_data = array();foreach ($block_ids as $block){   $block_data[$block] = current(getBlockInfo(false, $block, false, false));   $block_data[$block]['style'] = sportal_parse_style('explode', $block_data[$block]['style'], true);}echo '<center><table style="width: 60%;">   <tr>';$counter = 0;foreach ($block_data as $data){   if ($counter != 0 && $counter % $columns == 0)   {      echo '   </tr>   <tr>';   }   echo '      <td style="width: ', ceil((100 / $columns)), '%; vertical-align: top;"></center>         ', template_block($data), '      </td>';   $counter++;}echo '   </tr></table>';

Added via "Custom php block". As i said though, may not be an issue with this coding.

Offline deansmar

  • Full Member
  • ***
  • Posts: 122
  • Gender: Male
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Rounded blocks, gone?
« Reply #1 on: July 30, 2010, 05:28:07 AM »
have you also changed to a different theme ??

the rounded corners of the blocks come from the theme you are using.

for example;
the SMF Default Theme - Core uses the image main_block.png to create the rounded corners of the blocks this image can be found in \Themes\default\images\theme
as a foot note:
i went from a SMF 1.1.11 to SMF2 RC3 with out any problems what so ever, first of all de-install all Mods, converted to RC3, then installed SP2.3.2, then installed the required Mods.

Offline Nick

  • Jr. Member
  • **
  • Posts: 97
  • Gender: Male
    • GearedGamers
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Rounded blocks, gone?
« Reply #2 on: July 30, 2010, 06:17:37 AM »
No the theme is the same and the rounded corners still work with my pages. It's just the home page that stopped working.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Rounded blocks, gone?
« Reply #3 on: August 03, 2010, 09:35:36 AM »
Use of blocks in blocks should not change windowbg. 
If you change the style for a block, that would change the block's style.
 
Is the code you posted the code you are using?
It looks like lots of essential stuff has gotten stuck in the comments (everything after the "//").
 
You might take a look at the generated code for the blocks and see if "windowbg" is used with them.
 
 
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Nick

  • Jr. Member
  • **
  • Posts: 97
  • Gender: Male
    • GearedGamers
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Rounded blocks, gone?
« Reply #4 on: August 03, 2010, 11:15:20 AM »
All my blocks on my portal use the rounded feature. They worked fine before until obviously they stopped so i know that my theme supports the effect.

http://www.profifaleagues.net/index.php

If you take a look at the search bar under the login box it should be rounded, heres the current settings;

Style Options: No title
Default Body Class: Windowbg2

There is no custom coding entered and No body is NOT ticked.

However if you take a look at one of my custom pages created via simpleportal the feature works fine i also have the rounded feature in posts like you do here.

http://www.profifaleagues.net/index.php?page=premiership
« Last Edit: August 03, 2010, 11:24:35 AM by Nick »

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Rounded blocks, gone?
« Reply #5 on: August 05, 2010, 05:04:01 PM »
I would like to find out if the problem comes from the "blocks within blocks" code you used.
The sample you supplied has everything run into one line, with lots of stuff lost in the comments.
 
I'd like to know if that is really the code you are using, or if it got messed up during posting.
 
 
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Nick

  • Jr. Member
  • **
  • Posts: 97
  • Gender: Male
    • GearedGamers
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Rounded blocks, gone?
« Reply #6 on: August 06, 2010, 11:06:17 AM »
I'm using 3 of the block in blocks codes so i can center each block and have it a smaller size than the default width.

All codes are using the same coding except they just define different block ID's.

Heres the codes taken directly from the php blocks;

Code: [Select]
$block = current(getBlockInfo(false, 49, false, false));  // Load block info$block['style'] = sportal_parse_style('explode', $block['style'], true);  //Parse block style parameters.template_block($block); // Output the block.

$columns = 2;$block_ids = array(17);$block_data = array();foreach ($block_ids as $block){   $block_data[$block] = current(getBlockInfo(false, $block, false, false));   $block_data[$block]['style'] = sportal_parse_style('explode', $block_data[$block]['style'], true);}echo '<center><table style="width: 60%;">   <tr>';$counter = 0;foreach ($block_data as $data){   if ($counter != 0 && $counter % $columns == 0)   {      echo '   </tr>   <tr>';   }   echo '      <td style="width: ', ceil((100 / $columns)), '%; vertical-align: top;"></center>         ', template_block($data), '      </td>';   $counter++;}echo '   </tr></table>';

Code: [Select]
$block = current(getBlockInfo(false, 49, false, false));  // Load block info$block['style'] = sportal_parse_style('explode', $block['style'], true);  //Parse block style parameters.template_block($block); // Output the block.

$columns = 2;$block_ids = array(39);$block_data = array();foreach ($block_ids as $block){   $block_data[$block] = current(getBlockInfo(false, $block, false, false));   $block_data[$block]['style'] = sportal_parse_style('explode', $block_data[$block]['style'], true);}echo '<center><table style="width: 30%;">   <tr>';$counter = 0;foreach ($block_data as $data){   if ($counter != 0 && $counter % $columns == 0)   {      echo '   </tr>   <tr>';   }   echo '      <td style="width: ', ceil((100 / $columns)), '%; vertical-align: top;"></center>         ', template_block($data), '      </td>';   $counter++;}echo '   </tr></table></H1>';

Code: [Select]
$block = current(getBlockInfo(false, 49, false, false));  // Load block info$block['style'] = sportal_parse_style('explode', $block['style'], true);  //Parse block style parameters.template_block($block); // Output the block.

$columns = 2;$block_ids = array(41);$block_data = array();foreach ($block_ids as $block){   $block_data[$block] = current(getBlockInfo(false, $block, false, false));   $block_data[$block]['style'] = sportal_parse_style('explode', $block_data[$block]['style'], true);}echo '<center><table style="width: 30%;">   <tr>';$counter = 0;foreach ($block_data as $data){   if ($counter != 0 && $counter % $columns == 0)   {      echo '   </tr>   <tr>';   }   echo '      <td style="width: ', ceil((100 / $columns)), '%; vertical-align: top;"></center>         ', template_block($data), '      </td>';   $counter++;}echo '   </tr></table></H1>';

As you can see they pull from blocks, 17, 39 and 41.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Rounded blocks, gone?
« Reply #7 on: August 06, 2010, 01:44:43 PM »
Youhave squashed lots of stuff onto one line.
In php, anything after a // is a comment.
 
In your code,
Code: [Select]
$block = current(getBlockInfo(false, 49, false, false));  // Load block info$block['style'] = sportal_parse_style('explode', $block['style'], true);  //Parse block style parameters.template_block($block); // Output the block.
Everything after the first "//" is ignored.
 
You need to put these lines of code on different lines in your file or php block.
Code: [Select]
$block = current(getBlockInfo(false, 49, false, false)); 
// Load block
info$block['style'] = sportal_parse_style('explode', $block['style'], true); 
//Parse block style
parameters.template_block($block);
// Output the block.

And similarly for the rest of your code.
 
 
You might find the php manual at php.net, or the php tutorial at w3schools.com helpful in understanding the php code you are working with.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Nick

  • Jr. Member
  • **
  • Posts: 97
  • Gender: Male
    • GearedGamers
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Rounded blocks, gone?
« Reply #8 on: August 06, 2010, 03:55:28 PM »
Hmm, Ok thankyou.

 

SimplePortal 2.3.7 © 2008-2021, SimplePortal