View Full Version : WYSIWYG Post Editor v1.0
eiSecure
06-24-2002, 10:00 PM
WYSIWYG Post Editor
Description:
Lets you have a Microsoft Word/FrontPage-like editing box when you reply to threads, create new threads, and/or edit posts.
Features:
- Supports BBCode
- HTML is converted to BBCode
- Gives user a visual layout of what he/she is typing
- Supports dynamic bolding/underlining/etc.
- Has cool-looking Office XP-styled buttons.:bunny:
- Allows users to choose wether to use this editor, or vB's default one.
- Makes BBCodes obsolete
- And many more...:bunny:
Installation Time:
About 20-30 minutes.
Credits:
Toolbar, Original Coding and Design: eiSecure (http://www.eisecure.com)
Debugging & HTML to BBCode Conversion: Superman53142 (http://www.aoaforums.com)
User Options for WYSIWYG: Velocd (http://www.diffusion4.com)
NOTE:UNLIKE PREVIOUS VERSIONS, THIS ONE DOES NOT REQUIRE THAT YOUR FORUM HAS HTML ENABLED IN POSTS!:)
You can view a demo of the hack in action here: http://forums.eisecure.com
If you encounter any problems or if anything doesn't work right, or if the instructions aren't correct, then please post them here.
If you want to limit this hack to people who are using IE5.5 or above, click here (https://vborg.vbsupport.ru/showthread.php?postid=268206#post268206) for instructions.
Thanks,
Alex
Superman53142
06-25-2002, 09:01 PM
Cool. I'm installing right away :)
Velocd
06-25-2002, 09:19 PM
Does the VBcode work though? Such as typing [php] will auto format? And also how about smilies? Will clicking on them insert them into the editor? Other than those two issues, this is defiantly excellent!
One request though: In the original WYSIWYG editor that was posted up in the request section, it had a feature to upload an image by browsing for it on your computer. Any way to implement that?
Velocd
06-25-2002, 09:25 PM
Oh, and eiSecure you might want to clean up the install.txt file, it's a bit sloppy and hard to follow (kinda crunched up).
;)
eiSecure
06-25-2002, 09:34 PM
Originally posted by Velocd
Does the VBcode work though? Such as typing [php] will auto format? And also how about smilies? Will clicking on them insert them into the editor? Other than those two issues, this is defiantly excellent!
One request though: In the original WYSIWYG editor that was posted up in the request section, it had a feature to upload an image by browsing for it on your computer. Any way to implement that? Yes, VBCode works fine, however, it is not displayed. What you see on the page is HTML, but when you submit, it's automatically converted to BBCode, so there shouldn't be any security issues there.:)
Smilies will auto-insert, but again, they won't be displayed images.
Images would be possible, if there is a way for the user to upload multiple files to the server.
Also, since you say the install is messy, how about you make one?;) :cool: :bunny:
Velocd
06-25-2002, 09:55 PM
Originally posted by eiSecure
Also, since you say the install is messy, how about you make one?;) :cool: :bunny:
hmmmmmmm....did I say sloppy? I meant it's perfect, *cough*but could be better*cough*. I'm busy at the moment though, and I'm sure people will be able to navigate their way through it (hopefully not destroying their forums in the process--j/k ;))
Originally posted by eiSecure
Yes, VBCode works fine, however, it is not displayed. What you see on the page is HTML, but when you submit, it's automatically converted to BBCode, so there shouldn't be any security issues there.:)
Smilies will auto-insert, but again, they won't be displayed images.
Clickable smilies are not working for me :(
Sure, I can type a smilie face, which is basically a : and (, but the left box with smilies in them does not work when you click on it. Instead, I get a run time error my Microsoft Script Debugger picks up...
One solution to this is fixing it so the [get more] link works also, because it doesn't for me :( Once that works, users will at least know what vbcode to type to get a smilie to work.
Attached is a screenshot of the problem.
ALSO: where did the alignment button go? That was way cool, but now its gone...:(
Superman53142
06-25-2002, 09:55 PM
BTW, I'm working on an update (some people like to rush out with releases ;)) that will insert the smilies as pictures into the WYSIWYG editor for visual purposes :)
Also, there is a bug in the templates that I noticed. You will have to add the following to all of the ****_wysiwyg templates:
<script language="Javascript" src="vbcode2.js"></script>
<script language="Javascript" src="vbcode_language.js"></script>
Alex is gonna fix the files ASAP :)
eiSecure
06-25-2002, 09:57 PM
It's already fixed.:)
Just update your _wysiwyg templates with the ones in the first post.
Superman53142
06-25-2002, 09:57 PM
Originally posted by Velocd
Clickable smilies are not working for me :(
Sure, I can type a smilie face, which is basically a : and (, but the left box with smilies in them does not work when you click on it. Instead, I get a run time error my Microsoft Script Debugger picks up...
ALSO: where did the alignment button go? That was way cool, but now its gone...:(
First paragraph, see my last post. I just got this installed too :p
Was using outdated versions of the templates for coding purposes.
Also, there is no (that I know of, help me out here guys :)) equivilant "center" or "right" function for vbCode.
eiSecure
06-25-2002, 09:58 PM
Originally posted by Velocd
hmmmmmmm....did I say sloppy? I meant it's perfect, *cough*but could be better*cough*. I'm busy at the moment though, and I'm sure people will be able to navigate their way through it (hopefully not destroying their forums in the process--j/k ;))
Clickable smilies are not working for me :(
Sure, I can type a smilie face, which is basically a : and (, but the left box with smilies in them does not work when you click on it. Instead, I get a run time error my Microsoft Script Debugger picks up...
One solution to this is fixing it so the [get more] link works also, because it doesn't for me :( Once that works, users will at least know what vbcode to type to get a smilie to work.
Attached is a screenshot of the problem.
ALSO: where did the alignment button go? That was way cool, but now its gone...:( heh..it was a bug caused by your addon.:p
It's fixed now. The align buttons were removed because they were supported only by HTML, and not BBCode.
You can still use tabs, though.:)
Superman53142
06-25-2002, 10:03 PM
Originally posted by eiSecure
heh..it was a bug caused by your addon.:p
Actually, it wasn't :p
It was caused by you removing the vbCode section, which is where the vbcode2.js script was included :D
eiSecure
06-25-2002, 10:04 PM
Well, it was because I was thinking about his addon, which made me not pay attention to my coding.:p
Velocd
06-25-2002, 10:04 PM
Originally posted by Superman53142
BTW, I'm working on an update (some people like to rush out with releases ;)) that will insert the smilies as pictures into the WYSIWYG editor for visual purposes :)
Also, there is a bug in the templates that I noticed. You will have to add the following to all of the ****_wysiwyg templates:
<script language="Javascript" src="vbcode2.js"></script>
<script language="Javascript" src="vbcode_language.js"></script>
Alex is gonna fix the files ASAP :)
So...wait--Alex says in the next post that he fixed it. I'm not seeing the changes though in the newthread.txt or newreply.txt..
also, I'm not sure why the bug was caused, but if this is the solution then the edits to function.php and calling the query are not needed.
eiSecure
06-25-2002, 10:05 PM
It's fixed in the updated download.:)
eiSecure
06-25-2002, 10:06 PM
Originally posted by Velocd
also, I'm not sure why the bug was caused, but if this is the solution then the edits to function.php and calling the query are not needed. Good point.:)
* eiSecure updates the crummy install.txt file
Superman53142
06-25-2002, 10:07 PM
Originally posted by Velocd
So...wait--Alex says in the next post that he fixed it. I'm not seeing the changes though in the newthread.txt or newreply.txt..
also, I'm not sure why the bug was caused, but if this is the solution then the edits to function.php and calling the query are not needed.
Indeed, they are not if you hard code them into the template, which is essentially what was done :p
I could rewrite it so that it is included in some other include, but I think hardcoding is just easier.
eiSecure
06-25-2002, 10:08 PM
Saves you a DB query, too.:)
Superman53142
06-25-2002, 10:09 PM
Originally posted by eiSecure
Good point.:)
* eiSecure updates the crummy install.txt file
Alex, remove the line where it says you have to change vbcode_buttons, as well.
eiSecure
06-25-2002, 10:10 PM
yep, done that, too.
Velocd
06-25-2002, 10:16 PM
Works excellent now, the hack is finally 100% full working and bug free :)
eiSecure
06-25-2002, 10:18 PM
Thanks.:)
Now... to get FireFly to install this hack here...:D
Velocd
06-25-2002, 10:19 PM
Heh, not gonna happen, only the best hacks he installs (generally made by him ^_^)
Also he rather grow old and wait for VB3.
Superman53142
06-25-2002, 10:21 PM
Originally posted by Velocd
Works excellent now, the hack is finally 100% full working and bug free :)
Not quite. There's an error with quoting. I'm working on it :)
eiSecure
06-25-2002, 10:21 PM
hmm... We'll see about that...
* eiSecure takes out wallet and starts combing through money...;)
eiSecure
06-25-2002, 10:23 PM
What's the error? I don't see any error...:confused:
Erwin
06-25-2002, 10:26 PM
Aha! There you have it! :D
Installing immediately...
Superman53142
06-25-2002, 10:27 PM
Error corrected :)
I have emailed Alex the updated version.
eiSecure
06-25-2002, 10:29 PM
Okay, if you just installed this hack, after you finish installing, please re-download it, and re-apply the templates.:)
Superman53142
06-25-2002, 10:31 PM
Originally posted by eiSecure
Okay, if you just installed this hack, after you finish installing, please re-download it, and re-apply the templates.:)
That's a pain in the butt. The only thing changed is the switchit() function. If you know what you're doing, just change that. Here's the updated version:
EDIT: Darn it. It replaced some of the code. You'll have to download the updated versions.
Velocd
06-25-2002, 10:48 PM
Another bug fix? d'oh! But hopefully this will be the last ;)
eiSecure
06-25-2002, 10:50 PM
Yep...hopefully.:)
Superman53142
06-25-2002, 10:52 PM
Originally posted by Velocd
Another bug fix? d'oh! But hopefully this will be the last ;)
It should be. Every other function was tested pretty thouroughly (did I spell that right?). Of course, I did test some of it at 1AM last night :p
Parker Clack
06-25-2002, 11:06 PM
Guys:
I love how it looks and works but everytime I use it double spaces the text, which I hit the return instead of single space, in the body of the textarea. If I type a one long sentence it will
wrap the text to the next line but if I hit the return key it will double space each time.
--Parker
Velocd
06-25-2002, 11:25 PM
I've noticed this too, any solution eiSecure?
eiSecure
06-25-2002, 11:28 PM
Yeah, there's an explanation for it...
This was made to function exactly like MS Word. To make it a single line break, just hold Shift and press Enter, just like in MS Word!:)
It's not a bug..it's a feature...;)
Velocd
06-25-2002, 11:46 PM
eiSecure there are still some bugs I'm noticing with HTML disabled. If I use a single space (shift enter) then a double space right after, in the thread show it will show <br> tags....
Superman53142
06-25-2002, 11:51 PM
Originally posted by Velocd
eiSecure there are still some bugs I'm noticing with HTML disabled. If I use a single space (shift enter) then a double space right after, in the thread show it will show <br> tags....
I'll take a look. I didn't exactly know about the Shift-enter thing when I was writing the conversion code :p
EDIT: I am unable to reproduce this problem. Also, with the fix for the quoting error, that is an impossible problem, as all <br>'s are converted to "\n"'s.
Superman53142
06-25-2002, 11:58 PM
Originally posted by Parker Clack
Guys:
I love how it looks and works but everytime I use it double spaces the text, which I hit the return instead of single space, in the body of the textarea. If I type a one long sentence it will
wrap the text to the next line but if I hit the return key it will double space each time.
--Parker
The reason it is like this is because the WYSIWIG editor is like a pre-programmed part of IE. It's impossible (as far as I know :)), to change their settings for what the return key does. I coded the conversion scripts so that it replaces the <P></P> tags with double-spaces (\n\n, essentially) so that it would look the same as it did on the editor when you posted. As Alex (eiSecure) knew, you can press Shift-enter to get a single space (<br>), and this is converted to a single-space (\n) when you post.
eiSecure
06-26-2002, 12:07 AM
I didn't 'discover', I 'knew'. ^_^
:bunny::p;):p:bunny:
Superman53142
06-26-2002, 12:20 AM
Originally posted by eiSecure
I didn't 'discover', I 'knew'. ^_^
:bunny::p;):p:bunny:
I stand corrected! :p
eiSecure
06-26-2002, 12:23 AM
What does that mean?;)
DestyNova
06-26-2002, 02:04 AM
Good job! I test it on local and host, it works perfect! I test it most of this and it work well.
Thanks!
Install!
cant wait to add these vbcodes and smiles! :D
Superman53142
06-26-2002, 02:20 AM
Originally posted by DestyNova
Good job! I test it on local and host, it works perfect! I test it most of this and it work well.
Thanks!
Install!
cant wait to add these vbcodes and smiles! :D
Cool, good thing it works for you :)
Keyser S?ze
06-26-2002, 02:43 AM
Originally posted by eiSecure
Yeah, there's an explanation for it...
This was made to function exactly like MS Word. To make it a single line break, just hold Shift and press Enter, just like in MS Word!:)
It's not a bug..it's a feature...;)
thats not really true, in word unless u tell it to double space the default is to single space
now in front page, the default is to double space, u have to hold down the shift key and hit enter to get it to single space
i think thats what u meant eh?
well now that the html thing is fixed ill be installing this hack once again very soon, great job!
Vivi Ornitier
06-26-2002, 03:05 AM
hmmm . . this hack i sreally nice, but what about inserting images, php and stuff like that? lol, hopefully that'll come?
Excellent to see this up and going!
A few slight problems that I've noticed so far:
In the install.txt, it tells you to create a directory under images called "toolbars" ... this should be "toolbar"
Smilies appear to be not working. I thought someone said this was fixed? Perhaps it's not in the zip yet?
Pressing "Bold" etc. will not remain "clicked" to let you know that bold is currently selected. From viewing dhtmleditor this appears to be possible. Would it be possible in this version as well? (remain highlighted in blue if it's selected).
Many thanks for such great work! :D
Paul
Superman53142
06-26-2002, 03:23 AM
Smilies should be fixed in the download link in the original post. If you're getting an error on line 1 or whatever, then add <script langauge="Javascript" src="vbcode2.js"> into your body somewhere. About the pressing bold thing, I agree it could be done. I will look into that tomorrow; I'm pretty tired tonight and can't concentrate.
EDIT: The download isn't updated, LOL. I'll spit us out a brand-spanking-new version that should fix that :cool: :)
Superman53142
06-26-2002, 03:35 AM
Here are the three templates that you'll need:
EDIT: If all is well on your forum, then you don't need these :)
I tried with the new templates.zip and am getting an "Object expected" error.
Perhaps vbcode2.js isn't updated?
Edit: I compared my vbcode2.js with the one on your forums and they are the same. Perhaps it's an error with the templates then? I'll try reinserting them.
DestyNova
06-26-2002, 03:53 AM
Originally posted by LoveShack
Excellent to see this up and going!
A few slight problems that I've noticed so far:
In the install.txt, it tells you to create a directory under images called "toolbars" ... this should be "toolbar"
Smilies appear to be not working. I thought someone said this was fixed? Perhaps it's not in the zip yet?
Many thanks for such great work! :D
Paul
Yeah I plan to add when I m done with test this hack..
That s one "toolbar" not toolbars
And eiSecure seem forget to add this to his install.txt, it didnt say anything about vbcode2.js All you need to do is put it in forum directory (where you put selcolor.html) click smiles will be work.
Yeah I agree with LoveShack about highlight or something cuz it does throw me off too, I m not sure it is error until I type :D
btw it is excellent hack
I reapplyed the new templates.zip and still am having the line 0 object expected error. Can anyone else confirm this?
Superman53142
06-26-2002, 04:13 AM
Originally posted by LoveShack
I reapplyed the new templates.zip and still am having the line 0 object expected error. Can anyone else confirm this?
What's your forum address? I'll take a quick look.
Erwin
06-26-2002, 04:16 AM
Great! I've installed it, and my members love it.
I agree about keeping the buttons depressed when clicked - let me know when someone has worked that out. Now I need to figure out how to integrate all my custom vBCode buttons into this new format (things like glow, shadow etc). :p I will also try to integrate this into PM and my sig editor too.
Thanks for a great hack!
Erwin
06-26-2002, 04:34 AM
Btw, superman, do I know you from somewhere? ;) How did you find out about my forums?
Superman53142
06-26-2002, 04:36 AM
Originally posted by Erwin
Btw, superman, do I know you from somewhere? ;) How did you find out about my forums?
I think it was Yahoo when I was doing a search. My forum deals with Hardcore Computing, and I figured it would be cool to get involved in a forum that deals with my major "interest," for lack of a better word :p
EDIT: See your thread in Announcements. You should be able to add at least the default vbCode buttons in without a problem.
Velocd
06-26-2002, 04:44 AM
I agree, having buttons pressed down when you click on them like Microsoft Word would be probably the last excellent feature this hack needs to be complete. How about it eiSecure :p
I will also try to integrate this into PM and my sig editor too.
When you do Erwin could you post the templates for them? It would be of great help ;)
Originally posted by Vivi Ornitier
hmmm . . this hack i sreally nice, but what about inserting images, php and stuff like that? lol, hopefully that'll come?
All Vbcode tags are functionable in this editor, but there are no buttons for most of them. You have to type them in manually, such as for PHP use [*php][/php] (wo/asterik ofcourse), and upon submit everything will work out fine.
Originally posted by LoveShack
Excellent to see this up and going!
A few slight problems that I've noticed so far:
In the install.txt, it tells you to create a directory under images called "toolbars" ... this should be "toolbar"
Smilies appear to be not working. I thought someone said this was fixed? Perhaps it's not in the zip yet?
Pressing "Bold" etc. will not remain "clicked" to let you know that bold is currently selected. From viewing dhtmleditor this appears to be possible. Would it be possible in this version as well? (remain highlighted in blue if it's selected).
Many thanks for such great work! :D
Paul
If you install everything from the zip provided in post #1 then all should work fine. Try clearing your cache then redownloading the zip. Things to make sure is that no modifications are made to functions.php, and that you have uploaded vbcode2.js to your forums root folder, insuring that vbcode.js is still there.
Erwin
06-26-2002, 04:47 AM
Heheh... saw your post.
I think I WILL add the vbcodes back... I was thinking of integrating them ie. making them WYSIWYG - eg. with glow. Shouldn't be too hard.
Also, another thing:
Can you make it so that the new vbcode is compatible with the vbcode hack where smilies are placed where the cursor is rather than at the end of the message?
The hack is this one:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=24033
I am already running it, and switching back to the old one where smilies are placed at the end of the message is irritating.
Superman53142
06-26-2002, 04:49 AM
Just for the record, if you add the vbCode buttons back into the wysiwyg templates, they will work; the vbcode2.js file supports it. However, you will have to move the line in vbcode_buttons that says:
<script language="Javascript" src="vbcode.js">
to all the non-wysiwig templates and delete it from that template.
Superman53142
06-26-2002, 04:51 AM
Originally posted by Erwin
Heheh... saw your post.
I think I WILL add the vbcodes back... I was thinking of integrating them ie. making them WYSIWYG - eg. with glow. Shouldn't be too hard.
Also, another thing:
Can you make it so that the new vbcode is compatible with the vbcode hack where smilies are placed where the cursor is rather than at the end of the message?
The hack is this one:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=24033
I am already running it, and switching back to the old one where smilies are placed at the end of the message is irritating.
I'll give it a shot. I've got nothing else to do :)
Erwin, it doesn't look like it's possible using the old technique. I tihnk it can be done if I can capture the position of the cursor in the iframe. If anyone knows how to do this, then it can be done. I'm not sure that we can capture the position of the cursor in an iframe.
Velocd
06-26-2002, 05:04 AM
Hey Superman, any idea of how I can get the default font to be Verdana instead of Times New Roman? Since that is what most of my members are used to. Also, have you noticed or not if the default size is the normal size? If not, it would be great to preset that to the normal vbulletin size.
Superman53142
06-26-2002, 05:07 AM
Originally posted by Velocd
Hey Superman, any idea of how I can get the default font to be Verdana instead of Times New Roman? Since that is what most of my members are used to. Also, have you noticed or not if the default size is the normal size? If not, it would be great to preset that to the normal vbulletin size.
I think it can be done. The default font is correct for Times New Roman, and when submitted, if you don't select a size, it will print out no size, hence Verdana will be the default size, even though it is a bigger font than Times New Roman. If I were to make Verdana the default, it would be Verdana, size 2 (which should be about 10px or so).
EDIT: OK, I have this done. I will release it tomorrow along with the other requests. I know it would be a MAJOR pain in the butt to upgrade everytime a new request was furfilled, so I prefer to do lump upgrades. Does anyone else think Alex (eiSecure) is going to be very surprized at the number of changes that will be done by the time he wakes up tomorrow :p
Superman53142
06-26-2002, 05:18 AM
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>");
Admin
06-26-2002, 05:33 AM
You can just replace this:
$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:
if($bbuserinfo['enablewysiwyg']) {
eval('dooutput("'.gettemplate('newthread_wysiwyg').'");');
} else {
eval('dooutput("'.gettemplate('newthread').'");');
}
No query needed.
Superman53142
06-26-2002, 05:34 AM
So $bbuserinfo works like one of the super-duper-global PHP variables like $HTTP_POST_VARS?
Superman53142
06-26-2002, 05:36 AM
I'm outta here. I'll be back in the morning; it's pretty late here.
Admin
06-26-2002, 05:37 AM
In the install file it says:
11. Extract all the images included in this zip to a new folder called 'toolbars' under your forum's images folder.
They need to be in the 'toolbar' folder, actually.
Admin
06-26-2002, 05:39 AM
Originally posted by Superman53142
So $bbuserinfo works like one of the super-duper-global PHP variables like $HTTP_POST_VARS?
No, but $bbuserinfo is an array that contains all information from the user and userfield tables for the browsing user.
Anyway, just finished installing this on my local machine. What can I say... touche. :)
Superman53142
06-26-2002, 05:42 AM
Originally posted by FireFly
No, but $bbuserinfo is an array that contains all information from the user and userfield tables for the browsing user.
Anyway, just finished installing this on my local machine. What can I say... touche. :)
Make the default text Verdana, it looks too sweet!!! Thanks to VeloCD for the idea. I posted like a few posts up on how I did it; just idContent.document.write("<STYLE>BODY { font-family: Verdana; font-size: 12px }</STYLE>");
Admin
06-26-2002, 05:44 AM
Shouldn't it translate the vB Code back to visual when you edit a post? I can see the [b] and all that.
Admin
06-26-2002, 05:45 AM
Originally posted by Superman53142
Make the default text Verdana, it looks too sweet!!! Thanks to VeloCD for the idea. I posted like a few posts up on how I did it; just idContent.document.write("<STYLE>BODY { font-family: Verdana; font-size: 12px }</STYLE>");
Yes I already did that, and it does look very very good. Great job like I said.
Superman53142
06-26-2002, 05:46 AM
Originally posted by FireFly
Shouldn't it translate the vB Code back to visual when you edit a post? I can see the [b] and all that.
Hehe, that would require more work :p
I'll put it on my list of "Things to do today" for tomorrow :)
I just hope OpenSSH doesn't release their patch tomorrow; otherwise I have a lot to do :(
Virix
06-26-2002, 05:49 AM
3.3 is already out... Don't expect 3.3p1 till about friday.. Vendors are still sending patchs...
Superman53142
06-26-2002, 05:52 AM
Originally posted by Virix
3.3 is already out... Don't expect 3.3p1 till about friday.. Vendors are still sending patchs...
I'm waiting for 3.4 or the eqivilant with the vuln completely fixed without a dumb workaround.
They are on 3.3p1 right now. I hate upgrading SSH since that's how I connect to the server, LOL, and if I screw that up...
Virix
06-26-2002, 05:55 AM
Ahh they've already released 3.3p1.. Hmm.. When 3.3 was released they said they were going to release 3.3p1 to fix the problems 3.3 had with some vendors...
BTW: its not really a work around, its just a feature you enable in the sshd conf...
You get used to installing stuff like ssh and kernels after you do it to 20 machines :D
And if your scared it might mess up, install it on another port first and see if it works, and move it over, or enable telnet as a backup :D
Superman53142
06-26-2002, 05:59 AM
Originally posted by Virix
or enable telnet as a backup :D
Yeah, that's what one of the other admins at my forum recommended. That'll be what I end up doing. I just don't wanna have to do it twice, LOL.
I'm really off to bed this time; it's almost 2am here :eek:
Floris
06-26-2002, 06:49 AM
You can view a demo of the hack in action here: http://forums.eisecure.com
.. no I can't :)
Birdie501
06-26-2002, 07:16 AM
Originally posted by xiphoid
You can view a demo of the hack in action here: http://forums.eisecure.com
.. no I can't :)
Did you turn it on in your profile? :)
BigJohnson
06-26-2002, 07:54 AM
I am sorta lost in the difference between this hack and the other one. Can someone please help me out here and explain. Thanks.
Birdie501
06-26-2002, 09:17 AM
hi, just installed, works fine, but the smilies don't work!??
Will this be fixed?
Smoothie
06-26-2002, 09:35 AM
Originally posted by Birdie501
Did you turn it on in your profile? :) I think he means you have to register there first.
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
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
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
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
Originally posted by FireFly
You can just replace this:
$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:
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
Originally posted by FireFly
Shouldn't it translate the vB Code back to visual when you edit a post? I can see the [b] 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
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):
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
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
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
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
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
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?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:
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/showthread.php?threadid=40283&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.php?action=usub&threadid=40283
To unsubscribe from ALL threads, please visit this page:
https://vborg.vbsupport.ru/member2.php?action=usub&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! :)
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
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.
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.
eiSecure
06-29-2002, 03:04 PM
Just a note to the person who said this hack 'sucks'.
If you downloaded the lastest copy of the install file that's on the first post, you will see that it contains almost every single update that's been talked about in these 9 pages.
If you were less ignorant of topics such as PHP and JavaScript, you will see how foolish your demands were.
Not only were you rude in making those requests, you were completely selfish, thinking only about how you can sit on your couch all day and not have to do a single thing while you tell us to make all the modifications for you.
If you don't like the condition of the original hack, then shut up, leave, and don't install it.
If you have any respect at all you'll see that we are not full-time vB hackers, we have jobs to do, and we can't possibly have the time to fully support a hack like how Jelsoft supports vBulletin.
We are real people, with lives outside of a computer, which means that we do not have that much time to support our hacks. If we can't even support all of our hacks, what makes you think that we will spend countless hours of our lives trying to outhack Microsoft Internet Explorer and accomplish something that can't even be done (cursor position in iFrame) without either finding a backdoor or do what you do, and write nasty emails to Microsoft, forcing that they spend countless resources and update their free browser.
Boofo
06-30-2002, 02:23 PM
The reason I asked is because I wanted to make sure I was doing it right and not going blindly into it. I'm still learning about PHP code and don't always feel comfortable messing with stuff I don't understand completely. Hopefully, I didn't mess anything up but I think I got it done.
Originally posted by Erwin
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.
eiSecure
06-30-2002, 02:52 PM
All the updates are included in the first post on this thread.
The only thing that's not included is the part for making the font the same as your forum.
Boofo
06-30-2002, 03:08 PM
I did that in all three WYSIWYG files. I also changed the query in all three files (with the appropriate names in them) to what Firefly posted. Is that ok to do? :)
Originally posted by eiSecure
All the updates are included in the first post on this thread.
The only thing that's not included is the part for making the font the same as your forum.
Superman53142
06-30-2002, 03:37 PM
Originally posted by eiSecure
and accomplish something that can't even be done (cursor position in iFrame)
Actually, I think it *might* be possible. This forum was down yesturday, but I believe the regular smilies hack used createRange() which is supported by iframes. We'll have to see.
EDIT: w00t! Excellent news. It appears that I am able to insert smilies at the cursor position in a test page I have created using an iframe editor. I pretty much had to copy the vbcode.js from the other hack and do some modifications. Cool beans. I'll get it in there in the next update.
I could be mistaken, but haven't you guys forgotten to put this in your install.txt:
Copy vbcode2.js to the root of your forums dir.
It's not in there, is it? :p
Boofo
06-30-2002, 04:45 PM
When you type your message and want to edit the words size or font, after you make the first word, for example, size 5, if you want to change another word to size 5 also, you have to select something else, for example size 2, before you can then select size 5 again and have it take effect. This works the same way on the font. Is there any way to have it reset to the default size and font after each change like Word does?
Also, could paragraph alignments, left, right and center, be implemented fairly easily? That would make a great addition to an already fantasic hack! :)
eiSecure
06-30-2002, 06:22 PM
Paragraph alignments cannot be made, as the current BBCodes do not support them.
They will be supported in vB3, which ironically, will include this hack.
Boofo
06-30-2002, 06:33 PM
I kindof figured that, but the wife wanted me to ask. You made a fan out of her on this one. :)
Can the font and size be set back to default after use, though?
Any way to put those back in? I tried to do as was suggested in a previous thread and received numerous jscript errors.
eiSecure
06-30-2002, 07:28 PM
huh? I'm kinda confuesd about what you two are asking... :confused:
Sorry, here goes again:
The standard buttons from the old editor, Quote and IMG, is there an easy way of hacking those into your WYSIWYG editor? I installed the editor, and my users are split half and half between loving it, and switching it off because they're missing those two buttons.
eiSecure
06-30-2002, 07:35 PM
Yes, it is possible to add thoes buttons to the toolbar. However, they will only print out the vBCode, and not show how they will look when the user submits the form.
Erwin
06-30-2002, 07:38 PM
Superman - care to share your vbcode.js for the cursor position??? :)
Boofo
06-30-2002, 07:47 PM
If you select a different font and/or size for one of the words in a message after you have written it and want to edit it before sending it, it will set it fine. But if you go to do another word right after that, it is still set to what it was on the last word instead of going back to the default size like when you first came into the message. Sorry if it sounds confusing but the wife did the best she could at explaining it with what she had (me). :)
Originally posted by eiSecure
huh? I'm kinda confuesd about what you two are asking... :confused:
Superman53142
06-30-2002, 08:05 PM
Originally posted by Boofo
If you select a different font and/or size for one of the words in a message after you have written it and want to edit it before sending it, it will set it fine. But if you go to do another word right after that, it is still set to what it was on the last word instead of going back to the default size like when you first came into the message. Sorry if it sounds confusing but the wife did the best she could at explaining it with what she had (me). :)
OK, I see what you're saying. Now that I know how to do the cursor thing I should be able to get this and the depressed B/I/U buttons done.
Superman53142
06-30-2002, 08:06 PM
Originally posted by Erwin
Superman - care to share your vbcode.js for the cursor position??? :)
Not done yet. I just have a prototype finished. Basically I made a blank page with an iframe and neutered the vbcode.js so I had just the relevant functions and I was able to get it to work. I have to be at my church in about 30 minutes, but I'll see if I can't bang out some code super-fast :)
Boofo
06-30-2002, 08:11 PM
If you can get that done then maybe I won't get a beatin' from the wife tonight. You just might have saved me from the horror. :)
Originally posted by Superman53142
OK, I see what you're saying. Now that I know how to do the cursor thing I should be able to get this and the depressed B/I/U buttons done.
Superman53142
06-30-2002, 08:22 PM
OK, I don't have the B/I/U thing done yet, but here is the code to put the smily at the cursor position. It may be buggy: I don't have time to thouroughly test it right now. Also the pop-up smily box won't work correctly.
First of all, you need to find the line in the ****_wysiwyg templates that says:
<iframe width=......>
Add this to the end of that line before the >:
onblur="getActiveText(this);"
Then use the updated vbcode2.js attached. Make a backup of your previous copy of vbcode2.js before uploading this one in case it doesn't work. Works fine on my forum. :)
EDIT: Oops! Forgot to give credit to the original creator of the hack to insert the smilies at the cursor! Thanks!
Erwin
07-01-2002, 01:22 AM
Works beautifully!!!
You are indeed Superman of Javascript! ;)
Superman53142
07-01-2002, 01:38 AM
Originally posted by Erwin
Works beautifully!!!
You are indeed Superman of Javascript! ;)
LOL, I guess that's what happens when you are oblivious to the existance of PHP for a few years :) :p
I'm happy that it's working well for ya :)
Birdie501
07-01-2002, 05:52 AM
Thanks!!!!!! You make my life easier till vb3 comes out :-)
WallStreat
07-02-2002, 07:07 AM
This is a great hack & i took the liberty to amend some of the codes to suit my needs i.e. instead of allowing users to choose to use this editor (which requires amending the database), this editor will show only if user's browser is Microsoft IE version 5.5 (windows version) & above:
Open global.php, and find the following:
-----
// ###################### Start sessions #######################
-----
Add above it with this code:
-----
// // HTMLEdit Hack
if (eregi("Win",$HTTP_USER_AGENT) && (eregi("MSIE 5.5",$HTTP_USER_AGENT) || eregi("MSIE 6.",$HTTP_USER_AGENT))) { // browser is Win IE 5.5 & abv
$enableHTMLEdit = 1;
} else {
$enableHTMLEdit = 0;
}
// // HTMLEdit Hack
3. Open newthread.php, and find the following:
-----
eval("dooutput(\"".gettemplate("newthread")."\");");
-----
Replace it with this code:
-----
if($enableHTMLEdit == 1){ eval("dooutput(\"".gettemplate("newthread_wysiwyg")."\");");
} else { eval("dooutput(\"".gettemplate("newthread")."\");"); }
-----
4. Open newreply.php, and find the following:
-----
eval("dooutput(\"".gettemplate("newreply")."\");");
-----
Replace it with this code:
-----
if($enableHTMLEdit == 1) { eval("dooutput(\"".gettemplate("newreply_wysiwyg")."\");");
} else { eval("dooutput(\"".gettemplate("newreply")."\");"); }
-----
5. Open editpost.php, and find the following:
-----
eval("dooutput(\"".gettemplate("editpost")."\");");
-----
Replace it with this code:
-----
if($enableHTMLEdit == 1) { eval("dooutput(\"".gettemplate("editpost_wysiwyg")."\");");
} else { eval("dooutput(\"".gettemplate("editpost")."\");"); }
-----
-----
eiSecure
07-02-2002, 01:05 PM
That's a very nice mod!:)
Birdie501
07-02-2002, 01:27 PM
@eisecure
can you update the install file with the modification from Wallstreat ? Thanks!
@wallstreat
i wanted this and never found. I gonna include this to my index page as well. Thanks!
eiSecure
07-02-2002, 03:09 PM
Well, I'm going to release the install file with full updates and everything, so people don't have to keep on updating their installations.
I'm going to put a link to this post for now, and when we have a few of the other bugs worked out, I'll release an official update to it.:)
BigJohnson
07-02-2002, 03:37 PM
With the new big update eiSecure your saying your going to release. Will it have the mod that wallstreet had or is it going to have the way it was made to be with the usercp because I really like wallstreets idea with the mod.
eiSecure
07-02-2002, 03:57 PM
It'll probably be Wallstreet's hack, but I'm not too sure just yet...
What are some other people's experiences with Wallstreet's mod?
Superman53142
07-02-2002, 04:08 PM
Hey, Alex, I've still got a few more things coming up, so as soon as I get those done we can release a 1.1 version.
Birdie501
07-02-2002, 06:08 PM
Originally posted by eiSecure
What are some other people's experiences with Wallstreet's mod? [/B]
*updated* it works for me
i just tried to install but it doesn't seem to work for me.
I have Win Xp with IE 6.0 but the code does not recognize me as IE 5.5+ user?????
I also think it is the best to combine the mod from Wallstreat and the possibility to disable this hack. I tried this:
if ( ($enableHTMLEdit == 1) AND ( ($bbuserinfo['enablewysiwyg']) ) ) {
eval("dooutput(\"".gettemplate("newthread_wysiwyg")."\");");
} else {
eval("dooutput(\"".gettemplate("newthread")."\");");
}
and it works!
For all German speaking users i attached two german buttons for bold and italic :)
Velocd
07-02-2002, 06:28 PM
Great job Wallstreet, that defiantly helps! Alot of my members still didn't really know about the WYSIWYG editor because they had to switch it on, mostly the new registered users. One small problem is this WYSIWYG still has some bugs I and my members have noticed, if a member just doesn't want to use it I don't want to force them to install some older browser, I like to give them the option of turning it off....but that requires calling some queries.
Another problem though, you said it checks if the browser is older than IE 5.5, but what about other browsers? I know alot of people use Mozilla, and as I last heard Mozilla 1.0 isn't compatible with the WYSIWYG, will it also check this and bypass it?
If you start a thread and forget to enter a subject, your text disappears.
With the old editor, you could click the back button and the text would still be there - not with this editor.
Could you fix that, in any way?
Birdie501
07-02-2002, 06:36 PM
Originally posted by Larz
If you start a thread and forget to enter a subject, your text disappears.
With the old editor, you could click the back button and the text would still be there - not with this editor.
Could you fix that, in any way?
I think this was also with the old editor, wasn't it?
Nah Birdie, the old editor checks for a subject when you press submit - and stops you if there isn't one.
Only with the new editor is text lost.
Birdie501
07-02-2002, 07:50 PM
@Larz
just do this:
search the function validate(theform)
and replace it with this:
sorry you have to translate back in english :)
function validate(theform) {
set_x();
switchit();
if (vbform.message.value=="") {
alert("Bitte einen Nachrichtentext eingeben.");
return false; }
if (theform.subject.value=="") {
alert("Bitte einen Betreff eingeben.");
return false; }
if (postmaxchars != 0) {
if (theform.message.value.length > $postmaxchars) {
alert("Deine Nachricht ist zu lang.\n\nBitte Nachricht auf $postmaxchars Zeichen reduzieren.\nMomentan sind es "+theform.message.value.length+" Zeichen.");
return false; }
else { return true; }
} else { return true; }
}
Did you check my nationality or smth?
Es ist doch gut das ich ein bischen Deutsch sprichts, und das ich viel verstehe. :) (and have absolutely no clue about your stupid grammar :alien: )
Translated:
function validate(theform) {
set_x();
switchit();
if (vbform.message.value=="") {
alert("Please fill out the message.");
return false; }
if (theform.subject.value=="") {
alert("Please specify a subject.");
return false; }
if (postmaxchars != 0) {
if (theform.message.value.length > $postmaxchars) {
alert("Your message is too long.\n\nPlease limit the text to $postmaxchars characters.\nYour text is"+theform.message.value.length+" characters long.");
return false; }
else { return true; }
} else { return true; }
}
Just wanna add, it works perfectly. :)
Birdie501
07-02-2002, 08:02 PM
:)
But please keep in mind not to copy this to newreply_wysiwyg template because otherwise the subject field is no longer optional.
Birdie501
07-02-2002, 11:12 PM
Originally posted by FireFly
You can just replace this:
$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:
if($bbuserinfo['enablewysiwyg']) {
eval('dooutput("'.gettemplate('newthread_wysiwyg').'");');
} else {
eval('dooutput("'.gettemplate('newthread').'");');
}
No query needed.
Am i right that i also don't need this query:
$replyengine = $DB_site->query_first("SELECT enablewysiwyg FROM user WHERE userid='$bbuserinfo[userid]'");
if($replyengine[enablewysiwyg] == 1) { eval("dooutput(\"".gettemplate("newreply_wysiwyg")."\");");
} else { eval("dooutput(\"".gettemplate("newreply")."\");"); }
?????
Birdie501
07-02-2002, 11:55 PM
mmmh, i still have problems with the text size! if i choose another text size it is shown as it should, but after submit the text size is always very small??
Martin CX
07-03-2002, 01:22 AM
When doing updates please remember that less is more in regards to size. It's enough that what was less than a 2K page (creating a new thread) is now more than 4K (horrific sizes, I know) - but the script runs slower the bigger it gets.
It would be very cool if your script was modular in the sense that it is easy to suss out what to delete because you don't need it, and it won't wreck the script. For example, I don't use smilies at all in my forums (my users vehemently abhors them!) so I don't need lots of extra code to do them properly - thus that is a part of the script I would delete.
Erwin
07-03-2002, 01:36 AM
Thanks for the updates - works real well.
memobug
07-03-2002, 01:47 AM
This is a great hack, but I'd love to see some kind of image handling, not necessarily an upload feature, which is kind of redundant, but maybe something similar to the links button that will let you insert an image already on the web.
Pops up an http://_____________ box, accepts a url and inserts it in a wyswig way.
It's the first thing I looked for when I saw your post. sniff
Oh well, this is about 100x better than the standard stoneage editor!
Regards,
Matt
WallStreat
07-03-2002, 09:01 AM
Originally posted by Velocd
Great job Wallstreet, that defiantly helps! Alot of my members still didn't really know about the WYSIWYG editor because they had to switch it on, mostly the new registered users. One small problem is this WYSIWYG still has some bugs I and my members have noticed, if a member just doesn't want to use it I don't want to force them to install some older browser, I like to give them the option of turning it off....but that requires calling some queries.
as per birdie 501, incorp my mod & the user table hack, nake enabling wysiwyg as the default. hence for users who dun want to use it, they need to explicity trun it off:
if ( ($enableHTMLEdit == 1) AND ( ($bbuserinfo['enablewysiwyg']) ) ) {
eval("dooutput(\"".gettemplate("newthread_wysiwyg")."\");");
} else {
eval("dooutput(\"".gettemplate("newthread")."\");");
}
Another problem though, you said it checks if the browser is older than IE 5.5, but what about other browsers? I know alot of people use Mozilla, and as I last heard Mozilla 1.0 isn't compatible with the WYSIWYG, will it also check this and bypass it?
my code checks for browers that are MS IE & running under Windows OS & version is 5.5 & 6.x . I'm still researching on a way to make this evern more foolproof :)
Boofo
07-03-2002, 09:46 AM
Is there any way to have it check for their browser and if it isn't IE 5.5 or 6.0, not even show the option to turn it on or off?
Birdie501
07-03-2002, 10:22 AM
Originally posted by Boofo
Is there any way to have it check for their browser and if it isn't IE 5.5 or 6.0, not even show the option to turn it on or off?
i got it, just have to write instructions!
Birdie501
07-03-2002, 10:41 AM
Originally posted by Boofo
Is there any way to have it check for their browser and if it isn't IE 5.5 or 6.0, not even show the option to turn it on or off?
Here we go:
Add a new template called wysiwyg_modifyoption:
Sorry but you have to translate back in english :)
<tr>
<td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF"><b>WYSIWYG Modul</b></normalfont></td>
</tr>
<tr>
<td bgcolor="#1C5780"><normalfont><b>M?chtest Du dasWYSIWYG Modul benutzen?</b></normalfont><br>
<smallfont>Wenn Du ja w?hlst, kannst du den Text beim schreiben/?ndern eines Beitrages nach deinen W?nschen formatieren, ?hnlich wie in MS Word. (WYSIWYG = What You See Is What You Get) <br><b><u>Achtung:</u> Funktioniert nicht mit allen Internet browser. IE 6+ empfohlen!</b>
</smallfont></td>
<td bgcolor="#1C5780"><normalfont>
<input type="radio" name="enablewysiwyg" value="yes" $enablewysiwygchecked> ja
<input type="radio" name="enablewysiwyg" value="no" $enablewysiwygnotchecked> nein
</normalfont></td>
</tr>
in template modifyoptions
find:
<tr>
<td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF"><b>WYSIWYG Modul</b></normalfont></td>
</tr>
<tr>
<td bgcolor="#1C5780"><normalfont><b>M?chtest Du dasWYSIWYG Modul benutzen?</b></normalfont><br>
<smallfont>Wenn Du ja w?hlst, kannst du den Text beim schreiben/?ndern eines Beitrages nach deinen W?nschen formatieren, ?hnlich wie in MS Word. (WYSIWYG = What You See Is What You Get) <br><b><u>Achtung:</u> Funktioniert nicht mit allen Internet browser. IE 6+ empfohlen!</b>
</smallfont></td>
<td bgcolor="#1C5780"><normalfont>
<input type="radio" name="enablewysiwyg" value="yes" $enablewysiwygchecked> ja
<input type="radio" name="enablewysiwyg" value="no" $enablewysiwygnotchecked> nein
</normalfont></td>
</tr>
and replace with
$wysiwyg_option
in member.php
find:
if ($bbuserinfo[userid]==0 or $permissions['canmodifyprofile']==0) {
show_nopermission();
}
after that add:
if ($enableHTMLEdit == 1) {
if ($bbuserinfo[enablewysiwyg]) {
$enablewysiwygchecked="checked";
$enablewysiwygnotchecked="";
} else {
$enablewysiwygchecked="";
$enablewysiwygnotchecked="checked";
}
eval ("\$wysiwyg_option .= \"".gettemplate("wysiwyg_modifyoption")."\";");
} else {
$wysiwyg_option="";
}
Thats all.
It works for me, i just tested with Navigator 6.0 and nothing was shown! :)
Boofo
07-03-2002, 11:05 AM
I hate to be a pain here, but can somebaody translate this part for me? :)
<tr>
<td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF"><b>WYSIWYG Modul</b></normalfont></td>
</tr>
<tr>
<td bgcolor="#1C5780"><normalfont><b>M?chtest Du dasWYSIWYG Modul benutzen?</b></normalfont><br>
<smallfont>Wenn Du ja w?hlst, kannst du den Text beim schreiben/?ndern eines Beitrages nach deinen W?nschen formatieren, ?hnlich wie in MS Word. (WYSIWYG = What You See Is What You Get) <br><b><u>Achtung:</u> Funktioniert nicht mit allen Internet browser. IE 6+ empfohlen!</b>
</smallfont></td>
<td bgcolor="#1C5780"><normalfont>
<input type="radio" name="enablewysiwyg" value="yes" $enablewysiwygchecked> ja
<input type="radio" name="enablewysiwyg" value="no" $enablewysiwygnotchecked> nein
</normalfont></td>
</tr>
Birdie501
07-03-2002, 11:47 AM
just use this part from the original instruction file :)
Boofo
07-03-2002, 12:08 PM
Which section should this go under? I put it under the start modify options section.
if ($enableHTMLEdit == 1) {
if ($bbuserinfo[enablewysiwyg]) {
$enablewysiwygchecked="checked";
$enablewysiwygnotchecked="";
} else {
$enablewysiwygchecked="";
$enablewysiwygnotchecked="checked";
}
eval ("\$wysiwyg_option .= \"".gettemplate("wysiwyg_modifyoption")."\";");
} else {
$wysiwyg_option="";
}
There are 4 sections in there with:
if ($bbuserinfo[userid]==0 or $permissions['canmodifyprofile']==0) {
show_nopermission();
}
Originally posted by Birdie501
just use this part from the original instruction file :)
Birdie501
07-03-2002, 12:20 PM
Originally posted by Boofo
Which section should this go under? I put it under the start modify options section.
if ($enableHTMLEdit == 1) {
if ($bbuserinfo[enablewysiwyg]) {
$enablewysiwygchecked="checked";
$enablewysiwygnotchecked="";
} else {
$enablewysiwygchecked="";
$enablewysiwygnotchecked="checked";
}
eval ("\$wysiwyg_option .= \"".gettemplate("wysiwyg_modifyoption")."\";");
} else {
$wysiwyg_option="";
}
There are 4 sections in there with:
if ($bbuserinfo[userid]==0 or $permissions['canmodifyprofile']==0) {
show_nopermission();
}
yep sorry, it is
// ############################### start modify options ###############################
Boofo
07-03-2002, 12:44 PM
Afetr moving it there, it doesn't show up in the options menu now. Do I have to install the fix by Walstreet to make it work? I don't want it enabled by default. I just want it to only show in the options if you have the browser needed for it.
Birdie501
07-03-2002, 12:57 PM
Yes you have to and also make the changes i mentioned above!
if you do all i did it will work, i promise! :)
Boofo
07-03-2002, 01:03 PM
Ok, Birdie501, now I am completely lost. I did everything you said in Post #167. What else do i have to do to make it work. I need to do Walstreet's fix right? What else? And will it make it so it is off by default like I want it to be? It's kindof confusing. Please point me to the posts I need to do. :)
Originally posted by Birdie501
Yes you have to and also make the changes i mentioned above!
if you do all i did it will work, i promise! :)
Birdie501
07-03-2002, 01:20 PM
Hope nobody will kill me, because i wrote several pages in this thread :)
Ok you should do:
1) https://vborg.vbsupport.ru/showthread.php?postid=268206#post268206
2) https://vborg.vbsupport.ru/showthread.php?postid=268340#post268340
3) https://vborg.vbsupport.ru/showthread.php?postid=268651#post268651
then you also should put this into your register template:
(not sure if it is ok??)
For all new members it will be off! For the old one you have to use the mysql code mentioned in this thread somewhere!
<input type="hidden" name="enablewysiwyg" value="no">
ziggy
07-03-2002, 03:10 PM
Hey everyone...great hack!
I was wondering what all is included in the WYSIWYG download on page 1 of this thread & what I still have to change myself?
I skipped pages 3-9 =)
I'll be adding .js & actionscript syntax highlighting as well, I also need a SWF button alongside the IMG buttton so I can post SWF's under 50k (I think this SWF butt might already exist & is just commented out in 2.2.1? (anyone confirm/deny?))
I'm updating to 2.2.6 today!
Thanx for any answers/help you can give me!...ziggy
Boofo
07-03-2002, 03:35 PM
Do I need to do what is in this post to all 3 php files (newthread, newreply and editpost)?
2) https://vborg.vbsupport.ru/showthread.php?postid=268340#post268340
And where is this and what is it?
For all new members it will be off! For the old one you have to use the mysql code mentioned in this thread somewhere!
One last thing. What template do I put this in and where?
<input type="hidden" name="enablewysiwyg" value="no">
Birdie501
07-03-2002, 04:04 PM
Originally posted by Boofo
Do I need to do what is in this post to all 3 php files (newthread, newreply and editpost)?
And where is this and what is it?
Yes put it to all three files, but you have to change the template names. That should be logic.
Originally posted by Boofo
One last thing. What template do I put this in and where?
<input type="hidden" name="enablewysiwyg" value="no">
you put this to your registration template called : registeradult and if you use the coppa form also put it in registercoppa.
Just have a look to this templates and put it right behind the other similar fields, e.g.
<input type="hidden" name="showavatars" value="yes">
and last but not least:
For all new members it will be off! For the old one you have to use the mysql code mentioned in this thread somewhere!
in phpmyadmin run this query to set it off!
alter table user
alter column enablewysiwyg set default '0';
:classic:
Boofo
07-03-2002, 04:28 PM
Ouch! That hurt! :)
Yes put it to all three files, but you have to change the template names. That should be logic.
I took out the code for setting the option for the editor in my registeradult template and put this code in it instead like you instructed.
you put this to your registration template called : registeradult and if you use the coppa form also put it in registercoppa.
Just have a look to this templates and put it right behind the other similar fields, e.g.
<input type="hidden" name="showavatars" value="yes">
And done! :) Thank you very much for all of the help.
in phpmyadmin run this query to set it off!
alter table user
alter column enablewysiwyg set default '0';
:classic:
Birdie501
07-03-2002, 06:09 PM
Originally posted by Boofo
Ouch! That hurt! :)
heheh :)
I took out the code for setting the option for the editor in my registeradult template and put this code in it instead like you instructed.
What do you mean with "took out"? You have to add the code not to replace!?
And done! :) Thank you very much for all of the help.
You`re welcome!
Boofo
07-03-2002, 08:12 PM
What I meant was, I took out the option to set the editor when you log on as a new user and regsiter. There is no way to check which browser they are using in the registeradult template so why have an option in there to turn something on that they will never see anyway if they don't use IE? :)
[quote] Boofo quoted:
I took out the code for setting the option for the editor in my registeradult template and put this code in it instead like you instructed.
Birdie501 quoted:
What do you mean with "took out"? You have to add the code not to replace!?
[quote]
Erwin
07-04-2002, 02:01 AM
I added this in registeradult:
right after the vBcode section </tr>
<tr>
<td bgcolor="{ secondaltcolor}"><normalfont><b>Use the WYSIWYG interface on your message input screens?</b></normalfont><br>
<smallfont>Enabling this option allows you to quickly manipulate different aspects of your posts including color, font, and size using an Microsoft Word-like interface.
In addition you can click on smilies to have them inserted into your posts.
You may disable this option if it causes problems for you.</smallfont></td>
<td bgcolor="{ secondaltcolor}"><normalfont>
<input type="radio" name="enablewysiwyg" value="yes" checked> yes
<input type="radio" name="enablewysiwyg" value="no"> no
</normalfont></td>
</tr>
This way on registration the user can choose to enable or disable this.
Also, remove the space from { secondaltcolor}.
Boofo
07-04-2002, 02:16 AM
Yes, but if you give them the option to turn it on or off in there and their browser won't support it, then won't that confuse them even more when it won't show up for them if they don't have the right browser? :)
Erwin
07-04-2002, 03:12 AM
Well, if their browser won't support it, it won't show up. I amended the description to say "Only supported by IE 5.5 or higher".
Boofo
07-04-2002, 03:58 AM
Erwin,
Ok, I went ahead and put it in the registeradult template, but I changed it to have the "no" checked by default instead of yes. Do I need to put it in the regsitercoppa, too? And do I need to still have the below code in the registeradult template if I have the code you suggested in there?
<input type="hidden" name="enablewysiwyg" value="no">
Originally posted by Erwin
Well, if their browser won't support it, it won't show up. I amended the description to say "Only supported by IE 5.5 or higher".
Birdie501
07-04-2002, 05:19 AM
Originally posted by Boofo
[B]What I meant was, I took out the option to set the editor when you log on as a new user and regsiter. There is no way to check which browser they are using in the registeradult template so why have an option in there to turn something on that they will never see anyway if they don't use IE? :)
Well, of course it checks which browser they are using, because you have the code for that in global.php!!
But it is not shown even if they use IE because the code i mentioned turn it off by default. I use that because i have literegistration installed, where the user only have to fill in username ,email and password., nothing else.
If the user want to use it and use IE he can turn it on in his options , otherwise he won't even see this option!
:laugh:
Birdie501
07-04-2002, 05:23 AM
Originally posted by Erwin
I added this in registeradult:
right after the vBcode section </tr>
<tr>
<td bgcolor="{ secondaltcolor}"><normalfont><b>Use the WYSIWYG interface on your message input screens?</b></normalfont><br>
<smallfont>Enabling this option allows you to quickly manipulate different aspects of your posts including color, font, and size using an Microsoft Word-like interface.
In addition you can click on smilies to have them inserted into your posts.
You may disable this option if it causes problems for you.</smallfont></td>
<td bgcolor="{ secondaltcolor}"><normalfont>
<input type="radio" name="enablewysiwyg" value="yes" checked> yes
<input type="radio" name="enablewysiwyg" value="no"> no
</normalfont></td>
</tr>
This way on registration the user can choose to enable or disable this.
Also, remove the space from { secondaltcolor}.
Hi Erwin,
why don't you use my change with $wysiwyg_option ??
If you do it like you did, the option will be also seen by users that don't use IE??!!
Erwin
07-04-2002, 08:22 PM
No, because I have installed Walstreat's addon too - so even if Netscape users switch it on, they won't see it as only IE 5.5 or higher users see the WYSIWYG interface.
It works fine on my site so far. :)
Boofo
07-05-2002, 02:28 AM
I know that this was probably already discussed in here, but can it be made to work in private messages, too?
eiSecure
07-05-2002, 02:41 AM
Yes, you just need to extend the templates to the private message templates too.
We will try to provide private message support in our next update, for those who don't want to mess with their templates.:)
Birdie501
07-05-2002, 05:28 AM
Originally posted by Erwin
No, because I have installed Walstreat's addon too - so even if Netscape users switch it on, they won't see it as only IE 5.5 or higher users see the WYSIWYG interface.
It works fine on my site so far. :)
Yes but it think it makes no sense to show netscape user something they can switch on but nothing happens!! Therefore i made the change boofo requested.
Schorsch
07-08-2002, 03:48 AM
thanks Alex for this really nice modification !!! :classic:
just one thing, when I enter a new line there is so much space between line one and line 2!! can I change this ?
thanks,
Schorsch
http://www.fetter-esel.com
EDIT: I just found out that my smilies don't work with this hack ?? what's wrong ??
Boofo
07-08-2002, 03:52 AM
Just hit Shift+Enter and that will give you no spaces between the lines. That's a Microsoft Word thing, I think.)
Schorsch
07-08-2002, 04:01 AM
a big thanks :)
did you already read my Edit ?
thx
Schorsch
Boofo
07-08-2002, 04:15 AM
I'm not sure about the smilie thing. I know they have talked about it in a few places in this thread. :)
Schorsch
07-08-2002, 04:25 AM
puuuhh this thread is quite long :) but I'll try to find it...
cu
Schorsch
Boofo
07-08-2002, 04:30 AM
I'd have to read through it too to find it. :)
Schorsch
07-08-2002, 04:33 AM
ahh ok my fault I forgot to upload vbcode2.js to vB root directory!!
thanks for this great hack!!!!
cu
Schorsch
Schumi
07-08-2002, 03:20 PM
Hi,
I installed this hack, but if I open newthread.php, I get this mistake:
http://www.burning-board.de/Fehler.JPG
Who can help me?
bye
Schumi
eiSecure
07-08-2002, 03:39 PM
Originally posted by Schumi
Hi,
I installed this hack, but if I open newthread.php, I get this mistake:
http://www.burning-board.de/Fehler.JPG
Who can help me?
bye
Schumi If all the install directions are followed correctly, and if the vbcode2.js file is uploaded correctly, then you should not have any errors.
Schorsch
07-08-2002, 05:08 PM
I have still one question:
is there a chance that I can use more fonts ? If yes how can I realize that ?
thanks,
Schorsch
eiSecure
07-08-2002, 06:05 PM
The fonts included are the basic fonts that every system would have.
If you add more fonts, there will be compatibility problems. However, if you want to add more fonts, just add the new font's name as a new entry in the font drop-down.:)
Schorsch
07-08-2002, 06:19 PM
thanks eiSecure, I'll try it!!
regards,
Schorsch
vdinh
07-09-2002, 08:00 PM
Hi friend,
Your hack is extremely cool ... I have wished for this for a long time :) ...
I have a small problem which I would like to ask you to see if there is a way to do this :
My site uses Unicode ... therefore, for the original textarea of the NEWTHREAD - NEWREPLY template, I did add in the call for a particular javascript. Hence, it looks like:
<textarea color="#FFFFFF" name="message" rows="20" cols="$textareacols" wrap="virtual" tabindex="2" onChange=getActiveText(this) onclick=getActiveText(this) onkeyup="initTyper(this);">$message</textarea><br>
<smallfont><script language="JavaScript1.2" src="../js/vietuni.js" type='text/javascript'></script> ..........
Since your hack uses iframe instead of textarea for the message, is there a way for me to maintain the call for that particular script (for example, using onkeyup="initTyper(this)) ...
Thanks for your help :squareeyed:
Schorsch
07-11-2002, 12:07 AM
I found an error:
the smilies I see on the left side are working without problems, BUT when I click on "Get More" and the smilie popup appears, the smilies in this popup aren't working any more!!
How can I fix that ??
thanks,
Schorsch
ZiRu$
07-12-2002, 04:42 PM
i installed it, ran the queries.....I'm using IE6.0 and I cant see it
Schorsch
07-12-2002, 04:59 PM
did u activate it in your user cp ???
memobug
07-12-2002, 10:28 PM
I have a couple Q's after seeing it.
1) How do you insert images (not attachements just the regular stuff in [img] tags. Do you post first then change it?
2) I was a little surprised when I hit preview. Maybe there is no alternative, but you have a nice editor here, it seems the preview should be WYSWIG too. Maybe preview is the wrong word.
Regards,
Matt
eiSecure
07-12-2002, 10:31 PM
You insert images using the [img] tags.
memobug
07-12-2002, 10:51 PM
Why not make it wyswig and insert them with a popup box? and show them in the display Is it too hard?
Just wondering!
eiSecure
07-12-2002, 11:03 PM
The basic functionality for that is already implemented, but because it does not limit images to only ones on the internet, we did not enable it, since vB doesn't currently support multiple attachments.
memobug
07-13-2002, 12:05 AM
Who's talking about attachments? I am talking about images!
Have you ever used G-TForum's WYSIWYG editor? You can resize and align images left right or center, click on 'em and drag em around in a post Click link and make them an anchor for a link or whatever.
https://vborg.vbsupport.ru/external/2002/07/3.gif
I should hope if a WYSIWIG feature is going to be incorporated in VB3 that it would work at least as well. I like vB and use vB but its editor is prehistoric and frankly this one is marginal if it doesn't support images well. Let's leave the question of attachments aside, shall we?
Regards,
Matt
eiSecure
07-13-2002, 12:59 AM
I would think as well that vB3 will have that support. However, if you're looking for that in this hack, you're at the wrong place, and for now, you're using the wrong forum.
If you want that editor, use that forum. If not, then live with the current one in vB2 for another 2 months until vB3 beta comes out.
This hack is just a small improvement over the existing reply box to make it easier for the user to do basic formatting. It is not designed to be a WYSIWYG CMS front-end.
If that is what you want, then go and buy a commercial ActiveX that supports it. Otherwise, live with the current feature set or like I said, switch to that forum.
We are all very busy people, and it cannot be expected that we constantly update our hacks and cram in every single feature that is requested. I for one have a life outside of a computer, and it is my intention to pursue it at the expense of becoming a drone and live lifelessly debugging and improving a hack that does not generate any income or compensation for me.
Regards,
Alex
Schorsch
07-13-2002, 03:46 AM
any ideas about that problem ?
I found an error:
the smilies I see on the left side are working without problems, BUT when I click on "Get More" and the smilie popup appears, the smilies in this popup aren't working any more!!
How can I fix that ??
Thank You very much :)
Schorsch
This hack requires to alter table user for one more field. Will this cause trouble when updating vbulletin at a later time?
eiSecure
07-13-2002, 02:17 PM
When upgrading, it should not cause any DB problems.
Birdie501
07-16-2002, 07:31 AM
i have some problems and dont find any solution??
If i make a newreply and type e.g. test
the message will be shown as:
<PRE>test</PRE>
what is that PRE???
Help please!
Hi, great hack. Please figure out a way to include the aspell spell checker into this as that is a major loss to the forum when you already have it installed and try to move people to this. Again thanks for a great hack :)
Erwin
07-17-2002, 01:44 AM
Clark Kent, how goes the JS work in trying to keep the buttons down after clicking? ;)
Velocd
07-17-2002, 04:52 AM
Originally posted by Birdie501
i have some problems and dont find any solution??
If i make a newreply and type e.g. test
the message will be shown as:
<PRE>test</PRE>
what is that PRE???
Help please!
<pre> stands for preformatted text. It's like you can use invisible keys within the <pre></pre> tags and they will show up.
I know that was alittle vague, but here is an example. The {} stands for a key pressed (such as the space bar):
So inputting this:
<pre>{space}{space}{space}hello{space}hello{return}</pre>
Will output in the post as this:
hello hello
hello
I hope I'm clear ^^;
And that picture of the image WYSIWYG looked pretty cool. But I'm sure VB3 will be far more advanced than just that :)
Velocd
07-17-2002, 05:04 AM
This hack has also became very complicated with add-ons and bug fixes scattered throughout the thread, it almost seems like time to re-compile all these add-ons together, optimizing them for best performance, then releasing Version 1.1 (or 2) :D
Unless it is better to wait for VB3........
eiSecure
07-17-2002, 02:04 PM
Well, I would love to put out another update, but I'm tremendousely busy this month... I've got client work to do, and lots of other stuff in my life to take care of.
...by the time I get enough time, vB3 will be out already...
MalaK_3araby
07-28-2002, 10:39 AM
I have this installed and it worked after a huge struggle when i disabled "oImg = sImgTag<i>;".
How do i get the contents to change dir=rtl or at least get them aligned right by default?
svoec
08-07-2002, 12:21 PM
hey guys, I thought the smiley issue was fixed??
I just installed, and everything went smooth, except for that little bug smiley bug
I also had one other question, when you edit posts, should you see the VB code??? or the wysiwyg stuff ??
Thanks!
GREAT HACK!!!
Erwin
08-07-2002, 10:21 PM
Originally posted by svoec
hey guys, I thought the smiley issue was fixed??
I just installed, and everything went smooth, except for that little bug smiley bug
I also had one other question, when you edit posts, should you see the VB code??? or the wysiwyg stuff ??
Thanks!
GREAT HACK!!!
The smilie issue IS fixed. You cannot used a hacked vbcode.js - upload a stock unhacked vbcode.js, rename it vbcode3.js, and change the template to point to it.
When you edit posts, it will be WYSIWYG.
svoec
08-09-2002, 12:31 AM
well, when i post this ...(with the wysiwyg editor)
wow .. this rocks!!!!
cool
cooler
coolest!
hummmm....
and i hit edit, I see this wow .. this rocks!!!!
cool
cooler
coolest!
hummmm....
Is this correct ??
Thanks!
svoec
08-09-2002, 12:40 AM
oh yea.. the issue with my smiles is... (sorry, I should have given better detail)
it works fine when you click on any of the smiles listed on the normal edit page, but if you hit the more button, it wont post the smileys into the text.
I am using a stock vbcode.js, and the stock vbcode2.js that came with the hack, but I haven't changed any of the templates (wasn't in the instructions ???)
scottct1
08-12-2002, 07:28 PM
Originally posted by Erwin
The smilie issue IS fixed. You cannot used a hacked vbcode.js - upload a stock unhacked vbcode.js, rename it vbcode3.js, and change the template to point to it.
When you edit posts, it will be WYSIWYG.
Where do I get an unhacked vbcode.js? I have both of them from this thread. (the one in the origional zip file and the second in the vbcode2.zip file also found in this thread)
I can insert smiles from the smile box but I can not click on the smiles in the Get More Box, when I do click on a smile in the get more box it does nothing.
Also my spell checker I can get to check the spelling however when I click on Insert in post it does nothing as well.
I believe both are the same issue.
Can anyone help?
scottct1
08-13-2002, 02:24 PM
Bump. Anyone.... Someone..... Please? :)
Sadie Frost
08-13-2002, 03:49 PM
Can't you get an unhacked copy from the vbulletin download? :)
Dark Shogun
09-12-2002, 08:20 PM
I installed the hack on my forum at: http://www.thatfinalfantasysite.com/testvb but the wysiwyg fields don't show up in the editpost, newreply, and newthread. I am running vb 2.2.7. HELP Please.
Dark Shogun
eiSecure
09-13-2002, 02:45 AM
You need to turn on WYSIWYG in your usercp.:)
Dark Shogun
09-13-2002, 05:30 PM
Ok it is working but is it supposed to double space everything?
Example:
I type:
Blah blah blah blah blah
Blah blah blah blah blah
But the wysiwyg editor puts:
While typing and in the post itself.
Blah blah blah blah blah
Blah blah blah blah blah
Dark Shogun
PS. Is the wysiwyg editor supposed to look like the attached?
eiSecure
09-13-2002, 09:22 PM
Yes, it does. It works exactly like the vB3 WYSIWYG editor.
Dark Shogun
09-14-2002, 01:10 AM
Is there a way to make it so it doesn't double space? Thats the only problem right now that I have seen so far.
Dark Shogun
eiSecure
09-14-2002, 01:18 AM
No, there is not. The iFrame control natively acts that way.
Dark Shogun
09-14-2002, 01:26 AM
oh ok. Thanks.
Dark Shogun
Dark Shogun
09-14-2002, 01:49 AM
This is the last problem I could find. When you make a new thread the submit buttons say: Submit Reply and Preview Reply instread of Submit New Thread and Preview Post. Do you know how I change then back?
Dark Shogun
PS. I have some other hacks in like vbmood and sticky option and 1 more that I forgot the name of and when a person uses the WYSIWYG editor those fields are gone in the new thread, new reply, and edit post. BUT when you change back to the default editor they are back. Do you know how I can get them to work together?
Dark Shogun
09-14-2002, 01:51 AM
Oops. Forgot the screenshot.
Dark Shogun
Mike11212
09-26-2002, 04:55 AM
Is there anyway to add the free spell checker hack to this hack?
JohnWoo
10-17-2002, 11:10 AM
Can someone post final release of WYSIWYG editor. With fixed files... ????
ZiRu$
11-03-2002, 11:10 PM
i installed the hack.......but theres too many problems and add-ons.
Some functions never displayed smoothly. Oh well....
Erwin
11-04-2002, 12:09 AM
I have to say that I've been using this hack from the day it was released, and it's been working 100% without any problems for me. :)
filburt1
11-15-2002, 12:36 AM
Hey Alex, is there a way to port this to a pure phpinclude/template-based system? It would be cool even if it meant removing some functionality (i.e., WYSIWYG per forum and per user, etc.).
Okiewan
11-15-2002, 06:33 PM
Great hack, installed and working well. Two requests if I may?
1) Can someone show me how to add the Quote and IMG tags? With those two added back it, it would be perfect IMHO.
2) Allow use of the editor by usergroup?
Thanks again and thanks in advance for any assistance.
khackney
01-11-2003, 04:41 AM
Hey all,
Just installed this hack on my dev boards and I am getting the following error when I submit a post or reply.
Database error in vBulletin 2.2.9:
Invalid SQL: SELECT field5 FROM userfield WHERE userid=1
mysql error: Unknown column 'field5' in 'field list'
mysql error number: 1054
Date: Friday 10th of January 2003 11:31:58 PM
Script: http://dev.phpfixation.com/forums/forums/newreply.php
Referer: http://dev.phpfixation.com/forums/newreply.php?action=newreply&threadid=4
For some reason it seems to be adding an extra forum directory in there. Anyone have any ideas?
Thanks in advance,
khackney
khackney
01-11-2003, 04:41 AM
ACK! double post *sorry*
eiSecure
01-11-2003, 05:09 PM
I believe the errors you are getting are not caused by this hack itself, but is caused by incompatibilities with your previousely installed hacks.
khackney
01-11-2003, 05:59 PM
eiS,
That is what I was afraid of =(.
Thanks
groovesalad
02-17-2003, 07:11 AM
I installed this hack, but nothing shows up....weird.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.