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.


How do I add HTML code?

Login / Search

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

Fan in action

I have 1 peices of HTML code I would like to add to the front of my site, yet I am unable to figure out how to do this without getting an error. I would also like to make a new side block with our Ventrilo info on it so people can see who is on. I haven't been able to figure either out.. is this possible and if so can you please point me in a direction?
Back to the top
 
Posted
Rating:
#35022
Avatar

If you're not using WYSIWYG

Put code into the front page Comcode page using the Comcode 'html' tag. i.e. click 'edit page' and type something like this in…

Code

[html]
HTML goes here
[/html]

If you are using WYSIWYG

Put code into the front page Comcode page using the WYSIWYG editors 'Edit source' feature. i.e. click 'edit page', and click the WYSIWYG button to edit the HTML code that is being edited.


I think you mean 'box' rather than 'block'. The things on the panels are both boxes and blocks. A block is defined by a special PHP code file, whilst a box is the actual visual effect you're seeing. So if you're looking for it to look boxed, but don't want to have to write PHP code, you just need to add a box by typing in some Comcode for it…

Code

[box="Title"]Contents[/box]


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:
#35060
Joe
Avatar

Honoured member

You can also use:

Code

[semihtml]content goes here[/semihtml]

…if you would like to mix Comcode and HTML together. For example, you could do this:

Code

[semihtml][b]<a href="http://www.google.com/">GOOGLE!</a>[/b][/semihtml]

The HTML tag is used for pure HTML (no Comcode, just HTML), while the SEMIHTML tag can be used to wrap both Comcode and HTML together.

Back to the top
 
Posted
Rating:
#35147
Avatar

Community saint

 

Joe said

You can also use:

Code

content goes here
…if you would like to mix Comcode and HTML together. For example, you could do this:

Code

[b]<a href="http://www.google.com/">GOOGLE!</a>[/b]
The HTML tag is used for pure HTML (no Comcode, just HTML), while the SEMIHTML tag can be used to wrap both Comcode and HTML together.
  I use this one a lot.

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: