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.


Create custom blocks?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#47062 (In Topic #10257)

Non-joined user

Hi there,

I'm trying to add a Teamspeak monitor to my site. But how? How can I create a custom block which I can add with the zone editor?
Back to the top
 
Posted
Rating:
#47064
Avatar

Community saint

ocPortal Tutorial: Making an addon (part 1) - ocPortal.com

That might be able to help you, you may not need to fallow the whole thing.

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:
#47066

Non-joined user

Well ty but I dont wanna make a addon. I just want to make the code I have from tsviewer.com to a block to use it like a widget.
Back to the top
 
Posted
Rating:
#47067
Avatar

Community saint

I know, in that add on tutorial it shows how to make blocks.
Create a file called

Code

sources_custom/miniblocks/teamspeak.php
And put the teamspeak code in it.

and to make it show up on the site put this in the side panel.

Code

[block]teamspeak[/block]

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: