The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vBCalculator version 1.1 Details »» | |||||||||||||||||||||||||
vBCalculator
version 1.1 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> 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> 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. Supporters / CoAuthors Show Your Support
|
Comments |
#12
|
||||
|
||||
The buttons look all squished in IE for me. Anyway to get the buttons looking like in your pick?
|
#13
|
||||
|
||||
Quote:
|
#14
|
||||
|
||||
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. |
#15
|
||||
|
||||
Quote:
|
#16
|
||||
|
||||
Quote:
|
#17
|
||||
|
||||
Quote:
|
#18
|
||||
|
||||
Ok, I'll wait until it is fixed to re-install since it seems the support now seems non-existant for this.
|
#19
|
||||
|
||||
Quote:
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> |
#20
|
||||
|
||||
Nope, didn't change anything.
|
#21
|
||||
|
||||
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> |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|