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)

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


All times are GMT. The time now is 02:18 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.00989 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_php_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