vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   [RELEASE vB2.02beta] vB Code Buttons (https://vborg.vbsupport.ru/showthread.php?t=10305)

Kier 03-02-2001 09:08 PM

This thread is discontinued. Please go here.

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.

03-02-2001 09:16 PM

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 :)

03-02-2001 10:05 PM

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

03-02-2001 10:22 PM

I always wanted a hack like that, excellent man thanks

03-02-2001 10:43 PM

good work..yet another fine hack :)

03-02-2001 10:53 PM

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

03-02-2001 11:31 PM

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

03-02-2001 11:34 PM

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

03-03-2001 12:00 AM

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!

03-03-2001 04:04 AM

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.

03-03-2001 12:42 PM

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

03-03-2001 10:26 PM

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.

03-04-2001 07:54 PM

Quote:

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 ;)

03-05-2001 01:58 AM

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 :(

03-05-2001 06:19 AM

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.

03-05-2001 01:35 PM

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?

03-05-2001 07:42 PM

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

03-05-2001 07:53 PM

Quote:

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!

03-05-2001 08:38 PM

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?

03-05-2001 08:40 PM

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

03-05-2001 08:48 PM

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?

03-05-2001 09:43 PM

read the text :)

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

[ font={option}][ /font]

/no spaces!

03-05-2001 09:50 PM

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?

03-05-2001 09:59 PM

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

03-05-2001 11:24 PM

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

03-06-2001 06:47 PM

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!

03-06-2001 07:16 PM

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

03-07-2001 05:31 AM

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

Get him on the team guys :D

03-07-2001 11:09 AM

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

03-07-2001 01:56 PM

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*

03-07-2001 02:56 PM

For editpost, make sure that you have
Code:

<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.

03-07-2001 04:20 PM

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.

03-07-2001 04:39 PM

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 :)

03-07-2001 08:21 PM

Quote:

Originally posted by Kier
For editpost, make sure that you have
Code:

<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

03-07-2001 09:18 PM

Excellent update!

03-08-2001 05:13 PM

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 ;))

03-08-2001 05:23 PM

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. :)

[edit]*looks like i posted too late. lol. *[/edit]

03-08-2001 06:44 PM

Has the update been posted yet?

Waiting hungrily....

03-08-2001 07:06 PM

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


All times are GMT. The time now is 07:12 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01274 seconds
  • Memory Usage 1,803KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (39)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete