Script: Phpbb Mod, Total Users Registered - Display the total users anywhere on your site.

free web hosting
Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

Script: Phpbb Mod, Total Users Registered - Display the total users anywhere on your site.

cragllo
This is for phpBB V2+
It displays the total number of registered users anywhere you want.

This file is called: phpbb-totalusers.php
CODE
<?php
/**
* ©2005 Craig lloyd. All rights reserved.
*
* Mod Title:   Total Registered Users
* Author:      Craig Lloyd
* Description: Shows total number of registered users
* Release:     v1.2, 10th May 2005
***
* Demo:                http://www.toxicsims.co.uk/ (stats box)
* Installation Level:  Easy
* Installation Time:   1 minute
* Files To Edit:       This one
* Included Files:      phpbb-totalusers.php
***
* Installation Notes:
* Upload this file and set $config,
* Include this into a page and your done!
*
* ----------------------[ HOW TO INSTALL ]----------------------------
* To display the total users, use the following code:
*
* readfile("http://www.YOURSITE.com/phpbb-totalusers.php");
*
* with the php tags! NOTE: you NEED to include the full url to the
* file including 'http://www.YOURSITE.com/' or it might not show!
*/
//----------------------[ EDIT THIS INFO ]------------------------------
$config = "forum/config.php";    // Path to the config.php file of your phpBB forum

//----------------[ DO NOT EDIT BELOW HERE ]-----------------------
include_once("$config");
$db = @mysql_connect("$dbhost", "$dbuser", "$dbpasswd") or die("cannot connect to host");
@mysql_select_db("$dbname",$db) or die("could not open database, connection to host ok");

$rows = mysql_num_rows(mysql_query("SELECT * FROM phpbb_users"));

$total = $rows-1;

echo "$total";

// end
?>

You only need to edit ONE thing, the $config variable,

change: forum/config.php
to: where your forums config.phph file is located

e.g. If your forum is installed in the folder: board
then you will change it to board/config.php

Hope this comes in useful to someone tongue.gif

Craig.

 

 

 


Reply

Florisjuh
Very nice piece of code, thanks forcontributing with us smile.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : script, phpbb, mod, total, users, registered, display, total, users, site

  1. Top Web Attractions
    The best way to attract visitors ot your site (1)
  2. How To Get Users
    (2)
    i have a website with about 150 users but none of them activley use it... i need some ideas to get
    people to keep coming back and also to start using the forums a little more. also if there is
    anybody who is interested in helping maintain the site and make improvements to it, let me know
    http://www.pcgarageworld.net ....
  3. My Site Has Been Down 2 Days, And Nobody Is Answering Tickets..
    (9)
    My site has been down for two days, I can login to cpanel but there are no files there at all. What
    is going on? I've paid for a whole year and have gotten nothing but poor service. My main
    domain is patrickcurl.com Please fix this problem asap, I'm losing money each day my site is
    down. Thanks, Patrick Curl....
  4. Seeking Help With Javascript
    Need help with drag and drop type script (1)
    What i want to make is a script that has a table, which is a menu for my site, and when you click
    the top of the table you can drag it to another place in the page. This is the code: Test
    run - Right click menu - ©Jack McCrea 2008 <script type="text/javascript"> function
    coordinates(event) { if (event.button==2) { var x=event.x; var y=event.y;
    document.getElementById("element").style.left=x; document.getElementById("element").style.top=y;
    document.getElementById("element").style.visibility="visible"; var oldx=x; var oldy=y; } }
    <script type="....
  5. Browser Compatibility Problem With Firefox - Javascript + Css
    Having trouble making a script work right - any suggestions? (3)
    Hi, Im working on a website, and im trying to make a right-click menu, which opens on right click,
    wherever the cursor is, and closes on mouse out. I wrote the code below, and when i ran it in IE it
    ran fine, just how i wanted it to work. However in firefox, the menu just opened in the top left. im
    presuming this is because it doesnt like my style changing in the javascript. Any ideas, and
    suggestions? If i cant make this work, i will just make it so it works slightly differently when
    viewev in firefox so that it can just open in one place. All ideas appreciated. ....
  6. Phpbb Or Phpnuke?
    (3)
    well a while ago i had phpbb as my form boards and my friend saif phpnuke was better i was looking
    at some layouts and...they were not so good...Overall i want to know which is best to use?....
  7. Wallpaper Site
    (4)
    Hello I hope this is the right place for this thread . I want to thank to Trap17 for their
    wonderful hosting service and because I have no problems related to hosting . I have a wallpaper
    site based on 4images gallery system . But my images have high resoultions (1600*1200 ) and when
    someone enters a wallpaper page , 4images displays the full size image and that too big for a page
    . Is there any way to display a small image in the wallpaper page and a big image when someone
    clicks download ? Or could you recommend me a better software ? Thanks in advance .....
  8. Can Someone Rate My Site?
    Well i created this site about a month ago and i need some tips (7)
    I'm not as advanced as other website designers, but about a month ago i designed this local news
    website. I need someone to rate it and tell me what they think and give me some pointers to fix it
    up or even change the look completely. I've changed the design about 3 times already. It
    contains local news about my home country Belize and i only take about an hour to update daily. Any
    pointers, suggestions, questions i will appreciate. Armond Times Belize ....
  9. Golden Panda Ad Buider Asd Has Now Launched The Chinese Site
    New legal program surf program (0)
    Golden Panda is officially live. The time to get in is now. Why? Well, because of Golden Panda’s
    promotion. All new members will receive a 100% match of their initial purchase with Golden Panda Ad
    Builder. Also, new members will be at the highest level of membership, Executive VIP, for 30 days
    from the date joined. The sponsor will also receive a 100% match on the new member’s initial
    purchase. After the Super-Success of ASD and Lafuentedinero (Spanish) ,ASD has now Launched the
    Chinese Site: Golden Panda Ad Buider. ASD now has over 100K members and is growing....
  10. Hosting Problem [resolved]
    403 Forbidden Error occurs whenever I try to access my site (22)
    First off, let me say that I have spent considerable effort and time going through the forums
    seeking solutions for this problem. I have even gone as far as to seek help from the Xisto Live
    support team (they suggested I wait 2 hours and then get back to them. Well I did that, and there
    has been no change, and live support is now down). I've also tried changing permissions on both
    files and folders via Cpanel, but to no avail. I still end up with the same error: QUOTE
    Forbidden You don't have permission to access /index.php on this server. Additionally, a 4....
  11. Php Guest Online Script
    (3)
    make an index.php copy and paste this code CODE <?php $db_host = "localhost";
    $db_user = "root"; $db_pass = ""; $db_name = "test";
    $dbc = mysql_connect($db_host, $db_user, $db_pass); $dbs =
    mysql_select_db($db_name); $tm = time(); $timeout = $tm -
    (30*60);
    if($_SERVER["REMOTE_ADDR"]){$ip=$_SERVER["REMOTE_ADDR
    "];} else{$ip=$_SERVER["HTTP_X_FORWARDED_FOR"];}....
  12. Best Browser To Desighn Your Site To
    not much of a question but more like a statement (16)
    well since i started web desighning i've always used internet explore (why?) well when i first
    tried FF2, i wasn't a "web-designer" then so i didn't care much about css and htlm stuff, i
    din't like it and one of the reason was beacause a couple of the sites i visited wasnt firefox
    compatible. but anyways recently i was desighning a site for this community. so like two weeks ago i
    downloaded FF3 for testing purposes. in IE the site looked great but what i found was that in
    firefox the site was horible, as bad as they could come. so since firefox was better....
  13. Guessing Php Script
    (2)
    I am looking for: freeware php quess the person in the photo game script....
  14. Need A Name For A Hosting Site
    (5)
    Ok so i'm thinking about setting up a paid and free hosting site with computing host resaller
    plan. but i'm having no luck coming up with a name for the site, evey thing i have tryed it
    taken arleady. so i was wonder if i could get some help with picking a name? so dose any body have
    any ideas? I dont wont it to be one of those super long domain names. Thanks....
  15. Photoshop, Flash And Fireworks Tutorial Site Links
    This has a huge links of useful sites (2)
    Adobe Photoshop Tutorials http://www.rainworld.com/psworkshop/
    http://www.reality9.com/tutorials.html http://www.spoono.com/
    http://www.stridingstudio.com/tutorials/ http://www.designsbymark.com/pstips/index.html
    http://geda-online.com/tutorials.htm http://www.thewebmachine.com/
    http://www.extremephotoshop.com/tutorials.aspx
    http://www.thinkdan.com/tutorials/photosho...-tutorials.com/
    http://www.designerslounge.org/tutorials/ http://www.eyesondesign.net/pshop/tuts.htm
    http://www.eyeball-design.com/fxzone/tutorial.htm http://user.fundy.ne....
  16. Review My Site
    Review my site please (28)
    Hello. I am new here to trap17.com and would really like some input on my site. Echo Of Thunder
    Made using Dream Weaver and note pad. Planning on a better forum and chat page as time goes by.
    This is just a little hobby that I have. "weather" and I hope that you all here at trap17 will take
    a look see, and tell me what you all think. ....
  17. Cool Site To Learn Languages
    Learn to speak in Native accent (6)
    http://www.livemocha.com/ Discovered this site months before. And also I took some classes. I
    should say this is really cool one. Try it. Learn new languages in a social way with LiveMocha.
    Livemocha is the first-of-its-kind online language-learning community. With fun and interactive
    lessons that move at the right pace for you. You can access their team of passionate language tutors
    and start track your progress to reach your goals. Learn, practice, and share. Learn these
    languages: English, French, Hindi, German, Spanish and Mandarin Chinese, among other....
  18. Php Downloads Script
    (4)
    I've been looking all over the net for a PHP script which can provide an interface to browse a
    downloads database. The database could be powered by MySQL. If you know a script like this, please
    post it here. Thanks in advance, Ironchicken.....
  19. Free Sms Site
    List of free SMS sites (5)
    I start this topic for us to post free sms working site. If anyone of us have a free sms site that
    works, don't hesitate to post it here! Thank to all of you to participate. /wink.gif"
    style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> EDIT--- Kindly give
    description about the SMS site, if possible :-)....
  20. I Hate Site Builders.
    Mainly things like piczo and freewebs. (43)
    Loads of people i know, who have very little HTML knowledge, use Piczo . And now, anyone with one
    of these sites, think they have the best websites ever! All it usually is pictures and text
    randomly thrown on a page, with very-hard-to-navigate links. Freewebs is basically the same. I'm
    not sure about my space, I think it uses HTML, but I hate myspace websites. Anyways, back on the
    point, does anyone else know people who use piczo and think they are the best website builders in
    the world? I tried to teach one how to HTML, got stuck on tags /dry.gif" style="ve....
  21. Basic Ways To Speed Up Your Web Site
    (25)
    Speed is certainly one of the most important factors when it comes to making a successful web site.
    These days’ people have high expectations, they expect a web site to load as fast as an application
    on their operating system, and therefore even a few seconds of waiting can frustrate them or leave
    altogether. A good website should take about 8-12 seconds (for a 56K) to load. The website owner is
    going to have to decide how fast its pages are going to be, for example for a multimedia or a flash
    site they can afford to be a bit slower than others provided that the users k....
  22. Verifying Email Addresses
    Using a simple PHP script (9)
    This simple script will allow you to run some basic checks to make sure that any email address
    entered is actually an email address. There is no guarantee offered that this will stop every single
    fake email address, but it'll provide some protection. Now, the code! First we need to get
    the email address to verify. Here, I get it using POST from an HTML form. CODE <?php //Load
    email address from web form $email = $_POST['email']; Now, we move on
    to our first check. Does the text that has been entered look like it could b....
  23. How To Save *.swf From A Web Site?
    freeware or shareware... (30)
    Greetings, Does anyone know how to grab *.SWF file from web? I've found one software named
    LIATRO SWF DECODER.. anyone have tried it? Is it good? Thanks /biggrin.gif' border='0'
    style='vertical-align:middle' alt='biggrin.gif' /> ....
  24. Delay X Seconds In Flash
    how to action script that (1)
    How do i have to do, to tell a frame to wait x seconds after it continues playing? In Macromedia
    Flash, of course... Like: CODE stop(); "wait  x seconds"; play();
    Thanks....
  25. Have You Ever Heard Discuz?
    it's a free forum likes phpBB..... (5)
    Many people use phpBB,Invision Power Board to make english forum. But did you hear about on
    Discuz?? I am Hong Kong people and i can tell you about that. Discuz is created by mainland China.
    Many people use it for chinese forum. It is freeware but of course you can apply for business
    version. Since it is free of charge, peolpe can improve it togeter. I think Discuz is more powerful
    than phpBB and Invision Power Board. Because it have many functions such as ,Devil system, pet
    center,game centre, court,etc..etc........ It also have many styles to display. Unfortunatel....
  26. Best Wap Site
    (10)
    post em here. twilightwap.com Warning! Do not double post. Merging. Do not post one liner
    without a description (you're not contributing). This is your only verbal warning. ....
  27. Css Layout Generator - *free*
    Generate a CSS layout for your site (5)
    pretty powerful css layout generator. /smile.gif' border='0' style='vertical-align:middle'
    alt='smile.gif' /> and it's freely available online.
    http://www.csscreator.com/version2/pagelayout.php QUOTE To create your layout select the
    structural elements your site requires (header, footer, columns). Then specify a size in the field
    provided and choose a background color from the color chooser below. The color chooser changes
    values as you move your mouse along a row. To set a value click on the color row to release click
    again. Once the color in the box is th....
  28. Web Surfing- Script Needed
    (2)
    We all know of anonymouse web surfing, Sites like http://anonymouse.ws/cgi-bin/anon-www.cgi Offer
    peope to surf the internet anonymousely, The site has baners and ads showing up and does not support
    all links. Does anyone know what script they use or where i could get one from, What script do they
    use? Also if anyone jnows how to make my own? I really want this as a addon for my site, So all help
    would be appriciated. Thanks, Mbd5882....
  29. Mysql Database Setup : Setting Up Mysql Database
    Guide to use MySQL database in your site (6)
    A SMALL INTRODUCTION TO DATABASE ============================= I have seen that many members have
    problems with Database. Here is a small INFO which should give you the IDEA. mySQL is a DATABASE
    server. You can access it using the link in Cpanel. Cpanel can be accessed by
    "www.YOUR-SITE.com/Cpanel" There you have 4 Main Options :- 1> CREATE A DATABASE 2> CREATE A USER
    3> ADD USER TO DATABASE 4> PHPMYADMIN CREATE : IT ALLOWS YOU TO CREATE A DATABASE CREATE USER
    : IT ALLOWS YOU TO CREATE A USER. USING THIS, YOU CAN ACCESS THE DATABASE. A DATABASE CANNOT BE....
  30. Google Submite Site
    How to get top ranking (13)
    hi all, do you know how to make our website be placed on the top ranking on searching engine like
    google, yahoo.. etc. i know just some ways like META NAME=keywords" CONTENT="somthings..". but that
    is the old way which is not used anymore. as i know currently most of the searching engines using
    the crawler system, so how can they put keyword in our website?....

    1. Looking for script, phpbb, mod, total, users, registered, display, total, users, site

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for script, phpbb, mod, total, users, registered, display, total, users, site

*MORE FROM TRAP17.COM*
Similar
Top Web Attractions - The best way to attract visitors ot your site
How To Get Users
My Site Has Been Down 2 Days, And Nobody Is Answering Tickets..
Seeking Help With Javascript - Need help with drag and drop type script
Browser Compatibility Problem With Firefox - Javascript + Css - Having trouble making a script work right - any suggestions?
Phpbb Or Phpnuke?
Wallpaper Site
Can Someone Rate My Site? - Well i created this site about a month ago and i need some tips
Golden Panda Ad Buider Asd Has Now Launched The Chinese Site - New legal program surf program
Hosting Problem [resolved] - 403 Forbidden Error occurs whenever I try to access my site
Php Guest Online Script
Best Browser To Desighn Your Site To - not much of a question but more like a statement
Guessing Php Script
Need A Name For A Hosting Site
Photoshop, Flash And Fireworks Tutorial Site Links - This has a huge links of useful sites
Review My Site - Review my site please
Cool Site To Learn Languages - Learn to speak in Native accent
Php Downloads Script
Free Sms Site - List of free SMS sites
I Hate Site Builders. - Mainly things like piczo and freewebs.
Basic Ways To Speed Up Your Web Site
Verifying Email Addresses - Using a simple PHP script
How To Save *.swf From A Web Site? - freeware or shareware...
Delay X Seconds In Flash - how to action script that
Have You Ever Heard Discuz? - it's a free forum likes phpBB.....
Best Wap Site
Css Layout Generator - *free* - Generate a CSS layout for your site
Web Surfing- Script Needed
Mysql Database Setup : Setting Up Mysql Database - Guide to use MySQL database in your site
Google Submite Site - How to get top ranking
advertisement



Script: Phpbb Mod, Total Users Registered - Display the total users anywhere on your site.



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE