![]() |
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!!! |
***reserved***
|
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
|
I have no idea what you mean by db postbit tabs!
|
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 ... ??? |
Quote:
<dt>{vb:rawphrase artcount}</dt><dd>{vb:raw $post['artcount']}{vb:raw artvar}</dd> |
installed
thank you bro , keep it up |
Quote:
Also it would be an improvement if it linked to the articles. |
Quote:
Quote:
HTML Code:
SELECT * 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. |
Quote:
I will try the execute query when I get to my computer. :) |
My articles is made from CMS.. but i have table prefix "hd" so what should i do ..
thanks |
Your table prefix shouldn't make a difference, if you mean your table is like this "hd_user" then you should be good, have you tried running the query i gave above?
|
I have just promoted a post/thread to article and the count increases :)
|
okey i tried this now and i this is my settings
HTML Code:
SELECT * |
Quote:
|
Quote:
HTML Code:
SELECT * |
Hey all, if you are upgrading you need to uninstall any previous version first :)
|
Excellent !
Note: I opened the xml to change the site to mine...may want to make a note to change. :) |
Version 1.0.0 for dbtech tabs
Quote:
Version 1.0.1 Code:
<dt>{vb:rawphrase artcount}</dt><dd><a href="http://www.yoursite.com/list.php?author/{vb:raw artlink}">{vb:raw $post['artcount']}{vb:raw artvar}</a> fixed :) in 1.0.2 xml Code:
<dt>{vb:rawphrase artcount}</dt><dd><a href="./list.php?author/{vb:raw artlink}">{vb:raw $post['artcount']}{vb:raw artvar}</a> |
Quote:
|
Quote:
|
If I wanted to hide the word "Articles" and the "number" from usergroups where would I edit? and if I wanted to move it? :)
|
You'd edit the template postbit_artcount and wrap the whole statement in that template in an IF condition like this
HTML Code:
<vb:if condition="!is_member_of($bbuserinfo, X, Y, Z)"><dt>{vb:rawphrase artcount}</dt><dd><a href="./list.php?author/{vb:raw artlink}">{vb:raw artvar}</a> |
Thanks Simon!
|
Quote:
Code:
error number: 1146 error desc: Table 'xxxxxxxxxxxxxxx .hdthread' doesn't exist |
That may be because you have run the query to look for hdthread when it's probably hd_thread
|
You're very welcome Kpuls, and thank you for allowing me to use www.excelguru.ca as a testing ground!
|
Quote:
Code:
hd_thread |
Quote:
|
I installed on 4.2.
the strange thing is i see i made only 1 article. There's a way to update (recount) articles maded? |
Remove this line from the product xml
PHP Code:
|
No way. i see only "1" but if i click on it i see all of them.
There's something with the language? I use italian language instead english. |
I solved modifying the query in this way:
PHP Code:
|
Quote:
|
It can't work for you if you don't use italian language.
Try replacing PHP Code:
PHP Code:
|
No way. Uninstalled.
It doesn't work properly. |
What do you mean doesn't work properly?, it should work exactly as described.
|
it count only some articles.
a user has displayed 8 but if i click on the number it displays 10 articles. Seems that don't count older articles |
I found this looking in the db: some are called Artilces others "Discussion" as first word...
but i don't know why. the artilce settings are the same. |
Well some could be unpublished, in moderation or not promoted to article :)
|
All times are GMT. The time now is 03:08 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|