php forum
php mysql forum
php mysql smarty
 
Page 2 of 2 < 1 2
Topic Options
#109212 - 12/10/01 02:21 PM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
By jove, I think I've got it laugh

ubb_lib is this:

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

and lib_posting is this:

$_[0] =~ s/(<li>)(.+?)(</li>)/[*]$2[/*]/isg;

It creates lists correctly and validates...

This works if you aren't making a full list

[*] test
_________________________
- Allen wavey
- What Drives You?

Top
#109213 - 12/10/01 02:24 PM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Posting practices have to change to close the [ *] tag now with a [ /*] tag (no spaces)
_________________________
- Allen wavey
- What Drives You?

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

Registered: 03/24/01
Posts: 7396
Just when I got my other (and better) idea to work? <img src="wink.gif" border="0" alt="" />

[code][/code]And use only [ *] smile

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

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

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

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
I'm all for better ideas <img src="smile.gif" border="0" alt="" />

This goes in ubb_lib, what about lib_posting where it is supposed to convert html back to ubb code?
_________________________
- Allen wavey
- What Drives You?

Top
#109216 - 12/10/01 03:00 PM Re: Almost done
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
I think your old code is gonna work...
_________________________

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

Top
#109217 - 12/10/01 03:05 PM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
which old code?

<img src="biggrin.gif" border="0" alt="" />

right now it's breaking on edit... lemme see if I can pull the stuff out
_________________________
- Allen wavey
- What Drives You?

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

Registered: 03/24/01
Posts: 7396
Actually it won't work with your old code, but you can try:

$_[0] =~ s/(<li>)(.+?)(</li>)/[*]$2/isg;

All others are like the original UBB's ones...

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

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

Top
#109219 - 12/10/01 03:29 PM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Done!

This is what I had to do to get font tags in there too so it would validate:

ubb_lib
Code:
[/code]

lib_posting

[code]


I should probably finish the font stuff for the ol, but this works and validates laugh Thanks LK, and thanks MJ! laugh
_________________________
- Allen wavey
- What Drives You?

Top
#109220 - 12/10/01 03:33 PM Re: Almost done
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
And won't it become the default font again?

  • test
  • test #2
_________________________

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

Top
#109221 - 12/10/01 03:34 PM Re: Almost done
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Oh, you have it as the default font of body...

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

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

Top
#109222 - 12/10/01 03:35 PM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
eh?

what won't?

you gotta close the font tags before starting the list and re-open them after the list is done...
_________________________
- Allen wavey
- What Drives You?

Top
#109223 - 12/10/01 03:38 PM Re: Almost done
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
It was a one-time thing <img src="wink.gif" border="0" alt="" /> Good job
_________________________

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

Top
#109224 - 12/10/01 03:41 PM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
my brain is tired <img src="smile.gif" border="0" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#109225 - 12/10/01 03:51 PM Re: Almost done
tackaberry Offline

Pooh-Bah

Registered: 11/28/00
Posts: 3234
Loc: NYC | 100% Hockey
So what happens with an ordered list?

A, B, C ....

1, 2, 3 ....

-Tacks
_________________________

Top
#109226 - 12/10/01 03:54 PM Re: Almost done
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
  1. test
  2. test b
  3. test c
  4. test d


  1. test
  2. test 2
  3. test 3
  4. test 4


  1. test
  2. test B
  3. test C
  4. test D
_________________________

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

Top
#109227 - 12/10/01 04:00 PM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Click that validate link Bay-Bay!

Except for the ad code (can't do anything about it) every page produced from here on out should validate. laugh
_________________________
- Allen wavey
- What Drives You?

Top
#109228 - 12/10/01 04:19 PM 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 tackaberry:
So what happens with an ordered list?
</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">

We don't have to worry about that because all the lists generated by the UBB are unordered lists <ul>. <img src="smile.gif" border="0" alt="" />

Top
#109229 - 12/10/01 04:25 PM Re: Almost done
Matt Jacob Offline
Master Hacker

Registered: 09/13/00
Posts: 4389
Loc: Tucson, Arizona
Or are they? <img src="confused.gif" border="0" alt="" />

Top
#109230 - 12/10/01 08:50 PM Re: Almost done
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
You can choose to make an order list:

[ list=1] for numeric lists

[ list=a] for alpha lists

http://www.ubbdev.com/ubb/ultimatebb.php?ubb=ubb_code_page
_________________________
- Allen wavey
- What Drives You?

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

Registered: 09/13/00
Posts: 4389
Loc: Tucson, Arizona
Thanks, never knew that before!

Top
Page 2 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