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.


Problem with table validation and Horizontal Rule

Login / Search

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

Well-settled

<table width="346" height="192" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td align="right" style="width: 50%;">Hair
</td><td align="right" style="width: 50%;">
</td></tr><tr><td align="right" style="width: 50%;">
</td><td align="right" style="width: 50%;">
</td></tr><tr><td align="right" style="width: 50%;">
</td><td align="right" style="width: 50%;">
</td></tr><tr><td align="right" style="width: 50%;">
</td><td align="right" style="width: 50%;">
</td></tr><tr><td align="right" style="width: 50%;">
</td><td align="right" style="width: 50%;">
</td></tr><tr><td align="right" style="width: 50%;">
</td><td align="right" style="width: 50%;">
</td></tr><tr><td align="right" style="width: 50%;">
</td><td align="right" style="width: 50%;">
</td></tr><tr><td align="right" style="width: 50%;">
</td><td align="right" style="width: 50%;">
</td></tr><tr><td align="right" style="width: 50%;">
</td><td align="right" style="width: 50%;">
</td></tr></tbody></table>

And this is basically the problem.  Though when I do it on my site the tables won't validate because the opening and closeing tags don't match up.  My favorite is "The tag <td> was closed but it was not the last tag on the line to be opened which was <td>. 

Also when I add a Horizontal rule it shows up correctly to begin with and then appears as…

<hr width="100%" size="2" />

To be honest so long as I can get the tables to work i don't care if the WYSIWYG does it for me, same for the HR, but I really would like to be able to use them.  Any help is appreciated.

Geo
 
Back to the top
 
Posted
Rating:
#27481
Avatar

Community saint






Being a bit 'nosy', and not having a great deal to do, I copied your code to give it a run on my site.

Of course, I added the "semihtml" opening and closing tags, and the attachment is what I was given when I previewed - no errors!!

The error message you are getting may well be as the result of some other bit of code that is missing or corrupt.

Good luck.

 :thumbs:

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

Well-settled

Wierd

Your right.  It does work.  Could it have something to do with it being done on a Mac?  'Cause when i did it at home it didn't work and here (at work, on a PC) it does.  I wonder…

<hr width="100%" size="2" />

Nope.  HR is still broken.  Thanks for the help with the tables though.

Geo
 
Back to the top
 
Posted
Rating:
#27486
Avatar

Community saint

Can't help with the Mac v PC observation, Geo, as I've never used the former.

I've had problems with 'hr' though. My problem is an irritation that although it will 'size' to whatever percentage I choose, it just won't align it, specifically in the centre. So a 50% 'hr' butting the left margin looks downright stupid in a display. My use of 'hr' these days is to only use it if I intend to have it show at 100%.

Perhaps the staff will be able to clue you in on this.

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

Well-settled

All I really WANTED it for was at 100% but as soon as I hit preview it changes into the code instead of the cool little bar thingy. (And to think there are people that pay me for my Web Mastery…)
Back to the top
 
Posted
Rating:
#27502
Avatar

Well-settled

Yeah it looks like tables won't validate when pulled up on a Mac.
Back to the top
 
Posted
Rating:
#27506
Avatar

Hi,

My favorite is "The tag <td> was closed but it was not the last tag on the line to be opened which was <td>.

This is confusingly worded, but not quite a bug (nevertheless, I've put a better error message in for the next patch release). What it is saying is that you closed more td's than you opened.

Because you're using a Mac I think that means you are probably either using:
  • Safari
  • IE 5 (mac)
I doubt you're using Safari because I don't believe the WYSIWYG editor would be working at all. Therefore you must be using IE 5 (mac), and unfortunately that's not something we can support. It does explain the trouble, as the WYSIWYG editor is very much browser dependent (what it outputs is a function of the web browser, at some level).

To make a 50% margin…

Code

<hr style="width: 50%; margin: 0 auto 0 auto" />



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

Well-settled

I do use Safari but less and less as things just don't work with it.  Now I mostly use FireFox 2.x  I haven't been able to get the WYSIWYG Horizontal Rule to work regardless of platform or browser however.
Back to the top
 
Posted
Rating:
#27516
Avatar

I can confirm this now actually. Change lines 253-256 of sources/comcode_text.php from:

Code

   $semihtml2=str_replace('<br>',chr(10),$semihtml2);
   $semihtml2=str_replace('<hr />',chr(10)."---------------".chr(10),$semihtml2);
   $semihtml2=str_replace('<hr>',chr(10)."---------------".chr(10),$semihtml2);
to:

Code

   $semihtml2=str_replace('<br>',chr(10),$semihtml2);
   $semihtml2=str_replace('<hr width="100%" size="2" />','<hr />',$semihtml2);
   $semihtml2=str_replace(chr(10).'<hr />',chr(10)."---------------".chr(10),$semihtml2);
   $semihtml2=str_replace(chr(10).'<hr>',chr(10)."---------------".chr(10),$semihtml2);
   $semihtml2=str_replace('<hr />',chr(10)."---------------".chr(10),$semihtml2);
   $semihtml2=str_replace('<hr>',chr(10)."---------------".chr(10),$semihtml2);


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

Well-settled

ALRIGHT!  Horizontal Rule is good to go.  Thanks alot.
Back to the top
 
Posted
Rating:
#27945
Avatar

Community saint

Chris, I am having the same problem, and so are many of my members. I am using IE7, but the same thing happens using firefox. The table window opens, but it is missing some code.

Do you think adding semihtml then the table code and closing semihtml would solve the problem?
Back to the top
 
Posted
Rating:
#27952
Avatar

I see you're running 3.0.17. These problems were fixed in 3.0.18, so upgrading should help. However, 3.1.0 is expected to be out before Monday, so I think it's best you wait to then and upgrade to this.


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

Non-joined user

psydoc

 

Chris Graham said

I see you're running 3.0.17. These problems were fixed in 3.0.18, so upgrading should help. However, 3.1.0 is expected to be out before Monday, so I think it's best you wait to then and upgrade to this.
Thanks, Chris. I will just wait until Monday.

I saw you over at the site, but by the time I got around to sending you a message you were gone. Don't waste your time going to look at it, I just said, "Hi."

You came at our slowest time of the day. I was away trying to catch up on some other chores. It picks up again around 1900 hours central time,  US.
Back to the top
 
Posted
Rating:
#27961
Avatar

Community saint

Sorry about the guest post. I thought I was logged in.
Back to the top
 
Posted
Rating:
#27964
Avatar

Community saint

Chris Graham said

I see you're running 3.0.17. These problems were fixed in 3.0.18, so upgrading should help.

Really?

So when did 3.0.18 come out, and how come I haven't had an auto-notification, but still have patch releases being pushed out for 3.0.17?

 :dry:

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

Sorry for the incorrect reply. It turns out 3.0.18 was not officially released, but rather posted as an unofficial release in a topic to resolve a user's installation problems. 3.1.0 will be the official release that fixes these problems.


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

Community saint

Roger the cat!

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
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: