Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
This is not the same version that wwb95 has posted. It's a ported version of the hack that MrStormyNights released for the 6.2.x series of UBB. I haven't had permission to post this mod, but I'm sure that if indeed he was going to port it himself, he would have done so by now. The HTML problems have also been fixed with this release.

This mod only adds:
Center, Font, Size, Color, Strikethrough, Thumbnail, Spoiler and Underline tags.

.
.

Name: Advanced UBB Code

Description: Adds 8 extra UBB Code™ tags. Can be used anywhere that you have UBB Code™ enabled.

Demo: http://www.gamingupdate.com/cgi-bin/ubbcgi4/ultimatebb.cgi

Link: ZIP File

Requirements: UBB™ 6.3.1

Sponsored Links
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
There should be tougher checks for [font], [color] and [size], take a look at sub imageize and try to make it for them smile

Joined: Dec 2000
Posts: 151
Member
Member
Offline
Joined: Dec 2000
Posts: 151
Before I install this LK, what do you mean by tougher checks?

(protecting against use of malicious code?)

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I think (maybe I'm wrong) it's possible to exploit it as it is now...

Joined: Dec 2000
Posts: 151
Member
Member
Offline
Joined: Dec 2000
Posts: 151
LK so you what you are saying with this:

Quote
quote:

There should be tougher checks for [font], [color] and [size], take a look at sub imageize and try to make it for them
is to use the SUBROUTINE for the IMAGE tag and adapt it (since it has the secure checks) into the new UBB Codes?

Sponsored Links
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Pretty much...

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Quote
quote:
Originally Posted By Charles Capps:
Please trim down the ammount of code from the UBB that exists inside the instruction file to the bare minimum.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
brett...
Quote
quote:
Originally posted by LK:
Please trim down the amount of size of your signature to bare minimum. (max 150x50)
;)

Anyhow, you can say to find:
code:
[qb]
Code
#		$match++ if $_[0] =~ s/n?r?([*])/</font></li><li><font size="$vars_style{TextSize}" face="$vars_style{FontFace}">/isg;
[/qb]
and add below:
Code
		$match++ if $_[0] =~ s/([color:)(S+?)(])(.+?)([/color])/<font color="$2">$4</font c>/isg;
$match++ if $_[0] =~ s/([center])(.+?)([/center])/<center>$2</center>/isg;
$match++ if $_[0] =~ s/()(.+?)()/<u>$2</u>/isg;
$match++ if $_[0] =~ s/([font:)(.+?)(])(.+?)([/font])/<font face="$2">$4</font f>/isg;
$match++ if $_[0] =~ s/( )(.+?)( )/<font size="$2">$4</font s>/isg;
instead of the whole sub tipsy

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Quote
quote:
Originally posted by LK:
brett...
quote:
[qb]Originally posted by LK:
Please trim down the amount of size of your signature to bare minimum. (max 150x50)[/qb]
wink

Whoops, didn't see that... shocked

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
It has to be max 150x50, yours is 109x85 tipsy

Sponsored Links
Joined: Oct 2001
Posts: 28
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 28
Should I install this or wait more?

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Quote
quote:
Originally posted by LK:
It has to be max 150x50, yours is 109x85 tipsy
Details Details Details... tipsy

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
Quote
quote:
Originally posted by Ramister:
Should I install this or wait more?
If you haven't yet installed it, wait.
I may find the time this weekend to tweak the code a bit more like LK has suggested. I'm a little bogged down with college work at the moment though.

Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
Upity, as I know someone who is intersted in this.

Joined: Nov 2002
Posts: 188
Member
Member
Offline
Joined: Nov 2002
Posts: 188
I was wondering if it is possible for anyone to add strike through to this hack..?

Joined: Nov 2002
Posts: 188
Member
Member
Offline
Joined: Nov 2002
Posts: 188
Anyone..?

Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
Joined: Oct 2002
Posts: 394
I am not sure where should I post this question, please move if this is not the right location.

A weird thing happened.
After installing Advanced UBB I lost the small blue background of "quote" box.

Can see the example HERE , a comparison between Quote and Code.

Any idea what should I do?
Thank

Joined: Nov 2002
Posts: 188
Member
Member
Offline
Joined: Nov 2002
Posts: 188
I experienced the very same thing, but figured the pro's far outweighed the con's in this instance...

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
I'll update this hack soon..
I recently had a worm that has wiped all of my work, so I've pretty much got to start again with the changes made to the hack.. frown

Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
Joined: Oct 2002
Posts: 394
Quote
quote:
Originally posted by Felix 10:
I am not sure where should I post this question, please move if this is not the right location.

A weird thing happened.
After installing Advanced UBB I lost the small blue background of "quote" box.

Can see the example HERE , a comparison between Quote and Code.

Any idea what should I do?
Thank
Oblivion Knight
Any luck on getting a fix for this?

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
You're using Allen's "Smarter looking Quotes and Codes". So that is why this has happened..

To get them matching again, re-install his hack and it should write over the Quote code I used in this hack. If this doesn't work, let me know and I'll take a look at his code.

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
Quote
quote:
Originally posted by LK:
There should be tougher checks for [font], [color] and [size], take a look at sub imageize and try to make it for them smile
Having a few problems implementing these checks LK.. frown

This is what I have so far, please get in touch if you know what I'm doing wrong. I'll use color tag just for example..

