Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Total Threads Hits At Forum Home Details »»
Total Threads Hits At Forum Home
Version: 1.0.1, by Omranic Omranic is offline
Developer Last Online: Sep 2021 Show Printable Version Email this Page

Version: 3.5.x Rating:
Released: 11-14-2005 Last Update: 01-14-2006 Installs: 33
Uses Plugins
Re-useable Code Translations  
No support by the author.

This product is no longer supported!



Total Threads Hits At Forum Home

This is a small lovely prodct that displays the total threads hits at forum home (see the attached screen shot)

Install instructions ::
Very Simple only import this product through your admincp [Add/Import Product]

There is one template modification
it is ::

go to ForumHome template & search inside it about the following code:
HTML Code:
$vbphrase[members]: $numbermembers
then put after it directly the following code ::
HTML Code:
<if condition="$vbulletin->options['threadstothits']">, $vbphrase[phpkd_total_hits]: $totalhits</if>


26/11/2005 This Fixed
15/1/2006 Updated to version 1.0.1


Changes log:
1.0.0 ==> initial Release
1.0.1 ==>
  • adding admincp option for switching On/Off
  • Fixed This ( get commas in high numbers )


Upgrading from version 1.0.0 to version 1.0.1:
go to template ForumHome & search for the following code:
HTML Code:
,$vbphrase[phpkd_total_hits]: $totalhits
& replace It with the following code:
HTML Code:
<if condition="$vbulletin->options['threadstothits']">, $vbphrase[phpkd_total_hits]: $totalhits</if>
Then import the attached product with Allow Overwrite set to yes


Thats all
hope You Like It

Show Your Support

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

Comments
  #12  
Old 11-24-2005, 05:42 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also I get this error after the installation.

Quote:
Database error in vBulletin 3.5.1:

Invalid SQL:

SELECT COUNT(*) ,
SUM(views) AS hits
FROM forum_ thread;

MySQL Error : Table 'amath_forum.forum_' doesn't exist
Error Number : 1146
Date : Thursday, November 24th 2005 @ 07:41:07 PM
Script : http://www.metalgearforum.net/index.php
Referrer : http://www.metalgearforum.net/index.php
IP Address : 193.188.105.22
Username : Aftermath
Classname : vb_database
Reply With Quote
  #13  
Old 11-25-2005, 06:16 PM
Omranic's Avatar
Omranic Omranic is offline
 
Join Date: Jan 2005
Location: Egypt
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

rb290 ===> its depend on your vbulletin settings not on my hack

Aftermath ===> this error isn't related to my hack
it related to the existing of thread table or not ( if it exist no error occurs if not error appears) it doesn't need any data base modifications, it only make a very simple mathematical calculation
Reply With Quote
  #14  
Old 11-26-2005, 06:15 AM
MioTraGusa's Avatar
MioTraGusa MioTraGusa is offline
 
Join Date: Oct 2005
Location: Espa?a
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SolidSnake@GTI
Aftermath ===> this error isn't related to my hack
it related to the existing of thread table or not ( if it exist no error occurs if not error appears) it doesn't need any data base modifications, it only make a very simple mathematical calculation
Sorry but in the pluggin Thread's Total Hits at Forum Home :

PHP Code:
// ### SolidSnake@GTI Total Hits Start ###
$totalhits $vbulletin->db->query_first("
        SELECT COUNT(*) ,
        SUM(views) AS hits
        FROM " 
TABLE_PREFIX thread");

$totalhits intval($totalhits['hits']);
// ### SolidSnake@GTI Total Hits End ### 
bad construct with one space extra .. change for:

PHP Code:
// ### SolidSnake@GTI Total Hits Start ###
$totalhits $vbulletin->db->query_first("
        SELECT COUNT(*) ,
        SUM(views) AS hits
        FROM " 
TABLE_PREFIX "thread");

$totalhits intval($totalhits['hits']);
// ### SolidSnake@GTI Total Hits End ### 
work fine this :up:

***Installed

Sorry for my english
Reply With Quote
  #15  
Old 11-26-2005, 08:22 AM
Omranic's Avatar
Omranic Omranic is offline
 
Join Date: Jan 2005
Location: Egypt
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MioTraGusa
bad construct with one space extra .. change for:
Sorry,
I can't notice that extra space you talk about
can you point it plz
Reply With Quote
  #16  
Old 11-26-2005, 10:58 AM
MioTraGusa's Avatar
MioTraGusa MioTraGusa is offline
 
Join Date: Oct 2005
Location: Espa?a
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes ..
Reply With Quote
  #17  
Old 11-26-2005, 12:04 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh he's right. Thanks for the fix.
Reply With Quote
  #18  
Old 11-26-2005, 01:02 PM
Omranic's Avatar
Omranic Omranic is offline
 
Join Date: Jan 2005
Location: Egypt
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry,
you are right
Fixed ...........

but I say that this error doesn't appear @ all forums coz I installed this on many forums & no errors appeared inspite of presence of this extra space

any way now it is fixed
Reply With Quote
  #19  
Old 11-26-2005, 01:41 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah thanks for that.

Solid Snake, ever thought of making a hack for Total Hits & Total Unique Hits? That would be cool, y'know.
Reply With Quote
  #20  
Old 11-26-2005, 02:55 PM
funinthesun funinthesun is offline
 
Join Date: Oct 2005
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Installed* Thanks
Reply With Quote
  #21  
Old 11-27-2005, 10:01 AM
Omranic's Avatar
Omranic Omranic is offline
 
Join Date: Jan 2005
Location: Egypt
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Aftermath
Yeah thanks for that.

Solid Snake, ever thought of making a hack for Total Hits & Total Unique Hits? That would be cool, y'know.
can you explain ...
Reply With Quote
Reply


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 11:08 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.17485 seconds
  • Memory Usage 2,326KB
  • 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
  • (4)bbcode_html
  • (2)bbcode_php
  • (4)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
  • (2)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