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.


[SOLVED] Comcode doesn't want to play well, help me give him a good discliplining

Login / Search

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

Community saint

AKA: Why doesn't this work?

Greetings,

I am trying to make a tabbed info box on the forum page of my site. I've done this before long time ago, so I know it works. The problem is, comcode is spitting out errors that just don't make any sense on why they are there.

Here's the code for the page.

I WOULD PUT THE PAGE HERE IN CODE TAGS FOR YOU BUT NOOOOOOO F'ING COMCODE ERROR POPS UP HERE! IN A F'ING CODE TAG? WHY THE HECK IS IT COMPLAINING ABOUT THE TABS CODE WHEN IT WAS WITHIN AN F'ING CODE TAG????

deep breath....

so... I can't show you the actual page cause comcode is being a brat.


Here's the silly error.



Of course it goes through and points it out at the very bottom of the tag. But this error is faulty because the BOX tag was the first tag opened and was not yet closed, since it was to enclose it all in the box, it should be the last tag closed correct?

What it is doing is throwing semi-html tags around it and then complaining that the last closed semi-html tag isn't behind the tag it wants to be there....

I wanted to put what the stupid error said here, but nooo I can't. Cause COMCODE can't recognize that I had it wrapped in CODE tags and spits out stupid errors here too! Serious problem here Chris. Serious problem. mythus is unhappy.

So yeah, what the heck do I do here?

INFO: The purple is text where I attempted to put in, wrapped in CODE tags and closed properly, example of the page and the error info... but comcode complained about tabs tags not being closed right within the code tags. So yeah. I cannot show you what I am talking about. I hope you are a mind reader.


Last edit: by mythus

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Item has a rating of 5 (Liked by Chris Graham)  
Rating:
#102449
Avatar

Community saint

While you wait for Chris to fix the code tag bug, you throw your tab code into a text file and attach it.

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

Community saint

Sure I can do that. But the fact remains, something is broke here as well IF I can't use a simple CODE tag. Hopefully it will get fixed.

Attachment
TABS
» Download: lofntabsinfo.txt (1.61 Kb, 99 downloads so far)

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Rating:
#102451
Avatar

Community saint

mythus said

Sure I can do that. But the fact remains, something is broke here as well IF I can't use a simple CODE tag. Hopefully it will get fixed.
No doubt it will get fixed in short order.

We've all placed plenty of broken code in code tags in the past without any problems, So this is either a recent bug, or an edge case that wasn't accounted for.

As for your tab problem. You are just not closing one of your tab tags. What you have is:

Code

(tab="News" default="1")
   (tabs="News,Setting Calendar,Site Staff")
      (tab="Setting Calendar")
      (/tab)(EUR-)<(EUR-)<

      (tab="Site Staff")
      (/tab)(EUR-)<
   (/tabs)

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

The code problem will be fixed. Essentially it is a complicated conflict when using the WYSIWYG editor. Pastes into WYSIWYG often create HTML 'pre' tags, which are considered equivalents to Comcode 'code' tags. You then have a 'code' tag around that too. But, you are not allowed to nest code tags because by definition they are not parsed, and hence cannot be interpreted as nested. Whatsmore, we can't just strip the 'pre' tags, because the web browser actually restructures HTML to rely on them. The fix we have to do is to only use 'pre' tags as Comcode 'code' tags, if there are no actual Comcode 'code' tags – otherwise, let them flow out. I said it was complicated ;).

It is best to use a text file, avoid code tags in WYSIWYG, or turn WYSIWYG off.

I'm not going to upgrade ocPortal.com yet, as this code is ageing now, and it might take a while to re-test it on here. Before all too long, this site is getting a major upgrade.


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

As for the original issue, look closely at your Comcode – there were a few problems in there. Try stripping it down to just tabs and tab tags, and you'll see the problem clearly.


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

Community saint

I managed to solve the issue on my site, there was an open tab.

It was just terribly aggrivating to not be able to share the error with you guys in the way I've always done. Thankfully I am a patient ocPortal fan and not a new guy or whatever who would have been turned away by that.

The weird thing is, I've used CODE tags with no issues before here, with the WYSIWYG editor. Kind of odd to me that the error cropped up this time, maybe something in my error reporting triggered it?

Or maybe, just maybe, ocPortal has become sentient and had decided that it just didn't like me that day. I am betting it is that.

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: