PDA

View Full Version : Attachment Stats Module


ericgtr
12-23-2004, 12:15 PM
I made this same mod for forumhome and decided to also create a module for it. It will display the following:

Total Files
Space Used
Total Downloads

Create a template called adv_portal_attach

Paste this inside of it:


<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] Attachment Stats</b></span></td>
</tr>
<tr>
<td class="$getbgrow" align="center">

<div>$vbphrase[block_attach_total]: $total_attach[count]<br />
$vbphrase[block_space_used]: $total_hits2_in_mb mb<br />
$vbphrase[block_total_downloads]: $total_downloads

</td>
</tr>
</table>
<br/>


Upload the attach.php file to your modules directory

Create a new module.

Module Title: Attachment Stats
Module Indentifier: (leave blank)
File to Include: Choose attach.php
OR Template to Include: (leave blank)
Templates Used: adv_portal_attach

Add 3 new phrases:

Type: Global
Varname: block_attach_total
Text: Total Files

Type: Global
Varname: block_space_used
Text: Space Used

Type: Global
Varname: block_total_downloads
Text: Total Downloads

That's it :)