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: 207
  • 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: Block Theming  (Read 11399 times)

0 Members and 1 Guest are viewing this topic.

Offline swtdivalove

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Block Theming
« on: September 25, 2009, 09:43:38 PM »
I want to totally customize the blocks.

With that in mind, I believe if there were a way to look at the coding through the admin for just the HTML portions of the block, it would make things much easier to change the block HTML.

So, the question I have is where can I change the coding of the HTML so I may change the look-n-feel of the blocks in the most simplistic of ways.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Theming
« Reply #1 on: September 25, 2009, 10:24:31 PM »
At the moment there is no such editor, although it is an idea that is on the Development teams radar, as one of the things to do in the future.

You can use the style options when you edit a block, they give you some control over it.

For now, you will have to change blocks html/php code, which is located within the 'sources/PortalBlocks.php' file.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline swtdivalove

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Block Theming
« Reply #2 on: September 29, 2009, 03:28:43 PM »
Any idea on a time frame?

It would be much easier to implement faster, more effecient revisions for you all as well as the rest of us.  Once you have the function set, then make a call to the template and then display the block instead of displaying all the html into each function.  It would cut down on file size overhead when doing it this way, and increasing the script speed.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Theming
« Reply #3 on: September 29, 2009, 08:17:23 PM »
Any idea on a time frame?

It would be much easier to implement faster, more effecient revisions for you all as well as the rest of us.  Once you have the function set, then make a call to the template and then display the block instead of displaying all the html into each function.  It would cut down on file size overhead when doing it this way, and increasing the script speed.

At the moment we don't have any specific timeframe, I will say that it isn't planned for the next major version - 2.4 - which will mainly be adding a forum independant articles system. The major version after that (3.0?) is where we plan to add this feature, hopefully it will be done over the summer (southern hemisphere, winter for the norther hemisphere), although I'm not going to set a specific date, because we currently don't know how long it will take.

The main reasons for implementing a block editor, would be to make it  easier for users (and devs) to customize their blocks types, create new block types, share block types, etc.

The dev team is aware that having every single block in the same file is not a particularly good way of doing things, for several reasons. We intend to separate each block type into a separate file, with 'source', 'template' and 'language' functions, so that should help speed things up by cutting down the file size overhead. It should also mean that users don't have to worry about losing edits to block types when they upgrade SP versions.

Anyway, enough rambling on. ;)
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline swtdivalove

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Block Theming
« Reply #4 on: October 02, 2009, 09:37:17 PM »
Thanks Nathaniel! :)

Offline swtdivalove

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Block Theming
« Reply #5 on: October 27, 2009, 11:39:22 PM »
Ugh!  This is one of the very last things I have to accomplish at the moment.  I'm struggling VERY badly with this because of how the template for it is working into the coding of PortalBlocks.php.

Is there someone willing to help me recode the PortalBlocks.php so it will work with what I am attempting to do?
« Last Edit: October 27, 2009, 11:48:30 PM by swtdivalove »

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Theming
« Reply #6 on: October 28, 2009, 02:44:33 AM »
Well, if there are very specific things that you are having problems with, then post the problem and someone may be willing to help.

What exactly are you trying to change?

If you are trying to rewrite that the entire file, that is quite a bit of work.

If you are trying to change the general look of all the blocks (at the same time), then have a look at the 'Themes/default/Portal.template.php' file, that contains the general code which contains the blocks (as opposed to the specific code for each block type).
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline swtdivalove

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Block Theming
« Reply #7 on: October 28, 2009, 10:58:33 AM »
That partly did it, but now I have to find the rest of the code that handles the portal.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Theming
« Reply #8 on: October 28, 2009, 06:06:33 PM »
That partly did it, but now I have to find the rest of the code that handles the portal.

What part of the code? If you can explain it a bit more then I can point you in the right direction.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline swtdivalove

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Block Theming
« Reply #9 on: October 28, 2009, 07:20:19 PM »
http://www.dreamlikeent.com

If you look at the center stuff, that's what I'm trying to figure out.

Want to make it look like the blocks on the left.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Theming
« Reply #10 on: October 28, 2009, 10:59:16 PM »
Well, if you are using articles to show those topics then you want the 'Themes/default/PortalArticles.template.php' file, if you are using the Board News block type, then search for the 'sp_boardNews' function in the 'sources/PortalBlocks.php' file.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline swtdivalove

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Block Theming
« Reply #11 on: October 29, 2009, 10:16:21 AM »
Thanks! :)  I'll dig around later today. :)

Offline swtdivalove

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Block Theming
« Reply #12 on: October 29, 2009, 02:02:40 PM »
AHA! :)  Take a look when you get a chance! :)

Still a lot more work to do though! :)

Offline swtdivalove

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Block Theming
« Reply #13 on: October 30, 2009, 11:09:18 PM »
Ran into a little bit of an issue... Is that the themeing I did only works when signed in.  It doesn't work if someone is logged out.

Offline swtdivalove

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Block Theming
« Reply #14 on: November 01, 2009, 07:21:20 PM »
**BUMP**

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Theming
« Reply #15 on: November 02, 2009, 06:24:11 PM »
Which specific "theming"? Can you please post screenshots comparing a guests view to the view that a person who is logged in can see?
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline swtdivalove

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Block Theming
« Reply #16 on: November 03, 2009, 02:27:15 AM »
The blocks when someone is a guest, shows up under the standard theme, but when logged in it looks as they are suppose to.

As for screen shots?  Not till I get my regular comp back online.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Theming
« Reply #17 on: November 03, 2009, 02:38:29 AM »
The attached image is what I see when I look at your website as a guest. It looks like your customized edits are there to me.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline swtdivalove

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Block Theming
« Reply #18 on: November 04, 2009, 10:25:56 AM »
The blocks on the left should look like the center news section, even as a guest.

Offline swtdivalove

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Block Theming
« Reply #19 on: November 06, 2009, 12:26:14 PM »
bump

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block Theming
« Reply #20 on: November 06, 2009, 05:56:34 PM »
Do you have the 'Hide SMF Version' mod installed? If so, then try moving the code that it adds to your index.php file (see below) to after the SP call to the 'sportal_init()' function.

Code: [Select]
//If the user isn't an admin, then hide the version'
if(!$user_info['is_admin'] && !empty($modSettings['hideVersion']) && $modSettings['hideVersion'])
$GLOBALS['forum_version'] = 'SMF';
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline swtdivalove

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Block Theming
« Reply #21 on: November 06, 2009, 08:26:37 PM »
Will definitely give it a shot.

Offline swtdivalove

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: Block Theming
« Reply #22 on: November 06, 2009, 08:37:38 PM »
That did it!  Thanks!