vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Tracking number of times a link is clicked (https://vborg.vbsupport.ru/showthread.php?t=28468)

amykhar 09-19-2001 10:35 PM

How can I maintain a counter of how many times a link has been clicked?

I am working on the related links here:
http://www.eaforums.com/forumdisplay.php?s=&forumid=28

and would like to add a column to the table and to my database tracking how many times each link has been clicked.

Then, I might choose to order the links by popularity instead of just the order in which they are entered in the database.

Sorry for the stupid question :)

Amy

Sinecure 09-19-2001 10:56 PM

Well I dont think its a stupid question. I have no idea what so ever :( I guess we'll just have to wait and see what the gurus say :D

mister 10-19-2001 02:43 PM

Has that 'Related Links' hack been released?
I'd be interested in that :)

(i can help you out with the link counter, also, if you havent figured it out yet)

amykhar 10-19-2001 02:49 PM

No. I never documented it. Sorry :(

Bane 10-19-2001 02:57 PM

Amy, I actually have this in the works to go along with vbStats. Just didnt make it in yet.

maestrosdelweb 01-20-2003 02:19 AM

Hi.

I need this for my forum and would like to help.

Any advance?

I can program something next weekend but first I need to know if there's any advance with this?

This is what we need:

A new table with 2 fields:

url
visits

A .php file to add all the new links to a database and compare if it exists. If the link is allready in the database it will add a visit.
And then just redirect to the link.

And a template modification where we'll add the url of the .php file before the url.

maestrosdelweb 01-28-2003 03:17 PM

I achive this hack. :banana:

So, now my first hack is ready.

Check it out:
https://vborg.vbsupport.ru/showthrea...threadid=48241


All times are GMT. The time now is 02:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01034 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete