<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Module: CarCost (Car Operating Costs and Mileage Statistics)</title>
        <description> Module: CarCost
Version: 1.0.2
Author: Oliver Riesen &amp;lt;&amp;#111;&amp;#108;&amp;#105;&amp;#118;&amp;#101;&amp;#114;&amp;#64;&amp;#114;&amp;#105;&amp;#101;&amp;#115;&amp;#101;&amp;#110;&amp;#46;&amp;#111;&amp;#114;&amp;#103;&amp;gt;

Adds link to CarCost (Car Operating Costs and Mileage Statistics) to user profile.

Tested on version 5.2.20.


License:

Free to use, modify, or redistribute this code so long as I am given credit for the original development somewhere. This code comes with absolutly no warranty.


Requirements:

Minimum Phorum version: 5.2.0.


Installation:

1. Unpack the archive.

2. Move the directory &amp;quot;carcost&amp;quot; to the directory &amp;quot;mods&amp;quot; within your Phorum installation. Don&amp;#039;t change the directory name!

3. Login as administrator in Phorum&amp;#039;s administrative interface and go to the &amp;quot;Modules&amp;quot; section.

4. Enable the module &amp;quot;CarCost&amp;quot;.

5. Templates must be configured to show mileage link. Suggested template changes are included below.


Module settings:

This module doesn&amp;#039;t have settings.


Language support:

This module supports multiple languages.

The following languages are included:

- English
- German (formal)
- German (informal) male
- German (informal) female

If you want to translate the module to a new language, you&amp;#039;ll have to do the following:

