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.


Suspected Mistake While Making Comcode Tags

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#24262 (In Topic #5797)
Joe
Avatar

Honoured member

URL Tag

Ehh, this may be a mistake, or it may be how you people use the URL tags, but I know in most software, including IPB, the URL tag goes something like this:

Code

[url=http://www.mydomain.com]My Site[/url]

As to where ocPortal's URL tag is the opposite of that:

Code

[url=My Site]http://www.mydomain.com[/url]

Even when your using the editor, it asks you to type some text, then highlight that text, and click the link button…but in the pop-up box for making the selected text a link, it asks you to type in the URL that the text you highlighted will point to. So when you type the URL into that box, it reverses your input, and makes the URL the text you highlighted, and the link you specified becomes the name.

EDIT:Ehh, this is really weird…my ocPortal does this, but the ocPortal on this site does it correctly. What version is this ocPortal? I have 3.0.10, maybe this is a buggy in my version? Anyways, what I'm trying to say is, how can I edit this Comcode tag to reverse it? Any help would be appreciated. Thanks! :)

~ Joe

Back to the top
 
Posted
Rating:
#24263
Avatar

ocPortal supports both via autodetection. Comcode is not BBCode – BBCode is a simple system to make it so users can write formatted text without making HTML, whilst Comcode is a very large dynamic language. Because Comcode has a lot of abstract dynamic tags, there is a rule that the primary data for  tag should be the contents of the tag, whilst auxiliary parameters are tag parameters – the primary data for a URL is the URL, as no caption is needed. BBCode has basically a rule where the contents of the tag are what is seen on-screen.


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

Honoured member

What exactly do you mean by "autodetection"?

Back to the top
 
Posted
Rating:
#24265
Avatar

Community saint

I was going to ask the same thing but I think he meants commcode will work both ways.

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

Since it commonly confuses users, ocPortal will sense where you put the URL in an [url] tag, and will make sure it's put in the HTML correctly. :)

Back to the top
 
Posted
Rating:
#24401
Avatar

Well-settled

I'm having a similar problem - I tried creating a new FAQ page (gave up on the 'catalogue' thing). Tried to add an url for people to go straight to the FAQ page on my main site, by highlighting the letters "FAQ" and then clicked the link icon.

Put the url in there.. and on the page it does not display FAQ underlined and linked, but:

/site/blah blah

which didn't work, as it was meant to be an external link.

How do you actually link some text with comcode?


D
Back to the top
 
Posted
Rating:
#24404
Avatar

Community saint

@dateofbirth

You should already have an FAQ button on your site menu (probably in the Left Panel - or 'panel_left' as it is termed), and if you click on the little 'Edit menu' link in that box it will open up an edit page.

When you click on the FAQ box it will give you several options to choose what to do. In the URL box just put "_SEARCH:catalogues:id=faqs:type=index" (sans quotes) and you're done.

Now click FAQ and start filling it up with all the banal questions your users might ask!!

I have an example at Anglo-Indian Portal - Welcome to Anglo-Indian Portal if you wish to take a look.

 ;)

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#24413
Avatar

Well-settled

To be honest that didn't make much sense to me. If I click on the menu box I can delete the faq from 'catalogues', not edit it.

If I click faq itself I can edit it, and have just added a question ("why is the faq hidden under "catalogues?").

Oh I geddit, that url adds it to the box? So I can add it to a different box, where it won't be hidden… OK.. yay! It worked.

Thank you for that.


Now I just have to delete the new comcode page I made for faqs.. :)


I'm still not sure how you make text linked and clickable?



D

Back to the top
 
Posted
Rating:
#24421
Avatar

dateofbirth said

I'm still not sure how you make text linked and clickable?

Use either the [url] or [page] tags, as described in the links section of the Comcode guide.

Back to the top
 
Posted
Rating:
#24449
Avatar

Well-settled

aha. Thanks.

 :$
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: