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: 2.2.x Rating:
Released: 07-29-2001 Last Update: Never Installs: 102
 
No support by the author.

Hello vB Troopers,

With special permission from the Dev Team I am proud to release an improved version of vbcode.js. Any usage of this script other than in licensed vBulletin driven Boards is a direct violation of Jelsoft copyrights. Any violators will be prosecuted to the full extent of the law!

One MAJOR Improvement(note: only works with IE, NS users are out o luck! But who uses NS anyway?)

vBcode and smilies will be inserted wherever the cursor is instead of at the end of the text.

Installation
Copy the new vbcode.js file over your old one(see "Another small note" below). If you'd like to keep the old file just rename it before copying the new one.

You need to add the following text to the "message" textarea tag:
Code:
onChange=getActiveText(this) onclick=getActiveText(this)
It should basically look similiar to this:
Code:
<textarea name="message" rows="20" cols="$textareacols" wrap="virtual" tabindex="2" 
onChange=getActiveText(this) onclick=getActiveText(this) >$message</textarea>
Please note: The variable($message) may be different in some templates, editpost for example, so make sure to keep the original variable in the textarea attribute "name =". Otherwise the text may be missing in some instances.

This textarea can be found in the following templates:

Calendar Templates

calendar_enterevent

New Posting Templates

newreply

newthread

Private Messaging Templates

priv_forwardmultiple

priv_sendprivmsg

priv_sendtobuddies

and the editpost template

additional template changes

In the vbcode_popup_smilies template you must delete the following code:
Code:
<script language="JavaScript">
function smilie(smilietext) {
        opener.document.vbform.message.value += smilietext+" ";
        //opener.vbform.message.focus();
}
</script>
In the vbcode__popup_smiliebits template you must change:
Code:
<a href="javascript:smilie('$smilie[text]')">
to:
Code:
<a href="javascript:opener.smilie('$smilie[text]')">
small note:If you use the above code pleas omit the space between java and script.


If these changes aren't made the new script WILL NOT WORK!

I hope to hear from those who use it, and please let me know if you find a bug.


vB.org is using this hack. Try it out!

Scott

Latest release date: 20.04.2002
Any version older than this should be updated.

Show Your Support

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

Comments
  #192  
Old 03-25-2003, 12:51 AM
catocom2 catocom2 is offline
 
Join Date: Aug 2002
Location: Gainesville, Georgia
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well now I stumped :surprised:

I had some other unrelated problems (I think) and decided
to do a fresh 2.3.0 install, I did install this on an upgraded
board, and it did work fine, but since I've done a fresh install
and tried to reinstall this hack, I've noticed some other slight
changes in the code. I did'nt think much about it and installed
the changes anyway.
It just doesn't seem to do anything new now. :surprised:
I'v when back over all the templates about 4 times and
tried different similar variables, but still the same.
I've even compared the templates, side by side with the
ones that were working and still no joy.
I'm wondering now if there's some other file that needs to
be hacked.
Reply With Quote
  #193  
Old 03-25-2003, 01:29 PM
catocom2 catocom2 is offline
 
Join Date: Aug 2002
Location: Gainesville, Georgia
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well so far,
my best guess is that it has something to do with the new "get more" function.
My old updated board didn't have that, and I only had about 15
smilies, all in one box.
Reply With Quote
  #194  
Old 03-26-2003, 11:32 PM
catocom2 catocom2 is offline
 
Join Date: Aug 2002
Location: Gainesville, Georgia
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Man this is really wierd..
I didn't change anything, and it just decided to start working today.

may have been my cookies or something.

woohoo :banana:
Reply With Quote
  #195  
Old 04-09-2003, 07:33 PM
SloppyGoat's Avatar
SloppyGoat SloppyGoat is offline
 
Join Date: Feb 2002
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed it on 2.3.0, and the get more smilies was acting very erratic. It would disappear after clicking something. I'm not sure what was going on, but something just ain't right. That was in editpost I was testing. Has this hack been confirmed to work right in 2.3.0 yet? Also, if so, are there two lines in editpost that need to be changed? Maybe I did it wrong? Is there a way to have the smilies not hide every time you click them, like it would normally be?

[edit]
After observing here, I guess that's just the way it works.
That's all that was freaking me out, actually. But I'd still like to know if the window can act like it used to.
Reply With Quote
  #196  
Old 05-24-2003, 09:13 PM
tkeil69575 tkeil69575 is offline
 
Join Date: Nov 2001
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi s.molinari ,
could it be that using this hack the focus to the smilie popup window is lost ... ehm to put it another way would it be possible after inserting a smilie to reset the focus to the smilie popup windows???

thanks
tina
Reply With Quote
  #197  
Old 05-25-2003, 09:30 AM
s.molinari's Avatar
s.molinari s.molinari is offline
 
Join Date: Nov 2001
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi yall,

Sorry, but I really haven't had time to keep this hack up-to-date with my ventures at vbulletin-germany.com, which means you guys and gals are on your own. I hope you will forgive me.

Scott
Reply With Quote
  #198  
Old 06-03-2003, 06:27 PM
Clarity Clarity is offline
 
Join Date: May 2003
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone running 2.3.0 who is just now installing this for the first time, let me try and save you some time.

D/L the new .js from the first post in the thread and follow all the instructions in that post except for vbcode_popup_smiliesbits.

Test the functionality on your board (in both enhanced and normal mode). Normal is likely working, enhanced may not be. If that's the case, go to page 5 of this thread, and look for Mutt's post that includes an attachment. Download, and follow his instructions that involves making two pastes into the .js file.

Go back and test your functionality in enhanced, it should now be working. Thanks Mutt, you rule.

Now create a post, and click on "Get More" Smilies. Click on one to add it. Doesn't work, right?

The vbcode_popup_smiliesbits edit that you didn't do must have been for an old version. Go in there now, and simply turn this;

PHP Code:
"><a href="#" onclick="smilie('$smilie[text]'); 
into this;

PHP Code:
"><a href="#" onclick="opener.smilie('$smilie[text]'); 
Note that you're only adding 'opener.' -- that's it. Go back to your board and test everything, but you should be done. I was running an otherwise stock 2.3.0 clean install, and all of this did the trick.

I'm beyond newbie and clueless with all of this stuff, but I was able to get it all working properly. So everyone else should be encouraged by that.

Thanks SO much for this modification, and all the input from people in this thread to help get it going. Hoping that this little update/consolidation of the process can be a help to someone who was as clueless as I going in. If not, everything you need is in this thread somewhere.
Reply With Quote
  #199  
Old 06-03-2003, 08:54 PM
s.molinari's Avatar
s.molinari s.molinari is offline
 
Join Date: Nov 2001
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Clarity,

Thanx for the heads up. And sorry to all that I haven't kept this hack up to date for the later versions. However, a good note is, vB3 uses a modified version of this hack for the non-wysiwyg post, thread, calendar and PM editor. Cool huh?

Scott
Reply With Quote
  #200  
Old 06-03-2003, 09:14 PM
Clarity Clarity is offline
 
Join Date: May 2003
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's up to date enough for someone like me (read: non-tech oriented) to figure it out.

Thanks a million for an outstanding modification, and I'm very happy to hear it's in v3.
Reply With Quote
  #201  
Old 06-05-2003, 11:35 PM
The_Huntress The_Huntress is offline
 
Join Date: Jan 2003
Location: Inside your mind
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have a lil prob.. on 'get more smilies' when i click on a smilie to place it before a certain word it places it but erases the word *scratches head*

oh and since im comp illiterated, what do you mean when you say " Test the functionality on your board (in both enhanced and normal mode)." ?
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 03:43 PM.


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.08315 seconds
  • Memory Usage 2,316KB
  • 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
  • (5)bbcode_code
  • (2)bbcode_php
  • (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
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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