vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - Forum Views Counter - Track the number of forum views (https://vborg.vbsupport.ru/showthread.php?t=128675)

eXtremeTim 10-08-2006 10:00 PM

Forum Views Counter - Track the number of forum views
 
This hack will allow you to track how many views each forum has. This is useful to help you see in which areas you need to focus time on your site. Since you will know where the members are hovering.

To upgrade from 1.0.0 reinstall the product file. Since it had an error in the query for installing it that made it unusable.

Demo: http://www.extremewebtech.com/forums/

This will work on 3.5 if you remove the executionorder="5" from the product file.

Enjoy this hack you guys.

And as always if you enjoy this free hack and would like to see them keep coming please donate.

Donations can be sent via paypal to: tim@extremechatforums.com

Support will be given here: http://extremewebtech.com/forums/showthread.php?t=94

eXtremeTim 10-09-2006 08:10 PM

Reserved

rolandogomez 10-09-2006 11:01 PM

First, I think it's wrong to post a "hack" for all here on VB.org and then require "support" to be on your forum where you have to sign in to do this. I belong to enough forums. To me that's like making a hack and posting it here--which is cool--but then siphoning traffic.

I think it's fine when folks like Visionscripts post there free hacks and support them on this forum. Everyone can have links in their signatures, shouldn't that be acceptable for traffic? Just my thoughts, and some advice, printed words sound harsher than spoken words, so don't take my comments in a bad manner, take them as constructive criticism.

Now my quesetion, which I want answered here where the hack was introduced, again, I'm no programmer/coder, is where does you hack start counting views, is it from the day installed? Just curious, thanks, rg sends!

eXtremeTim 10-09-2006 11:19 PM

The day installed. The reason i support on my site is for one reason and that is the Time Element of how much time is required per day to support my hacks. Its hard to support them in multiple locations since they are released on more then one site. I just dont have time to read thro threads of the same questions at 2+ different sites.

hotwheels 10-09-2006 11:30 PM

Just to help clarify the support issue.......I believe you will find that if you do go to his support forum, that is all it is, support tech........there really isn't anything else on the extremewebtech, other then that........his regular site is extremechat, where he isn't sending people.......

I too understand what you are saying and felt the same way at first, but the extremewebtech, seem's to give him time to relook at issue's without wasting alot of bandwidth here.....

Just my .02.

eXtremeTim 10-09-2006 11:48 PM

exactly. :)

especially since i release the hacks on multiple sites it really helps to lighten my work load. :)

asj 10-09-2006 11:59 PM

Database error in vBulletin 3.6.2:

Invalid SQL:

SELECT forum.forumid, lastpost, lastposter, lastthread, lastthreadid, lasticonid, threadcount, replycount, lastpostid, fviews
, forumread.readtime AS forumread
FROM forum AS forum
LEFT JOIN forumread AS forumread ON (forumread.forumid = forum.forumid AND forumread.userid = 1);

MySQL Error : Unknown column 'fviews' in 'field list'
Error Number : 1054
Date : Monday, October 9th 2006 @ 08:57:19 PM

