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

Reply
 
Thread Tools
Display Number (count) of Articles Posted by user in postbit Details »»
Display Number (count) of Articles Posted by user in postbit
Version: 1.0.2, by Simon Lloyd Simon Lloyd is offline
Developer Last Online: May 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.x.x Rating:
Released: 12-06-2011 Last Update: 12-07-2011 Installs: 29
DB Changes Uses Plugins
 
No support by the author.

What this mod does
After installing this mod it will display the number of articles that a member has posted underneath "Posts:" in the postbit.

What this mod doesn't do (yet!)
This mod will not deduct from Article count when "Unpublishing", i will be working on this when time allows.

How to install
Simply download the product and install via AdminCp>Plugins & Products>Manage Products>Add/Install Product

The resources this mod uses
2 queries on install one of which may take quite some time on big boards
1 query when publishing an article
1 query when deleting an article
1 query on uninstall

Please mark as installed if you use this
Support will only be given to those that have marked it installed


__________________________________________________ ______________
Special Thanks to these people for helping me sort out my installation issues
Lynne
KH99
HMBeaty
Paul M

Version History
7th December 2011 Intial release ver1.0.0
8th Decmber 2011 Minor update, count is now clickable link to articles ver1.0.1
8th December 2011 minor change to fix my fixed url

When upgrading uninstall previous version first!!!

Download Now

File Type: xml product-articlecount.xml (3.0 KB, 130 views)

Show Your Support

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

Comments
  #2  
Old 12-07-2011, 08:41 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

***reserved***
Reply With Quote
  #3  
Old 12-07-2011, 01:20 PM
leejohn02 leejohn02 is offline
 
Join Date: Apr 2011
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to use this in the db postbit tabs, ie can u please release the code and what template its in so i can move it into dbtech postbit icons, thanks, and nice mod been looking for this
Reply With Quote
  #4  
Old 12-07-2011, 03:58 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have no idea what you mean by db postbit tabs!
Reply With Quote
  #5  
Old 12-07-2011, 10:21 PM
KristerSwe's Avatar
KristerSwe KristerSwe is offline
 
Join Date: Dec 2006
Location: Sweden
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, installed it and shows in postbit, but is not count the articles i have already done? is show zero.

Maybe it counts the articles i made after the install ... ???
Reply With Quote
  #6  
Old 12-07-2011, 10:24 PM
KristerSwe's Avatar
KristerSwe KristerSwe is offline
 
Join Date: Dec 2006
Location: Sweden
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by leejohn02 View Post
is there a way to use this in the db postbit tabs, ie can u please release the code and what template its in so i can move it into dbtech postbit icons, thanks, and nice mod been looking for this
you can use this code in DBT Postbilt tabmod but need to remove some doublepost from postbit template... am playing with it right now

<dt>{vb:rawphrase artcount}</dt><dd>{vb:raw $post['artcount']}{vb:raw artvar}</dd>
Reply With Quote
  #7  
Old 12-07-2011, 10:50 PM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed

thank you bro , keep it up
Reply With Quote
  #8  
Old 12-08-2011, 12:55 AM
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KristerSwe View Post
but is not count the articles i have already done? is show zero.

Maybe it counts the articles i made after the install ... ???
Yes, confirm mine reads zero - 0 - too!

Also it would be an improvement if it linked to the articles.
Reply With Quote
  #9  
Old 12-08-2011, 06:47 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KristerSwe View Post
you can use this code in DBT Postbilt tabmod but need to remove some doublepost from postbit template... am playing with it right now

<dt>{vb:rawphrase artcount}</dt><dd>{vb:raw $post['artcount']}{vb:raw artvar}</dd>
Have you now got a count since you are trying to integrate it?

Quote:
Originally Posted by Mr_Running View Post
Yes, confirm mine reads zero - 0 - too!

Also it would be an improvement if it linked to the articles.
I installed this on a live board and it DID count the articles on install, how did you create your articles? was it through the CMS or was it by promoting a post to article?, also it will only count articles if you haven't changed the prefix from Article to something else, the best way to check is to run this in your admincp>maintainance>execute query:
HTML Code:
SELECT * 
 , COUNT(postusername) as count  
FROM PREFIX_thread  
WHERE title LIKE "Article:%" 
 AND postuserid =YOUR USERID
don't forget to change PREFIX for your forum database prefix so it would read something like "vb_thread" (without the quotes), and dont forget to insert your userid inplace of YOUR USERID.

When you run the query you will get a single row table, at the far right of the table will be the count row where your total amount of threads that have the prefix "Article:" in front of them, let me know the result.
Reply With Quote
  #10  
Old 12-08-2011, 11:31 AM
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simon Lloyd View Post
how did you create your articles?
Article was originally published in blog. (blog promoted to article)

I will try the execute query when I get to my computer.
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 01:55 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.04884 seconds
  • Memory Usage 2,324KB
  • Queries Executed 24 (?)
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
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete