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.


Curved blocks vs. curved boxes

Login / Search

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

Community saint

Is there a way to have curved blocks, or only curved boxes?  I tried to put a block command (main_forum_topics) into a curved box, and it doesn't execute, I just get the text.  Then I tried using the regular block, but adding the parameter 'type="curved"' but that didn't work, the block was still square edged.

Is it possible to have curved blocks, or is that only available for boxes?
 
Back to the top
 
Posted
Rating:
#26914
Avatar

Could you post the code you tried up here please? It is perfectly possible to have curved standardboxes.

For example, the following creates a 100%-wide curved box, containing the welcome block:

Code

{+START,BOX,Welcome!,100%,curved}
[block="3"]main_greeting[/block]
{+END}

Back to the top
 
Posted
Rating:
#26917
Avatar

Community saint

I had just tried plugging a block / box into the Home Page using the Edit Page function.

Here is what I had tried:

Code

[block="General chat, Personal Chef Wannabes, General Kitchen, Recipes, Tips & Techniques, General Business, Marketing, Organization, Technology, Forums" type="curved"]main_forum_topics[/block]

Which returns a standard square edge box with the active forum topics in it.

Then I tried this:

Code

[box="General chat, Personal Chef Wannabes, General Kitchen, Recipes, Tips & Techniques, General Business, Marketing, Organization, Technology, Forums" type="curved"]main_forum_topics[/box]

Which returned a curved box, but with all of that stuff as the title, and "main_forum_topics" inside the box, rather than the actual topics.  

Your example above looks like a template, instead. Is that what I need to do, create / alter a template rather than try to use parameters while plugging it into the page?

Or, are you just adding the Start / End coding before and after the block / box to get the curving?
Back to the top
 
Posted
Rating:
#26918
Avatar

Community saint

Well, isn't that interesting!  Being an impatient sort, rather than wait for your reply, I just went and plugged in that Start / End code before my existing block and got a curved box around my standard block, both with titles!  lol.  That's an interesting thing to know, though.  

So, I'll wait for your reply to see what I should really do!
Back to the top
 
Posted
Rating:
#26919
Avatar

Blocks are neither curved, nor non-curved – they're an abstract concept with no direct form. A lot of blocks make output via templates that use a BOX, much like the way Philip illustrated. If you wanted to make a block use a curved box you'd have to edit whatever template that block uses (as you were doing before).
'block' as you typed is a Comcode tag, as is 'box'. The 'box' tag has very specific parameters, and surrounds it's contents with a box. The 'block' tag can take any parameters itself, but they will only be interpreted according to what the block that is used understands – there are no general parameters like 'type' for blocks, only the parameters the blocks themselves use.

If you really do want to only use curved boxes for all your templates, you could try editing the 'STANDARDBOX_classic' template so that it's contents is:

Code

{+START,INCLUDE,STANDARDBOX_curved}{+END}
That should cause classic box's to just absorb the look of curved box's.


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:
#26921
Avatar

Community saint

Thanks!  I'll give that a try.
Back to the top
 
Posted
Rating:
#26922
Avatar

Community saint

Philip said

Could you post the code you tried up here please? It is perfectly possible to have curved standardboxes.

For example, the following creates a 100%-wide curved box, containing the welcome block:

Code

{+START,BOX,Welcome!,100%,curved}
[block="3"]main_greeting[/block]
{+END}
Thats how I made my curved skins.
I made every block had that code in it.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#26932
Avatar

Community saint

 

Chris Graham said

If you really do want to only use curved boxes for all your templates, you could try editing the 'STANDARDBOX_classic' template so that it's contents is:

Code

{+START,INCLUDE,STANDARDBOX_curved}{+END}
 That should cause classic box's to just absorb the look of curved box's.
 
Okay, I did this, and interestingly, it seems to work on some blocks but not others.  The main_forum_topics block, both in the middle of the page, and in the side panel, took on the curved corners.  The other blocks - side_personal_stats, side_personal_topics, side_calendar, side_search, side_stored_menu - all still have square corners.  Those blocks are all specifically side blocks, whereas the main_forum_topics really isn't.  Is that why?  Is there a different template I would need to change to affect the side blocks?  Or is that even possible?
Back to the top
 
Posted
Rating:
#26935
Avatar

Have you cleared your caches?

Back to the top
 
Posted
Rating:
#26936
Avatar

Actually, make the same change to STANDARDBOX_panel.


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:
#26939
Avatar

Community saint

 

Chris Graham said

Actually, make the same change to STANDARDBOX_panel.
 
Yep - that worked a treat!  All curvy now. Thanks!
Back to the top
 
Posted
Rating:
#26958
Avatar

Community saint

Just a question you could have downloaded one of my skins to get it done faster.
I would like to see your site when you are done, maybe I can get some ideas for new skins.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#26970
Avatar

Community saint

I'll be posting it when I get it all finished.  I know I could have started with one of yours, but this way I'm learning how to do it, so next time, hopefully the learning curve will be less.
Back to the top
 
Posted
Rating:
#26972
Avatar

Community saint

LOl yes well as long as your having fun.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: