vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   WYSIWYG Post Editor v1.0 (https://vborg.vbsupport.ru/showthread.php?t=40283)

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>


Code:

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

Code:

<input type="hidden" name="enablewysiwyg" value="no">
Quote:

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

Quote:

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

Quote:

Originally posted by Erwin
I added this in registeradult:

right after the vBcode section </tr>


Code:

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


All times are GMT. The time now is 11:09 PM.

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.01397 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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