vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   New vbcode.js - vBcode and smilie user interface improvement (https://vborg.vbsupport.ru/showthread.php?t=24033)

LanciaStratos 01-25-2002 12:40 AM

Hey Scott, any ideas on what could be going on with my board? :confused:

s.molinari 01-25-2002 03:20 PM

@lanciastratos I do believe it's a browser problem. I use IE6 and had no such problems. I did have the situation that the smilies didn't work at all after opening different reply screens but my messages never disappeared.

Scott

s.molinari 01-25-2002 03:23 PM

@fwc - Highlighting was never intended. It works for some and for others it doesn't. I do believe though the basic functions are stable.

Scott

FWC 01-25-2002 04:54 PM

Quote:

Originally posted by s.molinari
@fwc - Highlighting was never intended. It works for some and for others it doesn't. I do believe though the basic functions are stable.

Scott

Yes, the basic functions are very stable. But, highlighting seems to work for most of my users and they love it. :)

Stretchr 01-25-2002 05:01 PM

It's kind of funny because a lot of what I've heard from folks about this hack pertains to how great the (unintentional?)highlight feature is. Serendipity
Quote:

Originally posted by s.molinari


I don't think that part works. But it does let you place a tag or a smilie where you want it.

Scott


LanciaStratos 01-25-2002 08:46 PM

OK, thanks Scott... :)

Mutt 01-28-2002 12:39 AM

If you go back throught this thread, you'll see that I posted a hack to this hack. if you make the extra mods that I posted, highlighting WILL work

alexp 01-29-2002 04:19 PM

I'm probably not allowed to do this, but adding the following function:

Code:

function insertGenericTwoParter(theForm, theValue, theMessage, defaultArg){
//theValue is the vb code
//theMessage is the message asking for the argument to the VB code

var arg=prompt(theMessage, defaultArg);

if (!arg) return; //end on cancel.

var theText=prompt("Enter text to insert between the "+theValue+" tags", "");

if (!theText) return; //end on cancel.

var tempText= "["+theValue+"="+arg+"]"+theText+"[/"+theValue+"]";

AddText(tempText,theform);

 theform.message.focus();

}

...into the same .js file allows you to add new buttons for new effects at will, without having to re-hack the file.

This may be useful to someone..

Regards,
Alex

Matze 02-02-2002 04:08 PM

Nice work, but i still good a closing undefined when i use just one opened tag. When i use bold and italic or italic an underlined etc, it works fine!
-> IE5.5, W2K SP2

Matze

Matze 02-02-2002 04:11 PM

Done, i took the vbcode.js from this server and now it works... :rolleyes:

Matze

Lucky 02-24-2002 10:40 PM

Works great on 2.2.2

Thanks friend.

SHalliday 03-16-2002 02:44 AM

nice hack..

newsguy 03-16-2002 06:23 PM

Just wanted to say that I upgraded to 2.2.4 today and after reapplying this hack, it started to delete highlighted text in the message box (which for me in 2.2.2 was not the case).

I went back, as Mutt suggested and found his "hack to this hack", used it, and now all is well.

Here is Mutt's message with his "hack to this hack":

https://vborg.vbsupport.ru/showthrea...781#post203781

Figured I'd just link to it for other people's convenience, and also say thanks to Mutt.

Erwin 03-16-2002 08:08 PM

Sweet - thanks newsguy.

Broekie 03-22-2002 06:53 AM

Okay, call me stupid, but I'm getting really confused with al those solutions posted everywhere along this thread...

I tried to put all the steps to apply this hack onto a vbb2.2.4 into a text file, but it didn’t take long before I lost track of which steps are actually necessary and which are not.

I know that I, as a complete new user to this forum, shouldn’t be complaining about this.
But, I would very, very much appreciate it when somebody would post the necessary steps to apply this hack to vbb2.2.4.

Please? *begging face*

plasir 03-25-2002 05:54 AM

hi!

I think so too. It's confusing for me a newbie (what's going, what's not, several hacks...uhhhh).
Is it possible to start a new thread: Cursor position Vers. 2.2.4 ?

It would be very usefull.

thx

HellRazor 03-25-2002 05:40 PM

The hack sounds great! But I'm a little confused about the entire first portion of the install instructions (where it doesn't specify exactly what portions to change in exactly what files).

Can someone post simple step-by-step install instructions for this hack for VBulletin 2.2.4? It would help out alot!

s.molinari 03-25-2002 06:16 PM

Quote:

Originally posted by HellRazor
The hack sounds great! But I'm a little confused about the entire first portion of the install instructions (where it doesn't specify exactly what portions to change in exactly what files).

Can someone post simple step-by-step install instructions for this hack for VBulletin 2.2.4? It would help out alot!

Hello Hellraiser and plasir,

The instructions are in my opinion clear. Ok I wrote them. :)

Honestly though, there are no files to change except the JS file. The most changes that need to be done are to the templates and they are all listed in the first post of this thread. There are some improvements to the hack that have been added through other users and I may add them at a later date but the instructions on how to add the hack to vB will basically stay the same. Also, the instructions are applicable to 2.2.4.

