Announcement

Collapse
No announcement yet.

Calculate total user registered Plus xxxxx

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Lynne
    replied
    You need to make sure that after you alter the number, you then get it formatted. Both of the lines I posted are needed as the second line does the formatting.

    Leave a comment:


  • Gripi
    replied
    hello lynne...

    the code you give works perfectly..

    but one more thing, i just realize like this after upgrading to version 4

    total member : 10000 <- no comma, it should be total member : 10,000

    could you tell me how to put a comma into the total member.

    thanks

    Leave a comment:


  • Lynne
    replied
    You need to calculate it again since it's been formatted.

    Code:
    $numbermembers = $vbulletin->userstats['numbermembers'] + 1000;
    $numbermembers = vb_number_format($vbulletin->userstats['numbermembers']);

    Leave a comment:


  • Gripi
    replied
    yes i already create a thread there about a week ago, but no respond at all.

    after create a hook plugin "$numbermembers = $numbermembers +1000;" in forumhome_complete, the result become like this:

    Threads: 189,547, Posts: 6,698,709, Members: 1084 <- the actual members should be 80000 something

    Leave a comment:


  • Lynne
    replied
    As ENF stated, you would need a plugin to do this. The place to ask for help is over on vbulletin.org, the modification site. You should post which hook location you are using and what code you have in that plugin and what the result is and then they should be able to help you.

    Leave a comment:


  • Gripi
    replied
    yes... that is why right not i want to make the adjustment in the "$numbermembers", so the total user that registered will match the new id number of registered member.

    please help me..

    Leave a comment:


  • Lynne
    replied
    When you delete users from the database, then you total number of users ($numbermembers) will go down.

    Leave a comment:


  • Gripi
    replied
    hello ..

    if anyone can help me? I did not try to cheat / something like that, but a few moments ago I did use the prune function in database, so much ID member is not active anymore got deleted.

    at this moment register the new member ID number and total member that listed was no longer match, there is a difference of about 20 000 users.

    please help.

    Leave a comment:


  • Gripi
    replied
    hello ragtek..

    not working, my forum already have around 45.000, when i use "$numbermembers = $numbermembers +1000;" code, the total members showing in the forum are 1084 members

    strange..

    Leave a comment:


  • Removed-836727
    replied
    Create a plugin at hook forumhome_complete

    where you manipulate $numbermembers for example $numbermembers = $numbermembers +1000;

    Leave a comment:


  • ENF
    replied
    You want to show a fake user count on your forum?

    You'll need to modify the software, see http://www.vbulletin.org for this.

    Leave a comment:


  • Gripi
    started a topic [vB3] Calculate total user registered Plus xxxxx

    Calculate total user registered Plus xxxxx

    hello...

    in my Forum HOME templete (total user registered):

    PHP Code:
    $vbphrase[members]: $numbermembers<if condition="$show['activemembers']"
    is it possible to make the code to calculate the real registered member + 1000 ??

    thanks alot

Related Topics

Collapse

Working...
X