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?
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).
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!
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
underline[center]center the text or img[/center]
nice red colorIts in the Txt file you downloaded
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!
Ok I added the buttons
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
compatible with hex codes?
yes it is.
[code][/code]works all!
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
I dont have images yet
and the link you posted is this topic.
Well if anyone can make some images this hack could be completed
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.
quote:
Originally posted by Risperdal:
I dont have images yet 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
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.
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.
Many fonts have spaces too...
My suggestion:[code][/code]Some parts are untested so they might not work though..
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 ?
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)
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.
thx. works fine to me
well, sth. i found is....
...on posting replies the images are shown, on posting new topics the images are not shown, whats going on ?!
Just a quick question, does the colour code work with hex also? I'm a very picky person
...
Thanks XPert
Gizzy, yes
you should enter a path to the icons, like http:.... or like the variable for the non cgi path
otherwise images might not be found in posting new topics...
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
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
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 Try entering this
Thanks Al. I tried these since I had been put them in noncgi directory. Nothing!!
Did anybody test these and the bottons worked?
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
Nothing is showing .. It seems not from the Image, It is from the code itself.
I tried looking at your board to see if I could find the problem, but I am now dizzy
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?
take ur time Al
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
(I dont have that code right now)
sorry, I meant red x
< 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
I updated this to fix any bugs I had. Including doing something like
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.
I think there is a bug in ur file AL. Instead of "*" you put "{*}"
there isn't a * anywhere in my file, could you specify which line?
quote:
Originally posted by Weird Al:
EDIT: How did you move the scroll bar to the left side?
haha, I know that now, I made that post over 3 months ago
once I'm sure Charles doesn't change the code again, I'll post an update for 6.6
The area of the code you're working on hasn't changed since 6.5, so it should be fine in 6.6.
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
Really? I thought I did that back in 6.5.
ubb_lib_posting.cgi 6.6 Beta 1
$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
$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;
I knew I was right cause I tried to install this hack yesterday and had to change it.
Mmm. I still could have sworn I did that in 6.5! Sorry for throwing your hack off.
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)
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.
*shrugs*
well does my code work for you?
it works for everyone, people just get unwanted features...