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)

KristerSwe 12-08-2011 12:27 PM

My articles is made from CMS.. but i have table prefix "hd" so what should i do ..

thanks

Simon Lloyd 12-08-2011 01:44 PM

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?

Simon Lloyd 12-08-2011 02:04 PM

I have just promoted a post/thread to article and the count increases :)

KristerSwe 12-08-2011 02:57 PM

okey i tried this now and i this is my settings

HTML Code:

SELECT *
 , COUNT(postusername) as count 
FROM hdthread 
WHERE title LIKE "Article:%"
 AND postuserid =1

and finded only 1 post of many i have made . sorry am not so familiar with all this ;)

Simon Lloyd 12-08-2011 03:02 PM

Quote:

Originally Posted by Mr_Running (Post 2275737)
....Also it would be an improvement if it linked to the articles.

Will release this later tonight :)

Simon Lloyd 12-08-2011 03:04 PM

Quote:

Originally Posted by KristerSwe (Post 2275904)
okey i tried this now and i this is my settings

HTML Code:

SELECT *
 , COUNT(postusername) as count 
FROM hdthread 
WHERE title LIKE "Article:%"
 AND postuserid =1

and finded only 1 post of many i have made . sorry am not so familiar with all this ;)

Assuming you ARE userid 1 your query should have been this
HTML Code:

SELECT *
 , COUNT(postusername) as count 
FROM hd_thread 
WHERE title LIKE "Article:%"
 AND postuserid =1

run it and let me know the results :), remember it will only show you a single row so it will only be one post but im interested in the column on the far right!

Simon Lloyd 12-08-2011 03:32 PM

Hey all, if you are upgrading you need to uninstall any previous version first :)

Mr_Running 12-08-2011 05:44 PM

Excellent !
Note: I opened the xml to change the site to mine...may want to make a note to change. :)

Mr_Running 12-08-2011 06:34 PM

Version 1.0.0 for dbtech tabs
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

Code:

<dt>{vb:rawphrase artcount}</dt><dd>{vb:raw $post['artcount']}{vb:raw artvar}</dd>

oh and KristerSwe - I placed your code here in [code] If I may suggest you may want to edit your post too. :)

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>
</dd>

Oh and the 1.0.1 xml as of right now needs to be edited to yoursite.

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>
</dd>


Simon Lloyd 12-08-2011 07:17 PM

Quote:

Originally Posted by Mr_Running (Post 2275965)
Excellent !
Note: I opened the xml to change the site to mine...may want to make a note to change. :)

Fixed in new xml :) sorry about that, just rushed it out!


All times are GMT. The time now is 03:03 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.01231 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
  • (3)bbcode_code_printable
  • (3)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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