code:
[qb]
Code
		$match++ if $_[0] =~ s/([color:)(S+?)(])(.+?)([/color])/&colorize($2, $4)/eisg;
[/qb]
and

Code
sub colorize {
my $orig = shift;
my $wording = shift;
my $string = &ImageChecker($orig, 1);
if($string) {
$returner = qq~<font color="$orig">$wording</font>~;
} else {
$returner = q![color: ! . $orig . q!]! . $wording . q![/color]!;
} # end if
} #endsub

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Code
	$count++ if $string !~ m/^(https?|ftp|mailto):/;
It means you should probably try the following:
my $string = &ImageChecker("http://$orig", 1);

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
Thanks LK, works a treat smile

Ok, the hack has now been updated to version 4. This includes tougher validation checks on font, color and size tags and also the use of 2 new features; thumbnail and strikethrough (as requested by tgreene).

Thumbnail and Strikethrough tags have been virtually untested as I no longer have access to the member area to download the files to upload a test board. Report any bugs you come across..

Same link as before..
http://www.gamingupdate.com/temp/Advanced_UBB_Code.zip

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
Bah.. Damn double posts..

Images for the new tags have been requested here .

Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
What file does one need to edit to add UBB Code buttons. Has anyone made a modification to get them to work along with the advanced UBB Code modifiation yet?

Joined: Nov 2002
Posts: 188
Member
Member
Offline
Joined: Nov 2002
Posts: 188
Thanks for the prompt additions.

Curiously, will the new features (especially strikethrough) work on my existing 6.3.1.2 board, w/o the need to upgrade to 6.4..?

Please, please, please tell me that it will...

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
Yes, the code has been based on Gaming Update's 6.3.1.1 board..
Nobody should have any problems running the mod on any of the 6.3.1 series..

Joined: Dec 2002
Posts: 8
Junior Member
Junior Member
Offline
Joined: Dec 2002
Posts: 8
Are there anybody know how to creat same effect as tag (html) in signature
Joined: Nov 2002
Posts: 188
Member
Member
Offline
Joined: Nov 2002
Posts: 188
Something beyond bizarre has just happened... While I know there must be a simple solution, I can't figure it out, for the life of me.

When I hack and save "public_common.pl", the file scrambles itself and wion't function. Every other file is fine, it's just this one.

Any ideas..?

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
@ tgreene:
What program are you using to edit files?

@ anhtuan:
If you really want to use a marquee with this, it's very possible. Just look at the other version of this hack that wwb95 released, which contains a marquee tag. I won't be adding it to this as marquee's are horrible and ugly.. tipsy

Joined: Dec 2002
Posts: 8
Junior Member
Junior Member
Offline
Joined: Dec 2002
Posts: 8
Quote
quote:
Originally posted by Oblivion Knight:
@ tgreene:
What program are you using to edit files?

@ anhtuan:
If you really want to use a marquee with this, it's very possible. Just look at the other version of this hack that wwb95 released, which contains a marquee tag. I won't be adding it to this as marquee's are horrible and ugly.. tipsy
can you show me the link to thast verson? Any thing better than marquee? I don't have any experience in Web. Pls help me if you can. Thanks!

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
wwb95's version can be found at:
https://ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=31;t=000106

Joined: Nov 2002
Posts: 188
Member
Member
Offline
Joined: Nov 2002
Posts: 188
I'm using NOTEPAD.

One other Q... I am wanting to change the width of the THUMB tag to be {width="200"}, rather than 400, yet when I make that change in ubb_lib_posting.cgi, it still spits out 400... Is there anywhere else that I am overlooking a snipit of code that needs changed..?

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
tg, Also in ubb_lib.cgi tipsy

Joined: Nov 2002
Posts: 188
Member
Member
Offline
Joined: Nov 2002
Posts: 188
Thanks LK, I must have been stuck in "idiot mode" again...

Joined: Dec 2002
Posts: 8
Junior Member
Junior Member
Offline
Joined: Dec 2002
Posts: 8
I found it. Thanks

Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
Joined: Oct 2002
Posts: 394
Hello, 2 questions.

1. The thumb doesn't show. I only get this line instead:
Code
[/code]What is the problem?


2.I tried replacing "undefined" with the picture's URL ie:
[code]
but it only comes in the real size not a thumb size. I understood that ubb_lib.cgi is where you change sizes of the thumb?

Thank you.

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
It comes out as undefined because you HAVE to enter a URL for the tag to function correctly.

Quote
quote:
Originally posted by Felix 10:
I understood that ubb_lib.cgi is where you change sizes of the thumb?

Thank you.
ubb_lib.cgi AND ubb_lib_posting.cgi

Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
Joined: Oct 2002
Posts: 394
Quote
quote:
Originally posted by Oblivion Knight:
It comes out as undefined because you HAVE to enter a URL for the tag to function correctly.


Of course I am entering a URL! I might be a novice at Pearl but not stupid!

I think you didnt understand:
I click THUMB and I get a window prompting me for an URL.
quote:
[qb] Script Prompt:
Enter the cpmplete URL for the image you wish to display as a thumbnail. [/qb]
I paste the address in, it accepts it, but it only gives me this in the post.
Quote
quote:
[THUMB]undefined[/THUMB]
Then, in the post, I replace the "undefined" word with the link again and it works.

My question is where do I check this routine?
When I installed the hack I remember I saw this line "undefined" somewhere. Would it have anything to do with it?

Page 1 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)