vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBCalculator version 1.1 (https://vborg.vbsupport.ru/showthread.php?t=83345)

yoyoyoyo 06-17-2005 10:00 PM

vBCalculator version 1.1
 
vBCalculator
version 1.1

http://img118.echo.cx/img118/885/screenshot3da.jpg

TEMPLATE EDITS: 2 (headinclude, NAVBAR)
NEW TEMPLATES: 1 (calculator)
NEW PHP FILES: 1 (calculator.php)
SCREENSHOTS INCLUDED IN ZIP FILE



TIME TO INSTALL: Less than 5 minutes
LEVEL OF DIFFICULTY: Beginner/Simple


This hack adds a popup multi-function scientific calculator to your forum. In additon to the normal calculator functions (Additon, Subtraction, Multiplication, Division, Equals), this calculator also features Square Root, exponential, cosine, inverse cosine, arcsine, tangent, inverse tangent, squared, cubed, subset and pi functions, as well as memory functions.

INSTALLATION:

1) Go to ADMIN CP -> STYLES & TEMPLATES -> ADD NEW TEMPLATE and create a template called calculator with the contents of template.calculator.txt and click save.

2) Go to ADMIN CP -> STYLES & TEMPLATES -> EDIT TEMPLATES and add the contents of template.headinclude.txt to the end of the headinclude template and click save.

3) Go to ADMIN CP -> STYLES & TEMPLATES -> EDIT TEMPLATES and open the NAVBAR template and search for the following:
Code:

<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]">$vbphrase[subscribed_threads]</a></td></tr>
BEFORE add:
Code:

<td class="vbmenu_option"><a href="#" onclick="window.open('calculator.php','calculator','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=510,height=235'); return false;">Calculator</a></td>
4) Upload calculator.php to your forum root directory

5) That's it! Go to your forum NAVBAR -> QUICK LINKS -> Calculator to view your new popup calculator.

PLEASE CLICK INSTALL

version changes:

1.1: changed the calculator to a popup menu (redo the NAVBAR template edit and replace the contents of the calculator template to upgrade from 1.0) Thanks to nexialys for the suggestion.

yoyoyoyo 06-18-2005 04:45 PM

here are some screenshots

nexialys 06-18-2005 04:56 PM

would be good to have this as a popup, like the buddylist, instead of a full page, so we can continue browsing during calculations...

yoyoyoyo 06-18-2005 04:58 PM

Quote:

Originally Posted by nexialys
would be good to have this as a popup, like the buddylist, instead of a full page, so we can continue browsing during calculations...

good idea! thanks... I will add it in a bit.

dsboyce8624 06-18-2005 05:42 PM

Quote:

Originally Posted by nexialys
would be good to have this as a popup, like the buddylist, instead of a full page, so we can continue browsing during calculations...

Let us know when this is done. Then I would install.

yoyoyoyo 06-18-2005 05:45 PM

Quote:

Originally Posted by dsboyce8624
Let us know when this is done. Then I would install.

The file has been updated to version 1.1, thanks to the popup suggestion from nexialys.

bigcurt 06-18-2005 08:16 PM

Haha, I am sorry but PWNED...a calculator? NICE!

dsboyce8624 06-18-2005 08:42 PM

Quote:

Originally Posted by yoyoyoyo
The file has been updated to version 1.1, thanks to the popup suggestion from nexialys.

Thanks.

Boofo 08-10-2005 05:43 PM

will this work on 3.5?

yoyoyoyo 08-11-2005 01:48 PM

Quote:

Originally Posted by Boofo
will this work on 3.5?

I don't see why not since it is only a popup javascript window.

Boofo 08-13-2005 04:29 PM

The buttons look all squished in IE for me. Anyway to get the buttons looking like in your pick?

yoyoyoyo 08-14-2005 12:15 AM

Quote:

Originally Posted by Boofo
The buttons look all squished in IE for me. Anyway to get the buttons looking like in your pick?

hmm.. maybe a cellspacing issue? I will fire up IE and check it out

mbracing 08-14-2005 08:08 PM

