PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Windows Mobile Software (http://forum.ppcgeeks.com/forumdisplay.php?f=23)
-   -   MPG Calculator for Pocket PC (http://forum.ppcgeeks.com/showthread.php?t=146)

DavidIQ 07-05-2006 05:01 PM

MPG Calculator for Pocket PC
 
4 Attachment(s)
A while back, on a forum I run for the Suzuki Aerio, I had an idea for creating a program to keep track and calculate your Miles Per Gallon. So I came up with the one attached here. Makes it easy to keep track of your MPG and see how well you're doing gas-wise. Written in .NET 2005 so you'll need the .NET Framework 2.0 unless you have Windows Mobile 2005 in which case you already have it. Ignore any warnings about the installer if you're on WM2005.

There might be bugs in this thing so if you find one let me know and I'll get right on it.

EDIT: added file for those accessing via PPC.

Wideawake 07-05-2006 06:04 PM

sweet I always wanted to know my mpg and this is a good way to do that. if I run into any bugs ill let ya know. note everyone this is a .exe that has to run on the desktop to install.
~mike

wingzero 07-05-2006 10:05 PM

This is nice. I always kept a log for my car. My commute to work is 150 miles everyday and keeping an eye on gas usage is important to me. Now I might have alittle fun doing it on the ppc. :P

DavidIQ 07-06-2006 11:23 PM

Cool. If need be I can also post this as a zipped cab file for easier access via WAP.

I noticed that the download times doesn't increment. Bummer. Most probably incremented by the download.php page. We may need to take that out of the template so it doesn't show...unless you want it to stay there.

Wideawake 07-06-2006 11:27 PM

I really wanted it to work, but noticed it stopped after moddifing the download.php. Any idea if we can get it back to working order? If not we can just remove it. and ya a zipped .cab would be great! I myself and I think alot of the members use their ppcs when accessing the board.
~mike

DavidIQ 07-06-2006 11:37 PM

There's a way to do this so it only affects those downloads that you actually have to click on. Images and streams would still show the downloaded times part. All you would need to change in viewtopic_attach_body.tpl is:

Code:

#
##FIND
#
                <td rowspan="4" align="center" width="10%" class="attachrow">{postrow.attach.attachrow.S_UPLOAD_IMAGE}
{L_DOWNLOAD}</td>

#
##REPLACE WITH
#

                <td rowspan="3" align="center" width="10%" class="attachrow">{postrow.attach.attachrow.S_UPLOAD_IMAGE}
{L_DOWNLOAD}</td>

#
##FIND
#
        <tr>
                <td width="15%" class="attachrow"><span class="genmed">{postrow.attach.attachrow.L_DOWNLOADED_VIEWED}:</span></td>
                <td width="75%" class="attachrow"><span class="genmed">{postrow.attach.attachrow.L_DOWNLOAD_COUNT}</span></td>
        </tr>

#
##REPLACE WITH
#
<!--
        <tr>
                <td width="15%" class="attachrow"><span class="genmed">{postrow.attach.attachrow.L_DOWNLOADED_VIEWED}:</span></td>
                <td width="75%" class="attachrow"><span class="genmed">{postrow.attach.attachrow.L_DOWNLOAD_COUNT}</span></td>
        </tr>
-->

I'll put up the zipped cab version tomorrow.

Wideawake 07-06-2006 11:55 PM

yea that removed them perfectly, but it kindof makes things a mess. the downloads area has a section that say downloaded, I sure I can omit it the same way. So there isnt away fix the download counter?
~mike

DavidIQ 07-07-2006 07:42 AM

Not without using download.php which is what is actually incrementing the counter. :?
I can try and look at what's making the images increment the counter and see if something in the code doing that can be added to the downloadable ones.

Wideawake 07-07-2006 07:49 AM

I didn't think of that or I would have tried that. I added the super quick reply mod last night, and like a idiot didn't back up. And ran into some probelms I'm trying to fix, with the quick reply box, and the user name hyperlinking to the profile instead of whatever they have it linked now. I may have a lookcy at the download.php in a min.
~mike

DavidIQ 07-07-2006 07:54 AM

Weird....using the SQR makes the post come up a bit to the right. :|


All times are GMT -4. The time now is 10:28 PM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0