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)
-   -   WYSIWYG Post Editor v1.0 (https://vborg.vbsupport.ru/showthread.php?t=40283)

Birdie501 06-26-2002 09:39 AM

Yes of course you have to register first. But after that you also have to turn it on! :)

Erwin 06-26-2002 11:43 AM

Thanks to Superman and Firefly for the new tweaks. Works great! The text looks good, and the saving of that one query is a bonus! :) Can't wait for the other new features...

bluecat 06-26-2002 11:43 AM

I registered on another board to test this hack, and it looks great. But on the instructions the only part I'm not sure how to do is this:

1. Run the following query in PhpMyAdmin:
-----
alter table user
add enablewysiwyg smallint(5) UNSIGNED not null default '0';

How do I do this?

Erwin 06-26-2002 11:45 AM

Oh yeah - I tried applying the changes to the private.php and priv_sendprivmessage templates - harder than you think. If anyone else has success, do share. I will keep trying.

Erwin 06-26-2002 11:46 AM

Run the query in phpmyadmin or telnet, or use the hack by Firefly via your control panel.

Erwin 06-26-2002 11:47 AM

Quote:

Originally posted by Birdie501
hi, just installed, works fine, but the smilies don't work!??
Will this be fixed?

smilies do work - upload the vbcode2.js file to your forums directory.

bluecat 06-26-2002 11:54 AM

Thanks Erwin. :)

bluecat 06-26-2002 11:56 AM

Quote:

Originally posted by Erwin
Run the query in phpmyadmin or telnet, or use the hack by Firefly via your control panel.
Sorry to keep bugging, but where can I find this hack of FireFly's. I think I seen it once that sits in your admin folder, but can't find it... :ogre:

bluecat 06-26-2002 12:07 PM

nevermind, I found it. :)

eiSecure 06-26-2002 01:15 PM

Okay, I just woke up today... wow... 3 pages of reading for me to do. ^_^

I'll talk with superman and see what we can do to fix the bugs in the original upload.:)

DestyNova 06-26-2002 01:58 PM

Quote:

Originally posted by Superman53142
OK, if you really must have this change now, right below the <iframe> there is a <script> tag. Insert this right below the <script....> tag:

idContent.document.write("<style>body { font-family:Verdana; font-size: 12px }</style>");

I m bit confuse... add to which file? or template? i look for that but seem didnt find any.

eiSecure 06-26-2002 02:03 PM

Na, don't worry about it, it'll be included in a bugfix that'll be released later.:)

DestyNova 06-26-2002 02:21 PM

never mind...I figure it out =)

Velocd 06-26-2002 02:22 PM

Quote:

Originally posted by FireFly
You can just replace this:
Code:

$threadengine = $DB_site->query_first("SELECT enablewysiwyg FROM user WHERE userid='$bbuserinfo[userid]'");

  if($threadengine[enablewysiwyg]){ eval("dooutput(\"".gettemplate("newthread_wysiwyg")."\");");

  } else { eval("dooutput(\"".gettemplate("newthread")."\");"); }

With:
Code:

  if($bbuserinfo['enablewysiwyg']) {
    eval('dooutput("'.gettemplate('newthread_wysiwyg').'");');
  } else {
    eval('dooutput("'.gettemplate('newthread').'");');
  }

No query needed.

I was wondering this myself when writing that part of the hack, but now I know this can be done. Thanks FireFly ;)

Be sure to make this change in the next bug fix eiSecure


Quote:

Originally posted by FireFly
[B]Shouldn't it translate the vB Code back to visual when you edit a post? I can see the and all that.
Yeah I've noticed this too in some spots, there are still a few kinks to get out..

eiSecure 06-26-2002 02:34 PM

heh... now we need a BBCode to HTML conversion code. :D ^_^

Velocd 06-26-2002 02:44 PM

Quote:

Originally posted by Birdie501
Yes of course you have to register first. But after that you also have to turn it on! :)
For those of you who find it a pain to go alll the way into the usercp > options to turn on the WYSIWYG, and want the WYSIWYG set as default ON, simply run this query (hack must be installed first):
Code:

alter table user
alter column enablewysiwyg set default '1';


eiSecure 06-26-2002 02:45 PM

Note that although having it default to on can save users some time, it will also confuse your fellow Netscape/Mozilla users.

Velocd 06-26-2002 02:47 PM

I'll make a small modification, and post it up in a second, that will allow you to choose which system you want upon registration.

eiSecure 06-26-2002 02:48 PM

This hack is looking better and better every minute, thanks to you and Superman53142, Velocd.:)

Velocd 06-26-2002 03:20 PM

Check for me if this works alright eiSecure, my database is acting funny right now when I try to register (probably because I'm on a localserver):

Smoothie 06-26-2002 04:02 PM

Does this work with Mozilla, or just IE?

Superman53142 06-26-2002 04:07 PM

Quote:

Originally posted by eiSecure
heh... now we need a BBCode to HTML conversion code. :D ^_^
Waaa, I need help with this. If anyone knows how to use the [ and ] characters in Javascript without them becoming essentially arrays, help me out! I've tried using a backslash before them, using their HTML equivilant, even using the escape(); function. Nothing works :(

Velocd 06-26-2002 04:28 PM

Quote:

Originally posted by Smoothie
Does this work with Mozilla, or just IE?
I believe it does not work with Mozilla, that is why we have provided an option to turn it off for your members via usercp options.

Birdie501 06-26-2002 04:43 PM

Quote:

Originally posted by Erwin


smilies do work - upload the vbcode2.js file to your forums directory.

Ahh sorry, I forgot that :)

btw how can i have the smilies at the cursor position, i think this was mentioned in this thread but it is really hard to read all again :)

Superman53142 06-26-2002 04:50 PM

Quote:

Originally posted by Birdie501
btw how can i have the smilies at the cursor position, i think this was mentioned in this thread but it is really hard to read all again :)
I have yet to discover that, and don't think I ever will :(

As for the converting back to visual from BBCode, unless someone can help me figure out how to correctly use [ and ] in Javascript regular expressions, that will not work.

I am working on the buttons staying lit when you press them, but if you move the cursor it still stays lit; this is related to the problem with the smilies at cursor position; I don't know how to grab the position of the cursor in an iframe.

If anyone knows how to grab the position of a cursor in an iframe, then I can do at least one of the things above. At the moment, however, I'm at a standstill.

eiSecure 06-26-2002 04:55 PM

Yes, this is a very complicated piece of code, very different from the old textboxes that used to be there.

We would really appreciate it if you guys help out and bear with us if/when we find new bugs.:):bunny:

bluecat 06-27-2002 01:34 AM

Hi. I got it installed; works great. I'm wondering if anyone can tell me how to make it so Raz's Spell Checker I installed will work again. SC now doesn't show at all and I really want to keep that too if I can. Thanks.

Superman53142 06-27-2002 02:21 AM

Quote:

Originally posted by bluecat
Hi. I got it installed; works great. I'm wondering if anyone can tell me how to make it so Raz's Spell Checker I installed will work again. SC now doesn't show at all and I really want to keep that too if I can. Thanks.
I haven't installed that one, but I think that you should just follow essentially the same directions, just do it on the *_wysiwyg templates.

In the button for the spell checker, make sure you add this in the button syntax:

onClick="Save();"

Martin CX 06-27-2002 02:48 AM

It's looking awfully good, but before I go to work, do you know if your updates have alleviated my problem (quoted below) with the former version?
Quote:

3) Perhaps related to 2) - I've hacked the quote-function so I'm usually given an output that looks like this...

?skldfjsfd sdsf hh strh nnb sfdkjsdkfj
?
?skldfjsfd sfjjkdsf slfdkfsf sfdkjsdkfj
?dfjsdf dsgtretoi gjdfkgj sdf.

...when I quote. But now it seems to eat the <br>'s and output this...

?skldfjsfd sdsf hh strh nnb sfdkjsdkfj ? ?skldfjsfd sfjjkdsf slfdkfsf sfdkjsdkfj ?dfjsdf dsgtretoi gjdfkgj sdf.

eiSecure 06-27-2002 02:51 AM

Yep, that's fixed.:)

MalaK_3araby 06-28-2002 08:07 AM

This is an awsome script & is long awaited ... Thanks alot.

1- i got a Syntax Error : Line 376 Char 23 .. and this is the line:
Quote:

oImg = sImgTag<i>;
char 23 is " ; ".
I know i have done everything as pr the install .. and i reinserted the changes just in case.

