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
  #22  
Old 07-22-2001, 07:03 PM
Delhaze Delhaze is offline
 
Join Date: Oct 2001
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why haven't the VB develpoers created an area on the webserver that is protected for valid license holders, like the members area, where files like this can be downloaded.

If it doesn't happen I can see customers moving to FREE open source alternatives as soon as they become as powerfull, and with hacks easily available.
Reply With Quote
  #23  
Old 07-22-2001, 07:35 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
Why haven't the VB develpoers created an area on the webserver that is protected for valid license holders, like the members area, where files like this can be downloaded.

If it doesn't happen I can see customers moving to FREE open source alternatives as soon as they become as powerfull, and with hacks easily available.
Your point is a good one but situations like mine are an exception. I don't think there are too many code improvements to warrant such extra effort as you explained. What I did isn't exactly a bug fix and not really a hack, that's why I say it is an exception. We will just have to wait and see if the new vbcode.js file will be implemented in the next version.

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

Scott send your improvements to Kier and if they are kosher than he can make the needed changes in time for 2.0.2
Reply With Quote
  #25  
Old 07-22-2001, 08:15 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 freddie
Scott send your improvements to Kier and if they are kosher than he can make the needed changes in time for 2.0.2
Willdo - havedone

Scott
Reply With Quote
  #26  
Old 07-22-2001, 08:48 PM
samtha25 samtha25 is offline
 
Join Date: Jan 2002
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by s.molinari
Your point is a good one but situations like mine are an exception.
Not sure how exceptional as this is the second case I've come across just now of something being removed for license violation in just the last few minutes while searching for something else.

The point about competition from open source is a good one, as this is one area where open source may well produce an excellent contender. One of the tricks of competing against open source is to capture as much of the flavor of it as possible without giving away the store. So, I think the idea of having a download area for hacks/improvements from the members only area or perhaps a licensees' only forum for such exchanges is a very good one.
Reply With Quote
  #27  
Old 07-22-2001, 09:38 PM
TDawson
Guest
 
Posts: n/a
Default

We need a "Members Only" forum!!!!!!
Reply With Quote
  #28  
Old 07-22-2001, 11:20 PM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by samtha25
Not sure how exceptional as this is the second case I've come across just now of something being removed for license violation in just the last few minutes while searching for something else.
That was kind of a fluke. I think the last time this happened was in March or April.

Quote:
The point about competition from open source is a good one, as this is one area where open source may well produce an excellent contender. One of the tricks of competing against open source is to capture as much of the flavor of it as possible without giving away the store. So, I think the idea of having a download area for hacks/improvements from the members only area or perhaps a licensees' only forum for such exchanges is a very good one.
I would tend to agree. However I think the way it is now is a good system too. It allows it be out in the open without compromising vBulletin's source.
Reply With Quote
  #29  
Old 07-22-2001, 11:36 PM
Delhaze Delhaze is offline
 
Join Date: Oct 2001
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think in this case it's a bit pointless imposing any restriction.

This is after all a .js file.

The original can be download from ANY vb site.

Can somebody who manged to install the new file give me a link to their vb site.

I won't download it honest, although if I happen to find it in my cache ...........
Reply With Quote
  #30  
Old 07-22-2001, 11:56 PM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The general discussion is about vB source as a whole, not just .js files. Yes, .js files can be downloaded as you say, however PHP files cannot. We cannot pick and choose what parts of the license we enforce, or when we enforce them.
Reply With Quote
  #31  
Old 07-23-2001, 12:17 AM
Delhaze Delhaze is offline
 
Join Date: Oct 2001
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you'll find that you actually can, but you choose not to.

Anyway, thanks for the hack Scott, it is working brilliantly.
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 01:13 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.06432 seconds
  • Memory Usage 2,309KB
  • 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
  • (5)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
  • (10)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