v3 Articles, How many Articles a user made (in postbit)
This modification is in the archives.
This is my first hack so please be nice to me :P
This is an addon for the v3Article hack which can be found HERE Anyway, this hack will add a field in the postbit for how many articles a user has posted. Specs: Templates Edited:1 Queries added: 1 during new article post. File Edits: 1 Tables Changed: 1 Installation Time: 3min So, first of all open Article.php and find the following code: PHP Code:
// insert new article
PHP Code:
$DB_site->query("UPDATE " . TABLE_PREFIX . "user
PHP Code:
ALTER TABLE vb3_user` ADD `user_article_count` INT(10) UNSIGNED DEFAULT '0' NOT NULL;
now after you done that its time for template editing.. go to postbit_legacy (for me) and search for this line: PHP Code:
$vbphrase[posts]:</span> $post[posts]</div>
PHP Code:
<div class="postbit" align="left"">
Feel free to comment and enhance this hack by any way. Thats it! your done :] Download No files for download. Screenshots
|
Similar Mods
[v3 Articles] Printable Articles | vBulletin 3.0 Full Releases |