Helpful Information
 
 
Category: vBulletin.org Forum
[RELEASE vB2.02beta] vB Code Buttons

This thread is discontinued. Please go here (http://www.vbulletin.com/forum/showthread.php?threadid=10830).

Current version: 0.7 - now includes [ list ] and smilies support.

http://kier.3dfrontier.com/vbhacks/vbcode.png

The documentation and downloadable code for installing this hack can now be found at http://kier.3dfrontier.com/vbhacks/vbcode.php. Please continue to post your comments and questions in this thread.

Let me know if there's any other functionality you'd like me to add, and I'll tell you if it's possible or not, and probably implement it if it is.

Another winner from kier! They've got something like this in UBB 6. When I saw it there I thought... that would be cool to have in vB. Now we do :)

Really really good job. Makes it a lot easier and better. Keep up the good work.

I always wanted a hack like that, excellent man thanks

good work..yet another fine hack :)

GREAT! Easy as pie, just my font select doesnt work? The code won't show?!?

Got a URL where I can go and check out your problem? PM me if the site is online but not yet public.

Whoa! This is great!

The only thought I have on it is -- Have you seen what *gag* Hotmail has done (not to mention the only browser that their new function works in is IE which it crashes every other time when using it .. but hey)?

Basically it makes it so if you change/do the font it updates the message window and actually SHOWS the change -- not the code.

Just a stray thought.

Maz

Idea though:

Any way to make it so that the selected text is formatted? And is there any way to make it just insert the beginning tag and make the button appear "indented" and when they click it again it inserts the closing tag? And if they didn't insert the closing tags on hitting send it inserts closing tags for them.

?? huh huh huh how about it ? :)

Thanks -- an excellent hack by the way. My users love it!

Absolutely great!!! Very well done.

:D :D :D

I have just one thought, though. Maybe add the ability to do lists in a future version?

Overall, extremely well done.

It would be cool if this hack will be included in vb2.0 final version :)

I really like the idea of the open/closing tags system - I'll look into a way to include that as an option for a future version.

Lists will definitely be included soon.

Originally posted by snyx
GREAT! Easy as pie, just my font select doesnt work? The code won't show?!?
The font tag is a custom vb code, you have to add it manually ;)

The hack worked fine, but not on editpost, I double checked the template and it's included, but it won't show the buttons.

Saw another board with this hack installed and same thing happened, nothing on editpost :(

In editpost.php there are two lines of $templatesused... however, the top one is commented out with a double slash, so altering that one will make no difference to the page's code.

You need to add the additional template requirement to the ~second~ line on editpost.php, and it will work just fine.

Awesome mod! Just implemented into our boards, works perfectly except for the font type.....

It ends up just posting the actual VB code for the font face, do you know why that would be?

Also, I like the modification they did over at sitepointforums.com with this hack, making all the buttons images and adding a few more features.....is it possible to add the ability in the future (or now)? If so, how would I go about doing that?

SystemLogic:

A) You need to add the FONT command to your custom vB codes via your administrator.

Pretty simple, follow the examples, or:
minus the brackets since I always forget how to put them in: course they should be > and < but that never seems to work for me: font="\5" then close it then \7 then close your font. Shoudl work ilke a charm.

Bumbedoo.

B) You can either make them a popup/ref to the javascript link, shouldnt' take too much -- or you can (I think) make buttons into an image but I forget the syntax, oh well :)

Maz

Originally posted by Kier
In editpost.php there are two lines of $templatesused... however, the top one is commented out with a double slash, so altering that one will make no difference to the page's code.

You need to add the additional template requirement to the ~second~ line on editpost.php, and it will work just fine.

Works great now, I feel stupid that I didn't see the comment :)

Thanks for the fast reply and again congrats on a great hack!

I'm having trouble adding a font replacement.....can somebody post a step by step detailed way of how to do this so that my boards can accept things like font size, center, and font face?

Oh wait nevermind, I kept looking at the wrong thing, lol, my bad.

Ok nevermind, lol, I am having some trouble.

I got the center tag working, but how would I go about setting up the font size and font faces? Mainly, what goes in vB Code Replacement, and I do need to set parameters to yes right?

read the text :)

use {param} and {options}
so font would use options only, like this:

[ font={option}][ /font]

/no spaces!

I tried that and I'm still having problems. Here's what I have for font face (2 instances):

Code Replacement: <font face="\5">\7</font>

VB Code Example: Test

and then I've tried:

Code Replacement: <font face="{option}">{param}</font>

VB Code Example: Test

And I press submit, doesn't work, I go back and the code replacement changed to <font face="\5">\7</font>

any ideas now?

Ahh ok nevermind, I was naming it wrong, it works now! Thanks!

np, I'm working on a small addon for this great hack, if all goes well I will be posting it tonight

Any addons for this hack? I wonder if it would be possible to add the smilies like on the other hack, but with a button instead of image, and the list as well!

I added 3 extra codes, no big deal one for input Flash movie files (SWF), the center and another to scroll text <marquee> on html!

Great Job!! I added this hack to my boards and it is workin fine!

Kier has released some great hacks, I can see wim being the Next W Luke.

Get him on the team guys :D

This hack is now updated to version 0.7 including [ list ] and smilies support. Check the first post in this thread for more details.

Agggh! I installed vers .7 of the vB code buttons hack today and everything works fine
- EXCEPT - when I went to test it with EDITING a post,
my original text had been wiped clean. *sigh* Can
anyone help? I'm posting my editpost template below....


Thanks!

Jennifer

(edited to add- I took out the code snippet below as my post was not wrapping and stretched the table out *sigh*

For editpost, make sure that you have <TEXTAREA NAME="message" ROWS=20 COLS=60 WRAP="VIRTUAL">$postinfo[message]</TEXTAREA> If the $postinfo[message] bit is missing, your message will appear to have not been retained for editing.

If you ~do~ have the $postinfo[message] part in there and it still doesn't work, post the broken template here as an attachment and we'll take a look for you.

Kier, how does smileys work if you have say 40 or so of the things? What would be nice is for it to include the first ten and then provide a small pop-up click window that opens the rest up which you can again click on to make them go into the post box. Know what i mean? i used to have this with boardpower and would love that function back again.

cheers.

For now, people with huge numbers of smilies will just have to increase the number of columns for the smiley table (getclickysmilies(a_big_number)) but I'll build some more functionality into the next version to cater better for multi-smilied boards.

Hopefully the next version will also enable the open/close tags routine that was discussed earlier in this thread. I really like the idea of that :)

Originally posted by Kier
For editpost, make sure that you have <TEXTAREA NAME="message" ROWS=20 COLS=60 WRAP="VIRTUAL">$postinfo[message]</TEXTAREA> If the $postinfo[message] bit is missing, your message will appear to have not been retained for editing.

If you ~do~ have the $postinfo[message] part in there and it still doesn't work, post the broken template here as an attachment and we'll take a look for you.


Thanks Kier! That did the trick!

Jennifer

Excellent update!

All the requested functionality, including optional tag-completion and a smiley overflow pop-up window is now complete... I'm just completing the installation documentation and I'll post the update (which is really cool, even if I do say so myself ;))

Just installed this without a hitch.

Thanks again for another great hack.

Since I have a TON of smilies... I'm really looking forward to a possible ten smilies, with a click for more. :)

*looks like i posted too late. lol. *

Has the update been posted yet?

Waiting hungrily....

Could a moderator please close this thread?

Due to the large differences between the installation requirements for this version and the latest one, I am going to open a new thread for it.

The new version of the hack can be found HERE (http://vbulletin.com/forum/showthread.php?threadid=10830)










privacy (GDPR)