Working with blocks
|
Posted
#48612
(In Topic #10618)
|
|
|---|---|
|
Community saint |
"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved OCP V7 | Advocating monetary reform - FreeOurMoney Need OCP friendly hosting? Look no further: Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal. |
|
Posted
|
|
|
ocStaff (admin) |
a) 4.2 will auto select box type based on where you put it, so going forward, the problem is recognised and fixed at source b) CSS is pretty powerful, you can do ".global_middle <anything>" to scope some CSS to only apply to stuff in the middle. You can also do ".global_side <anything>" or "#panel_left <anything>" or "#panel_right <anything>". c) You can also edit the templates. Compare the 'BOX' line from SIDE_NEWS and MAIN_NEWS to see what I mean. d) If you're doing something particularly advanced you can make the same block work very differently in different places (beyond what CSS can do), but that's getting into the realms of complex Tempcode programming. e) PANEL_WIDTH is tied to the config option (in 'Theme options' under the Configuration icon). If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
1) Added a dramatic width (was just try to get a feel for the effect of doing this) to BLOCK_SIDE_NEWS.tpl: Code
{+START,BOX,,800px{TITLE},{$PANEL_WIDTH},panel}
2) Refreshed my page and was presented with an error:
3) Created the template from adminzone called STANDARDBOX_13.3em and cut and pasted the contents of STANDARDBOX_panel.tpl into it. 4) Added a custom prefix to every instance of standardbox_* in my newly created template. 5) Voila! Works like a charm.
"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved OCP V7 | Advocating monetary reform - FreeOurMoney Need OCP friendly hosting? Look no further: Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal. |
|
Posted
|
|
|
Community saint |
Excellent, thanks for the starting points!!
"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved OCP V7 | Advocating monetary reform - FreeOurMoney Need OCP friendly hosting? Look no further: Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal. |
|
Posted
|
|
|
ocStaff (admin) |
But also I think your parameters are out of order. You're actually making things hard for yourself Code
{+START,BOX,{TITLE}}
Code
{+START,BOX,{TITLE},,light}
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
Thanks again Chris, you've gotten me off the side rails and back on track.
"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved OCP V7 | Advocating monetary reform - FreeOurMoney Need OCP friendly hosting? Look no further: Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal. |
|
Posted
|
|
|
Honoured member |
Vis-a-vis working with blocks: I was dinking around on a CEDI page, through the front-end as admin, experimenting with the idea broached elsewhere of putting my rateable items in the CEDI & adding a ratings block. I put in blah-blah-blah in the CEDI entry (in a specific category), and then tried to create a block (ratings), using the block assistant WHILE doing the CEDI entry. I used the default block parameters. The block preview looked normal enough, but when I was finished, all I got was the code Code
[block]main_rating[/block]
which appeared ABOVE the logo. I banged around here and read the tutorial on blocks; but as it's not clear what actually is supposed to happen when you use the block assistant (I mean, does the block magically show up on the page, fait accompli? And if it does, how does it know where to go???? - or am I supposed to edit it, or, drag it somewhere, or…why'd I get the code instead of an errant block…?), I a) don't really know what to expect, as it was my first attempt at a block, and b) don't know enough to know if this is a bug or an operator-error. If it's an operator-error, I'm happy to go back to banging around in my usual way, but if it's a bug… can somebody point me in the right direction? I figure that SoccerDad is now the resident block expert…. Thanks, Hitch
I always ask myself: WWWWD?, or, "What Would Wonder Woman Do?"
How come we have Yahoo IM, AIM, ICQ, you name it, but no field for Skype contact info? |
|
Posted
|
|
|
Community saint |
When using the block assistant, it *should* place the block close to where your cursor was situated in the editor window prior to launching the assistant. I would suggest turning off the WYSIWYG editor so you can see the full picture. Once the assistant has completed and you have your block code, you can then move it around in the editor as you see fit.
"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved OCP V7 | Advocating monetary reform - FreeOurMoney Need OCP friendly hosting? Look no further: Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal. |
|
Posted
|
|
|
Honoured member |
Howdy, SoccerDad (how's that great theme of yours coming along?): Hmmmm…well, I was trying to create an entry into a CEDI category, and "give it" a concomitant ratings block. I will toodle back over to my subsite and see what I can wrangle..I'll let everyone know how that goes, as I am sure you're all waiting with bated breath. :-) Hitch
I always ask myself: WWWWD?, or, "What Would Wonder Woman Do?"
How come we have Yahoo IM, AIM, ICQ, you name it, but no field for Skype contact info? |
|
Posted
|
|
|
Community saint |
"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved OCP V7 | Advocating monetary reform - FreeOurMoney Need OCP friendly hosting? Look no further: Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal. |
|
Posted
|
|
Community saint |
Keep up the good work. I run Otaku Play Ground 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.
|
|
Posted
|
|
|
Community saint |
"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved OCP V7 | Advocating monetary reform - FreeOurMoney Need OCP friendly hosting? Look no further: Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal. |
|
Posted
|
|
|
Honoured member |
You certainly DO!!! However, with regard to keeping you all posted, you're speaking with a woman who is banging her head against the screen currently trying to pass a php call through a CSS-styled HTML button that just IS NOT WORKING. If a girl can't make a button, I mean, REALLY…..what hope is there I'll ever get those accursed blocks to work? <sigh>. Works when there IS no button…doesn't work when there IS a button. button, button, who's got the button….(clearly, I am sinking into depravity). Hitch
I always ask myself: WWWWD?, or, "What Would Wonder Woman Do?"
How come we have Yahoo IM, AIM, ICQ, you name it, but no field for Skype contact info? |
|
Posted
|
|
Community saint |
I can try and make you a button if you want, it will still be made by a girl then I run Otaku Play Ground 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.
|
|
Posted
|
|
|
Honoured member |
LOL, Hi, Amichan: Well…."girl" is probably a misnomer, I haven't been that young in quite a while, but indubitably female, yes. Thanks for the offer for the button, but I am generally better off slogging through it myself, because then I remember how I did it. If I get desperate, though, I may take you up on your offer, thank you kindly. Hitch
I always ask myself: WWWWD?, or, "What Would Wonder Woman Do?"
How come we have Yahoo IM, AIM, ICQ, you name it, but no field for Skype contact info? |
|
Posted
|
|
|
Honoured member |
Y'know, I'm hanged, the accursed thing worked when I went back to my test-site and decided to screencapture it for Chris. Did I do anything different? Nope. Cannot explain it, the block appeared pretty much exactly where it was supposed to, instead of having the code appear at the top of the page like unrendered html. <shrug> So, that's my brilliant update, which translates into "Idunno." Nonetheless, for the moment, it's working, so this is more-or-less "solved." Hitch
I always ask myself: WWWWD?, or, "What Would Wonder Woman Do?"
How come we have Yahoo IM, AIM, ICQ, you name it, but no field for Skype contact info? |
|
Posted
|
|
Community saint |
I run Otaku Play Ground 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.
|
1 guests and 0 members have just viewed this: None
Control functions:







