![]() |
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. |
Thanks for the updates - works real well.
|
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 |
Quote:
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")."\");" ); } Quote:
|
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?
|
Quote:
|
Quote:
Here we go: Add a new template called wysiwyg_modifyoption: Sorry but you have to translate back in english :) PHP Code:
in template modifyoptions find: PHP Code:
PHP Code:
in member.php find: PHP Code:
PHP Code:
Thats all. It works for me, i just tested with Navigator 6.0 and nothing was shown! :) |
I hate to be a pain here, but can somebaody translate this part for me? :)
PHP Code:
|
just use this part from the original instruction file :)
|
Which section should this go under? I put it under the start modify options section.
Code:
if ($enableHTMLEdit == 1) { Code:
if ($bbuserinfo[userid]==0 or $permissions['canmodifyprofile']==0) { Quote:
|
Quote:
yep sorry, it is // ############################### start modify options ############################### |
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.
|
Yes you have to and also make the changes i mentioned above!
if you do all i did it will work, i promise! :) |
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. :)
Quote:
|
Hope nobody will kill me, because i wrote several pages in this thread :)
Ok you should do: 1) https://vborg.vbsupport.ru/showthrea...206#post268206 2) https://vborg.vbsupport.ru/showthrea...340#post268340 3) https://vborg.vbsupport.ru/showthrea...651#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! PHP Code:
|
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 |
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? Quote:
Code:
<input type="hidden" name="enablewysiwyg" value="no"> |
Quote:
Yes put it to all three files, but you have to change the template names. That should be logic. Quote:
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: Quote:
PHP Code:
|
Ouch! That hurt! :)
Quote:
Quote:
Quote:
|
Quote:
heheh :) Quote:
Quote:
|
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] |
I added this in registeradult:
right after the vBcode section </tr> Code:
<tr> Also, remove the space from { secondaltcolor}. |
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? :)
|
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".
|
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:
|
Quote:
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: |
Quote:
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??!! |
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. :) |
I know that this was probably already discussed in here, but can it be made to work in private messages, too?
|
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.:) |
Quote:
|
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 ?? |
Just hit Shift+Enter and that will give you no spaces between the lines. That's a Microsoft Word thing, I think.)
|
a big thanks :)
did you already read my Edit ? thx Schorsch |
I'm not sure about the smilie thing. I know they have talked about it in a few places in this thread. :)
|
puuuhh this thread is quite long :) but I'll try to find it...
cu Schorsch |
I'd have to read through it too to find it. :)
|
ahh ok my fault I forgot to upload vbcode2.js to vB root directory!!
thanks for this great hack!!!! cu Schorsch |
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 |
Quote:
|
All times are GMT. The time now is 09:08 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|