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.


Custom miniblock style problem

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#92063 (In Topic #18478)

Fan in action

I created a custom miniblock to show the latest forum posts from our SMF forum onto our mainpage. Miniblock works great.

Problem is...I want the miniblock to look like the standard miniblocks so it matches the rest of the theme.

Is there a way to make ocportal treat my miniblock as a standard miniblock so it will theme it like the others?

Or is there something I can insert into my miniblock's php file to make it look like the rest of them?

I'm using version 9 and a very basic customization of this theme  (i.e. only header and background image changed)
Back to the top
 
Posted
Rating:
#92064
Avatar

Community saint

Do you have a pictre of what it looks like or better yet a link to the site where it is so we can see what you're talking about?
Back to the top
 
Posted
Rating:
#92072

Fan in action

hmm it seems the person deleted their post, but I had notifications turned on thank god lol

temp1024 said

Sound like what you are looking for is catching the onchange event. See BLOCK_SIDE_LANGUAGE.tpl for an example of doing that that the OCP way.


That worked wonderfully.
Back to the top
 
Posted
Rating:
#92081
Avatar

Community saint

I don't think Temp1024's comment was meant for you. I think he had meant to reply another thread but interesting that it happened to solve your problem though.
Back to the top
 
Posted
Rating:
#92083
Avatar

Community saint

Duck said

I don't think Temp1024's comment was meant for you. I think he had meant to reply another thread but interesting that it happened to solve your problem though.
Yep, I thought I was replying to Arbo :$. I deleted it as soon as I realised that I posted to the wrong thread.

Nice bonus that that accident solved wicked's problem. Even as I re-read the problem though, I have no idea how it could have possibly been relevant O_o.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#92091

Fan in action

lol weird.

well the file you mentioned, it showed me that I needed to add

Code

<section class="box box___block_side_language">
<div class="box_inner">
​​​​

and then the closing tags around my custom content in the miniblock. Which is great because now all the miniblocks I've created (the latest forum posts, ventrilo status, progression, etc) match the rest of the theme.
Back to the top
 
Posted
Rating:
#92108
Avatar

Community saint

:thumbs:

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: