php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#109192 - 12/10/01 12:22 AM Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
I lack one thing of having the UBB forum files completely XHTML 1.0 transitional compliant

- lists.

And I've got most of that done except for getting this error ::

"Error: text is not allowed here; try wrapping the text in a more descriptive container"

when validating my test page here ::

http://www.ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=5;t=000184

Any idea how we can handle this last little bit of code? I finished quotes, code, and most of lists, just don't know what text wrapper it wants for the li parts of lists. Get this one done and I can make that mhp and move the mod to finished status <img src="smile.gif" border="0" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#109193 - 12/10/01 04:35 AM Re: Almost done
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Allen, I don't think <li> needs a closing tag <img src="smile.gif" border="0" alt="" />

Also, [code][/code] doesn't have its code font, I think I told you how to fix it a long time ago in a Chit Chat thread.

<font color="#000000" size="1">[ 12-10-2001 04:38 AM: Message edited by: LK ]</font>
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#109194 - 12/10/01 08:56 AM Re: Almost done
Matt Jacob Offline
Master Hacker

Registered: 09/13/00
Posts: 4389
Loc: Tucson, Arizona
<li> does need a closing tag. The way it works is that you do the unordered list <ul>, each list item <li>, some text, close the item tag </li>, and then close the list tag </ul>.

Allen, in the page you linked to, the <li> closed itself, which isn't right, because it actually does have an end tag. <img src="smile.gif" border="0" alt="" /> You have
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"><li /></font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif"> when it should be
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"><li>list item text</li></font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">

<font color="#000000" size="1">[ 12-10-2001 08:57 AM: Message edited by: Matt Jacob ]</font>

Top
#109195 - 12/10/01 10:05 AM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
that's probably what's breaking it... lemme look at it some more <img src="smile.gif" border="0" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#109196 - 12/10/01 10:40 AM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
LK, the text in code is handled a bit differently than before, there is no <pre in there, unless we added it back then smile
_________________________
- Allen wavey
- What Drives You?

Top
#109197 - 12/10/01 10:43 AM Re: Almost done
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Matt, http://validator.w3.org/check?uri=http%3A%2F%2Fwww.ubbdev.com%2Fubbcgi%2Fultimatebb.cgi%3Fubb%3Dget_topic%3Bf%3D5%3Bt%3D000184&charset=%28detect+automatically%29&doctype=Inline (ignore the errors, just the validation page itself) doesn't have </li> in the end of every list item...

ie.
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"><li>Line <a href="#line-505">505</a>, column 35:
<pre> <code class=input>... &#60;/font&#62;&#60;ul type=&#34;square&#34;&#62;&#60;li&#62;&#60;/li&#62; this is a list&#60;li&#62;&#60;/li&#62; t ...</code>
<span class=markup>^</span></pre>



<span class="error">Error: text is not allowed here; try wrapping the text in a more descriptive container
</span></font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">

Allen, [code] needs <pre> IMO, because otherwise it won't keep spaces/tabs.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#109198 - 12/10/01 11:03 AM Re: Almost done
Matt Jacob Offline
Master Hacker

Registered: 09/13/00
Posts: 4389
Loc: Tucson, Arizona
LK, I'm not sure I understand what you're saying. On line 505, the list isn't being done properly.

Allen, for the list, each separate list item needs to be enclosed with the <li> tags. Having the text and then <li></li> is to go around in a circle, but if I understand correctly, that's what we're trying to fix here? <img src="confused.gif" border="0" alt="" />

Top
#109199 - 12/10/01 11:09 AM Re: Almost done
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Matt, not the error, I mean validator.w3.org ITSELF

They also have a list, but they don't have </li>

My example had <li> in the beginning but nothing in the end.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#109200 - 12/10/01 11:09 AM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
yes, you are both correct <img src="smile.gif" border="0" alt="" />

LK, I added the pre to code and it's ok. Lists aren't validating because I don't know what I am doing... I need the text on each list line inside <li> and </li>

the line in ubb_lib for lists is now back to:

$_[0] =~ s/n?r?([*])/<li>/isg;

and the line in lib_posting for when you wanna edit is now back to:

$_[0] =~ s/<li>/[*]/isg;

which works fine, but doesn't close each line's text properly to validate.
_________________________
- Allen wavey
- What Drives You?

Top
#109201 - 12/10/01 11:12 AM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
would font tags closing before and opening after each li improve that? And I think MJ's point is that every tag must be closed in its proper nesting to validate.
_________________________
- Allen wavey
- What Drives You?

Top
#109202 - 12/10/01 11:19 AM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
I see what you mean about w3's validation page... it doesn't close the li tags either, but they only validate to html 4.01 - talk about loo-hoo-hoo-zers... <img src="biggrin.gif" border="0" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#109203 - 12/10/01 11:22 AM Re: Almost done
Matt Jacob Offline
Master Hacker

Registered: 09/13/00
Posts: 4389
Loc: Tucson, Arizona
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">Originally posted by AllenAyres:
would font tags closing before and opening after each li improve that? And I think MJ's point is that every tag must be closed in its proper nesting to validate.</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">

About the <font> tags, it'd at least make the source easier to work with, so that's worth something, I guess. <img src="wink.gif" border="0" alt="" /> And yeah, in order to get code to validate, especially XHTML, each tag has to have a closing tag and be properly nested. "Close them in reverse order of which you started them" is a good rule to remember when writing code.

Top
#109204 - 12/10/01 11:28 AM Re: Almost done
Matt Jacob Offline
Master Hacker

Registered: 09/13/00
Posts: 4389
Loc: Tucson, Arizona
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">Originally posted by AllenAyres:
they only validate to html 4.01</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">

Right, which is way more lenient on things than XHTML.

Top
#109205 - 12/10/01 11:34 AM Re: Almost done
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
You can try:
[ list] => <ul><li>
[ *] => </li><li>
[ /list] => </li></ul>

or something like that
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#109206 - 12/10/01 11:53 AM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
that does validate LK, but adds an extra bullet to the top of the list <img src="biggrin.gif" border="0" alt="" />

http://www.ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=5;t=000184#000008

arrrggghhhh...
_________________________
- Allen wavey
- What Drives You?

Top
#109207 - 12/10/01 11:56 AM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
A cheesy way to work around that might be to make the first line in the list say

[*] List:

but that wouldn't look right ina lotta lists.
_________________________
- Allen wavey
- What Drives You?

Top
#109208 - 12/10/01 11:58 AM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
and, it looks like we broke the plain [*] with that now..
_________________________
- Allen wavey
- What Drives You?

Top
#109209 - 12/10/01 12:45 PM Re: Almost done
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
You can make:
[ list]First item
[ *]Second item
[ *]Third Item
...
[/list]

<font color="#000000" size="1">[ 12-10-2001 12:46 PM: Message edited by: LK ]</font>
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#109210 - 12/10/01 01:54 PM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Yeah, that would work, but is a serious kludge and not an actual fix... plus

[*] this is still broke

I finished the [ code] part <img src="smile.gif" border="0" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#109211 - 12/10/01 02:02 PM Re: Almost done
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
What's your code?

Also, you can require [list whatever](.*?)[ *] or something like that, or just require [/*]...

<font color="#000000" size="1">[ 12-10-2001 02:03 PM: Message edited by: LK ]</font>
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
Page 1 of 2 1 2 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks