Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 created topic »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 01:39 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
registered users
-
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 176
Perhaps with something like this, paraphrased from the stats module:
$userdb = $dbconn->Execute("SELECT count(*) AS count FROM $pntable[users]");
list($usernum) = $userdb->fields;
echo pnVarPrepForDisplay($usernum-1);
That's the basic idea. If you set it up right, you could even make a variable accessible to your theme (plugin script with Xanthia for example), and just display the total count on your site globally if you want.
--Kevin -
- Rank: Freshman
- Registered: Jan 16, 2003
- Last visit: Oct 21, 2009
- Posts: 96
thanks for the code :)
I put
Code
In my Xanthia template and it showed the number of members, it'd probably be neater to make a plugin for Xanthia tho like you say, but for me that does it's job on an entry page "We have this many members, Join/Register" :)
- Moderated by:
- Support