VERY confussing directions. I cant get it to show up, first your talking about a calculator template, then you just move on to Headlinclude template...
Im very dissapointed and i want this hack on my site.

mbracing 08-14-2005 08:16 PM

Quote:

Originally Posted by mbracing
VERY confussing directions. I cant get it to show up, first your talking about a calculator template, then you just move on to Headlinclude template...
Im very dissapointed and i want this hack on my site.

EDIT: Now i got it to show up in the quick links, but it is not loading up. the box comes up and its blank.

Boofo 08-15-2005 05:14 AM

Quote:

Originally Posted by yoyoyoyo
hmm.. maybe a cellspacing issue? I will fire up IE and check it out

Any luck yet?

Boofo 08-22-2005 01:18 PM

Quote:

Originally Posted by yoyoyoyo
hmm.. maybe a cellspacing issue? I will fire up IE and check it out

What did you find out?

Boofo 08-23-2005 11:47 AM

Ok, I'll wait until it is fixed to re-install since it seems the support now seems non-existant for this.

yoyoyoyo 08-23-2005 12:26 PM

Quote:

Originally Posted by Boofo
Ok, I'll wait until it is fixed to re-install since it seems the support now seems non-existant for this.

Sorry Boofo, I didn't forget about you, I have just been busy launching another site.

Try this for your "calculator" template and let me know if ti fixes the problem for you:

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] vBCalculator</title>
$headinclude
</head>
<!-- BEGIN CALCULATOR -->
<FORM NAME="vBCalculate">

<CENTER><TABLE BORDER=6 CELLSPACING=2 CELLPADDING=2>
<TR><TD COLSPAN=7 VALIGN=MIDDLE ALIGN=CENTER NOWRAP><B><FONT SIZE=+1>vBCalculator</FONT></B></TD></TR>

<TR><TD COLSPAN=6 VALIGN=MIDDLE ALIGN=left NOWRAP><input type=text Name="result"

size=40></TD><TD></td><TD></td></TR>

