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.


[RESOLVED] size custom comcode pages names

Login / Search

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

Community saint

Is there a maximum length for the name of a custom comcode page?

I'm currently using v6.0.3, and trying to create custom comcode pages called "xxxxxxxxx_yy_zzzzzzz". And while ocPortal lets me create it ok, it does not seem to let me call it with "[xxxxxxxxx_yy_zzzzzzz][/xxxxxxxxx_yy_zzzzzzz]" (and yes, I have flushed the caches).

In previous versions of ocPortal I created comcode pages called "xxxx_yyyy_zzzzzz", and can use those without problem.

Also, one small bug. When you rename a comcode page only the closing tag is renamed in the example section.

So changing from old_name to new_name will give "[old_name][/new_name]" as the example.


Last edit: by temp1024

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

When you say [xxxxxxxxx_yy_zzzzzzz][/xxxxxxxxx_yy_zzzzzzz] are you implying you have put it in a new zone also, and that you have new-style short URLs enabled?


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

Community saint

Not sure what you mean by "new-style" short URLs, but I do have short-URLs enabled.

I'm not having problems with URLs, its when I try and use the custom comcode page.

Fore example if I create a comcode tag called "mycomcode_on_thesite", and use it in the left panel on my welcome zone, I get this:

Instead of the contents of the tag.

But if I shorten the a comcode tag name to "mycomcode_on_the", I get what I expected here:

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

Ah, comcode tags not comcode pages, got you now.

Actually nothing has changed. The limit is currently 19 characters. For the next patch we'll up it to 30 and we'll tie the custom profile field add/edit screen to that too.


This puts it up to 30:
Attachment
sources/comcode_text.php
» Download: comcode_text.php (78 Kb, 80 downloads so far)




I could not reproduce your smaller example bug, unless I changed the example to not correlate and then changed the tag again. I am making that a little smarter too though.


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

Community saint

Apologies for the confusion Chris, got a bit terminology tongue-tied there. Fix worked  :thumbs:

For the example bug, try removing the ' color="red"' from the example. Note the first space in the quote.

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

Ah yes I fixed that, for some reason I thought you said closing tag, I'd misremembered ;).


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
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: