vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Link Forum Hit Counters (https://vborg.vbsupport.ru/showthread.php?t=59928)

BamaStangGuy 01-03-2005 11:27 PM

Fix:

Find in global.php:

Code:

exec_header_redirect($foruminfo['link']);
Replace with:

Code:

        $DB_site->query("Update " . TABLE_PREFIX . "forum Set linkhits=linkhits+1 Where forumid='$foruminfo[forumid]'");
        exec_header_redirect($foruminfo['link']);

This should work let me know if you have any problems

You do not do the forumdisplay part in the instructions

You replace the global.php instructions with those above :)

b6gm6n 01-05-2005 12:52 AM

Brent, you just beat me to it ole chap! :)

It wasn't working on 3.0.4, so i sorted it and wanted to post the fix, check the altered instructions in the attachment :)

-b6

Mone' 01-15-2005 01:56 AM

Here is the latest version of the link forum hit counter for vbulletin 3.05

Added a better template to match more the vbulletin default skin
Link can be trigged from the link counter.
Mouse over the link counter shows the redirect forum name

Screenshot and Instruction attached ;)

Live demo: www.vbstyles.com/forum/index.php

Mone'

BamaStangGuy 01-18-2005 09:12 PM

Thanks looks great!

oldfan 01-31-2005 08:21 PM

This working on 3.06?

oldfan 01-31-2005 08:44 PM

Quote:

Originally Posted by Mone'
Here is the latest version of the link forum hit counter for vbulletin 3.05

Added a better template to match more the vbulletin default skin
Link can be trigged from the link counter.
Mouse over the link counter shows the redirect forum name

Screenshot and Instruction attached ;)

Live demo: www.vbstyles.com/forum/index.php

Mone'

yep, working so far thanks

steadicamop 02-25-2005 01:02 PM

Quote:

Originally Posted by Mone'
Here is the latest version of the link forum hit counter for vbulletin 3.05

Added a better template to match more the vbulletin default skin
Link can be trigged from the link counter.
Mouse over the link counter shows the redirect forum name

Screenshot and Instruction attached ;)

Live demo: www.vbstyles.com/forum/index.php

Mone'

Thank you, this is a brilliant hack, been looking for something like this for AGES ...... installed!!

Jason

BamaStangGuy 07-28-2005 06:17 AM

Anyway we can get a port to 3.5?

Boofo 07-28-2005 07:55 AM

I second BrentWilson's suggestion! ;)

Omega Prime 02-20-2006 03:16 AM

Here's hoping for a 3.5 conversion :)


All times are GMT. The time now is 09:26 PM.

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.01253 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete