Quantcast
Viewing all articles
Browse latest Browse all 16

How to display ALL members online now

This post will show you how to create a new page that will show all members online (for version 2.5.3)

Step 1 – Create your new page
In the control panel
Settings---»  [Content]---» [manage pages] ---»  select the Group for your new page
[General]----»  [add page]
Name* ----» the name of your new page  (example: Online Now)
Label* ----» the label of your new page (no spaces or underscores, example: onlinenow)
Group ----»  select the group this page belongs to
Custom template ---»  page_default22
[Submit]

Special Notes
* = required entry

Step 2 -  Create a link to your new page
Settings---»  [Content]---» [manage pages] ---»  select the Group where you created your new page
[General]----»  under actions click the [Link] icon
your page url will look something like this:
http://www.your_webite/page/general/onlinenow/

Now place the new page url in a HTML hyperlink statement and place it in your 'header.tpl' file
to place your new link in the header navigation menu look for this line:
<div id="headernav">
then paste your link where you want it

<li><a href="{virtual_path}page/general/onlinenow">Online now</a><li>

Step 3- place members on your new page
Download 'page_default.tpl' from your 'templates/your_template' folder
rename 'page_default.tpl  ---»  to 'page_default22' 
Remove this call:

{page_content}

insert this call:

{members:limit=15,photos=1,online=1,cache_time=1,cache_name="onlinenew"}

***Special notes***
where ---» 'limit=15' is the number of members to display

upload your new 'page_default22' to your 'templates/your_template' folder

we are done

click your new link and see all members online now

enjoy

***please post any questions about this post in the Technical Support forum***


Viewing all articles
Browse latest Browse all 16

Trending Articles