![]() |
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. |
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. |
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.
Quote:
|
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. |
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? :)
Quote:
|
Quote:
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:
Quote:
|
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! :) |
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. |
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.
|
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. |
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.
|
Superman - care to share your vbcode.js for the cursor position??? :)
|
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). :)
Quote:
|
Quote:
|
Quote:
|
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. :)
Quote:
|
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: Code:
<iframe width=......> Code:
onblur="getActiveText(this);" EDIT: Oops! Forgot to give credit to the original creator of the hack to insert the smilies at the cursor! Thanks! |
Works beautifully!!!
You are indeed Superman of Javascript! ;) |
Quote:
I'm happy that it's working well for ya :) |
Thanks!!!!!! You make my life easier till vb3 comes out :-)
|
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:
PHP Code:
|
That's a very nice mod!:)
|
@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! |
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.:) |
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.
|
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? |
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.
|
Quote:
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: PHP Code:
For all German speaking users i attached two german buttons for bold and italic :) |
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? |
Quote:
|
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. |
@Larz
just do this: search the function validate(theform) and replace it with this: sorry you have to translate back in english :) PHP Code:
|
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: PHP Code:
|
:)
But please keep in mind not to copy this to newreply_wysiwyg template because otherwise the subject field is no longer optional. |
Quote:
PHP Code:
|
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??
|
All times are GMT. The time now is 08:46 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:
|