<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="=" onClick="calcul(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="^2" onClick="calculox(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="sqrt" onClick="calcusq(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="sin" onClick="calcusin(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="cos" onClick="calculon(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="tan" onClick="calcutan(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="exp" onClick="calcuexp(this.form)"></TD><TD

rowspan=2><TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="->M" onClick="calcumk(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="<-M" onClick="calcumrx(this.form)"></TD></TR>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="+M" onClick="calcumtemp(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="clM" onClick="calcxmc(this.form)"></TD></TR>
</TABLE></td></TR>


<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="pi" onClick="calcxpi(this.form)"></TD>

<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="^3" onClick="calcx3(this.form)"></TD>

<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="clr" onClick="calcxcl(this.form)"></TD>

<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="asin" onClick="calcxas(this.form)"></TD>

<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="acos" onClick="calcxac(this.form)"></TD>
<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="atan" onClick="calcxat(this.form)"></TD>
<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="ln" onClick="calcxlo(this.form)"></TD></TR>


<TR><TD COLSPAN=6 VALIGN=MIDDLE ALIGN=CENTER><TABLE><TR><TD><TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="0" onClick="calcx0(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="1" onClick="calcx1(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="2" onClick="calcxn2(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="3" onClick="calcxn3(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="+" onClick="calcxplu(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="-" onClick="calcxmin(this.form)"></TD></TR>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="4" onClick="calcx4(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="5" onClick="calcx5(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="6" onClick="calcx6(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="7" onClick="calcx7(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="*" onClick="calcxmul(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="/" onClick="calcdiv(this.form)"></TD></TR>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="8" onClick="calcx8(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="9" onClick="calcx9(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="." onClick="calcxper(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="e" onClick="calcxe(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="(" onClick="calcxleft(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE=")" onClick="calcxright(this.form)"></TD></TR>
</TABLE></TD><TD><TABLE BORDER=3 CELLSPACING=0 CELLPADDING=0>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="=" onClick="calcul(this.form)"></TD></TR>
</TABLE></td></tr></table></TD><TD></TD><TD VALIGN=MIDDLE ALIGN=CENTER><B><FONT SIZE=2>vBCalculator<br></FONT></B><FONT SIZE=1>by yoyoyoyo</FONT></TD></TR>
</TABLE></CENTER>
<input type=hidden name="memory">
</form>
<!-- END CALCULATOR -->
</body>
</html>


Boofo 08-23-2005 01:04 PM

Nope, didn't change anything. :(

yoyoyoyo 08-23-2005 01:40 PM

ok- then let's get more drastic with the cellpadding/spacing:

try this
Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] vBCalculator</title>
$headinclude
</head>
<!-- BEGIN CALCULATOR -->
<FORM NAME="vBCalculate">

<CENTER><TABLE BORDER=6 CELLSPACING=2 CELLPADDING=2>
<TR><TD COLSPAN=7 VALIGN=MIDDLE ALIGN=CENTER NOWRAP><B><FONT SIZE=+1>vBCalculator</FONT></B></TD></TR>

<TR><TD COLSPAN=6 VALIGN=MIDDLE ALIGN=left NOWRAP><input type=text Name="result"

size=40></TD><TD></td><TD></td></TR>

<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="=" onClick="calcul(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="^2" onClick="calculox(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="sqrt" onClick="calcusq(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="sin" onClick="calcusin(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="cos" onClick="calculon(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="tan" onClick="calcutan(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="exp" onClick="calcuexp(this.form)"></TD><TD

rowspan=2><TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="->M" onClick="calcumk(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="<-M" onClick="calcumrx(this.form)"></TD></TR>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="+M" onClick="calcumtemp(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="clM" onClick="calcxmc(this.form)"></TD></TR>
</TABLE></td></TR>


<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="pi" onClick="calcxpi(this.form)"></TD>

<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="^3" onClick="calcx3(this.form)"></TD>

<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="clr" onClick="calcxcl(this.form)"></TD>

<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="asin" onClick="calcxas(this.form)"></TD>

<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="acos" onClick="calcxac(this.form)"></TD>
<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="atan" onClick="calcxat(this.form)"></TD>
<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="ln" onClick="calcxlo(this.form)"></TD></TR>


<TR><TD COLSPAN=6 VALIGN=MIDDLE ALIGN=CENTER><TABLE><TR><TD><TABLE BORDER=1 CELLSPACING=8 CELLPADDING=6>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="0" onClick="calcx0(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="1" onClick="calcx1(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="2" onClick="calcxn2(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="3" onClick="calcxn3(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="+" onClick="calcxplu(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="-" onClick="calcxmin(this.form)"></TD></TR>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="4" onClick="calcx4(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="5" onClick="calcx5(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="6" onClick="calcx6(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="7" onClick="calcx7(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="*" onClick="calcxmul(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="/" onClick="calcdiv(this.form)"></TD></TR>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="8" onClick="calcx8(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="9" onClick="calcx9(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="." onClick="calcxper(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="e" onClick="calcxe(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="(" onClick="calcxleft(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE=")" onClick="calcxright(this.form)"></TD></TR>
</TABLE></TD><TD><TABLE BORDER=3 CELLSPACING=0 CELLPADDING=0>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="=" onClick="calcul(this.form)"></TD></TR>
</TABLE></td></tr></table></TD><TD></TD><TD VALIGN=MIDDLE ALIGN=CENTER><B><FONT SIZE=2>vBCalculator<br></FONT></B><FONT SIZE=1>by yoyoyoyo</FONT></TD></TR>
</TABLE></CENTER>
<input type=hidden name="memory">
</form>
<!-- END CALCULATOR -->
</body>
</html>

If you like the look of that you will probably need to resize the popup window in your navbar link since it resizes the window a bit.

Boofo 08-23-2005 02:21 PM

Nope, didn't make the buttons themselves any wider. Just the background for them.

yoyoyoyo 08-23-2005 03:42 PM

sorry- I misunderstood- in that case try this:
Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] vBCalculator</title>
$headinclude
</head>
<!-- BEGIN CALCULATOR -->
<FORM NAME="vBCalculate">

<CENTER><TABLE BORDER=6 CELLSPACING=2 CELLPADDING=2>
<TR><TD COLSPAN=7 VALIGN=MIDDLE ALIGN=CENTER NOWRAP><B><FONT SIZE=+1>vBCalculator</FONT></B></TD></TR>

<TR><TD COLSPAN=6 VALIGN=MIDDLE ALIGN=left NOWRAP><input type=text Name="result"

size=40></TD><TD></td><TD></td></TR>

<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;=&nbsp;" onClick="calcul(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;^2&nbsp;" onClick="calculox(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;sqrt&nbsp;" onClick="calcusq(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;sin&nbsp;" onClick="calcusin(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;cos&nbsp;" onClick="calculon(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;tan&nbsp;" onClick="calcutan(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;exp&nbsp;" onClick="calcuexp(this.form)"></TD><TD

rowspan=2><TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;->M&nbsp;" onClick="calcumk(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;<-M&nbsp;" onClick="calcumrx(this.form)"></TD></TR>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;+M&nbsp;" onClick="calcumtemp(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;clM&nbsp;" onClick="calcxmc(this.form)"></TD></TR>
</TABLE></td></TR>


<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;pi&nbsp;" onClick="calcxpi(this.form)"></TD>

<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;^3&nbsp;" onClick="calcx3(this.form)"></TD>

<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;clr&nbsp;" onClick="calcxcl(this.form)"></TD>

<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;asin&nbsp;" onClick="calcxas(this.form)"></TD>

<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;acos&nbsp;" onClick="calcxac(this.form)"></TD>
<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;atan&nbsp;" onClick="calcxat(this.form)"></TD>
<TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;ln&nbsp;" onClick="calcxlo(this.form)"></TD></TR>


<TR><TD COLSPAN=6 VALIGN=MIDDLE ALIGN=CENTER><TABLE><TR><TD><TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;0&nbsp;" onClick="calcx0(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;1&nbsp;" onClick="calcx1(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;2&nbsp;" onClick="calcxn2(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;3&nbsp;" onClick="calcxn3(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;+&nbsp;" onClick="calcxplu(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="-" onClick="calcxmin(this.form)"></TD></TR>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;4&nbsp;" onClick="calcx4(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;5&nbsp;" onClick="calcx5(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;6&nbsp;" onClick="calcx6(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;7&nbsp;" onClick="calcx7(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;*&nbsp;" onClick="calcxmul(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;/&nbsp;" onClick="calcdiv(this.form)"></TD></TR>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;8&nbsp;" onClick="calcx8(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;9&nbsp;" onClick="calcx9(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;.&nbsp;" onClick="calcxper(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;e&nbsp;" onClick="calcxe(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;(&nbsp;" onClick="calcxleft(this.form)"></TD><TD

VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;)&nbsp;" onClick="calcxright(this.form)"></TD></TR>
</TABLE></TD><TD><TABLE BORDER=3 CELLSPACING=0 CELLPADDING=0>
<TR><TD VALIGN=MIDDLE ALIGN=CENTER><INPUT TYPE="button" VALUE="&nbsp;=&nbsp;" onClick="calcul(this.form)"></TD></TR>
</TABLE></td></tr></table></TD><TD></TD><TD VALIGN=MIDDLE ALIGN=CENTER><B><FONT SIZE=2>vBCalculator<br></FONT></B><FONT SIZE=1>by yoyoyoyo</FONT></TD></TR>
</TABLE></CENTER>
<input type=hidden name="memory">
</form>
<!-- END CALCULATOR -->
</body>
</html>


Boofo 08-23-2005 04:31 PM

Well, that's a little better. The numbers buttons look right now but the buttons above them are still off size.

Boofo 09-16-2005 09:19 PM

Any more luck yet? LOL

Also, maybe a small help file to tell the user what the certain calculations do? ;)

yesfans 03-11-2006 04:08 PM

Great little addition. I can't count how many times I was online and wife or kid needed a quick HOW MUCH IS THIS and I had to scramble to find a calc or pull it up on my PC. Great stuff!


All times are GMT. The time now is 03:14 AM.

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.01274 seconds
  • Memory Usage 1,879KB
  • 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
  • (5)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete