UBB.Dev
Posted By: Soul UBB Optimisation Hack(s) - 08/08/2001 5:44 PM
I remember MM did some hacks for 5.xx to speed up the UBB.. how about some for UBB6?
Posted By: certify Re: UBB Optimisation Hack(s) - 08/08/2001 6:00 PM
But 6.1.0 is already speed up. wink
Posted By: The Duke of URL Re: UBB Optimisation Hack(s) - 08/08/2001 6:19 PM
I think the xhtml validation is supposed to speed up the rendering of the pages.
Posted By: certify Re: UBB Optimisation Hack(s) - 08/08/2001 6:23 PM
quote:
Originally posted by The Duke of URL:
I think the xhtml validation is supposed to speed up the rendering of the pages.


How do you implement xhtml validation on a normal HTML page?
Posted By: Tech-Ni-Kal Re: UBB Optimisation Hack(s) - 08/08/2001 6:25 PM
quote:
Originally posted by certify:


How do you implement xhtml validation on a normal HTML page?



Read AllenAyres column in the July U-Zine. He explains alot about it.
Posted By: Soul Re: UBB Optimisation Hack(s) - 08/08/2001 8:22 PM
But couldn't it be sped up a lil bit more?
Posted By: Tech-Ni-Kal Re: UBB Optimisation Hack(s) - 08/08/2001 9:05 PM
quote:
Originally posted by Soul:
But couldn't it be sped up a lil bit more?


Probably...
Posted By: Charles Capps Re: UBB Optimisation Hack(s) - 08/08/2001 9:31 PM
quote:
Originally posted by Soul:
But couldn't it be sped up a lil bit more?


Whathuh? Ah. Allen added an alt tag to the Graemlin, but the edit/quote routines won't process it...
Posted By: AllenAyres Re: UBB Optimisation Hack(s) - 08/08/2001 9:32 PM
smile

I'll work on them this evening. I think I remember where that went... more reverse_ubb_code I believe
Posted By: AllenAyres Re: UBB Optimisation Hack(s) - 08/08/2001 10:42 PM
quote:
Originally posted by Soul:
But couldn't it be sped up a lil bit more?


hmmmm... any idea how to rewrite this in sub reverse_ubb_code:
code:
Code

if ($_[1] ne "OFF") {
$_[0] =~ s/(<IMG SRC=")(S+)(">)/[img]$2[/img]/isg;
}



so that it will allow the alt="" I added into sub imageize:
code:
Code

$returner = qq~ <img src="$string" alt="" /> ~;



?

smile
Posted By: LK Re: UBB Optimisation Hack(s) - 08/08/2001 10:44 PM
Try
code:
Code

if ($_[1] ne "OFF") {
$_[0] =~ s/(<img src=")(S+)(" alt="" />/[img]$2[/img]/isg;
}

Maybe there is a mistake because of the

But it's for [img], not smilies.

[edit: hopefully fixed a problem caused by the smiley]

[edit 2: forgot about something]

[ August 08, 2001: Message edited by: LK ]
Posted By: AllenAyres Re: UBB Optimisation Hack(s) - 08/08/2001 11:11 PM
once again

I got an error the first time due to an unmatched (, so I added one to make it this:

code:
Code

if ($_[1] ne "OFF") {
$_[0] =~ s/(<img src=")(S+)(" alt="" />)/[img]$2[/img]/isg;
}



but I believe we're getting the same result. Maybe the problem lies in that alt="" should be a part of $string and not seperate...
Posted By: LK Re: UBB Optimisation Hack(s) - 08/08/2001 11:15 PM
[Linked Image]

Working fine

[ August 08, 2001: Message edited by: LK ]
Posted By: LK Re: UBB Optimisation Hack(s) - 08/08/2001 11:21 PM
If you mean Graemlins, use:

code:
Code
		$_[0] =~ s/ ?<img src="$short->{'image'}" border="0" alt="" /> ?/ $short->{'trigger'} /gi;


And in sub prep_for_edit!
Posted By: AllenAyres Re: UBB Optimisation Hack(s) - 08/08/2001 11:25 PM
quote:
Originally posted by Soul:
But couldn't it be sped up a lil bit more?


I am already using that, it doesn't seem to be the problem... ^^^ this is what seems to be the problem
Posted By: AllenAyres Re: UBB Optimisation Hack(s) - 08/08/2001 11:26 PM
in sub prep_for_edit my alt has alt="icon" in it, do you think that is what the problem is?
Posted By: LK Re: UBB Optimisation Hack(s) - 08/08/2001 11:27 PM
Yeah, it should be exactly like I said above
Posted By: AllenAyres Re: UBB Optimisation Hack(s) - 08/08/2001 11:27 PM
quote:
Originally posted by Soul:
But couldn't it be sped up a lil bit more? smile
Posted By: LK Re: UBB Optimisation Hack(s) - 08/08/2001 11:28 PM
quote:
Originally posted by AllenAyres:


aaaahhhhh.. yes, that was the problem laugh
Posted By: AllenAyres Re: UBB Optimisation Hack(s) - 08/08/2001 11:29 PM
tipsy
Posted By: tackaberry Re: UBB Optimisation Hack(s) - 08/09/2001 4:36 PM
I noticed that the W3C icon was back on the bottom. I'm guessing that you downloaded it so it's local.

Anywho, I decided to click on it...just for giggles you know.

Anyway, it didn't pass the test.

So do we have to remove the icon again?

-Tacks
Posted By: LK Re: UBB Optimisation Hack(s) - 08/09/2001 4:40 PM
It's not local yet.

About the other thing, there are some problems with nrn ->

and UBBCode.
Posted By: tackaberry Re: UBB Optimisation Hack(s) - 08/09/2001 4:51 PM
Ah, quite right! Guess they were a little sluggish the other day. I noticed the

roblem several times in the validation report. Maybe we should leave out as much whitespace as possible when composing out posts. -Tacks
Posted By: AllenAyres Re: UBB Optimisation Hack(s) - 08/10/2001 7:32 PM
tipsy
© UBB.Developers