|
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
|
Spotlight Runner-Up
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
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 
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
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
Admin / Code Breaker
|
Admin / Code Breaker
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
Joined: Dec 2000
Posts: 151 |
LK so you what you are saying with this: 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?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
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
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
brett... 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]# $match++ if $_[0] =~ s/n?r?([*])/</font></li><li><font size="$vars_style{TextSize}" face="$vars_style{FontFace}">/isg; [/qb] and add below: $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 
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
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]
Whoops, didn't see that... 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
It has to be max 150x50, yours is 109x 85 
|
|
|
|
Joined: Oct 2001
Posts: 28
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 28 |
Should I install this or wait more?
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
quote: Originally posted by LK: It has to be max 150x50, yours is 109x85 Details Details Details... 
|
|
|
|
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
|
Spotlight Runner-Up
Joined: Mar 2002
Posts: 451 |
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
Joined: Jun 2001
Posts: 729 |
Upity, as I know someone who is intersted in this.
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
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
Joined: Nov 2002
Posts: 188 |
|
|
|
|
Joined: Oct 2002
Posts: 394
Enthusiast
|
Enthusiast
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
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
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.. 
|
|
|
|
Joined: Oct 2002
Posts: 394
Enthusiast
|
Enthusiast
Joined: Oct 2002
Posts: 394 |
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? ThankOblivion Knight Any luck on getting a fix for this?
|
|
|
|
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
|
Spotlight Runner-Up
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
Joined: Mar 2002
Posts: 451 |
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
Having a few problems implementing these checks LK.. 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] $match++ if $_[0] =~ s/([color:)(S+?)(])(.+?)([/color])/&colorize($2, $4)/eisg; [/qb] and 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
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
$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
Joined: Mar 2002
Posts: 451 |
Thanks LK, works a treat 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
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
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
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
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
Joined: Dec 2002
Posts: 8 |
Are there anybody know how to creat same effect as tag
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
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
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.. 
|
|
|
|
Joined: Dec 2002
Posts: 8
Junior Member
|
Junior Member
Joined: Dec 2002
Posts: 8 |
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.. 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
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
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
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
tg, Also in ubb_lib.cgi 
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
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
Joined: Dec 2002
Posts: 8 |
|
|
|
|
Joined: Oct 2002
Posts: 394
Enthusiast
|
Enthusiast
Joined: Oct 2002
Posts: 394 |
Hello, 2 questions. 1. The thumb doesn't show. I only get this line instead: [/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
Joined: Mar 2002
Posts: 451 |
It comes out as undefined because you HAVE to enter a URL for the tag to function correctly. 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
Joined: Oct 2002
Posts: 394 |
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: [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?
|
|
|
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.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|