# of users

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

# of users

SpkTheLanguage
Is there a way to show how many members you have without clicking the people option.  alot of forums have the number of members down at the bottom.

                      www.theworldofoutfitting.com
Reply | Threaded
Open this post in threaded view
|

Re: # of users

Hugo <Nabble>
We will add this in the future, when we release templates. Users will be able to edit all templates (used to build the user interface) and the number of members will be a special tag. This should be available in a few months (maybe March/April 2010).
Reply | Threaded
Open this post in threaded view
|

Re: # of users

swapqueen I
Hello! I have just started a new forum and was wondering the exact thing. How can anyone see the number of users that have joined my forum on the main page?  Not sure if it has been implemented but I cant seem to see this

Many thanks!
Swapqueen I
Loves to Swap! http://www.fabxchange.co.uk/p/swap-online-forum.html
Reply | Threaded
Open this post in threaded view
|

Re: # of users

GregChapman
"Templates" have now been released, in an alpha state, under the name NAML (Nabble Application Markup Language).

It is now possible for you to see and edit the NAML code that generates any page. There is a link at the bottom of each page. At this stage it is still down to you to do the necessary coding, but maybe Nabble will build an option into the interface in the future.

In the mean time you will have to examine the code on the people page and identify the macros that allow the registered users and members to be calculated and then write that code into the page that displays the main page.
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: # of users

swapqueen I
Hi Grey!

Many Thanks for responding

 hum so I have viewed the macro viewer but I am not sure where to start on writing the code for this and how to even amend it (lest I mess everything up). Do you have a sample code I can tweak and how to make this change as well.

Thanks!
Loves to Swap! http://www.fabxchange.co.uk/p/swap-online-forum.html
Reply | Threaded
Open this post in threaded view
|

Re: # of users

GregChapman
I'm afraid I'm extremely hazy about this stuff too. The last time I considered myself a programmer was when I could cope with Z80 Assembly Language. Never got beyond batch files when I moved to a 16bit operating system.
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: # of users

mywaytoo
Me too Greg!

The templates aren't quite what I had had in mind for me... let alone my users...  

Anne
Reply | Threaded
Open this post in threaded view
|

Re: # of users

Hugo <Nabble>
In reply to this post by swapqueen I
Showing the number of users on the forum front page is not so hard. The steps are:

(1) Go to the forum front page and click on the "see how NAML generates this page" link.

(2) Now we have to find a macro that should be changed in order to display the number of users on the page. A possible macro is the "forum_footer" (view_topics > view_topics_page > forum_footer). If you can't find this macro, use the search box.

(3) Once the macro is found, click on the "Override this macro" button and put a code like this:
<override_macro name="forum_footer">
  <n.overridden/>
  <div style="margin:1em 0">
    This forum has <n.site_user_count filter="[n.registered_filter/]"/> registered users.
  </div>
</override_macro>
Line 2 calls the original forum_footer macro so that things can continue to work as before.
Lines 3-5 prints the sentence with the number of registered users. Note that I use the registered_filter (line 4) to count only registered users (i.e., skip banned users, etc.).
Reply | Threaded
Open this post in threaded view
|

Re: # of users

swapqueen I
Hi Hugo,

Thanks for your answer...

So just to be very clear

Do i remove the current overide code that is on the page now and replace with what you have outlined? if not what line in the code do I add this to?

Many thanks!
Loves to Swap! http://www.fabxchange.co.uk/p/swap-online-forum.html
Reply | Threaded
Open this post in threaded view
|

Re: # of users

Hugo <Nabble>
Yes, you should remove the default override code and paste the example from my last post.
Reply | Threaded
Open this post in threaded view
|

Re: # of users

swapqueen I
Hugo <Nabble> wrote
Yes, you should remove the default override code and paste the example from my last post.
Thanks! this works!
Loves to Swap! http://www.fabxchange.co.uk/p/swap-online-forum.html