Scott

HellRazor 03-25-2002 06:46 PM

Ok, let me tell you the portions I'm not sure about. :)

Quote:

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>


Where does the above change go? I'm not sure which file or template to make that change in.


Quote:

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

The section above confuses me. I know I need to edit those templates, but what exactly do I need to change?

I think I understand the rest of it. Thanks for your help!

Mac Users Group 03-31-2002 10:04 PM

Doesn't seem to work for me...

Does it make a difference if it is used on a Mac or a PC?

plasir 04-08-2002 01:39 PM

i get it ! works fine !

many thanks ! :rambo:

Marc T Smith 04-12-2002 05:57 AM

Quote:

Originally posted by Mac Users Group
Doesn't seem to work for me...

Does it make a difference if it is used on a Mac or a PC?
Did you get it working?

Do you mean the script breaks when using Explorer and/or Netscape on a Mac? The hack doesn't work for me acccessing this board on my Mac. It breaks the script somehow on both Explorer and Netscape on my Mac.

plasir 04-12-2002 06:53 AM

ist installed it on two boards successfully. I know that it works also fine on an third board.

I use IE (+PC).

I don't know anything about MAC, but in my opinion it doesn't matter if IE runs on PC and/or MAC.
Important is only you browser.

Marc T Smith 04-14-2002 03:53 AM

Whatever it is with the Mac java interpreter or whatever (not my field), it doesn't work with system 9.0.1 using IE or Netscape (NON-AOL) or Mozilla. As soon as I put the cursor in the reply box it errors out. After that I can't even use a smiley by clicking on it. Of course, as long as I know the code...

This may not be the case with Mac OS X - don't have it to try.

s.molinari 04-20-2002 04:52 PM

Hello all,

This hack will work with 2.2.5. :classic:

Scott

p.s. If one of the mods could please update the title to read 2.2.5. Thanx.

el3m3nt 04-20-2002 05:12 PM

[german] scott das kannst du selber.. editiere einfach den ersten beitrag in diesem thread. dort kannst du das ausw?hlen :).[/german]

Chris M 04-20-2002 06:13 PM

Lol...

Ich sprache ein bisschen Deutsch, aber bin ich 16 jahre alt.

Im learning it for GCSE...

Satan

s.molinari 04-20-2002 06:40 PM

Quote:

Originally posted by el3m3nt
[german] scott das kannst du selber.. editiere einfach den ersten beitrag in diesem thread. dort kannst du das ausw?hlen :).[/german]
Danke :) Habe ich glatt verpasst.

Scott

Stretchr 04-20-2002 10:29 PM

I got an email that this hack had been updated. Has it? Or was the email generated because the version compatibility was changed?

Thanks!

Erwin 04-20-2002 10:38 PM

What's the difference between the previous versions and the one mentioned in the update email? The previous version is working very well with 2.2.5 - do I need to update? I notice the new vbcode.js file is smaller than the previous one.

Stretchr 04-20-2002 10:44 PM

Erwin,
The js code is different size? Maybe I'll d/l and run Beyond Compare and see if I can find the difference.

Stretchr 04-20-2002 10:52 PM

Erwin,
The code is different and it works again on my site. I hadn't been able to get it to work recently so I'm using the new js. If yours works as is, maybe you don't need to change.

Crazy Mofo 04-20-2002 11:17 PM

u know when you click the Get More smiles what is that called? if i want too edit it? and what is the original txt for it?

r.cakir 04-27-2002 07:57 AM

Hello everybody

I know, most of you uses the Windows OS, but there are also some vB-Boards around the world, which are designed for Mac users. I've tested this very useful Hack on my Board with all actual available Mac-Browser's under the Classic OS and Mac-OS X 10.1.x. But it doesn't work! :(

So I think it's not a Browser problem, it's more OS related. Maybe somebody in this community who also works with Mac-OS can help me. :disappointed:

TECK 05-21-2002 07:11 AM

scott, i use images instead of regular buttons. for some reason, every time i click on the "image" button BOLD and submit the text, it's sending me to submit and posts for me??? :O

any idea why? what should i change in the java code?

TECK 05-21-2002 10:39 AM

for some reason, if i enter <input type="image"...> instead of button, it messes up the script.

alexp 05-21-2002 10:40 AM

maybe use:

<a href="javascript: doSomething()"><img....></a>

...instead?

TECK 05-22-2002 04:13 AM

alex.. that will never do it. due to the algorithm used by vbcode.js.
it must be a simple edit somewhere there.. i looked everywhere with no success. i really want to use the images buttons instead of the regular ones.. :(

Admin 05-22-2002 05:28 AM

Actually that would also work... :rolleyes:

TECK 05-22-2002 04:48 PM

unfortunatelly, is not. i tried both ways. with scott's file and the default vbcode.js. it will not work.


All times are GMT. The time now is 10:49 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.01483 seconds
  • Memory Usage 1,820KB
  • 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
  • (3)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete