Jump to content

Photo
* * * * * 1 votes

Show guests online on members online widget (very easy)


  • Please log in to reply
21 replies to this topic

#1 partyfreaker

partyfreaker

    Basic Developer

  • Members
  • Level
  • 45 points
  • 38 posts
    • Gender:Not Telling

Posted 29 June 2011 - 11:03 PM

*
POPULAR

I couldnt find it anywhere so i'd look up in the source code and you can enable guests online there.

look for the file: application/modules/User/widgets/list-online/Controller.php

then look the line:
if( $this->_getParam('showGuests', false) ) {

change it to

if( $this->_getParam('showGuests', true) ) {

then it works :) ... i don't know if this can be edited in the admin menu but i couldnt find it

Already shared here:
http://www.socialengineforum.com/index.php?/topic/9050-widget-to-display-online-guests-and-members/page__p__54899__hl__guest__fromsearch__1&#entry54899


#2 Spyed

Spyed

    Business Developer

  • Members
  • Level
  • 67 points
  • 277 posts
    • Gender:Male

Posted 30 June 2011 - 02:32 AM

Works great! +REP

#3 Sharim

Sharim

    Business Developer

  • Premium
  • Level
  • 235 points
  • 792 posts
    • Gender:Male
    • Location:Karachi, Pakistan


Users Awards

Posted 30 June 2011 - 02:34 AM

wwwwwoooooooooowwww :) thats amaizing :) I can easily vote this post as the most incredible post here on SEF because I was searching for this for a long time and I didn't find it anywhere... ;-D the most easiest yet most valuable share... 10000x reps for you my friend :)
Posted Image

Guide to Earn Online In Pakistan:

http://flixya.biz


#4 dreyti

dreyti

    Level 2

  • Members
  • Level
  • 11 points
  • 46 posts

Posted 02 July 2011 - 05:30 PM

I couldnt find it anywhere so i'd look up in the source code and you can enable guests online there.

look for the file: application/modules/User/widgets/list-online/Controller.php

then look the line:
if( $this->_getParam('showGuests', false) ) {

change it to

if( $this->_getParam('showGuests', true) ) {

then it works :) ... i don't know if this can be edited in the admin menu but i couldnt find it

Already shared here:

http://www.socialengineforum.com/index.php?/topic/9050-widget-to-display-online-guests-and-members/page__p__54899__hl__guest__fromsearch__1&#entry54899

Rep + for a very useful mod but maybe you know how to translate this: 1 guest online or made it view iconed?

#5 dreyti

dreyti

    Level 2

  • Members
  • Level
  • 11 points
  • 46 posts

Posted 02 July 2011 - 05:49 PM

I found how to translate this usefull mod.
If someone need this solution here it is!

go there: application/modules/User/widgets/list-online/index.tpl
find this:
<?php echo (array('%s guest online', '%s guests online', $this->guestCount),
And made it like this:
<?php echo $this->translate(array('%s guest online', '%s guests online', $this->guestCount),

After that go to your langauge folder and add translation string like that to the file (for me it was "custom.csv")

"%s guest online";"%s guests online";"%s Your language translate"

Thats all!

If some one know how to make unregestred users with icons please share!

#6 earnonline

earnonline

    Fresh Developer

  • Premium
  • Level
  • 8 points
  • 183 posts
    • Gender:Not Telling

Posted 07 July 2011 - 08:13 AM

I couldnt find it anywhere so i'd look up in the source code and you can enable guests online there.

look for the file: application/modules/User/widgets/list-online/Controller.php

then look the line:
if( $this->_getParam('showGuests', false) ) {

change it to

if( $this->_getParam('showGuests', true) ) {

then it works :) ... i don't know if this can be edited in the admin menu but i couldnt find it

Already shared here:

http://www.socialengineforum.com/index.php?/topic/9050-widget-to-display-online-guests-and-members/page__p__54899__hl__guest__fromsearch__1&#entry54899

1+ for you nice share

#7 Chaudhry

Chaudhry

    Level 2

  • Members
  • Level
  • 62 points
  • 45 posts
    • Gender:Male

Posted 06 August 2011 - 12:41 PM

I couldnt find it anywhere so i'd look up in the source code and you can enable guests online there.

look for the file: application/modules/User/widgets/list-online/Controller.php

then look the line:
if( $this->_getParam('showGuests', false) ) {

change it to

if( $this->_getParam('showGuests', true) ) {

then it works :) ... i don't know if this can be edited in the admin menu but i couldnt find it

Already shared here:

http://www.socialengineforum.com/index.php?/topic/9050-widget-to-display-online-guests-and-members/page__p__54899__hl__guest__fromsearch__1&#entry54899


+Rep Great Job....

Chaudhry Shahzad


#8 Mrshare2

Mrshare2

    Level 3

  • Members
  • Level
  • 49 points
  • 91 posts

Posted 08 August 2011 - 12:36 AM

Very easy just change from false to true in that line if( $this->_getParam('showGuests', true) ) { by the way is line 68 for those using 4.1.5 thanks i rep +1

#9 Kelqaisi

Kelqaisi

    Level 1

  • Members
  • Level
  • 0 points
  • 8 posts

Posted 10 August 2011 - 12:34 PM

+Rep!

#10 kieshute

kieshute

    Level 2

  • Members
  • Level
  • 14 points
  • 27 posts

Posted 02 December 2012 - 12:18 PM

I couldnt find it anywhere so i'd look up in the source code and you can enable guests online there.

look for the file: application/modules/User/widgets/list-online/Controller.php

then look the line:
if( $this->_getParam('showGuests', false) ) {

change it to

if( $this->_getParam('showGuests', true) ) {

then it works :) ... i don't know if this can be edited in the admin menu but i couldnt find it

Already shared here:

http://www.socialengineforum.com/index.php?/topic/9050-widget-to-display-online-guests-and-members/page__p__54899__hl__guest__fromsearch__1&#entry54899


+1 super!!!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


All the resources listed here are just for testing purpose and they shouldn't be used at any commercial environment without a valid license.
Those are for users who wants to try them before buy. Help the developer to build it better by purchasing them from original authors.