{useronline} edit

You made an own skin or theme for phpMyFAQ. You can share it here with others!

Moderator: Thorsten

Post Reply
R0CKY
Posts: 40
Joined: Mon May 19, 2008 9:18 pm

{useronline} edit

Post by R0CKY » Sat Jul 25, 2009 4:55 pm

I cannot figure out how to edit the result of {useronline}.

At the moment it is displayed like this

1 Users online :: 0 Guests and 1 Registered

As my FAq will not have user registration, I'd like to edit that so it simply looks like this

1 Users online

I have tried a full search for {useronline} but cannot find anywhere I can format that result as above.

Any help...?

Thanks.
Rocky.

Thorsten
Posts: 14754
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: {useronline} edit

Post by Thorsten » Thu Jul 30, 2009 7:13 am

Hi,

which version do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

R0CKY
Posts: 40
Joined: Mon May 19, 2008 9:18 pm

Re: {useronline} edit

Post by R0CKY » Thu Jul 30, 2009 8:24 am

Sorry, v2.5.0
Rocky.

Thorsten
Posts: 14754
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: {useronline} edit

Post by Thorsten » Thu Jul 30, 2009 8:40 am

Hi,

open the file index.php, goto line 384 and edit this code

Code: Select all

    'userOnline'          => $totUsersOnLine.$PMF_LANG['msgUserOnline'].
                             sprintf($PMF_LANG['msgUsersOnline'],
                             $usersOnLine[0],
                             $usersOnLine[1]),
to

Code: Select all

    'userOnline'          => $totUsersOnLine.$PMF_LANG['msgUserOnline'],
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

R0CKY
Posts: 40
Joined: Mon May 19, 2008 9:18 pm

Re: {useronline} edit

Post by R0CKY » Thu Jul 30, 2009 12:01 pm

Thank you!
Rocky.

Post Reply