vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   vbCode Button Functionality Hack? (https://vborg.vbsupport.ru/showthread.php?t=53789)

Clarity 06-03-2003 12:30 PM

vbCode Button Functionality Hack?
 
I've been looking for the hack or template mod/JS (this very board seems to be running it), that modifies the functionality of the vbCode buttons a bit.

On my stock 2.3.0 board, you cannot highlight a word in your message field, hit the 'I' button (as an example) and have it italicized (as per my 'I' example, bold and underline work as well). Hitting the button only appends the appropriate vBC at the end. This board does exactly what my users are asking for, I can finish this sentence without any code, then go back and highlight 'sentence' with my mouse, hit the U button, and it will be underlined.

I've spent the last hour looking for such a hack, but have come up empty, came here to this area to ask someone to make it, and realized as I was posting that it exists somewhere.

Little help? Thanks in advance. I've posted this both in Hack and Template Requests simply because I don't know which way it's handled. I've seen button functionality mods in both.

WEForums 06-03-2003 12:36 PM

Not exactly what you're looking for but it may be even better, depending on exactly what you want.

https://vborg.vbsupport.ru/showthrea...hlight=WYSIWYG

Clarity 06-03-2003 01:04 PM

Appreciate the response. That's a good looking hack, but does more than I need this to (and reading the thread, does less in that you lose some of the functionality like IMG, PHP, etc.

To clarify, if you enter a new post or reply in a STOCK 2.3.0 board, then take your mouse (in the post/reply window) and highlight a word, then hit the B, I or U button in the vbCode area -- a B, I or U are appended at the end of your post. Not at the point of your highlight.

On this board, you can highlight a word, press one of those buttons, and it's smart enough to recognize that you want to edit that specific word (or block of text) and does as much.

Apologies if I wasn't explaining well in the first post, and moreover, apologies for asking for this here since it obviously exists somewhere. I'm up to about 90 minutes scouring the hacks area for it, still with no luck. Thanks in advance for any help.

WEForums 06-03-2003 01:23 PM

Look in template modifications or something. I know that the vbcode_buttons template holds the buttons, so that could be it. You may have to edit the JS script but I don't know.

Boofo 06-03-2003 04:16 PM

You'll be surprised what searching for "vbcode" will bring up.

https://vborg.vbsupport.ru/showthrea...629#post146629

Clarity 06-03-2003 06:31 PM

Indeed. Frankly I'm not sure how I missed it. But thanks either way, that is exactly what I was looking for.

Now if I can just figure out how to fix the smilies pop-up (they no longer add in-line into a message with a click), I'll be golden.

-update- figured it out, all works brilliantly now.

Love the mod, thanks for the heads up.


All times are GMT. The time now is 10:03 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.01092 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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