Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Joined: Sep 2001
Posts: 170
Member
Member
Offline
Joined: Sep 2001
Posts: 170
HACK NAME: Advanced UBB-Code for UBB 6.2.1 Final

DESCRIPTION: Adds more UBB Code buttons and gives you the ability to change the button graphics from the styles control panel.

Buttons added:
  • Table border (you can set the color of the border)
  • Center
  • Font Color
  • Flip Horizontal
  • Flip Vertical
  • Font Face
  • Font Face, Font Size and Font Color (with one button, for the lazy)
  • Heading 1
  • Heading 2
  • Heading 3
  • Horizontal Rule
  • Invert
  • Marquee
  • Font Size
  • Font Size and Font Color(with one button, for the lazy)
  • Underline
  • Embed - for videos and sound files
  • Xray

Note: I removed Glow Text from v 2.0 Beta for security reasons. If you are wanting this code email me, but be aware it poses a serious security risk.
Charles - Please tell me if there is any security problems with the rest of these codes.
This is an update to the one I posted in the 6.1 beta board. This is also similar to melder's but I have some different buttons and I included the Multihack file.
Demo: Here - unregistered users may post here to test these out

Get the code here: this includes the text instructions, image files(red, blue and grey) and a MultiHack file

Updated for UBB 6.2.1 Final

Sponsored Links
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Looks good - no inlining. smile

However, if at all possible, please quote as little possible licensed code in the hack. You don't need to quote and replace the entire sub - you can explain where the new code needs to be inserted instead.


UBB.classic: Love it or hate it, it was mine.
Joined: Oct 2001
Posts: 157
Member
Member
Offline
Joined: Oct 2001
Posts: 157
yaaaaaaaaay!!

Finally I can stop worrying about allowing html to do all this smile

Thanks a ton!


Yors Truly

Who? Me? Worry?
Joined: Apr 2001
Posts: 78
Member
Member
Offline
Joined: Apr 2001
Posts: 78
very nice ... thanx for your efforts

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I personally don't like marquee, embed, xray and invert (especially marquee), but it's still nice to haved a hack with all these features but without security problems. (I have tci's old version, that also doesn't have any problem, but without table border, flip, heading, hr, invert, maruqee, embed, xray and fontsizecolorface.)

Good job. smile

Sponsored Links
Joined: Sep 2001
Posts: 170
Member
Member
Offline
Joined: Sep 2001
Posts: 170
Updated for released version of UBB 6.2.1 !

Joined: Feb 2000
Posts: 64
Member
Member
Offline
Joined: Feb 2000
Posts: 64
Ok the codes themselves work. I ahd a problem with the buttons. They did not show up. You saw the white box with the red x and the title of the button. If you moused over the button, the java box showed up. If you clicked it worked. But the images did not show. I uploaded the gif's and I did it in binary. Any ide what the problem might be?

I would provide I alink, but I removed the code that showed the buttons until I get a possible answer.

I would like to say thanx for the hack. The codes themselves do work, just have to be entered manulaly.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Add them again and give us a link.

Joined: Feb 2000
Posts: 64
Member
Member
Offline
Joined: Feb 2000
Posts: 64
I added the hack back in. I will state upfront, that I did remove some of the options, like headings. But I removed the code in all parts for those pieces. All the codes work, the buttons work, the images just do not show up.

test forum

ok that is a link to a forum I made so anyone can post.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Rehack cp_style.cgi and cp_vars_style_core.pl, then enter CP - Style Settings - [choose style] - change their image URL in the UBB Code parts.

Sponsored Links
Joined: Feb 2000
Posts: 64
Member
Member
Offline
Joined: Feb 2000
Posts: 64
Thanx LK. I did not need to rehack any files. I just needed to go to the control panel and put in the links to the buttons.

I feel like an idiot for not thinking of it, but the directions also should have reminded people to do it.

Thanx again LK.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
quote:
if you don't have photoshop and/or need a different color let me know.
That means:

1. If someone doesn't have Photoshop and wants to change the color.

2. If someone has Photoshop and wants to change the color but can't use it so well.

3. If someone doesn't have Photoshop and wants it. wink

Joined: Feb 2000
Posts: 64
Member
Member
Offline
Joined: Feb 2000
Posts: 64
I meant the directions should have said go to control panel and enter likns. Not about the color of the buttons.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I know, I just posted it because I saw that thing in the readme, not because of your reply. tipsy

Joined: Sep 2001
Posts: 170
Member
Member
Offline
Joined: Sep 2001
Posts: 170
In my defense, the below is in the instructions, and is what initially sets the graphics for your style templates. The description on the hack says you can change them in the cp. So do I have to hold your hand while you hack it? - Just kidding smile . I will update the instructions to make it blatently obvious to the most casual observer, thanks for pointing that out.

##############################################################
## open vars_style_1.cgi in your non-cgi styles directory ##
##############################################################

#################
## find ##
#################

%vars_style = (

##################
## Below it Add ##
##################

'ubbcode_border' => 'ubbcode_border.gif',
'ubbcode_center' => 'ubbcode_center.gif',
'ubbcode_color' => 'ubbcode_color.gif',
'ubbcode_fliph' => 'ubbcode_fliph.gif',
'ubbcode_flipv' => 'ubbcode_flipv.gif',
'ubbcode_font' => 'ubbcode_font.gif',
'ubbcode_fsc' => 'ubbcode_fsc.gif',
'ubbcode_heading1' => 'ubbcode_heading1.gif',
'ubbcode_heading2' => 'ubbcode_heading2.gif',
'ubbcode_heading3' => 'ubbcode_heading3.gif',
'ubbcode_hr' => 'ubbcode_hr.gif',
'ubbcode_invert' => 'ubbcode_invert.gif',
'ubbcode_marquee' => 'ubbcode_marquee.gif',
'ubbcode_size' => 'ubbcode_size.gif',
'ubbcode_szcolor' => 'ubbcode_szcolor.gif',
'ubbcode_underline' => 'ubbcode_underline.gif',
'ubbcode_video' => 'ubbcode_video.gif',
'ubbcode_xray' => 'ubbcode_xray.gif',

###########################################################################
## Repeat for any addiditonal vars_styles#.cgi files in this directory ##
###########################################################################

LK - smile Thanks for helping out with this
As for your observations in the instructions.

quote:

That means:

1. If someone doesn't have Photoshop and wants to change the color.

2. If someone has Photoshop and wants to change the color but can't use it so well.

3. If someone doesn't have Photoshop and wants it.

#1. Yes, I will change then for them if they want.

#2.They can get a tutorial, I have better things to do with my time, but if they ask nicely, I will gladly give them pointers. There are also other programs that will open photoshop psd files.

As for #3 they are own thier own.

Joined: Feb 2000
Posts: 64
Member
Member
Offline
Joined: Feb 2000
Posts: 64
ok the problem then is those things did not appear in the styles template. The styles template was blank. I had to type them all in myself.

Joined: Sep 2001
Posts: 170
Member
Member
Offline
Joined: Sep 2001
Posts: 170
The styles template you need to modify is in the NON-CGI/styles directory - NOT THE ONE IN your CGI directory.

Joined: Feb 2000
Posts: 64
Member
Member
Offline
Joined: Feb 2000
Posts: 64
DOH!

Damnit I am not used to hacking the 6 series!

Ok here is a fun question them. What if anything did I screw up by uploading the var_styles_1.cgi into the cgi_bin?

And thank you for the hack and for clearing this topic up for me.

Joined: Sep 2001
Posts: 170
Member
Member
Offline
Joined: Sep 2001
Posts: 170
As far as I can tell, NONE. I deleted this file from my cgi directory and everything works still. I am not sure why this file is even there, unless it's used when you initally setup the bulletin board to create the vars_style_1.cgi in the styles directory?? this would be a good question for Charles.

Joined: Oct 2001
Posts: 157
Member
Member
Offline
Joined: Oct 2001
Posts: 157
Thanks stormy...works perfectly in my board smile

I have also posted another set of buttons that can be used with this mod here

Its basically the colorscheme of my site (fire and steel) but if anyone want any other gradient... smile


Yors Truly

Who? Me? Worry?
Joined: Sep 2001
Posts: 170
Member
Member
Offline
Joined: Sep 2001
Posts: 170
Thanks for the buttons yors, those are cool!

Joined: Sep 2000
Posts: 77
Member
Member
Offline
Joined: Sep 2000
Posts: 77
if you can make this look like the old style or look like in vbb, it'll be a lot better

Joined: Sep 2001
Posts: 170
Member
Member
Offline
Joined: Sep 2001
Posts: 170
What you mean old style? and if you like vbb, then use it. I like UBB and thats what this hack is for. If you dont like it, then write the hack yourself!

No one is stopping you from getting off your kester and learning how to do it for yourself. If you have some constructive comments I'll be glad to listen, otherwise keep your I don't like it comments to yourself!

Joined: Sep 2000
Posts: 77
Member
Member
Offline
Joined: Sep 2000
Posts: 77
excuse me, i'm just asking nicely. You don't have to answer me so harsh like that? You need to control your temper kiddie

Joined: Sep 2001
Posts: 170
Member
Member
Offline
Joined: Sep 2001
Posts: 170
whatever, have a nice day.

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Both of ya knock it off. There is no need for that tone.


UBB.classic: Love it or hate it, it was mine.
Joined: Sep 2001
Posts: 170
Member
Member
Offline
Joined: Sep 2001
Posts: 170
Sorry Charles. I'll have to learn to bite my tounge from now on. Don't want to get the UBB Gods peaved at me. smile

Joined: Feb 2002
Posts: 42
Member
Member
Offline
Joined: Feb 2002
Posts: 42
Amazing i am VERY VERY pleased with this hack i love it. Great job. smile

Joined: Sep 2001
Posts: 170
Member
Member
Offline
Joined: Sep 2001
Posts: 170
Thanks, glad you like it, I have another one that has 38 buttons if you want more.

Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
I installed this via Multihack on my test board, and all I can say is my community is going to have an awful lot of fun w/this new toy!

Thanks so much for the hack and for the Multihack file--I haven't enabled the HTML because of the security issues, and at the board I was at before migrating to UBB, we could do color, et al, and my community was missing it.

Sweet.

Great job!


Sue
adwoff.com
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
How would I go about centering the Instant UBB Code buttons under my message window?

I have the SmilieMod hack installed so that I can used the pulldown menu (my community is smilie junkies wink ), and I've disabled the Instant Graemlins' legend that would normally appear to the left of the Instant UBB Code.

Thanks!

Oh, I installed this on the 6.2.1.1 UBB, and it works like a charm. laugh


Sue
adwoff.com
Joined: Jul 2000
Posts: 837
Member
Member
Offline
Joined: Jul 2000
Posts: 837
ADWOFF

open ubb_smilie.cgi

find**

Code
[/code]Replace with**

[code]

Joined: Sep 2001
Posts: 170
Member
Member
Offline
Joined: Sep 2001
Posts: 170
Thanks ClanKiller, I noticed it on my board too, but haven't had a chance to look into it. been busy trying to find a new host the last few days, so sorry to anybody that has been waiting on a reply.

You saved me from having to come ask you smile

Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
Cool beans, Clankiller! laugh

Thank you!


Sue
adwoff.com
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
Weird.

I'm testing my Advanced UBB Code buttons, and for some reason or another, the "marquee" is not functioning in the regular message.

It does work in the "preview," though.

What file do I need to look into to examine the code?

Thanks!


Sue
adwoff.com
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
Picture me banging my head against the wall/pulling my hair.

I just went back, tried it again, and it worked! eek


Sue
adwoff.com
Joined: Jan 2002
Posts: 147
Member
Member
Offline
Joined: Jan 2002
Posts: 147
The hack works great! but there is one probelm look at what it looks like

[Linked Image]

how can I fix that?

~Speedy~


~Your Super Speedy Member!~
AIM: zXzXMikeXzXz
MSN: [email protected]
Email: [email protected]
Joined: Sep 2001
Posts: 170
Member
Member
Offline
Joined: Sep 2001
Posts: 170
first of all, upload the button set from the color scheme folder of your choice [included in the text instructions zip], this should fix the buttons being different colors.

Then:
Re-hack public_common.pl
sub instant_ubb_code section, you need to place your
Joined: Nov 2000
Posts: 10
Junior Member
Junior Member
Offline
Joined: Nov 2000
Posts: 10
Is it possible to get these codes to work in signatures?

It seems to work when you put the new code into a sig at first, but if you go back to edit it, the code turns into HTML.


~kev2me
Joined: Sep 2001
Posts: 170
Member
Member
Offline
Joined: Sep 2001
Posts: 170
It works fine in signatures for me?

Does it do the same thing in a post if you edit it?

If so rehack ubb_lib_posting.cgi

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
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services