vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   WYSIWYG New thread/Reply (https://vborg.vbsupport.ru/showthread.php?t=40130)

eiSecure 06-21-2002 09:00 PM

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. ^_^

eiSecure 06-21-2002 10:41 PM

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.:)

RDX1 06-21-2002 11:39 PM

haha, nice try, i say make a guets account or a screen shot

Slynderdale 06-21-2002 11:40 PM

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.

eiSecure 06-21-2002 11:44 PM

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.:)

Slynderdale 06-21-2002 11:50 PM

hmm, looking over it, this isnt considered a hack, its a template edit, so it shouldnt be here, but its great though

bandersen 06-21-2002 11:55 PM

I looked at it... very nice!

eiSecure 06-22-2002 12:07 AM

Quote:

Originally posted by NerdNations
haha, nice try, i say make a guets account or a screen shot
Well, I'm not forcing anyone to register and see it -- it's completely optional.

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:

Superman53142 06-22-2002 12:15 AM

Quote:

Originally posted by eiSecure
Well, I'm not forcing anyone to register and see it -- it's completely optional.

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:

I like the hack :) One thing, though, is that now that it uses an iframe for the textarea, how do I capture the value of said iframe for the spell checker?

eiSecure 06-22-2002 12:17 AM

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:

Superman53142 06-22-2002 12:22 AM

Quote:

Originally posted by eiSecure
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:

Indeed. Then I'd just have to reverse the process to make idContent.document.body.innerHTML = vbform.message.value. You are smart :)

And to think I was going to try to grab idContent.document.body.innerHTML :cool:

eiSecure 06-22-2002 12:27 AM

Quote:

Originally posted by Superman53142


Indeed. Then I'd just have to reverse the process to make idContent.document.body.innerHTML = vbform.message.value. You are smart :)

And to think I was going to try to grab idContent.document.body.innerHTML :cool:

Thanks.https://vborg.vbsupport.ru/external/2009/06/7.gifhttps://vborg.vbsupport.ru/external/2011/01/19.gif

Superman53142 06-22-2002 12:32 AM

Another thing; I'm not looking at the script right now, but why can't Save() be run when Submit is pressed?

eiSecure 06-22-2002 12:35 AM

Because I suck at Javascript.:p

If anybody is willing to work with me to enhance the hack, just shoot me a PM.:)

WallStreat 06-22-2002 12:38 AM

Well done, eiSecure.

I notice there's a insert image function...is it working?

Superman53142 06-22-2002 12:39 AM

Finally, where is selcolor.html? :)

eiSecure 06-22-2002 12:40 AM

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.:)

eiSecure 06-22-2002 12:41 AM

Quote:

Originally posted by Superman53142
Finally, where is selcolor.html? :)
I believe it's in post number 2, or something close to 2, like 3, or 4...:D

Xelation 06-22-2002 12:43 AM

great hack!!

Superman53142 06-22-2002 12:45 AM

Do you have to have HTML enabled for this to work? If so, where is that setting, LOL?

eiSecure 06-22-2002 12:45 AM

Quote:

Originally posted by Xelation
great hack!!
Thanks.:):bunny:

...so it is a hack after all... :chinese: :cool: :lick:

eiSecure 06-22-2002 12:47 AM

Quote:

Originally posted by Superman53142
Do you have to have HTML enabled for this to work? If so, where is that setting, LOL?
Yes. Like what was mentioned on the first page, HTML needs to be enabled.

It's in your admin cp, under Forums --> Modify --> Enable HTML in posts [o] yes [ ] no:)

Superman53142 06-22-2002 12:48 AM

Quote:

Originally posted by eiSecure
Yes. Like what was mentioned on the first page, HTML needs to be enabled.

It's in your admin cp, under Forums --> Modify --> Enable HTML in posts [o] yes [ ] no:)

Ah, crap. I gotta do that for every forum, eh?

eiSecure 06-22-2002 12:50 AM

Quote:

Originally posted by Superman53142


Ah, crap. I gotta do that for every forum, eh?

Yes, but (hopefully.;)) it'll be worth it for you.:)

Superman53142 06-22-2002 12:54 AM

OK, if you add onclick="Save();" to the Submit button it'll save when you click the button.

eiSecure 06-22-2002 12:56 AM

Quote:

Originally posted by Superman53142
OK, if you add onclick="Save();" to the Submit button it'll save when you click the button.
Yes, but it'll run the save function, and not submit the form.

Superman53142 06-22-2002 12:57 AM

Quote:

Originally posted by eiSecure
Yes, but it'll run the save function, and not submit the form.
Does both for me.

Xelation 06-22-2002 12:58 AM

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 :)

eiSecure 06-22-2002 01:01 AM

Quote:

Originally posted by Superman53142


Does both for me.

hmmmn...


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.:)

bad_madman 06-22-2002 01:02 AM

But the Smilies don't work?! :surprised:

edit:
You were faster... :o
Quote:

Originally posted by eiSecure
...most everything will be fixed in v1.0, ... smilies ... :)

eiSecure 06-22-2002 01:04 AM

Quote:

Originally posted by bad_madman
But the Smilies don't work?! :surprised:
Yeah... they don't, because they're still trying to add the smilie text to the 'message' input box, but that's hidden.


It just requires a few tweaks here and there to get it all working...

Superman53142 06-22-2002 01:06 AM

Quote:

Originally posted by eiSecure
hmmmn...


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.:)

Yo, I'll help you for free. I don't think the forum owner at which I admin would like having HTML on the forums (although it effectively blocks scripting with the <br />'s), and if we could get a BBCode and smilies version whipped up I'd be really cool.

BTW, I am proficient in JavaScript and PHP, regardless of whatever impression may have been left by my stupid questions earlier in the thread :)

eiSecure 06-22-2002 01:07 AM

Quote:

Originally posted by Superman53142


Yo, I'll help you for free. I don't think the forum owner at which I admin would like having HTML on the forums (although it effectively blocks scripting with the <br />'s), and if we could get a BBCode and smilies version whipped up I'd be really cool.

BTW, I am proficient in JavaScript and PHP, regardless of whatever impression may have been left by my stupid questions earlier in the thread :)

My AIM is eiSecure. We'll talk.:)

Superman53142 06-22-2002 01:08 AM

Quote:

Originally posted by eiSecure
My AIM is eiSecure. We'll talk.:)
I'm, you guessed it, Superman53142 on AIM :)

Velocd 06-22-2002 01:48 AM

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 ^_^

eiSecure 06-22-2002 02:19 AM

Quote:

Originally posted by Velocd
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 ^_^

Actually, I just put this together in like 10 minutes, so there's a few things that missing, and other things that aren't working.

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?;)

ZiRu$ 06-22-2002 02:22 AM

thanks but i wish they didn't have to press SAVE

eiSecure 06-22-2002 02:23 AM

That's also fixed.:)

eiSecure 06-22-2002 02:24 AM

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.;)

TECK 06-22-2002 02:38 AM

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
  • Page Generation 0.02102 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete