Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by s.molinari s.molinari is offline
Developer Last Online: Sep 2018 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-21-2001 Last Update: Never Installs: 1
 
No support by the author.

Ok, I'm not sure if this has already been done. I checked Kier's original hack and I searched for other possible hacks and didn't find any.

This hack or code improvement, as I would like to call it, helps out with the problem of the vBcode or smilies always being added to the end of the text in the textarea box. In other words no matter where you would like to add a vBcode or smilie it will always be placed at the end of the text written.

The new vbcode.js script below will fix this. With this improvement you could go any where in the text that you have written and add smilies or format the text in what ever way you would like. The added vBcode or smilie will always be inserted at the point where the cursor is.

Please note: You must add the following in the textarea tag for the message, otherwise the new script will not work. You'll find these textareas in the newreply and newthread templates.

Your new textarea tag should look like this(red code denotes the chages that should be made):

Code:
<textarea name="message" rows="20" cols="$textareacols" wrap="virtual" tabindex="2" 
onChange=getActiveText(this) onclick=getActiveText(this) >$message</textarea>
All you have to do after changing the templates is copy the new vbcode.js onto your server and voila, your users will be loving you.

Enjoy and let me know what you think.


Scott

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 07-23-2001, 12:38 AM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let's put it this way: it's bad business to only enforce certain portions of a license. If we weren't going to enforce something, why would we put it in the license?

And in this case, allowing people to post full vB files would be completely against the point of running the business and selling vBulletin. And please don't start the argument of "then why isn't it free".
Reply With Quote
  #33  
Old 07-23-2001, 01:42 AM
Delhaze Delhaze is offline
 
Join Date: Oct 2001
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those of you who want to install it, and have managed to aquire the new .js file, I have found the following templates need to be changed:

Calendar Templates
  • calendar_enterevent
editpost

New Posting Templates
  • newreply
  • newthread
Private Messaging Templates
  • priv_forwardmultiple
  • priv_sendprivmsg
  • priv_sendtobuddies

Any one know if there are any more?

This hack is a absolute must have, I've only had it installed for an hour or so, and already writing this message without it is tedious.

Please VB People, tell us it will be included in the next update.
Reply With Quote
  #34  
Old 07-23-2001, 03:02 AM
ToraTora! ToraTora! is offline
 
Join Date: Nov 2001
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i was here when this all went down, and two people got it. I was to busy searching for things in the wrong places, and as such, missed the boat. I knew it would be taken down, and rightfully so. I think we can all agree on that. If its going to be added to the next release, than I can wait. Im not going to add a bunch of things, only to repeat it again, or not have to due in part its already included, which it sounds like it will.

However, there is another valid point made amongst this. I would also like to see what is on the slate for release, and what the release date time period is looking like.
Kind of a planning situation for me on what, if any, mods I could add to our board, without having to worry about having everything wiped out again.
That is why we are currently with 2.0, because we knew the other one would be rite around the corner (3 months..or so.)



Reply With Quote
  #35  
Old 07-23-2001, 01:55 PM
Freddie Bingham's Avatar
Freddie Bingham Freddie Bingham is offline
 
Join Date: Oct 2001
Posts: 506
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

On slate for release? Just bug fixes. When? Don't know.
Reply With Quote
  #36  
Old 07-23-2001, 05:12 PM
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
Location: Vancouver (whistler.2010)
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by freddie
ztsky since you think it is ok to post the source code why don't you also put your *valid* vb license information in your profile.
ZING!

oh, could someone take a shot of it for me, I wanna see (or atlest know) what improvments it makes?
Reply With Quote
  #37  
Old 07-23-2001, 05:14 PM
s.molinari's Avatar
s.molinari s.molinari is offline
 
Join Date: Nov 2001
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Delhaze
I think you'll find that you actually can, but you choose not to.

Anyway, thanks for the hack Scott, it is working brilliantly.
I didn't give it to him, honest!


Scott
Reply With Quote
  #38  
Old 07-23-2001, 05:40 PM
ToraTora! ToraTora! is offline
 
Join Date: Nov 2001
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by snyx
ZING!

oh, could someone take a shot of it for me, I wanna see (or atlest know) what improvments it makes?

Instead of the VB code, or smilies always showing up at the end of your paragraph, they could now be inserted where ever you wanted them.
Reply With Quote
  #39  
Old 07-23-2001, 05:51 PM
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
Location: Vancouver (whistler.2010)
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ooooooooh! I like that!
can ya add it to the dev. forum?
Reply With Quote
  #40  
Old 07-23-2001, 06:03 PM
s.molinari's Avatar
s.molinari s.molinari is offline
 
Join Date: Nov 2001
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those who are interested:

I sent the new vbcode.js file to Kier and he is looking it over. When he gives it the go ahead, I'm sure it will be added to the new release.

Scott
Reply With Quote
  #41  
Old 07-23-2001, 06:05 PM
s.molinari's Avatar
s.molinari s.molinari is offline
 
Join Date: Nov 2001
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Delhaze
For those of you who want to install it, and have managed to aquire the new .js file, I have found the following templates need to be changed:

Calendar Templates
  • calendar_enterevent
editpost

New Posting Templates
  • newreply
  • newthread
Private Messaging Templates
  • priv_forwardmultiple
  • priv_sendprivmsg
  • priv_sendtobuddies

Any one know if there are any more?

This hack is a absolute must have, I've only had it installed for an hour or so, and already writing this message without it is tedious.

Please VB People, tell us it will be included in the next update.
Thanx for the update. I wasn't sure if I had all the templates where vbcode.js was used. Obviously I missed afew.

Scott
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:51 AM.


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.04586 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
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)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete