Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
#199554 03/25/2003 8:32 AM
Joined: Aug 2002
Posts: 19
Junior Member
Junior Member
Offline
Joined: Aug 2002
Posts: 19
Name: Advanced Text.

Description: Allows you to post text with different colors, size, underline and font. Its also possible to center text.

Demo: none

Requirement: UBBâ„¢ 6.4 (I think it works for 6.5 too but since I don't have 6.5 I cant test it)

Link: http://apoforce.hypermart.net/advanced.txt

To do: Graphics! Maybe someone can make them and post them here?


Man what a rush...
Sponsored Links
#199555 03/25/2003 12:57 PM
Joined: Jan 2003
Posts: 87
Member
Member
Offline
Joined: Jan 2003
Posts: 87
I installed Advanced Text but where is the Member/User suppose to see it? When I went to post a message, there's nothing there to indicate the new change(s). help

Joined: Aug 2002
Posts: 19
Junior Member
Junior Member
Offline
Joined: Aug 2002
Posts: 19
Yeah I know but right now im busy with my final tests. Tomorrow I got some time and I'll try to add it. Shouldn't be hard.

But you can use it now already!


Man what a rush...
Joined: Jan 2003
Posts: 87
Member
Member
Offline
Joined: Jan 2003
Posts: 87
Quote
quote:
Yeah I know but right now im busy with my final tests. Tomorrow I got some time and I'll try to add it. Shouldn't be hard.

But you can use it now already!
How can I use it now? I don't see it confused

Joined: Aug 2000
Posts: 178
Member
Member
Offline
Joined: Aug 2000
Posts: 178
underline
[center]center the text or img[/center]
nice red color

Its in the Txt file you downloaded smile Just surround your text with the codes above and it will be formatted accordingly.

Other colors can be used such as Black Blue Green etc.

Enjoy!

Sponsored Links
#199559 03/26/2003 11:46 AM
Joined: Aug 2002
Posts: 19
Junior Member
Junior Member
Offline
Joined: Aug 2002
Posts: 19
Ok I added the buttons laugh

If you have already installed this hack only edit public_common.pl and vars_wordlets_mods.cgi.

But the you have to make the buttons yourself since im not very good @ graphics


Man what a rush...
#199560 03/26/2003 11:49 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
compatible with hex codes?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#199561 03/26/2003 12:12 PM
Joined: Aug 2002
Posts: 19
Junior Member
Junior Member
Offline
Joined: Aug 2002
Posts: 19
yes it is.

[code][/code]works all!


Man what a rush...
Joined: Dec 2000
Posts: 78
Ed Offline
Member
Member
Offline
Joined: Dec 2000
Posts: 78
Hi Guys,
Did I miss something?
Where do you add the images in the Style Template?


Images are here OOOOOOPS! https://ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=4;t=001436;p=1#000010


Thanks Gizzy

Joined: Aug 2002
Posts: 19
Junior Member
Junior Member
Offline
Joined: Aug 2002
Posts: 19
I dont have images yet frown and the link you posted is this topic.

Well if anyone can make some images this hack could be completed


Man what a rush...
Sponsored Links
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
You're not doing any input validation. Please pull down this hack until you can safely ensure that all input is validated. Please see the examples in imageize and urlize.


UBB.classic: Love it or hate it, it was mine.
Joined: Dec 2000
Posts: 78
Ed Offline
Member
Member
Offline
Joined: Dec 2000
Posts: 78
Quote
quote:
Originally posted by Risperdal:
I dont have images yet frown and the link you posted is this topic.

Well if anyone can make some images this hack could be completed
OOOOOPs! https://ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=4;t=001436;p=1#000010

Joined: Aug 2002
Posts: 19
Junior Member
Junior Member
Offline
Joined: Aug 2002
Posts: 19
Quote
quote:
Originally posted by Charles Capps:
You're not doing any input validation. Please pull down this hack until you can safely ensure that all input is validated. Please see the examples in imageize and urlize.
But what must i validate? Only size could be validated. For the rest any input is allowed.


Man what a rush...
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
You're putting arbritary values in each tag - users can pass through anything there, including quotes. The size and font tags in particular allow spaces through, meaning users can legitimately place full HTML in those fields. This is very dangerous. I must insist that you pull down the hack and add validation.

Legal values for colors are always going to be a-zA-Z0-9 and #. Legal values for sizes are only going to be 0-9, +, and -. Fonts should be restricted to a-zA-Z0-9, and the comma. No spaces.


UBB.classic: Love it or hate it, it was mine.
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Many fonts have spaces too...

My suggestion:[code][/code]Some parts are untested so they might not work though..

Joined: Aug 2002
Posts: 19
Junior Member
Junior Member
Offline
Joined: Aug 2002
Posts: 19
but a lot of users dont know hex codes for colors. So they just type red or something.

and why must it be $5 and not just ?


Man what a rush...
#199570 03/27/2003 10:20 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
So instead of "a-fA-F" use "a-zA-Z", and instead of "{6}" type "*", then they can also type "red" or anything else...

About , it doesn't really matter, it's just that when I use it knows if it's [/color], [/size] or [/font] in case you have a tag in a tag (like [ color=X][ font=X]test[/font][/color], currently it might replace [/font][/color] with [/color][/font]... It doesn't really matter but it's confusing)

#199571 03/28/2003 12:07 AM
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
I have to step in here and thank LK and CC for the time they put into helping people keep their UBB secure. We show up here and grab all kinds of code and install it without knowing all of the pitfalls. I'm glad that we have you guys to help.

Joined: Sep 2001
Posts: 93
Member
Member
Offline
Joined: Sep 2001
Posts: 93
thx. works fine to me smile

Joined: Sep 2001
Posts: 93
Member
Member
Offline
Joined: Sep 2001
Posts: 93
well, sth. i found is....

...on posting replies the images are shown, on posting new topics the images are not shown, whats going on ?! confused

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Just a quick question, does the colour code work with hex also? I'm a very picky person frown ...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Thanks XPert smile

Gizzy, yes

Joined: Sep 2001
Posts: 93
Member
Member
Offline
Joined: Sep 2001
Posts: 93
you should enter a path to the icons, like http:.... or like the variable for the non cgi path wink

otherwise images might not be found in posting new topics...

Joined: Aug 2002
Posts: 19
Junior Member
Junior Member
Offline
Joined: Aug 2002
Posts: 19
Yeah I know. This is my first hack so sorry if something went wrong. I also went to Paris so I didnt have time to update. I'll update it asap.

Thanks for your fix LK!! I dont think I could make that on my own


Man what a rush...
Joined: Jan 2003
Posts: 58
Member
Member
Offline
Joined: Jan 2003
Posts: 58
I've been using these graphics with similiar version of this hack if you want to use them Risperdal. I can't take credit for them though, they came with the hack I had downloaded:

Sample

[Linked Image] [Linked Image] [Linked Image] [Linked Image] [Linked Image] [Linked Image] [Linked Image] [Linked Image]

THE REST

http://pc.usgaming.net/ubb/image.gif
http://pc.usgaming.net/ubb/bold.gif
http://pc.usgaming.net/ubb/color.gif
http://pc.usgaming.net/ubb/font.gif
http://pc.usgaming.net/ubb/size.gif
http://pc.usgaming.net/ubb/underline.gif
http://pc.usgaming.net/ubb/center.gif

Joined: Apr 2003
Posts: 57
Member
Member
Offline
Joined: Apr 2003
Posts: 57
Hi,

I've tried it.. I can use the codes manually but the buttons didn't appeare! enven after modifying the link of buttons....

any comments?

Also I've tried the bottons individually by inserting them alone (not in the ubb_code).. they appeared but no function!

Where is the mistake smile

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Quote
quote:
Originally posted by Mr. B:
Hi,

I've tried it.. I can use the codes manually but the buttons didn't appeare! enven after modifying the link of buttons....

any comments?

Also I've tried the bottons individually by inserting them alone (not in the ubb_code).. they appeared but no function!

Where is the mistake smile
Try entering this
Code
[/code]instead of

[code]

Joined: Apr 2003
Posts: 57
Member
Member
Offline
Joined: Apr 2003
Posts: 57
Thanks Al. I tried these since I had been put them in noncgi directory. Nothing!!

Did anybody test these and the bottons worked?

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Quote
quote:
Originally posted by Mr. B:
Thanks Al. I tried these since I had been put them in noncgi directory. Nothing!!

Did anybody test these and the bottons worked?
does it show broken images, or does it show nothing. (red x?)

if it shows the red x, right click it and check what address it thinks the buttons should be

Joined: Apr 2003
Posts: 57
Member
Member
Offline
Joined: Apr 2003
Posts: 57
Nothing is showing .. It seems not from the Image, It is from the code itself.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I tried looking at your board to see if I could find the problem, but I am now dizzy frown
The code I gave you is teh code that shows the image, it's just html it should at least show a rex x

EDIT: How did you move the scroll bar to the left side?

Joined: Apr 2003
Posts: 57
Member
Member
Offline
Joined: Apr 2003
Posts: 57
take ur time Al smile and if u want to check send me to register u. My board is a closed board.

but what do u mean with (rex x) ?

about the scroll bar I've changed the allignment in some files and added a code to write from right to left. Its an arabic language requirement smile

(I dont have that code right now)

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
sorry, I meant red x

[Linked Image] < that is the red x I'm talking about. If you get that, that means it's a wrong link to the button graphics, if you don't, it's the code in the public_common.pl

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I updated this to fix any bugs I had. Including doing something like

Code
Quote
blah
resulted in html when edited due to the many being confused.

https://www.ubbdev.com/ubb/upload/00020028/advanced.txt

Credit: LK for the idea, I took it a couple characters further to make it unique. I also added the noncgiurl part so that the bugs there would be gone. and big thanks to Risperdal, cause I wouldn't have been able to do this without your hack being there first.

Joined: Apr 2003
Posts: 57
Member
Member
Offline
Joined: Apr 2003
Posts: 57
I think there is a bug in ur file AL. Instead of "*" you put "{*}" smile

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
there isn't a * anywhere in my file, could you specify which line?

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Quote
quote:
Originally posted by Weird Al:
EDIT: How did you move the scroll bar to the left side?
Code
<html dir="rtl">


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
haha, I know that now, I made that post over 3 months ago tipsy

once I'm sure Charles doesn't change the code again, I'll post an update for 6.6

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
The area of the code you're working on hasn't changed since 6.5, so it should be fine in 6.6.


UBB.classic: Love it or hate it, it was mine.
#199593 08/30/2003 10:31 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Quote
quote:
Originally posted by Charles Capps:
The area of the code you're working on hasn't changed since 6.5, so it should be fine in 6.6.
It changed between Beta Release one and 2.

$message was replaced for the $_0 one

#199594 08/31/2003 12:21 AM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Really? I thought I did that back in 6.5. confused


UBB.classic: Love it or hate it, it was mine.
#199595 08/31/2003 11:17 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
ubb_lib_posting.cgi 6.6 Beta 1
Code
		$match++ if $_[0] =~ s/(<i>)(.+?)(</i>)/$2/isg;
$match++ if $_[0] =~ s/(<b>)(.+?)(</b>)/$2/isg;
$match++ if $_[0] =~ s/(<strong>)(.+?)(</strong>)/[qb]$2[/qb]/isg;
ubb_lib_posting.cgi 6.6 Beta 2
Code
		$match++ if $message =~ s/(<i>)(.+?)(</i>)/$2/isg;
$match++ if $message =~ s/(<b>)(.+?)(</b>)/$2/isg;
$match++ if $message =~ s/(<strong>)(.+?)(</strong>)/[qb]$2[/qb]/isg;
smile I knew I was right cause I tried to install this hack yesterday and had to change it.

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Mmm. I still could have sworn I did that in 6.5! Sorry for throwing your hack off. smile


UBB.classic: Love it or hate it, it was mine.
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
it's no problem, I was planning on porting anyway so it could be edited in the CP. (btw, the code in the new cp in very intuitive)

Joined: Apr 2003
Posts: 57
Member
Member
Offline
Joined: Apr 2003
Posts: 57
AL,

LK made an input test to the hack it is in the first page:

$match++ if $_[0] =~ s/([color:)([#0-9a-fA-F]{6})(])(.+?)([/color])/$4/isg; $match++ if $_[0] =~ s/([font:)([0-9a-zA-Z,s]*)(])(.+?)([/font])/$4/isg; $match++ if $_[0] =~ s/( )(.+?)( )/$5/isg;

You had encluded these line previously in your file

the "*" was in the first line as LK changed it after that.

Strange .. these lines are not there any more.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
*shrugs*

well does my code work for you?

#199600 09/03/2003 11:15 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
it works for everyone, people just get unwanted features...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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
WebGuy 2
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)