Results 1 to 2 of 2
  1. #1
    emoisback
    emoisback is offline
    Full member
    Join Date
    2011 Dec
    Location
    Indonesia there i'm
    Posts
    508
    Thanks
    83
    Thanked 244 Times in 68 Posts
    Rep Power
    7

    [Vbulletin Plugin] Post This Month / User

    Okey this seconds plugin for PGC forum.

    For how to used it, same as before but the plugin code is diferent...and must add some new template code.
    How To Use It Basicly Same



    Now i just put the code and the template code that u have add.

    if have any question just posting here..


    HERE IS THE PLUGIN CODE
    PHP Code:
    $getlastposts $db->query_read("
        SELECT COUNT(*) as total
        FROM " 
    TABLE_PREFIX "post AS post
        WHERE  post.userid  = " 
    $vbulletin->userinfo['userid'] . "
        AND
        MONTH(FROM_UNIXTIME( post.dateline )) = MONTH(NOW())
        AND
        YEAR(FROM_UNIXTIME( post.dateline )) = YEAR(NOW())
        ORDER BY post.dateline DESC
    "
    );

    if (
    $getlastpost $db->fetch_array($getlastposts))
    {
        
    vB_Template::preRegister('memberinfo_block_statistics',array('poststhismonth' => $getlastpost['total']));

    And put This Code On - Then find the template at Member Info Template.. here we used memberinfo_block_statistics inside Member Info Template to hook the plugin..double click memberinfo_block_statistics.

    Find The Place that u want to put it..

    for example Find This :

    PHP Code:
    <dl class="blockrow stats">
        <
    dt>{vb:rawphrase posts_per_day}</dt>
        <
    dd> {vb:raw prepared.postsperday}</dd>
    </
    dl
    Add Below :

    PHP Code:
    <dl class="blockrow stats">
        <
    dt>{vb:rawphrase posts_this_month}</dt>
        <
    dd> {vb:raw poststhismonth} </dd>
    </
    dl
    then save and reload.

    Then Go To Languages & Phrases -> Phrase Manager

    Click Add New Phrase

    At Varname put : posts_this_month
    at Text put : Post This Month

    Then save it..

    Hope This is Useful for PGC.
    Last edited by emoisback; 2012-01-17 at 10:52 AM.
    Learn from PGC for Share on PGC..


    For another Stuff i have make try to find it [Please, register to view links]
    If i have help you, please thanks and respect ..

  2. The Following User Says Thank You to emoisback For This Useful Post:


  3. #2
    Dwar
    Dwar is offline
    Veteran Dwar's Avatar
    Join Date
    2010 Mar
    Posts
    2,221
    Thanks
    211
    Thanked 2,224 Times in 289 Posts
    Rep Power
    10
    Reputation for good stuff


    Another good stuff
    Please, post your questions on forum, not by PM or mail

    I spend my time, so please pay a little bit of your time to keep world in equilibrium

Similar Threads

  1. [VBulletin Plugin] Post Per Day/Week/Month
    By emoisback in forum Web, PHP
    Replies: 2
    Last Post: 2012-01-17, 08:40 AM
  2. AIKA GB ending this month
    By gm3x in forum Games Lounge
    Replies: 4
    Last Post: 2011-10-10, 02:57 PM
  3. post forum rules in english pls
    By poge in forum General Talk
    Replies: 3
    Last Post: 2010-10-30, 05:34 AM
Visitors found this page by searching for:

progamercity.net reg username here

vbulletin php code total post

thread in month vbulletin

memberinfo_block_statistics hook

posts in a month vbulletin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •