vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   HITCounter - Link Forum Counter (https://vborg.vbsupport.ru/showthread.php?t=93640)

b6gm6n 08-08-2005 01:37 AM

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

b6gm6n 08-08-2005 01:41 AM

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

Andreas 08-08-2005 04:11 AM

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']; 


b6gm6n 08-08-2005 11:44 AM

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

Andreas 08-08-2005 02:35 PM

See the attached XML; works fine for me.

b6gm6n 08-08-2005 02:48 PM

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

Boofo 08-08-2005 02:51 PM

If the xml is all you need, then it can go in plug-ins, right?

Andreas 08-08-2005 02:54 PM

No, it's the complete Package (aka Product XML).

b6gm6n 08-08-2005 02:57 PM

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

-b6

Andreas 08-08-2005 02:59 PM

Moved to Plugins.
Another File Edit nailed ... strike :D


All times are GMT. The time now is 02:06 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.01303 seconds
  • Memory Usage 1,735KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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