![]() |
WYSIWYG New thread/Reply
This is sorta neat... everything, instead of having the old-school type-in text box for replies and new threads, you have a Frontpage-like visual editor for your replies!:)
Supports colors, and everything!:) Here's how to install... 1. Back up your newreply and newthread templates, just in case.:) (I'm not responsible if you screw up and blow up your house.:D) 2. Instead of me giving you pieces of the templates to modify, since there are huge modifications, I'll just give you the templates themselves. You usually won't have to change anything, unless you installed some hacks that modify the newreply or newthread templates.:) 3. When people are posting/replying, be sure to let them know that before they can submit the form, they have to press the 'save' button that's on the toolbar.:) 4. Upload the images attached to forums/images/toolbar directory. 5. Enjoy!:bunny: New version available here. If I left out anything...let me know. ^_^ |
Demo here: http://forums.eisecure.com
You have to register to see it, but it's real cool when you reply/post new thread!:D EDIT: Also...forgot this attachment... ^_^ Just plop it in your forum directory.:) |
haha, nice try, i say make a guets account or a screen shot
|
I simply must say, wow, this is a great hack, a must to install, it remeinds me alot od wordpad and other text editors, i like it, i signed up to your forums, im attaching a screenshot below.
|
Oh, yeah, one more thing...
Be sure to enable HTML when posting, or else much of the effects (such as tabs) won't work. Don't worry...the risk isn't as big as with a plaintext editor... everything is wrapped in tags, so it shouldn't be a big problem.:) |
hmm, looking over it, this isnt considered a hack, its a template edit, so it shouldnt be here, but its great though
|
I looked at it... very nice!
|
Quote:
Now, why do you have to get that kind of attitude? Believe it or not, you're actually making me rethink wether to continue work on this hack, or take everything down. :tired: |
Quote:
|
With a little tweaking of the Javascript, you can get it to work.:)
When the user presses the 'save' button, the contents of the iframe (in HTML format) is passed to a hidden form field called 'message'. That's just a regular input box that's hidden... you can probably make the spell check work through there.:):bunny: |
Quote:
And to think I was going to try to grab idContent.document.body.innerHTML :cool: |
Quote:
|
Another thing; I'm not looking at the script right now, but why can't Save() be run when Submit is pressed?
|
Because I suck at Javascript.:p
If anybody is willing to work with me to enhance the hack, just shoot me a PM.:) |
Well done, eiSecure.
I notice there's a insert image function...is it working? |
Finally, where is selcolor.html? :)
|
The insert image function doesn't yet work. However, if somebody has a multiple-attachment hack installed, then I can easily get it to work.:)
|
Quote:
|
great hack!!
|
Do you have to have HTML enabled for this to work? If so, where is that setting, LOL?
|
Quote:
...so it is a hack after all... :chinese: :cool: :lick: |
Quote:
It's in your admin cp, under Forums --> Modify --> Enable HTML in posts [o] yes [ ] no:) |
Quote:
|
Quote:
|
OK, if you add onclick="Save();" to the Submit button it'll save when you click the button.
|
Quote:
|
Quote:
|
well, its not a hack but more of template edit now that I think of it... just thought I would tell you when you click edit it doesnt bring you back to the WYSIWYG screen... This is a great hack - template edit but you have a lot to fix good luck :)
|
Quote:
Yeah, Xelation, I just threw this one together in like 10 minutes, so there's lots more to be done.:p Hopefully, if somebody out there is good enough with JavaScript, they may be able to help me, and get some 'compensation' in the process.;) Hopefully, most everything will be fixed in v1.0, including BBCodes, smilies, etc.:) |
But the Smilies don't work?! :surprised:
edit: You were faster... :o Quote:
|
Quote:
It just requires a few tweaks here and there to get it all working... |
Quote:
BTW, I am proficient in JavaScript and PHP, regardless of whatever impression may have been left by my stupid questions earlier in the thread :) |
Quote:
|
Quote:
|
Ah, looks like somebody read the WYSIWYG request thread ;)
I can't believe you implemented it, very nice! Although it looks alittle funny, its still a great addition to VB. One request though: How bout an option in the UserCp that allows members to choose which posting interface they want, then I would defiantly install this ^_^ |
Quote:
I've already fixed the quote problem, but hopefully, I'll get a chance to fix the smilies tomorrow. I'm thinking about removing the BBcode line, what do you all think? All the functions in the BBCodes, other than PHP, Code, and Quote are all in the toolbar. Nobody misses those options anyways, right?;) |
thanks but i wish they didn't have to press SAVE
|
That's also fixed.:)
|
I will always have the latest development version up at my forums, so if you just can't wait, you can always check it out there.;)
|
i just got into your forums. i must say that this is the coolest thing i saw in a long time. i have office XP installed on my pc. the look is amasing. just make sure you also include the templates in the zip package.
great work alex. :) |
All times are GMT. The time now is 05:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|