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)

josh929 06-29-2002 08:03 AM

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.

eiSecure 06-29-2002 03:04 PM

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.

Boofo 06-30-2002 02:23 PM

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:

Originally posted by Erwin
Boofo: The tweaks are all in the thread. Just read through it - the main one is making the default font the same as your forum.

eiSecure 06-30-2002 02:52 PM

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.

Boofo 06-30-2002 03:08 PM

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:

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


Superman53142 06-30-2002 03:37 PM

Quote:

Originally posted by eiSecure
and accomplish something that can't even be done (cursor position in iFrame)
Actually, I think it *might* be possible. This forum was down yesturday, but I believe the regular smilies hack used createRange() which is supported by iframes. We'll have to see.

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.

Larz 06-30-2002 04:08 PM

I could be mistaken, but haven't you guys forgotten to put this in your install.txt:

Quote:

Copy vbcode2.js to the root of your forums dir.
It's not in there, is it? :p

Boofo 06-30-2002 04:45 PM

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

eiSecure 06-30-2002 06:22 PM

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.

Boofo 06-30-2002 06:33 PM

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?


All times are GMT. The time now is 11:33 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.01196 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)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