Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 19

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 08.05.2004, 04:09   #1 (permalink)
Baby Mamber
 
Join Date: May 2004
Posts: 8
dafokka is on a distinguished road
Default Tracker module

Hey guys,

I coded a generic tracker module. The readme describes its functionality:

hhhTracker v0.1 Readme
(C)2004, Bram Fokke, De Drie Heren, bram@fokke.net

INTRODUCTION
This is the quick'n'dirty readme file for the hhhTracker module. This module has been created as a first attempt at writing a Mambo module.

FUNCTIONALITY
The functionality is pretty simple. This module displays a list of dated entries from a database table and optionally links to them. This method of displaying information is used in portal sites like fok.nl and tweakers.net. The output can look like this:

New Users
21:15 DaFokka
18:30 Soebas
08:21 Shazith
03:44 Kruis
01:13 PandaBorrel
19-06 Erik
19-06 vdHoeven

The appearance can be modified by changing some parameters and using a style sheet.

PARAMETERS
Parameter: 'table_name'
specifies the name of the table to use.
Required.

Parameter: 'date_field'
Name of the field that contains the date to use as timestamp.
Required.

Parameter: 'name_field'
Name of the field that contains the name to use as title
Required.

Parameter: 'id_field'
Name of the field that contains the id. If this field is empty, the tracker can't link to the object being listed, but the tracker will display correctly.
Default: <empty>

Parameter: 'link'
URL of the link to link to the object. The ID is appended at the end so probably you'll want to use something like 'viewuser.php?userid='
Default: <empty>

Parameter: 'title'
Title of the tracker. If the title is empty (the default), no title will be displayed.
Default: <empty>

Parameter: 'max_size'
If the 'name' is longer than 'max_size' characters, the name will be truncated and '...' will be appended.
Default: 20
Minimum value: 5

Parameter: 'limit'
The length of the tracker in lines.
Default: 10
Minimum value: 1
Maximum value: 100

CSS STYLES
To control the layout of the tracker, you can use several CSS classes:

class: hhh_tracker_title: used to format the title
class: hhh_tracker_entry: used to format the layer (<div> tag) that encloses each entry.
class: hhh_tracker_timestamp: used to format the timestamp
class: hhh_tracker_name: used to format the name if it's not a link
class: hhh_tracker_link: used to format the name if it's a link

EXAMPLES
The following parameters create a tracker which lists the newest users:
title=Newest users
table_name=mos_users
date_field=registerDate
name_field=name

The following parameters create a tracker which lists the users which have been online most recently:
title=Online users
table_name=mos_users
date_field=lastvisitDate
name_field=name

The following parameters create a tracker which lists the most recent content:
title=Recent content
table_name=mos_content
date_field=created
name_field=title
id_field=id
link=index.php?option=content&task=view&id=

DISCLAIMER
I can make no guarantees whatsoever on the functioning of this tiny piece of code. Furthermore I can not promise it will enhance your website, your sex life or your general well being, although I have done my best to try to do so.
If you have questions or remarks don't hestitate to e-mail me at bram@fokke.net
.

THANKS
I'd like to thank the Mambo Development team. It rocks. And I'd like to thank Guido Jansen for introducing me into Mambo.
The module can be downloaded at:
http://www.fokke.net/download/mod_hhhtracker.tar.gz
dafokka is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 08.05.2004, 12:21   #2 (permalink)
Professional Mamber
 
stingrey's Avatar
 
Join Date: Apr 2004
Location: Marikina, Manila, Philippines
Posts: 776
stingrey is on a distinguished road
Default Re: Tracker module

Well done on releasing your first mambo module


Have you thought of getting project space on MOSForge
__________________
Joomla! Core Team Member
Software Coding & Design - Stability Team Leader
www.joomla.org
Former Mambo Core Team Member
stingrey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08.05.2004, 12:23   #3 (permalink)
Expert Mamber
 
visualdensity's Avatar
 
Join Date: Apr 2004
Location: Melbourne
Posts: 385
visualdensity is on a distinguished road
Send a message via ICQ to visualdensity Send a message via MSN to visualdensity
Default Re: Tracker module

Sounds like a great module!

Thanks for sharing it with the community.
__________________
"If you cannot win, make the one ahead of you break the record."
| Visualdensity.com |
visualdensity is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08.05.2004, 15:33   #4 (permalink)
Baby Mamber
 
Join Date: May 2004
Posts: 8
dafokka is on a distinguished road
Default Re: Tracker module

Quote:
Originally Posted by stingrey
Well done on releasing your first mambo module


Have you thought of getting project space on MOSForge
I have just submitted it, Thanks for the suggestion!
dafokka is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yanc Subscribe Module 1.2 Released visualdensity Development Announcements 24 14.10.2005 14:06
Module displaying any content dulik Module 'How Do I' Questions 3 21.12.2004 21:05
New module - Info PC setup Development Announcements 4 18.06.2004 19:29
New Module - General setup Development Announcements 0 01.05.2004 23:59
General Module setup Module Development 0 24.04.2004 23:34


All times are GMT +2. The time now is 09:47.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.