1

Topic: 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***

Last edited by seeme101 (2009-09-03 03:15:39)

Not only am I a Staff member,  I'm also a Client

2

Re: How to display ALL members online now

I followed all the steps to the letter twice ( i think ) and when I click on the link button on the custom pages actions the page works. I put a link in the header.tpl and when I try it "from the web" it does not work. The page that comes up looks right but where it should say Online Now it says Custom Page and below that it says page was not found. HELP

Never be afraid to try something new. Remember, amateurs built the ark, professionals built the Titanic

www.FindaFriendwithbenefits.com

3

Re: How to display ALL members online now

Never mind I got it. great mod

Never be afraid to try something new. Remember, amateurs built the ark, professionals built the Titanic

www.FindaFriendwithbenefits.com

4

Re: How to display ALL members online now

Thanks!!!

5

Re: How to display ALL members online now

quick question. how do we make the list horizontal rows instead of one vertical row say rows of 6 or 8 down the page?

Never be afraid to try something new. Remember, amateurs built the ark, professionals built the Titanic

www.FindaFriendwithbenefits.com

6

Re: How to display ALL members online now

This forum section is for tutorials and tips only. Please DO NOT post technical support questions here. Use an appropriate forum section and link to a tutorial if necessary.

Not only am I a Staff member,  I'm also a Client

7

Re: How to display ALL members online now

great tut thanks for tips !!

8

Re: How to display ALL members online now

Hi Seeme, very good!

I have an addition to your tutorial which makes it even better. To display this on logged in page, and have members from the same location as logged in member, and display opposite gender, use this:

<h3 class="members">&nbsp;{lang:"core","home_latest_members"} from {session.profile_location}</h3>
<br>
<!-- IF session.profile_gender1_id == "1" -->
{members:limit=42,photos=1,cache_time=0,rows="6",profile_location=session.profile_location_id,profile_gender1=2}
<!-- ELSE -->
{members:limit=42,photos=1,cache_time=0,rows="6",profile_location=session.profile_location_id,profile_gender1=1}
<!-- ENDIF -->

9

Re: How to display ALL members online now

fredbreyer wrote:

quick question. how do we make the list horizontal rows instead of one vertical row say rows of 6 or 8 down the page?

seeme101 wrote:

...

maxpower wrote:

...

Seeme, Maxpower,

Would you be so kind as to guide us through how make this work? How to displaying a list of 7 columns by 6 rows?

I really appreciate you guys.

10

Re: How to display ALL members online now

This post is actually what you need.

www.vldMagic.com - first choice customizations help desk
www.vldCrowd.com - vldPersonals admins community

11

Re: How to display ALL members online now

can this work for version 2.5.5 ?

Thanks guys

12

Re: How to display ALL members online now

milknchocolate wrote:

can this work for version 2.5.5 ?

Thanks guys

Yes with 2.5.5 works smile

13

Re: How to display ALL members online now

It works, but I am not sure about its accuracy...
I am using this code (I just deleted the limit of results to show):
{members:photos=1,online=1,cache_time=1,cache_name="onlinenew"}

Well, I noticed a strange thing.
Results of this call are fewer than results given when performing a search and it's very strange, meaning that it has to be the opposite.
Try by yourself.
Perform a search and count results.
After this immediately click to call the online users page you created with this mod.
You will have more account with the first search and it has no sense if you consider also that when you perform a search you are asking to see only men or women, so they could have to be fewer... It happens the opposite.

Searching for a coder --> v.2.7 html newsletters (sgrebsatvirgiliodotit)

Thank you vldpersonals.
Missed features absolutely needed in next release

14

Re: How to display ALL members online now

Thanks

15

Re: How to display ALL members online now

Question..why when you click "invisible" (on the chat box) you profile still appears on the "who's online" page?

thanks

16

Re: How to display ALL members online now

Instead of a page. what is the best way to get this to work in a box in the sidebar?

17

Re: How to display ALL members online now

Hi. This call still works in 2.7? I got all working but the call doesn't return any results.
This is my call: {members:limit=100,photos=1,cache_time=0,profile_gender1=2,country=1}

Thanks.