Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Forum home Counter Details »»
Forum home Counter
Version: 1.0.4, by DrewM DrewM is offline
Developer Last Online: May 2015 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-03-2006 Last Update: 06-06-2006 Installs: 17
DB Changes Uses Plugins Auto-Templates
Re-useable Code  
No support by the author.

==========================
Forum Home Counter
By Larrysw
==========================

[high]What Does this do?[/high]
It adds a counter to your forum home.

[high]UPGRADING[/high]
Upload the product

Open the FORUMHOME templeate
##############################
Find:
HTML Code:
<div align="center"><phrase 1="$count">$vbphrase[counter]</phrase> </div>
and delete it!
##############################

If you are getting errors about the my SQL table not working run this query:
[sql]CREATE TABLE prefix_forum_home_counter (
`count` varchar(6) NOT NULL default '',
PRIMARY KEY (`count`)
) TYPE=MyISAM;
INSERT INTO prefix_forum_home_counter VALUES ('0');
[/sql]

All Done

[high]What will be added?[/high]
  • amount of users who visted on the calender
[high]Update Log[/high]
1.0.4; No more edits.
1.0.3; Changed numbers from 1000 to 1,000.
1.0.2; Fixed the the install, the text on forum home.
1.0.1; Fixed to work with table prefixs.

[high]*Support Info[/high]
Support is only given to those who click install! It's a simple request.

Show Your Support

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

Comments
  #22  
Old 04-05-2006, 07:41 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, This works fine for me
Is there away to change the strating amount of users...

It started at 0 and i need to put in a amount of my own?
How do i do this please?
Reply With Quote
  #23  
Old 04-05-2006, 08:02 PM
DrewM DrewM is offline
 
Join Date: Oct 2005
Posts: 564
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Can this be made to show the number of visitors in the Calendar ? say in the weekly view ?
sure next release this will be included.
Quote:
Hi, This works fine for me
Is there away to change the strating amount of users...

It started at 0 and i need to put in a amount of my own?
How do i do this please?
yea go to SQl querys and run this query:
[sql]UPDATE forum_home_counter SET count = count X
[/sql]
Reply With Quote
  #24  
Old 04-05-2006, 08:04 PM
osso12 osso12 is offline
 
Join Date: Feb 2006
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

were cool..
I am using this one found here as it works real well.
https://vborg.vbsupport.ru/showthrea...+Jan+18th+2006
Reply With Quote
  #25  
Old 04-05-2006, 08:16 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Didnt work for me m8

Got an error:

SQL query:

UPDATE forum_home_counter SET count = count584254

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '584254' at line 1

Any advice?
Reply With Quote
  #26  
Old 04-05-2006, 09:32 PM
DrewM DrewM is offline
 
Join Date: Oct 2005
Posts: 564
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bashy
Didnt work for me m8

Got an error:

SQL query:

UPDATE forum_home_counter SET count = count584254

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '584254' at line 1

Any advice?
try this:
[sql]UPDATE `forum_home_counter` SET `count` = '60';[/sql]
Reply With Quote
  #27  
Old 04-06-2006, 05:20 AM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked well m8, thanks for your help


Quote:
Originally Posted by Larrysw
try this:
[sql]UPDATE `forum_home_counter` SET `count` = '60';[/sql]
Reply With Quote
  #28  
Old 04-06-2006, 08:23 PM
steadicamop's Avatar
steadicamop steadicamop is offline
 
Join Date: Jul 2004
Location: Lancashire, UK
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would be great if this worked - for whatever reason it doesn't add the table in the database, tried to create it manaually but just didn't work - bit of a led down.
Reply With Quote
  #29  
Old 04-06-2006, 10:25 PM
NiTRoN NiTRoN is offline
 
Join Date: Dec 2005
Location: Big Ditch
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i tried the 1.02 one still came up with the sql error.. had to manaully create table by running the query below

CREATE TABLE vbulletin_forum_home_counter (
`count` varchar(6) NOT NULL default '',
PRIMARY KEY (`count`)
) TYPE=MyISAM;
INSERT INTO vbulletin_forum_home_counter VALUES ('0');

keep in mind my table prefixes are vbulletin_ adjust yours accordingly


If you want to change the starting count number.. just change last 0 to whatever number you want.

also I placed <div align="center"><phrase 1="$count">$vbphrase[counter]</phrase> </div>
on bottom of adv_portal_foot template so it only show on my main portal page..
Reply With Quote
  #30  
Old 04-07-2006, 07:26 AM
steadicamop's Avatar
steadicamop steadicamop is offline
 
Join Date: Jul 2004
Location: Lancashire, UK
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NiTRoN
i tried the 1.02 one still came up with the sql error.. had to manaully create table by running the query below

CREATE TABLE vbulletin_forum_home_counter (
`count` varchar(6) NOT NULL default '',
PRIMARY KEY (`count`)
) TYPE=MyISAM;
INSERT INTO vbulletin_forum_home_counter VALUES ('0');

keep in mind my table prefixes are vbulletin_ adjust yours accordingly


If you want to change the starting count number.. just change last 0 to whatever number you want.

also I placed <div align="center"><phrase 1="$count">$vbphrase[counter]</phrase> </div>
on bottom of adv_portal_foot template so it only show on my main portal page..
Thanks, that did the trick, was trying to suss out the MySQL code but got so stressed I just left it - if anything that's probably easier
Reply With Quote
  #31  
Old 04-07-2006, 11:29 AM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Work now ?
Reply With Quote
Reply

Thread Tools

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 05:46 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.04881 seconds
  • Memory Usage 2,305KB
  • 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
  • (1)bbcode_html
  • (5)bbcode_quote
  • (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