Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-03-2003, 12:30 PM
Clarity Clarity is offline
 
Join Date: May 2003
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 06-03-2003, 12:36 PM
WEForums WEForums is offline
 
Join Date: Apr 2003
Location: Jacksonville, Florida
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 06-03-2003, 01:04 PM
Clarity Clarity is offline
 
Join Date: May 2003
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 06-03-2003, 01:23 PM
WEForums WEForums is offline
 
Join Date: Apr 2003
Location: Jacksonville, Florida
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 06-03-2003, 04:16 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

https://vborg.vbsupport.ru/showthrea...629#post146629
Reply With Quote
  #6  
Old 06-03-2003, 06:31 PM
Clarity Clarity is offline
 
Join Date: May 2003
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04285 seconds
  • Memory Usage 2,207KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete