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)

Andreas 08-13-2005 09:43 AM

Aaargh ... indeed wrong Thread :D
Corrected my Post.

Boofo 08-13-2005 09:53 AM

Quote:

Originally Posted by b6gm6n
Yeah i think so Boofo... ;) - This little Mod should work with all skins without a re-install

-b6

We all have those kinds of days once in a while. ;)

You need to edit the install text file as to where you need to put the code and in what template to make it show up. I figured it out but there will be those that don't. ;)

b6gm6n 08-13-2005 10:58 AM

Quote:

Originally Posted by Boofo
You need to edit the install text file as to where you need to put the code and in what template to make it show up. I figured it out but there will be those that don't. ;)

You mean this doesn't insert the new template 'linkhits' anymore with the installer?

-b6

P.Jackson 08-13-2005 12:42 PM

yea didnt seem to work for me

Boofo 08-13-2005 01:38 PM

Quote:

Originally Posted by b6gm6n
You mean this doesn't insert the new template 'linkhits' anymore with the installer?

-b6

Yes, it inserts it, but how do you call it? ;)

b6gm6n 08-13-2005 01:43 PM

I can confirm that from this distro (zip) supplied in this mod/thread there was no problems with installation, the template installed on all skins successfully from the single xml file.

DEMO : http://www.hardwired.myftp.org/forum/

I would suggest that you un-install the mod, check the for 'linkhits' template (see if it's been removed through un-installtion, remove manually if nessarsary) then re-install via the product import section.

This mod may only work with RC2, but i'm not sure.

-b6

Boofo 08-13-2005 01:48 PM

Ok, I'm gonna bail you out herre since you don't seem to understand what I mean. ;)

You need to add $linkhits in the template to have it show up. ;)

b6gm6n 08-13-2005 01:50 PM

Quote:

Originally Posted by Boofo
Yes, it inserts it, but how do you call it? ;)

Check to see if the mod installed this plugin > HITCounter_merge template
and > HITCounter_cache_template

Now this maybe the strange occurance i've found using IIS, works fine locally, calls correctly etc... but on a remote host setup it fails, but for the life of me i don't know why...

as i said i've just downloaded myself, un-installed the previous, re-installed and it all worked 100% > http://www.hardwired.myftp.org/forum

But on a remote machine i'll have to try some more tests...

-b6

Boofo 08-13-2005 03:25 PM

Quote:

Originally Posted by b6gm6n
Check to see if the mod installed this plugin > HITCounter_merge template
and > HITCounter_cache_template

Now this maybe the strange occurance i've found using IIS, works fine locally, calls correctly etc... but on a remote host setup it fails, but for the life of me i don't know why...

as i said i've just downloaded myself, un-installed the previous, re-installed and it all worked 100% > http://www.hardwired.myftp.org/forum

But on a remote machine i'll have to try some more tests...

-b6

LOL You STILL have to put the variable to call the template in the template you want to call it from. The plug-in only adds the template you are calling, not the variable to call it. ;)

b6gm6n 08-13-2005 04:11 PM

ok so the hook "forumbit_display" which calls 'HITCounter_merge template' >
Code:

if ($forum['link'])
{
        $forum['linkhits'] = $vbulletin->forumcache["$forumid"]['replycount'];
        $forum['replycount'] = '';
        $forum['threadcount'] = '';
        eval('$forum[\'lastpostinfo\']  = "' . fetch_template('linkhits') . '";');
}

isn't working for some? - what about $forum?
I understand what & why your saying what your saying, but surely it wouldnt work for me locally and on my unix server if something was amiss...

I actually don't think it's a bug with this plugin... it's a cache template problem of some kind.

-b6

Boofo 08-13-2005 04:21 PM

Quote:

Originally Posted by b6gm6n
ok so the hook "forumbit_display" which calls 'HITCounter_merge template' >
Code:

if ($forum['link'])
{
        $forum['linkhits'] = $vbulletin->forumcache["$forumid"]['replycount'];
        $forum['replycount'] = '';
        $forum['threadcount'] = '';
        eval('$forum[\'lastpostinfo\'] = "' . fetch_template('linkhits') . '";');
}

isn't working for some? - what about $forum?
I understand what & why your saying what your saying, but surely it wouldnt work for me locally and on my unix server if something was amiss...

I actually don't think it's a bug with this plugin... it's a cache template problem of some kind.

-b6

But you still have to put this somewhere to call that template:

$linkhits

Otherwise how does it know where to put the hit counter?

b6gm6n 08-13-2005 04:26 PM

Surely it's all in the hook 'forumbit_display' if that detects a forum link (if ($forum['link'])) then fetch + merge the newly installed template (linkhits) - jobs a goodun! (in theory) why this worked for me and does not for you i'll have to look into.

-b6

FleaBag 08-16-2005 08:34 PM

Works 100% for me, just by installing the product. Great work, thanks a lot!

Boofo 08-16-2005 08:43 PM

Quote:

