Dream Portal is a portal system designed to function with Simple Machines Forum (aka SMF).

It allows you to easily manage your site and webpages in an SMF environment. Place Modules on different actions and non-actions of your SMF forum using a simple drag-and-drop approach. Users can also create and save multiple layouts by name and assign pages to any layout(s). Bundled with Dream Pages and Dream Menu helps put the power and ease of customizing your SMF forum right at your fingertips.

Dream Portal allows you the ability to easily customize your SMF forum and site with many different possibilities helping to make customization truly what dreams are made of!

DreamPortal1.0.5.zip
File size: 221KB
Download count: 1272
DreamPortal1.0.5.tar.gz
File size: 176KB
Download count: 141
Download

There's a New Sheriff in Town and his name...
Last Poster: SoLoGHoST in Announcements | Yesterday at 09:35:42 PM

Re: DP works with SMF 2.0.1?
Last Poster: pixeleyes in English Support | February 21, 2012, 10:28:40 AM

Re: DP works with SMF 2.0.1?
Last Poster: Xarcell in English Support | February 21, 2012, 09:50:52 AM

DP works with SMF 2.0.1?
Last Poster: pixeleyes in English Support | February 21, 2012, 07:27:35 AM

Re: Reset Impression Count
Last Poster: SoLoGHoST in Modules | February 17, 2012, 06:27:57 AM

Author Topic: Question  (Read 293 times)

0 Members and 1 Guest are viewing this topic.

Alb0

  • Light Sleeper
  • *
  • Posts: 35
  • Dreamy
    • View Profile
Question
« on: January 22, 2012, 08:41:10 PM »
In my current theme, it seems as though the blocks have the same white background as the theme itself, so they're not really distinguished as far as borders go. I know that DP 1.1 is almost at it's release time, and it may be fixed in that one, but I was just wondering what could be causing it.
Take a look at it.

www.velocity-server.com
#1
*
SoLoGHoST
  • Dreamist
  • Posts: 1878
Re: Question - January 22, 2012, 11:32:09 PM
This is because the theme itself does not apply borders at all.  If you want a border around the content of the modules than you'll need to code this in a style element within DreamPortal.template.php.  Do a search in that file for this:

Code: [Select]
margin-bottom: 5px;

Than just add in a border.

Code: [Select]
margin-bottom: 5px; border: 1px solid black;

That should give you a border for each module.  If you want the border to appear as if it is coming from within the header, than just change the margin-top property to like -3px so that it jumps up into the header a bit.  If the border-top looks funny, just apply border-top: none; so you can do this also:

Code: [Select]
margin-bottom: 5px; border: 1px solid black; margin-top: -3px; border-top: none

The important thing to remember, if you offer other themes to your users besides this one, than it might not look good in other themes, so you should probably check for this theme only and if this theme is the one selected by either that user or a guest, than add in the border, margin-top, and border-top properties, otherwise, don't.

In any case, this is, moreso, Theme-related, since DP was coded so that modules can fit into any theme and look as though it automatically belongs in that theme.  Alternatively, you can change the theme index.css file for this as well to include a border-left, and border-right for the roundframe css class rule, and than you can also add in a border, or border image for the lowerframe css class rule, as the SMF default theme, Curve, does this.  But in doing this, it will affect your entire forum, not just the modules on the DP Homepage, but also your categories and boards display for that theme only.

It's really up to you.

- Solomon

P.S. - DP 1.1 will not add borders to your modules either, unless they are specified within the roundframe and lowerframe (background-image) classes.  Because again, Dream Portal is meant to blend in with your theme and how your theme looks.  HOWEVER, a Module Template could be coded in Dream Portal 1.1 to do anything with your modules, including adding borders around them, only in DP 1.1.
Last Edit: January 22, 2012, 11:37:56 PM by SoLoGHoST

#2
*
Alb0
  • Light Sleeper
  • Posts: 35
Re: Question - January 23, 2012, 03:13:43 AM
Ahhh, I see. Thanks for the descriptive details SoLo. I will most likely switch themes once DP 1.1 is released actually, so I won't need to worry.
Marking this as solved.

#3
*
Alb0
  • Light Sleeper
  • Posts: 35
Re: Question - February 03, 2012, 02:26:54 PM
I apologize for the double post. Could you please educate me as to where I could find DreamPortal.template.php? I looked pretty much everywhere, but all I could find was DreamPortal.php in Sources/

#4
*
SoLoGHoST
  • Dreamist
  • Posts: 1878
Re: Question - February 03, 2012, 05:07:01 PM
./Themes/default

#5
*
Alb0
  • Light Sleeper
  • Posts: 35
Re: Question - February 04, 2012, 10:54:14 PM
I've actually managed to add some borders to the forums theme itself, yet the modules in dream portal are still not showing any. Take a look, www.velocity-server.com

#6
*
Xarcell
  • Dreamist
  • Posts: 753
Re: Question - February 05, 2012, 02:21:15 AM
I've actually managed to add some borders to the forums theme itself, yet the modules in dream portal are still not showing any. Take a look, www.velocity-server.com

In your index.css
look for:
Code: [Select]
.roundframe {
padding: 0;
}

Then add some border to it.

DP uses SMF's code, so it isn't a DP issue so much as a theme issue. Heck, it's not even really an issue. It' s just a matter of theme design.

Since you DP uses SMF's code(as it should), if you add border to roundframe, then everywhere in that theme it is used, you'll see border. Like the login area, admin areas, info center, etc...

If you don't want it to show in those areas too, then I recommend customizing the theme's templates, or Dream Portal's templates. Replace .roundframe with different class like .boardframe and style it the way you need it in the index.css file.

BTW, what browser are you using?
Last Edit: February 05, 2012, 02:26:35 AM by Xarcell

#7
*
Alb0
  • Light Sleeper
  • Posts: 35
Re: Question - February 14, 2012, 10:16:07 PM
Got this issue fixed by adding the following code to index.css;

Code: [Select]
.blockframe { background: #eee; border: 1px solid #bbb;}

Thank you guys  :D


 

  • • Users: 1
  • • Guests: 27

 Top 5 Posters

1878 Posts

1425 Posts

753 Posts

503 Posts

365 Posts
Welcome, Guest.
Please login or register.

 
 
 

Did you miss your activation email?

 Shoutbox

SHOUTBOX NOT FOR SUPPORT!

 Calendar

  • Su M Tu W Th F Sa
    1 2 3 4 5 6 7
    8 9 10 11 12 13 14
    15 16 17 18 19 20 21
    22 23 24 25 26 27 28
    29 30 31
  • Su M Tu W Th F Sa
    1 2 3 4
    5 6 7 8 9 10 11
    12 13 14 15 16 17 18
    19 20 21 22 23 24 25
    26 27 28 29
  • Su M Tu W Th F Sa
    1 2 3
    4 5 6 7 8 9 10
    11 12 13 14 15 16 17
    18 19 20 21 22 23 24
    25 26 27 28 29 30 31

No calendar events were found.