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)

Superman53142 06-26-2002 05:07 AM

Quote:

Originally posted by Velocd
Hey Superman, any idea of how I can get the default font to be Verdana instead of Times New Roman? Since that is what most of my members are used to. Also, have you noticed or not if the default size is the normal size? If not, it would be great to preset that to the normal vbulletin size.
I think it can be done. The default font is correct for Times New Roman, and when submitted, if you don't select a size, it will print out no size, hence Verdana will be the default size, even though it is a bigger font than Times New Roman. If I were to make Verdana the default, it would be Verdana, size 2 (which should be about 10px or so).

EDIT: OK, I have this done. I will release it tomorrow along with the other requests. I know it would be a MAJOR pain in the butt to upgrade everytime a new request was furfilled, so I prefer to do lump upgrades. Does anyone else think Alex (eiSecure) is going to be very surprized at the number of changes that will be done by the time he wakes up tomorrow :p

Superman53142 06-26-2002 05:18 AM

OK, if you really must have this change now, right below the <iframe> there is a <script> tag. Insert this right below the <script....> tag:

idContent.document.write("<style>body { font-family:Verdana; font-size: 12px }</style>");

Admin 06-26-2002 05:33 AM

You can just replace this:
Code:

$threadengine = $DB_site->query_first("SELECT enablewysiwyg FROM user WHERE userid='$bbuserinfo[userid]'");

  if($threadengine[enablewysiwyg]){ eval("dooutput(\"".gettemplate("newthread_wysiwyg")."\");");

  } else { eval("dooutput(\"".gettemplate("newthread")."\");"); }

With:
Code:

  if($bbuserinfo['enablewysiwyg']) {
    eval('dooutput("'.gettemplate('newthread_wysiwyg').'");');
  } else {
    eval('dooutput("'.gettemplate('newthread').'");');
  }

No query needed.

Superman53142 06-26-2002 05:34 AM

So $bbuserinfo works like one of the super-duper-global PHP variables like $HTTP_POST_VARS?

Superman53142 06-26-2002 05:36 AM

I'm outta here. I'll be back in the morning; it's pretty late here.

Admin 06-26-2002 05:37 AM

In the install file it says:
Quote:

11. Extract all the images included in this zip to a new folder called 'toolbars' under your forum's images folder.
They need to be in the 'toolbar' folder, actually.

Admin 06-26-2002 05:39 AM

Quote:

Originally posted by Superman53142
So $bbuserinfo works like one of the super-duper-global PHP variables like $HTTP_POST_VARS?
No, but $bbuserinfo is an array that contains all information from the user and userfield tables for the browsing user.

Anyway, just finished installing this on my local machine. What can I say... touche. :)

Superman53142 06-26-2002 05:42 AM

Quote:

Originally posted by FireFly

No, but $bbuserinfo is an array that contains all information from the user and userfield tables for the browsing user.

Anyway, just finished installing this on my local machine. What can I say... touche. :)

Make the default text Verdana, it looks too sweet!!! Thanks to VeloCD for the idea. I posted like a few posts up on how I did it; just idContent.document.write("<STYLE>BODY { font-family: Verdana; font-size: 12px }</STYLE>");

Admin 06-26-2002 05:44 AM

Shouldn't it translate the vB Code back to visual when you edit a post? I can see the [b] and all that.

Admin 06-26-2002 05:45 AM

Quote:

Originally posted by Superman53142
Make the default text Verdana, it looks too sweet!!! Thanks to VeloCD for the idea. I posted like a few posts up on how I did it; just idContent.document.write("<STYLE>BODY { font-family: Verdana; font-size: 12px }</STYLE>");
Yes I already did that, and it does look very very good. Great job like I said.


All times are GMT. The time now is 01: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
  • Page Generation 0.01376 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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