Originally Posted by b6gm6n
Surely it's all in the hook 'forumbit_display' if that detects a forum link (if ($forum['link'])) then fetch + merge the newly installed template (linkhits) - jobs a goodun! (in theory) why this worked for me and does not for you i'll have to look into.

-b6

Propbably because I don't have a last post column for my links. ;)

Brandon Sheley 08-17-2005 07:35 AM

worked great,, only problem i see is..
the redirect hits count towards post count on the board ?

Threads: 2, Posts: 688, Members: 3
i tried to turn off post count, but it still shows a post for every redirect..
good work tho so far :) installs

b6gm6n 08-17-2005 12:21 PM

Yes Loco Macheen, i know...i don't think there's a work around for this without file edits!
-b6

Xplorer4x4 09-29-2005 04:14 PM

This worked fine in RC3 but is not working for me in gold.

BamaStangGuy 09-29-2005 04:17 PM

Quote:

Originally Posted by Xplorer4x4
This worked fine in RC3 but is not working for me in gold.

Works fine for me in Gold :)

Well what is the code edit so that it does not count as posts? I cant have it counting toward posts :(

b6gm6n 09-29-2005 05:38 PM

Quote:

Originally Posted by BrentWilson
Works fine for me in Gold :)

Well what is the code edit so that it does not count as posts? I cant have it counting toward posts :(

Works in 2 Gold installs i have!

And the code edit would need a re-write of this hack, it was the only way to have this as an xml product without the edits.

-b6

lairnoc 09-29-2005 06:09 PM

don't work for gold here :(

BamaStangGuy 09-29-2005 07:39 PM

Quote:

Originally Posted by b6gm6n
Works in 2 Gold installs i have!

And the code edit would need a re-write of this hack, it was the only way to have this as an xml product without the edits.

-b6

Well I would consider this current state broken imo if it has undesirable effects... I would rather have it working correctly.

Just me though....

Xplorer4x4 09-30-2005 07:37 AM

I re-uploaded the XML overwriting it from when I was using this hack in RC3. It works fine. The counter shows up and is not counting toward post count.

thedvs 09-30-2005 10:20 AM

great mod b6gm6n & thanks to the people who helped out

Borimikan 10-06-2005 03:42 AM

dont work for me on GOLD :(

trackpads 10-10-2005 05:41 PM

Excellent! Worked right out of the box!!!

BamaStangGuy 10-11-2005 07:18 AM

So is it going to remain acceptable that it also increase post count when you click on a linked forum?

b6gm6n 10-11-2005 09:53 AM

Quote:

Originally Posted by BrentWilson
So is it going to remain acceptable that it also increase post count when you click on a linked forum?

I'll need some sql and a good php surgeon...stat!

I'll think about an alternative, it'll mean adding a some stuff to your db via a query or two.

-b6

Andreas 10-11-2005 10:33 AM

Here is a Version that uses it's own field; if you want to use it just reimport.
It will carry over old counter values.

b6gm6n 10-11-2005 02:29 PM

Thats Great Kirby, did you have any problems showing the '$vbphrase[redirected_hits]'?

-b6

Andreas 10-11-2005 03:02 PM

Not on forumdisplay.php, but on index.php due to the fact that Phrasegroup forumdisplay isn't being loaded there.
XML updated.

dutchbb 10-11-2005 05:38 PM

nice 1

b6gm6n 10-12-2005 12:16 AM

Code:

Fatal error: Field linkhits is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php on line 485
when updating the forum counter via admins forum manager

Andreas 10-12-2005 12:27 AM

I tend to always forget those Plugins ...

forumdata_start
PHP Code:

$this->validfields['linkhits'] = array(TYPE_INTREQ_NO); 


Morgalis 10-13-2005 08:15 PM

Quote:

Originally Posted by KirbyDE
And that wouldn't change if it just used another database field :)

Not sure why, but if the only step is to import the xml file, it didn't do anything to my site?

There is nothing for me to edit/change in the forum manager, and no counter shows in the forums.

your assistance would be appreciated :)

dutchbb 10-14-2005 12:27 PM

There is a problem with this hack. First it counts just fine, but after a while, it changes the view numbers. It think this is only the case when you set your own number. (not the real one)

Too bad...clicks uninstall* for now.

Andreas 10-14-2005 12:33 PM

Quote:

Originally Posted by Triple_T
There is a problem with this hack. First it counts just fine, but after a while, it changes the view numbers. It think this is only the case when you set your own number. (not the real one)

Once again in english please :)
What exactly is the problem you discovered?

dutchbb 10-14-2005 12:52 PM

Ok maybe this will explain the problem better:

The number of views will be reset to 0 after you update counters > generate forum information.

Andreas 10-14-2005 01:00 PM

So you actually got a feature request:
Reset linkhits when updating counters.
Right?

dutchbb 10-14-2005 01:03 PM

No, this is the case now:) I would like it to not do this. (seems to me that this is a bug).

Andreas 10-14-2005 01:05 PM

Erm ... doesn't happen to me.

Maybe you still got old Plugins/Templates installed?


All times are GMT. The time now is 02:14 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.01345 seconds
  • Memory Usage 1,823KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (13)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
  • (40)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