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)
-   -   Forum home Counter (https://vborg.vbsupport.ru/showthread.php?t=112168)

DrewM 04-03-2006 10:00 PM

Forum home Counter
 
==========================
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.

DrewM 04-04-2006 07:09 PM

First Post reserved

klaush 04-04-2006 07:21 PM

Nice idea, but you should work with prefixes to solve the problem with the mysql-error after installing the product:

Invalid SQL:
UPDATE forum_home_counter SET count = count + 1;

MySQL-Fehler : Table 'xxxx.forum_home_counter' doesn't exist
Fehler-Nr. : 1146

DrewM 04-04-2006 07:24 PM

Yea I will update the mod.

klaush 04-04-2006 07:30 PM

Quote:

Originally Posted by Larrysw
Yea I will update the mod.

Thanks! :-)

bonjurkes 04-04-2006 08:20 PM

any screen shot?

DrewM 04-04-2006 08:31 PM

Ahh will add and Find a demo here:
http://www.sim2world.com/forum/

bonjurkes 04-04-2006 08:40 PM

You are the 29 user to vist the site.

Maybe some better english huh? :)

Code:

<div align="center">You are the $count. visitor of my site. </div>

is it counts total visitors or unique ones?

DrewM 04-04-2006 08:53 PM

Quote:

Originally Posted by bonjurkes
You are the 29 user to vist the site.

Maybe some better english huh? :)

Code:

<div align="center">You are the $count. visitor of my site. </div>

is it counts total visitors or unique ones?

yea that mite help :)

Total guests and users.

Allan 04-04-2006 09:27 PM

Error sql :(

Borgs8472 04-04-2006 09:29 PM

Does this count from when you install it or from the very beginning?

Devil Woman 04-04-2006 09:45 PM

I recieved an sql error when I uploaded the product

DrewM 04-04-2006 10:17 PM

Quote:

Does this count from when you install it or from the very beginning?
The beginning
Quote:

I recieved an sql error when I uploaded the product
Whats the error?

Allan 04-04-2006 10:20 PM

This error:
Code:

Invalid SQL:
UPDATE forum_home_counter SET count = count + 1;

MySQL-Fehler : Table 'xxxx.forum_home_counter' doesn't exist


DrewM 04-04-2006 10:45 PM

I would try re-downloading the zip and then re-uploading the product I thought I had fixed prefixs.

Allan 04-05-2006 05:44 AM

Same error.

DrewM 04-05-2006 08:55 AM

hmmm I'll chect it out.

osso12 04-05-2006 04:16 PM

all it says was:
You are the user to vist the site.
Im uninstalling it till you get it fixed..
If you get it fixed send me an email to
teddy_scott2000@yahoo.com

DrewM 04-05-2006 07:27 PM

Well I'm updating the mod tonight just wait I fixed the lang.

finn snor 04-05-2006 07:40 PM

Can this be made to show the number of visitors in the Calendar ? say in the weekly view ?

bashy 04-05-2006 07:41 PM

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?

DrewM 04-05-2006 08:02 PM

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]

osso12 04-05-2006 08:04 PM

were cool..
I am using this one found here as it works real well.
https://vborg.vbsupport.ru/showthrea...+Jan+18th+2006

bashy 04-05-2006 08:16 PM

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?

DrewM 04-05-2006 09:32 PM

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]

bashy 04-06-2006 05:20 AM

Worked well m8, thanks for your help :)


Quote:

Originally Posted by Larrysw
try this:
[sql]UPDATE `forum_home_counter` SET `count` = '60';[/sql]


steadicamop 04-06-2006 08:23 PM

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.

NiTRoN 04-06-2006 10:25 PM

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.. :)

steadicamop 04-07-2006 07:26 AM

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 ;)

Allan 04-07-2006 11:29 AM

Work now ?

steadicamop 04-07-2006 11:33 AM

Yup no probs now ... just changed the phrase to something different :)

DrewM 04-07-2006 06:41 PM

Quote:

Originally Posted by steadicamop
Yup no probs now ... just changed the phrase to something different :)

Well looks like all the errors are fixed so I'll start working on some new things.

Gizmo5h1t3 04-07-2006 07:11 PM

nope, cant geteither version to work....no table is installed, and the query posted here doesnt work....gettin syntax errors...

DrewM 04-07-2006 08:07 PM

what are the errors?

steadicamop 04-08-2006 08:16 AM

It would appear for whatever reason, that the Product XML doesn't install the database table - now this may have something to do with it, I read you upgraded it to allow for table prefixes - which I don't have, and feel this may cause the issue, but am no expert in MySQL I just about understand it.

DrewM 04-08-2006 09:53 AM

Quote:

Originally Posted by steadicamop
It would appear for whatever reason, that the Product XML doesn't install the database table - now this may have something to do with it, I read you upgraded it to allow for table prefixes - which I don't have, and feel this may cause the issue, but am no expert in MySQL I just about understand it.

I think Its some thing weird with products because some thing simmler happend with a mod I installed.

Allan 04-16-2006 07:50 PM

The meter jams in 999999, it's possible to go above ?

DrewM 04-16-2006 08:28 PM

yea... just run this query:
[sql]ALTER TABLE `forum_home_counter` CHANGE `count` `count` VARCHAR( 100 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL[/sql]

Allan 04-17-2006 09:32 AM

Quote:

Originally Posted by Larrysw
yea... just run this query:
SQL Query: (how to run queries)
ALTER TABLE `forum_home_counter` CHANGE `count` `count` VARCHAR( 100 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL

Thanks Larry ;)

DrewM 04-17-2006 09:39 AM

Alway welcome


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.01431 seconds
  • Memory Usage 1,818KB
  • 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_html_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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