2- When saving user options, value is not updated and thus not stored in the database.

3- how do i change the diretion to be "rtl".

Thanks

Birdie501 06-28-2002 11:19 AM

Look here firefly, another one with the same problem!



-----Urspr?ngliche Nachricht-----
Von: vBulletin.org Forum Mailer [mailto:post@vbhacks.com]
Gesendet: Freitag, 28. Juni 2002 05:03
An: dfdfk@dfdfak.de
Betreff: WYSIWYG Post Editor v1.0


Hello Birdie501,

LoveShack has just replied to a thread you have subscribed to entitled -
WYSIWYG Post Editor v1.0 - in the Full Releases forum of vBulletin.org
Forum.

~~~~~ NEW ~~~~~
New at vBulletin.org!
You can now reply to the thread by replying to this message. All you
need to do is to make sure this code appears in the e-mail subject:
You should also remove this text to ensure your
reply is readable by other forum users. ~~~~~ NEW ~~~~~

Here are the contents of the post: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Slightly off topic, but is anyone else getting a lot of repeated e-mail
updates about this thread? I keep getting them. It's getting to the
point where I'm going to have to unsubscribe.

Paul
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This thread is located at:
https://vborg.vbsupport.ru/showthrea...83&goto=newpos
t

There may be other replies also, but you will not receive any more
notifications until you visit the board again.

Yours,
vBulletin.org Forum team

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unsubscription information:

To unsubscribe from this thread, please visit this page:
https://vborg.vbsupport.ru/member2.p...threadid=40283

To unsubscribe from ALL threads, please visit this page:
https://vborg.vbsupport.ru/member2.p...type=allthread

Frenck 06-28-2002 02:43 PM

Well I have installed it, and I'm sorry to say it, but it really sucks.

After reading a lot of posts I noticed that the install.txt wasn't updated, so I fixed some stuff. Now it works (That's what you call works).

Some things I really don't like:
  • At first I would say it's very messy! There is javascript everywhere! (How about a single file? instead of heaving all the code in all the templates...)
  • Bad communication between the authors (example: a bad updated install.txt)
  • Editting a post, shows all normal vBcode (it's not converted)
  • The Color function appears not to work with all the colors
  • missing image/php/quote/code
  • After pressing a toolbar option, it wil not remain clicked
  • The color selection is better of intergrated instead as an popup. I isn't handy for people with popup killers..(Could be intergrated like the fonts are intergrated)
  • Option to switch from wysiwyg to normal editing mode, directly from the form? (Just a simple link?)
  • Add a browser detection? Because it doesn't work in all browsers?
  • Intergrate smileys? (As an toolbar?)
  • vBcode/Smilies are always inserted @ the end of the message (Better at the place of the cursor?)

(There is more, but was direct on my mind)

Some things I like:
  • No need to enable the HTML
  • Visual of what you are doing (Good for newbies to forums)

Well I change it back to the old fasion way, maybe if this hack is updated to a better hack, than I will install it again.

(Sorry for my bad english)

Boofo 06-28-2002 09:15 PM

Would you please let me know exactly where to put the tweaks? I don't want to mess up what looks like to be a geat hack! :)

Quote:

Originally posted by Erwin
Thanks to Superman and Firefly for the new tweaks. Works great! The text looks good, and the saving of that one query is a bonus! :) Can't wait for the other new features...

Martin CX 06-29-2002 12:43 AM

Frenck, if there is something you don't like about a hack, just improve it. I'm sure we all would like it if some of the problems you address were solved. :)

If the hack is not for you, however, there is nothing easier than not installing it. I, for one, recognize the work the authors have put it in this hack, and that the hack is still very much a work in progress. It is not perfect, but what it does, it does well, IMHO.

Nevertheless, if you could please solve some of the problems, you've listed - and I agree that you point out some very valid criticisms - you would make me (and probably yourself? ;)) a happier person.

Superman53142 06-29-2002 05:11 AM

Quote:

Originally posted by Frenck
Well I have installed it, and I'm sorry to say it, but it really sucks.
Such tact! :p
While I do appreciate your input, I don't like to be told that my work sucks :)
[*] At first I would say it's very messy! There is javascript everywhere! (How about a single file? instead of heaving all the code in all the templates...)

OK, I'll do this in a later update. I basically only wrote the switchit() function and integrated into the already existing code I was given.
[*] Bad communication between the authors (example: a bad updated install.txt)

