vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Display Number (count) of Articles Posted by user in postbit (https://vborg.vbsupport.ru/showthread.php?t=275156)

Simon Lloyd 12-06-2011 11:00 PM

Display Number (count) of Articles Posted by user in postbit
 
1 Attachment(s)
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!!!

Simon Lloyd 12-07-2011 08:41 AM

***reserved***

leejohn02 12-07-2011 01:20 PM

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

Simon Lloyd 12-07-2011 03:58 PM

I have no idea what you mean by db postbit tabs!

KristerSwe 12-07-2011 10:21 PM

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 ... ???

KristerSwe 12-07-2011 10:24 PM

Quote:

Originally Posted by leejohn02 (Post 2275538)
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>

Dr.osamA 12-07-2011 10:50 PM

installed

thank you bro , keep it up

Mr_Running 12-08-2011 12:55 AM

Quote:

Originally Posted by KristerSwe (Post 2275705)
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.

Simon Lloyd 12-08-2011 06:47 AM

Quote:

Originally Posted by KristerSwe (Post 2275706)
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 (Post 2275737)
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.

Mr_Running 12-08-2011 11:31 AM

Quote:

Originally Posted by Simon Lloyd (Post 2275805)
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. :)


All times are GMT. The time now is 09:14 AM.

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.01023 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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