Copy lang/english.php to lang/yourlang.php (yourlang.php must have the same name as Phorum&amp;#039;s main language file that you use). After this, translate the strings in lang/yourlang.php.

If you have created a translation for this module, please post a zip file containing lang/yourlang.php in this module thread at phorum.org, so the translation can be added to the module package.


Main template customization:

To display the mileage link on various Phorum pages, you will have to edit the Phorum template files. Here is a description of the files and some sample implementations for the emerald template. The added code is shown here inside the a box.

* read.tpl (flat read mode)

Incorporate the code for example like below, to make it show up under the user details.


...
...
&amp;lt;td width=&amp;quot;100%&amp;quot;&amp;gt;
    &amp;lt;div class=&amp;quot;message-author icon-user&amp;quot;&amp;gt;
        {IF MESSAGES-&amp;gt;URL-&amp;gt;PROFILE}&amp;lt;a href=&amp;quot;{MESSAGES-&amp;gt;URL-&amp;gt;PROFILE}&amp;quot;&amp;gt;{/IF}{MESSAGES-&amp;gt;author}{IF MESSAGES-&amp;gt;URL-&amp;gt;PROFILE}&amp;lt;/a&amp;gt;{/IF}
        {IF MESSAGES-&amp;gt;URL-&amp;gt;PM}&amp;lt;small&amp;gt;[ &amp;lt;a href=&amp;quot;{MESSAGES-&amp;gt;URL-&amp;gt;PM}&amp;quot;&amp;gt;{LANG-&amp;gt;PrivateReply}&amp;lt;/a&amp;gt; ]&amp;lt;/small&amp;gt;{/IF}
    &amp;lt;/div&amp;gt;
    ______________________________________________________________
   |                                                              |
    {IF MESSAGES-&amp;gt;user-&amp;gt;mod_carcost}{INCLUDE &amp;quot;carcost::read&amp;quot;}{/IF}
   |______________________________________________________________|

    &amp;lt;small&amp;gt;
    &amp;lt;strong&amp;gt;&amp;lt;a href=&amp;quot;{MESSAGES-&amp;gt;URL-&amp;gt;READ}&amp;quot;&amp;gt;{MESSAGES-&amp;gt;subject}&amp;lt;/a&amp;gt; {IF MESSAGES-&amp;gt;new}&amp;lt;span class=&amp;quot;new-flag&amp;quot;&amp;gt;{MESSAGES-&amp;gt;new}&amp;lt;/span&amp;gt;{/IF}&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;
    {MESSAGES-&amp;gt;datestamp}
    &amp;lt;/small&amp;gt;
&amp;lt;/td&amp;gt;
...
...


* read_hybrid.tpl (hybrid read mode)

Incorporate the code for example like below, to make it show up under the user details.


...
...
&amp;lt;td width=&amp;quot;100%&amp;quot;&amp;gt;
    &amp;lt;div class=&amp;quot;message-author icon-user&amp;quot;&amp;gt;
        {IF MESSAGES-&amp;gt;URL-&amp;gt;PROFILE}&amp;lt;a href=&amp;quot;{MESSAGES-&amp;gt;URL-&amp;gt;PROFILE}&amp;quot;&amp;gt;{/IF}{MESSAGES-&amp;gt;author}{IF MESSAGES-&amp;gt;URL-&amp;gt;PROFILE}&amp;lt;/a&amp;gt;{/IF}
        {IF MESSAGES-&amp;gt;URL-&amp;gt;PM}&amp;lt;small&amp;gt;[ &amp;lt;a href=&amp;quot;{MESSAGES-&amp;gt;URL-&amp;gt;PM}&amp;quot;&amp;gt;{LANG-&amp;gt;PrivateReply}&amp;lt;/a&amp;gt; ]&amp;lt;/small&amp;gt;{/IF}
    &amp;lt;/div&amp;gt;
    _____________________________________________________________________
   |                                                                     |
    {IF MESSAGES-&amp;gt;user-&amp;gt;mod_carcost}{INCLUDE &amp;quot;carcost::read_hybrid&amp;quot;}{/IF}
   |_____________________________________________________________________|

    &amp;lt;small&amp;gt;
    &amp;lt;strong&amp;gt;&amp;lt;a href=&amp;quot;{MESSAGES-&amp;gt;URL-&amp;gt;READ}&amp;quot;&amp;gt;{MESSAGES-&amp;gt;subject}&amp;lt;/a&amp;gt; {IF MESSAGES-&amp;gt;new}&amp;lt;span class=&amp;quot;new-flag&amp;quot;&amp;gt;{MESSAGES-&amp;gt;new}&amp;lt;/span&amp;gt;{/IF}&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;
    {MESSAGES-&amp;gt;datestamp}
    &amp;lt;/small&amp;gt;
&amp;lt;/td&amp;gt;
...
...


* read_threads.tpl (threaded read mode)

Incorporate the code for example like below, to make it show up under the user details.


...
...
&amp;lt;td width=&amp;quot;100%&amp;quot;&amp;gt;
    &amp;lt;div class=&amp;quot;message-author icon-user&amp;quot;&amp;gt;
        {IF MESSAGE-&amp;gt;URL-&amp;gt;PROFILE}&amp;lt;a href=&amp;quot;{MESSAGE-&amp;gt;URL-&amp;gt;PROFILE}&amp;quot;&amp;gt;{/IF}{MESSAGE-&amp;gt;author}{IF MESSAGE-&amp;gt;URL-&amp;gt;PROFILE}&amp;lt;/a&amp;gt;{/IF}
        {IF MESSAGE-&amp;gt;URL-&amp;gt;PM}&amp;lt;small&amp;gt;[ &amp;lt;a href=&amp;quot;{MESSAGE-&amp;gt;URL-&amp;gt;PM}&amp;quot;&amp;gt;{LANG-&amp;gt;PrivateReply}&amp;lt;/a&amp;gt; ]{/IF}
    &amp;lt;/div&amp;gt;
    _____________________________________________________________________
   |                                                                     |
    {IF MESSAGE-&amp;gt;user-&amp;gt;mod_carcost}{INCLUDE &amp;quot;carcost::read_threads&amp;quot;}{/IF}
   |_____________________________________________________________________|
    &amp;lt;div class=&amp;quot;message-date&amp;quot;&amp;gt;{MESSAGE-&amp;gt;datestamp}&amp;lt;/div&amp;gt;
&amp;lt;/td&amp;gt;
...
...


* profile.tpl (if you want the user&amp;#039;s mileage link to appear in the profile
page)

Incorporate the code for example like below, to make it show up under the user details.


...
...
    {IF PROFILE-&amp;gt;date_last_active}
        &amp;lt;dt&amp;gt;{LANG-&amp;gt;DateActive}:&amp;amp;nbsp;&amp;lt;/dt&amp;gt;
        &amp;lt;dd&amp;gt;{PROFILE-&amp;gt;date_last_active}&amp;lt;/dd&amp;gt;
    {/IF}
    __________________________________________________________
   |                                                          |
    {IF PROFILE-&amp;gt;mod_carcost}{INCLUDE &amp;quot;carcost::profile&amp;quot;}{/IF}
   |__________________________________________________________|
&amp;lt;/dl&amp;gt;
...
...



Module template customization:

By default, this module will use the template files from the directory &amp;quot;templates/emerald&amp;quot;.

If you want to modify the templates to make them work better for your site&amp;#039;s template, then do not edit the template files that were in the module distribution. Instead, copy the full directory

  mods/carcost/templates/emerald
to

  mods/carcost/templates/yourtemplatename
(asuming that your active site&amp;#039;s template is stored as &amp;quot;templates/yourtemplatename&amp;quot;) and edit the files in the new directory. Phorum will automatically recognize that you have created a specific template set to use for your site&amp;#039;s active template.


Sanity Checks:

If you have problems with this module login as administrator in Phorum&amp;#039;s administrative interface and go to the &amp;quot;System Sanity Checks&amp;quot; section. Check for warnings or errors for the CarCost Module.

The following checks are performed:

- Exists custom profile field?
- Exists default language file?
- Exists forum specific language file(s)?
- Custom language file(s) contains same array keys as the english file?
- Templates contain includes?


GitHub:

Contribute on GitHub: langzeittest/phorum-module-carcost



Changelog:

2015/08/20 version 1.0.2 by Oliver Riesen &amp;lt;oliver@riesen.org&amp;gt;
- Rewrite of install file.

2008/08/26 version 1.0.1 by Oliver Riesen &amp;lt;oliver@riesen.org&amp;gt;
- Bug fix undefined index in template read.tpl.

2008/05/25 version 1.0.0 by Oliver Riesen &amp;lt;oliver@riesen.org&amp;gt;
- Initial release for Phorum 5.2.</description>
        <link>https://www.phorum.org/support/read.php?62,130538,130538#msg-130538</link>
        <lastBuildDate>Wed, 09 Sep 2026 16:56:25 -0500</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,130538,156005#msg-156005</guid>
            <title>Re: Module: CarCost (Car Operating Costs and Mileage Statistics)</title>
            <link>https://www.phorum.org/support/read.php?62,130538,156005#msg-156005</link>
            <description><![CDATA[ New version 1.0.2:<br />
<br />
<pre class="bbcode">
2015/08/20 version 1.0.2 by Oliver Riesen &lt;oliver@riesen.org&gt;
- Rewrite of install file.
</pre>]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Thu, 20 Aug 2015 06:39:59 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,130538,132796#msg-132796</guid>
            <title>Re: Module: CarCost (Car Operating Costs and Mileage Statistics)</title>
            <link>https://www.phorum.org/support/read.php?62,130538,132796#msg-132796</link>
            <description><![CDATA[ New version 1.0.1:<br />
<br />
<pre class="bbcode">
2008/08/26 version 1.0.1 by Oliver Riesen &lt;oliver@riesen.org&gt;
- Bug fix undefined index in template read.tpl.
</pre>]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 25 Aug 2008 17:04:17 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,130538,130538#msg-130538</guid>
            <title>Module: CarCost (Car Operating Costs and Mileage Statistics)</title>
            <link>https://www.phorum.org/support/read.php?62,130538,130538#msg-130538</link>
            <description><![CDATA[ <b>Module: CarCost</b><br />
<b>Version: 1.0.2</b><br />
<b>Author: Oliver Riesen &lt;<a href="mailto:&#111;&#108;&#105;&#118;&#101;&#114;&#64;&#114;&#105;&#101;&#115;&#101;&#110;&#46;&#111;&#114;&#103;">&#111;&#108;&#105;&#118;&#101;&#114;&#64;&#114;&#105;&#101;&#115;&#101;&#110;&#46;&#111;&#114;&#103;</a>&gt;</b><br />
<br />
Adds link to <a href="http://carcost.langzeittest.de/" target="_blank"  rel="nofollow">CarCost</a> (Car Operating Costs and Mileage Statistics) to user profile.<br />
<br />
Tested on version 5.2.20.<br />
<br />
<br />
<b>License:</b><br />
<br />
Free to use, modify, or redistribute this code so long as I am given credit for the original development somewhere. This code comes with absolutly no warranty.<br />
<br />
<br />
<b>Requirements:</b><br />
<br />
Minimum Phorum version: 5.2.0.<br />
<br />
<br />
<b>Installation:</b><br />
<br />
1. Unpack the archive.<br />
<br />
2. Move the directory &quot;carcost&quot; to the directory &quot;mods&quot; within your Phorum installation. Don&#039;t change the directory name!<br />
<br />
3. Login as administrator in Phorum&#039;s administrative interface and go to the &quot;Modules&quot; section.<br />
<br />
4. Enable the module &quot;CarCost&quot;.<br />
<br />
5. Templates must be configured to show mileage link. Suggested template changes are included below.<br />
<br />
<br />
<b>Module settings:</b><br />
<br />
This module doesn&#039;t have settings.<br />
<br />
<br />
<b>Language support:</b><br />
<br />
This module supports multiple languages.<br />
<br />
The following languages are included:<br />
<br />
- English<br />
- German (formal)<br />
- German (informal) male<br />
- German (informal) female<br />
<br />
If you want to translate the module to a new language, you&#039;ll have to do the following:<br />
<br />
Copy lang/english.php to lang/yourlang.php (yourlang.php must have the same name as Phorum&#039;s main language file that you use). After this, translate the strings in lang/yourlang.php.<br />
<br />
If you have created a translation for this module, please post a zip file containing lang/yourlang.php in this module thread at phorum.org, so the translation can be added to the module package.<br />
<br />
<br />
<b>Main template customization:</b><br />
<br />
To display the mileage link on various Phorum pages, you will have to edit the Phorum template files. Here is a description of the files and some sample implementations for the emerald template. The added code is shown here inside the a box.<br />
<br />
* read.tpl (flat read mode)<br />
<br />
Incorporate the code for example like below, to make it show up under the user details.<br />
<br />
<pre class="bbcode"><span style="font-size:small">
...
...
&lt;td width=&quot;100%&quot;&gt;
    &lt;div class=&quot;message-author icon-user&quot;&gt;
        {IF MESSAGES-&gt;URL-&gt;PROFILE}&lt;a href=&quot;{MESSAGES-&gt;URL-&gt;PROFILE}&quot;&gt;{/IF}{MESSAGES-&gt;author}{IF MESSAGES-&gt;URL-&gt;PROFILE}&lt;/a&gt;{/IF}
        {IF MESSAGES-&gt;URL-&gt;PM}&lt;small&gt;[ &lt;a href=&quot;{MESSAGES-&gt;URL-&gt;PM}&quot;&gt;{LANG-&gt;PrivateReply}&lt;/a&gt; ]&lt;/small&gt;{/IF}
    &lt;/div&gt;
    ______________________________________________________________
   |                                                              |
    <b>{IF MESSAGES-&gt;user-&gt;mod_carcost}{INCLUDE &quot;carcost::read&quot;}{/IF}</b>
   |______________________________________________________________|

    &lt;small&gt;
    &lt;strong&gt;&lt;a href=&quot;{MESSAGES-&gt;URL-&gt;READ}&quot;&gt;{MESSAGES-&gt;subject}&lt;/a&gt; {IF MESSAGES-&gt;new}&lt;span class=&quot;new-flag&quot;&gt;{MESSAGES-&gt;new}&lt;/span&gt;{/IF}&lt;/strong&gt;&lt;br /&gt;
    {MESSAGES-&gt;datestamp}
    &lt;/small&gt;
&lt;/td&gt;
...
...
</span></pre>
<br />
* read_hybrid.tpl (hybrid read mode)<br />
<br />
Incorporate the code for example like below, to make it show up under the user details.<br />
<br />
<pre class="bbcode"><span style="font-size:small">
...
...
&lt;td width=&quot;100%&quot;&gt;
    &lt;div class=&quot;message-author icon-user&quot;&gt;
        {IF MESSAGES-&gt;URL-&gt;PROFILE}&lt;a href=&quot;{MESSAGES-&gt;URL-&gt;PROFILE}&quot;&gt;{/IF}{MESSAGES-&gt;author}{IF MESSAGES-&gt;URL-&gt;PROFILE}&lt;/a&gt;{/IF}
        {IF MESSAGES-&gt;URL-&gt;PM}&lt;small&gt;[ &lt;a href=&quot;{MESSAGES-&gt;URL-&gt;PM}&quot;&gt;{LANG-&gt;PrivateReply}&lt;/a&gt; ]&lt;/small&gt;{/IF}
    &lt;/div&gt;
    _____________________________________________________________________
   |                                                                     |
    <b>{IF MESSAGES-&gt;user-&gt;mod_carcost}{INCLUDE &quot;carcost::read_hybrid&quot;}{/IF}</b>
   |_____________________________________________________________________|

    &lt;small&gt;
    &lt;strong&gt;&lt;a href=&quot;{MESSAGES-&gt;URL-&gt;READ}&quot;&gt;{MESSAGES-&gt;subject}&lt;/a&gt; {IF MESSAGES-&gt;new}&lt;span class=&quot;new-flag&quot;&gt;{MESSAGES-&gt;new}&lt;/span&gt;{/IF}&lt;/strong&gt;&lt;br /&gt;
    {MESSAGES-&gt;datestamp}
    &lt;/small&gt;
&lt;/td&gt;
...
...
</span></pre>
<br />
* read_threads.tpl (threaded read mode)<br />
<br />
Incorporate the code for example like below, to make it show up under the user details.<br />
<br />
<pre class="bbcode"><span style="font-size:small">
...
...
&lt;td width=&quot;100%&quot;&gt;
    &lt;div class=&quot;message-author icon-user&quot;&gt;
        {IF MESSAGE-&gt;URL-&gt;PROFILE}&lt;a href=&quot;{MESSAGE-&gt;URL-&gt;PROFILE}&quot;&gt;{/IF}{MESSAGE-&gt;author}{IF MESSAGE-&gt;URL-&gt;PROFILE}&lt;/a&gt;{/IF}
        {IF MESSAGE-&gt;URL-&gt;PM}&lt;small&gt;[ &lt;a href=&quot;{MESSAGE-&gt;URL-&gt;PM}&quot;&gt;{LANG-&gt;PrivateReply}&lt;/a&gt; ]{/IF}
    &lt;/div&gt;
    _____________________________________________________________________
   |                                                                     |
    <b>{IF MESSAGE-&gt;user-&gt;mod_carcost}{INCLUDE &quot;carcost::read_threads&quot;}{/IF}</b>
   |_____________________________________________________________________|
    &lt;div class=&quot;message-date&quot;&gt;{MESSAGE-&gt;datestamp}&lt;/div&gt;
&lt;/td&gt;
...
...
</span></pre>
<br />
* profile.tpl (if you want the user&#039;s mileage link to appear in the profile<br />
page)<br />
<br />
Incorporate the code for example like below, to make it show up under the user details.<br />
<br />
<pre class="bbcode"><span style="font-size:small">
...
...
    {IF PROFILE-&gt;date_last_active}
        &lt;dt&gt;{LANG-&gt;DateActive}:&amp;nbsp;&lt;/dt&gt;
        &lt;dd&gt;{PROFILE-&gt;date_last_active}&lt;/dd&gt;
    {/IF}
    __________________________________________________________
   |                                                          |
    <b>{IF PROFILE-&gt;mod_carcost}{INCLUDE &quot;carcost::profile&quot;}{/IF}</b>
   |__________________________________________________________|
&lt;/dl&gt;
...
...
</span></pre>
<br />
<br />
<b>Module template customization:</b><br />
<br />
By default, this module will use the template files from the directory &quot;templates/emerald&quot;.<br />
<br />
If you want to modify the templates to make them work better for your site&#039;s template, then do not edit the template files that were in the module distribution. Instead, copy the full directory<br />
<pre class="bbcode">
  mods/carcost/templates/emerald</pre>
to<br />
<pre class="bbcode">
  mods/carcost/templates/yourtemplatename</pre>
(asuming that your active site&#039;s template is stored as &quot;templates/yourtemplatename&quot;) and edit the files in the new directory. Phorum will automatically recognize that you have created a specific template set to use for your site&#039;s active template.<br />
<br />
<br />
<b>Sanity Checks:</b><br />
<br />
If you have problems with this module login as administrator in Phorum&#039;s administrative interface and go to the &quot;System Sanity Checks&quot; section. Check for warnings or errors for the CarCost Module.<br />
<br />
The following checks are performed:<br />
<br />
- Exists custom profile field?<br />
- Exists default language file?<br />
- Exists forum specific language file(s)?<br />
- Custom language file(s) contains same array keys as the english file?<br />
- Templates contain includes?<br />
<br />
<br />
<b>GitHub:</b><br />
<br />
Contribute on GitHub: <a href="https://github.com/langzeittest/phorum-module-carcost" target="_blank"  rel="nofollow">langzeittest/phorum-module-carcost<br />
</a><br />
<br />
<br />
<b>Changelog:</b><br />
<br />
2015/08/20 version 1.0.2 by Oliver Riesen &lt;oliver@riesen.org&gt;<br />
- Rewrite of install file.<br />
<br />
2008/08/26 version 1.0.1 by Oliver Riesen &lt;oliver@riesen.org&gt;<br />
- Bug fix undefined index in template read.tpl.<br />
<br />
2008/05/25 version 1.0.0 by Oliver Riesen &lt;oliver@riesen.org&gt;<br />
- Initial release for Phorum 5.2.]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 28 May 2008 09:11:37 -0500</pubDate>
        </item>
    </channel>
</rss>