:(

.Tim 10-10-2006 12:18 AM

Quote:

Originally Posted by asj
Database error in vBulletin 3.6.2:

Invalid SQL:

SELECT forum.forumid, lastpost, lastposter, lastthread, lastthreadid, lasticonid, threadcount, replycount, lastpostid, fviews
, forumread.readtime AS forumread
FROM forum AS forum
LEFT JOIN forumread AS forumread ON (forumread.forumid = forum.forumid AND forumread.userid = 1);

MySQL Error : Unknown column 'fviews' in 'field list'
Error Number : 1054
Date : Monday, October 9th 2006 @ 08:57:19 PM

:(

Same.

rolandogomez 10-10-2006 12:26 AM

Again, not trying to be an arse here, but as a father of five kids, running two boards, one on line since 1999 and huge, professional photographer, lecturer, speaker, instructor, author, writer and on the road, it's very difficult for me too to have to go to upteen different VB forums. I guess we're both saying the same thing--we both have the prioritization of time issues. Not trying to diss you, just thought the whole idea of a place like VB.org is to centralize hacks and mods and all that evolves around them--now that saves time for everyone.

You could do what some other folks do at other sites, post links back here to their mods/hack from other sites, again, to centralize so everyone can see the latest and greatest on a hack.

On the other hand, I can understand support forums on other locations for paid mods sold at other sites, that is understandable to support the product. Just my thoughts, wishing you the best, rg sends!

eXtremeTim 10-10-2006 12:29 AM

yea theres an error in the query of the product file.

Updated

aceofspades 10-10-2006 10:12 AM

I have installed the new product with the instructions in the txt and i get this:

Code:

Database error in vBulletin 3.6.0:

Invalid SQL:

                        SELECT forum.forumid, lastpost, lastposter, lastthread, lastthreadid, lasticonid, threadcount, replycount, lastpostid, fviews
                               
                        FROM forum AS forum;

MySQL Error  : Unknown column 'fviews' in 'field list'
Error Number : 1054
Date        : Tuesday, October 10th 2006 @ 12:12:58 PM
Script      : http://www.hiven.net/forums/
Referrer    :
IP Address  : 80.177.38.210
Username    : Spadez
Classname    : vb_database

I would recommend that nobody else installs this untill it is fixed.

eXtremeTim 10-10-2006 02:01 PM

I will take a look again but im not sure why its not adding the field for you since others seem to be having no trouble with it.

ombossman 10-10-2006 05:30 PM

Database error in vBulletin 3.6.2:

Invalid SQL:

SELECT forum.forumid, lastpost, lastposter, lastthread, lastthreadid, lasticonid, threadcount, replycount, lastpostid, fviews
, forumread.readtime AS forumread
FROM forum AS forum
LEFT JOIN forumread AS forumread ON (forumread.forumid = forum.forumid AND forumread.userid = 1);

MySQL Error : Unknown column 'fviews' in 'field list'
Error Number : 1054
Date : Tuesday, October 10th 2006 @ 02:30:06 PM
Script : http://www.gsmciler.com/forum/index.php
Referrer : http://www.gsmciler.com/forum/admincp/index.php?do=head
IP Address : 555555555
Username : xxxxxxxxxxxx
Classname : vb_database


what is the problem :surprised:

eXtremeTim 10-10-2006 10:24 PM

There should be fixed now. anybody who has this hack already installed please uninstall the product if its not working and then install the updated one. Do not just try to overwrite the product as that will not fix the issue.

Shazz 10-11-2006 05:54 AM

Wheres is it on your fourms at http://www.extremewebtech.com/forums?
I dont' see it

eXtremeTim 10-11-2006 06:22 AM

the views column in the forumbit.

aceofspades 10-11-2006 12:06 PM

Have you had any luck fixing it Tim?

James

eXtremeTim 10-11-2006 01:12 PM

i released an update yesterday and provided upgrade steps that should have fixed it.

Alpe 10-11-2006 04:09 PM

I have installed the newest version and I take many Sql errors.

eXtremeTim 10-11-2006 04:40 PM

ima kick this damn thing lol

hotwheels 10-12-2006 12:05 AM

Try this one:
PHP Code:

$db->query_write("ALTER TABLE " TABLE_PREFIX " `forum` ADD `fviews` INT( 10 ) DEFAULT '0' NOT NULL AFTER `defaultsortorder` ;"); 

Should fix the query problem........

eXtremeTim 10-12-2006 02:27 AM

im just wondering why there is a problem when im not noticing one. lol

hotwheels 10-12-2006 02:35 AM

Good question.........I wasn't able to install this version do to some other mods i built into my site. The alter table should work just fine........

eXtremeTim 10-17-2006 12:41 PM

Ill be updating this in the next few days and creating an addon hack possible ;)

Tyegurl 10-19-2006 11:11 PM

is this unique visits or every visit?

dbirosel 05-14-2007 09:06 PM

Any update on this hack??? Btw, your support link is dead.

DiSpy 05-19-2007 08:43 PM

Quote:

Originally Posted by hotwheels (Post 1095024)
Try this one:
PHP Code:

$db->query_write("ALTER TABLE " TABLE_PREFIX " `forum` ADD `fviews` INT( 10 ) DEFAULT '0' NOT NULL AFTER `defaultsortorder` ;"); 

Should fix the query problem........


Thanks, that totally fixed it.

...seems the author forgot to include creating the field in the forum table that his code was looking to read.

eXtremeTim 05-19-2007 09:24 PM

No my query appears to have an error is all lol. Ill update the package shortly for this.

dbirosel 06-18-2007 05:52 AM

Any news on this mod?? :D

Vizionz 06-22-2007 02:12 PM

it works on the latest version but you have to manually add the query
Quote:

ALTER TABLE forum ADD fviews INT( 10 ) DEFAULT 0 NOT NULL AFTER defaultsortorder

dbirosel 06-22-2007 02:53 PM

Quote:

Originally Posted by Vizionz (Post 1273941)
it works on the latest version but you have to manually add the query

So i just run that query through mysql, correct?

dbirosel 06-23-2007 06:30 AM

Hmmm.. i was testing this out and it works. But when i look at a forum section and go back to the index, instead of adding +1 view it adds like +15. Why is it doing that?


All times are GMT. The time now is 04:57 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.01195 seconds
  • Memory Usage 1,802KB
  • 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)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)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