HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[box] configuration....possible?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#53229 (In Topic #11590)
Avatar

Community saint

Is it possible to configure the

Code

[box="title"]info[/box]

so that the box corners are rounded like in some of the default blocks?

And not like this…

Squared Corners

I want rounded corners, not squared…lol

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#53231
Avatar

Check the Comcode tutorial for the tag's 'type' parameter.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#53232
Avatar

ocPortal.com - ocPortal Tutorial: Comcode and the attachment system

Boxes can have 'type' parameters. For example:

Code

[box type="curved"]Content here[/box]
Will render as:

 
Content here
 



Like ocPortal on Facebook:
Back to the top
 
Posted
Rating:
#53233
Avatar

Community saint

Thank you both!  :thumbs:

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#53234
Avatar

Wow, a double-developer post within one minute of each other. I doubt that'll happen very often. ;)


Like ocPortal on Facebook:
Back to the top
 
Posted
Rating:
#53251

Non-joined user

Cool!

How would I go about turning a block with curved sides into a "classic" one?

e.g.:



I'd like this to look square.
Back to the top
 
Posted
Rating:
#53252

Non-joined user

my e.g. was meant to show:

block param="random" zone="_SEARCH"]main_iotd
Back to the top
 
Posted
Rating:
#53256
Avatar

Community saint

If you "Edit Templates" from your theme and find BLOCK_MAIN_IOTD.tpl ... you could just remove "curved". Since "Classic" is the default, you would not have to add it.

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#53262

Non-joined user

Hmmm, I've done that, but nothing's happened….

I'll keep trying.

Thanks anyway!
Back to the top
 
Posted
Rating:
#53263
Avatar

Try emptying the block cache.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#53264

Non-joined user

I wonder if it's because I'm viewing the page on IE6?
Back to the top
 
Posted
Rating:
#53265
Avatar

No, IE6 won't make any difference here. Actually my above advice was bogus, it's not cacheing.
One possibility is if you have no IOTD set yet you need to change BLOCK_NO_ENTRIES.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#53266

Non-joined user

Sweet - thanks!

I'm loving this.  My only real comment is - how do you find out this stuff without always asking on the forum?

For example I now want to do the same to my sideblock calendar (change it from panel to classic), but I've changed side_calendar with no luck.  There's probably another one, as this too is empty, but I don't know how to go about finding it.  

(I also want to find where the text colour and alignment is defined for the dropdown menu I have across the top too, for example.  I can change the dropdown text colours, but not the colour of the text you hover over to open the menu or have the menu span across the middle of the page.)

It's only a minor niggle though.  I'd never even heard of CSS two days ago, and I'm already getting close to a site that looks seriously pro!  ocPortal does indeed rock!
Back to the top
 
Posted
Rating:
#53267
Avatar

Hi,

ocPortal's template tree feature, and Firebug's inspect tool, are both very handy.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#53269

Non-joined user

Sorry to be a complete pain, but where do I find the template tree and/or documentation on it?

This is my last question for today - I promise!
Back to the top
 
Posted
Rating:
#53270
Avatar

The dropdown in the login box, if you're staff. I think the themeing tutorial talks about it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#53610
Avatar

Community saint

No sense starting a new topic when I can continue this one…

Is it possible to put a background image in a box and/or change the background color?

What I would like to do is have the inside of the box white and then put an opaqued image as the background image and then if I want text over it, I can just write it in there appropriately.

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#53612
Avatar

Not via Comcode.


Like ocPortal on Facebook:
Back to the top
 
Posted
Rating:
#53613
Avatar

Community saint

Or free support then either I will assume.  :lol:

Because I would want each box to be a different background image.

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#53644
Avatar

Well, in 4.2 there is a 'surround' Comcode tag.
You can do:

Code

[surround="some_css_class"]
blah
[/surround]
and then define ".some_css_class".

In 4.1 you could do similar just you'd have to use HTML (Comcode 'html' tag).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Expand