I will create a new install.txt with complete instructions when I get some more updates done.
[*] Editting a post, shows all normal vBcode (it's not converted)

I will work on this. I'll have to do it the hard way (.substr(int,int)) because .replace(regExp, string) doesn't work correctly with [ and ]
[*] The Color function appears not to work with all the colors

This is a possibility. As I said, all I did was the function, but I will look at this tommorow as well.
[*] missing image/php/quote/code

I will put the vbCode button bar back into the template. I don't know why eiSecure removed it anyway.
[*] After pressing a toolbar option, it wil not remain clicked

This is a technical impossibility. If you were to move the cursor, the button would still remain highlighted. Until someone can figure out how to get the cursor position in an iframe, then this cannot be done.
[*] The color selection is better of intergrated instead as an popup. I isn't handy for people with popup killers..(Could be intergrated like the fonts are intergrated)

OK, should be able to use almost the same function.
[*] Option to switch from wysiwyg to normal editing mode, directly from the form? (Just a simple link?)

I am not proficient enough in understanding the vBulletin PHP coding to do this.
[*] Add a browser detection? Because it doesn't work in all browsers?

What would you like it to do? The browser detection? I can detect the browser, that's no problem, but what to do when an incompatible browser is detected?
[*] Intergrate smileys? (As an toolbar?)

I'm confused about the necessity of this? The smilies are right next to it :) I will however, have them show up as the actual smilies. I think I can do it; I'm just not sure about erasing them.
[*] vBcode/Smilies are always inserted @ the end of the message (Better at the place of the cursor?)

Does anyone know how to track the position of the cursor in an iframe? Otherwise I can't do this either.

"(Sorry for my bad english)"

You're English seemed pretty good to me :)[/B][/QUOTE]

Velocd 06-29-2002 06:58 AM

Some of you users out there may only be bad mouthing this hack because it did not work for you, and thus become fustrated so you gave us bad input, like "it really sucks". The hack works perfect, I have it installed on my forums and everything is clean. There are some very small minor bugs, such as html tags showing up some times, but I have only encountered the problem once or twice. If you installed everything perfect, you should have not encountered any serious problems. If you are really paranoid about the HTML tags, because they are showing up frequently, enable HTML in that forum and then they should disappear. So far for me my members are loving it, as it makes formatting sooo much easier. (like lists, how often do you use those on vbcode? now i'm seeing this show up more often for organization on my forums, rather than sloppy list). If I have time tomorrow I will re-write the instructions, as they might be sorta clcear, and give it to eiSecure to repost.

Erwin 06-29-2002 07:17 AM

This hack works well.

You can even use MS-Word shortcuts like Ctrl-B for bold, and Ctrl-I for italics etc.

Boofo: The tweaks are all in the thread. Just read through it - the main one is making the default font the same as your forum.

josh929 06-29-2002 08:03 AM

I'm trying to add vbcode buttons.

I removed the src=vbcode.js from the vbcode_buttons template, and added it to the non-WYSIWYG templates. Then I added the variable for $vbcode_buttons, and that worked fine.

Now, what I tried to do instead of the above was this:
Add all the code from the vbcode_buttons template EXCEPT for the src=vbcode.js thing to one of the WYSIWYG templates. It seems like this would work, since should be the same thing as above, right?

But it doesn't, and I was wondering if anyone knew why.

Any help on this would be greatly appreciated.

P.S.
The reason I wanted this to work is so that I could add only some of the vbcode buttons.

josh929 06-29-2002 08:03 AM

I'm trying to add vbcode buttons.

I removed the src=vbcode.js from the vbcode_buttons template, and added it to the non-WYSIWYG templates. Then I added the variable for $vbcode_buttons, and that worked fine.

Now, what I tried to do instead of the above was this:
Add all the code from the vbcode_buttons template EXCEPT for the src=vbcode.js thing to one of the WYSIWYG templates. It seems like this would work, since should be the same thing as above, right?

But it doesn't, and I was wondering if anyone knew why.

Any help on this would be greatly appreciated.

P.S.
The reason I wanted this to work is so that I could add only some of the vbcode buttons.


All times are GMT. The time now is 08:12 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.01552 seconds
  • Memory Usage 1,848KB
  • 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
  • (15)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