Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
HITCounter - Link Forum Counter Details »»
HITCounter - Link Forum Counter
Version: 1.3, by b6gm6n b6gm6n is offline
Developer Last Online: Aug 2014 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 08-04-2005 Last Update: 10-11-2005 Installs: 88
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

This is a port originally By Zajako and Mone.

With kind permission i've updated the mod for vBulletin 3.5, this version comes with an enhancement, i.e via your ACP (forum manager) you can adjust the starting value for any counter.

Installation is done easily via the importing of an xml file.

See screenshots!

Enjoy!

Update : Huge Respect to KirbyDE who really is the genius behind this mod, cheers dude.

Update 1.3 : optimized code - (no more updates to totals) - Thanx KirbyDE

If you use this mod please click Install - cheers!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 08-08-2005, 01:37 AM
b6gm6n's Avatar
b6gm6n b6gm6n is offline
 
Join Date: Aug 2002
Location: UK
Posts: 691
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

seems to be working within the forum admin, but it's not showing within the forum home, i've reset the edited *.php file (no edits) and followed your instructions, i've added the new install code, un-installed & exported, done all i can do find the reason, but nothing... still won't show.

-b6
Reply With Quote
  #23  
Old 08-08-2005, 01:41 AM
b6gm6n's Avatar
b6gm6n b6gm6n is offline
 
Join Date: Aug 2002
Location: UK
Posts: 691
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

still ok?
Code:
if (THIS_SCRIPT == 'index' OR THIS_SCRIPT == 'forumdisplay')
{
    $globaltemplates  = array_merge($globaltemplates, array('linkhits'));
}
i've tried 'replycount' with no luck

template is :
Code:
<div class="smallfont" align="$stylevar[left]" padding left="20">
<img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="Redirect to $forum[title]" border="0" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]" title="Redirect to $forum[title]"><b>Redirected Hits:</b></a> $forum[replycount]</div>
which shows, but no number for replycount, just blank
Reply With Quote
  #24  
Old 08-08-2005, 04:11 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's due to construct_forum_bit() wiping out the Value before Hook forumbit_display gets called.
But you should be able to restore it:
PHP Code:
$forum['replycount'] = $vbulletin->forumcache["$forumid"]['replycount']; 
Reply With Quote
  #25  
Old 08-08-2005, 11:44 AM
b6gm6n's Avatar
b6gm6n b6gm6n is offline
 
Join Date: Aug 2002
Location: UK
Posts: 691
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The template isn't picking it up, but the value is showing ok...check the attached, almost there...

i've placed
Code:
$forum['replycount'] = $vbulletin->forumcache["$forumid"]['replycount'];
below the exisiting code in the hook : forumbit_display, it's the only location that'll work and show the values.

in the template > "$forum[replycount]" does nothing and i've tried re-jigging the merge template part to :
Code:
if ($forum['link'])
{
    eval('$forum[\'replycount\']  = "' . fetch_template('linkhits') . '";');
    $forum['threadcount'] = '';
    $forum['lastpostinfo'] = '';
}
but it does not show the template (redirected hits etc)

so yet again i'm at an impass...bugger i'll need some more help again me thinks

-b6
Reply With Quote
  #26  
Old 08-08-2005, 02:35 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See the attached XML; works fine for me.
Reply With Quote
  #27  
Old 08-08-2005, 02:48 PM
b6gm6n's Avatar
b6gm6n b6gm6n is offline
 
Join Date: Aug 2002
Location: UK
Posts: 691
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow it does to, thanx so much, you are a freaking genius when it comes to this stuff... i'll upgrade the distro asap, boofo can move this little mod (i kinda helped with) to the extensions section, thanx again Kirby...massive kudos to you.

-b6
Reply With Quote
  #28  
Old 08-08-2005, 02:51 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If the xml is all you need, then it can go in plug-ins, right?
Reply With Quote
  #29  
Old 08-08-2005, 02:54 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, it's the complete Package (aka Product XML).
Reply With Quote
  #30  
Old 08-08-2005, 02:57 PM
b6gm6n's Avatar
b6gm6n b6gm6n is offline
 
Join Date: Aug 2002
Location: UK
Posts: 691
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

updated, please move to where ever you see fit, cheers guys.

-b6
Reply With Quote
  #31  
Old 08-08-2005, 02:59 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Moved to Plugins.
Another File Edit nailed ... strike
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 10:52 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.14089 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete