/    Sign up×
Community /Pin to ProfileBookmark

Joomla Click Counter

i have a component and module working together which display a list of link on my homepage.

what i want to do now is to have it so that each time a link is clicked, that a hit for that link is recorded.

i am using mysql and php.
i have a column in my table for it already.

the query and all is simple to do, the issue is joomla.
normally i would just have the link direct to an internal page with the id number of the link from the database.

but with joomla it’s not that simple because all of the joomla variables are not there, variables such as the credentials for the database..

anyone have an idea?

to post a comment
Full-stack Developer

3 Comments(s)

Copy linkTweet thisAlerts:
@toicontienJul 15.2008 — I've had some experience developing for Joomla. Try out the Joomla website -- www.joomla.org -- and look at the documentation. Maybe post this question in the Joomla forums? They have forums specifically for module/component creation.
Copy linkTweet thisAlerts:
@ripken204authorJul 15.2008 — look at the Joomla documentation, haha, that is the worst documentation ever. but i have it figured out now. thanks.
Copy linkTweet thisAlerts:
@toicontienJul 15.2008 — Yeah. Joomla documentation is pretty much a joke right now. Hopefully that will be improving soon.
×

Success!

Help @ripken204 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...