Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: !!kaos!! on September 18, 2009, 08:24:56 AM

Title: Ghost Members
Post by: !!kaos!! on September 18, 2009, 08:24:56 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2128)
Ghost Members
This mod was based on !!kaos!! (http://www.simplemachines.org/community/index.php?action=profile;u=192655)'s code.
Go to my site (http://www.simpledestek.com)

Features:
Enable/Disable this mod in: Admin Panel --> Configuration --> Features and Options --> Ghost


(http://i27.tinypic.com/e03869.jpg)

(http://i30.tinypic.com/29v1fro.jpg)

(http://i30.tinypic.com/33lgllk.jpg)
Title: Re: Ghost Members
Post by: sAce on September 18, 2009, 09:13:49 AM
nice mod,

i wanted to ask, whats the use of this?

and off topic, in your site

themes/mysite/ddlevelfiles/images/top1.jpg is infected with HTML-Iframe_BU(TRJ)
my avast antivirus gives this warning, you maybe wanna check this out.
Title: Re: Ghost Members
Post by: Raul Malik on September 18, 2009, 11:16:28 AM
Nice one...
can u please make this for SMF 2.0 RC1.x  :-[
Title: Re: Ghost Members
Post by: chrishicks on September 18, 2009, 03:19:57 PM
I think I finally hit the point of having too many mods. I tried to install this and failed on every single file.
Title: Re: Ghost Members
Post by: !!kaos!! on September 18, 2009, 03:33:02 PM
Quote from: S-Ace on September 18, 2009, 09:13:49 AM
nice mod,

i wanted to ask, whats the use of this?

and off topic, in your site

themes/mysite/ddlevelfiles/images/top1.jpg is infected with HTML-Iframe_BU(TRJ)
my avast antivirus gives this warning, you maybe wanna check this out.

Thanks for comment and warning

Quote from: www.funindiazone.com on September 18, 2009, 11:16:28 AM
Nice one...
can u please make this for SMF 2.0 RC1.x  :-[

I do not think of now but the future can

Quote from: chrishicks on September 18, 2009, 03:19:57 PM
I think I finally hit the point of having too many mods. I tried to install this and failed on every single file.

you manually set
Title: Re: Ghost Members
Post by: c-ron on September 18, 2009, 03:35:10 PM
Is it my understanding that this mod shows the (fake) usernames that you select as people who're online?
Title: Re: Ghost Members
Post by: chrishicks on September 18, 2009, 03:41:58 PM
Quote from: !!kaos!! on September 18, 2009, 03:33:02 PM
you manually set

Oh I know. I just thought it was funny as it was the first time I tried an auto install and failed on every single file. Usually it's a few but not all. It actually doesn't look like I have any serious edits so far which is nice.
Title: Re: Ghost Members
Post by: !!kaos!! on September 18, 2009, 03:48:11 PM
Quote from: chrishicks on September 18, 2009, 03:41:58 PM
Quote from: !!kaos!! on September 18, 2009, 03:33:02 PM
you manually set

Oh I know. I just thought it was funny as it was the first time I tried an auto install and failed on every single file. Usually it's a few but not all. It actually doesn't look like I have any serious edits so far which is nice.

Very simple http://custom.simplemachines.org/mods/index.php?action=parse
Title: Re: Ghost Members
Post by: Balaban on September 18, 2009, 04:23:23 PM
very nice .

parse link ;
http://custom.simplemachines.org/mods/index.php?action=parse;mod=2128;attach=115830;smf_version=1.1.10 (http://custom.simplemachines.org/mods/index.php?action=parse;mod=2128;attach=115830;smf_version=1.1.10)



for 2.0 please  :D

Title: Re: Ghost Members
Post by: !!kaos!! on September 20, 2009, 10:50:49 AM
Added for 2-0 rc 1.2
Title: Re: Ghost Members
Post by: Balaban on September 20, 2009, 11:13:19 AM
thank you :)
Title: Re: Ghost Members
Post by: akbora on September 20, 2009, 07:09:28 PM
I've installed but no any activity:

Hiçbir kurulum ve kaldırma eylemi tanımlanmadı!
Title: Re: Ghost Members
Post by: Realinfo on September 20, 2009, 10:35:47 PM
useful for new forum, as when a member see that there are many user online, he feels to stay there..............
Title: Re: Ghost Members
Post by: edi67 on September 23, 2009, 10:42:33 AM
Quote from: akbora on September 20, 2009, 07:09:28 PM
I've installed but no any activity:

Hiçbir kurulum ve kaldırma eylemi tanımlanmadı!

installed but not work , nobody of ghost i see online
Title: Re: Ghost Members
Post by: Sabre™ on September 25, 2009, 08:28:48 PM
Quote from: edi67 on September 23, 2009, 10:42:33 AM
installed but not work , nobody of ghost i see online

If you are using a theme that is Not the default theme, have you made the edits for that themes boardindex.php?


Nice mod Kaos. :)
It would be good if you could also make the ghost profiles Exist aswell. If a member or guest clicks on a ghost member, they will see this:
The user whose profile you are trying to view does not exist.
The jig is then up! lol

Also if a new member registers, it will not read as the name being taken, so then you will have duplicate names. Easy to fix by changing the ghost name, but yet again another point to show that these 'ghost members' are exactly that.

Keep up with the good ideas, and hopefully you'd consider adding these suggestings to your mod.

Cheers :)
Title: Re: Ghost Members
Post by: edi67 on September 26, 2009, 04:49:22 AM
 very strange miss me one voice, enable ghost view
Title: Re: Ghost Members
Post by: ishaan on September 28, 2009, 08:17:58 AM
Hello Brother Thank you 4 ur great mod.

am tried to install this mod in manually.

after the  installation

am tried to open the Features and Options on admin panel. but this error msg is showing.

QuoteFatal error: Cannot redeclare modifyghostsettings() (previously declared in /home/ishaan/public_html/Sources/ModSettings.php:443) in /home/ishaan/public_html/Sources/ModSettings.php on line 590


what i do?


i also  attached ModSetting.php

Title: Re: Ghost Members
Post by: !!kaos!! on September 28, 2009, 11:57:27 AM
Loaded twice in file attachments
Title: Re: Ghost Members
Post by: ishaan on September 29, 2009, 07:37:04 AM
Thank you !!kaos!!
Title: Re: Ghost Members
Post by: chriso29 on September 30, 2009, 08:45:29 AM
Hello... I have SMF version 1.1.10 and using the theme kani. I tries to install both ghost version 2.0 & original. I tried to install 2.0 first but it gave me an error message "file may be corrupt or this is an uncompatible version". So I uninstalled it. Today I tried to install the original ghost version, no joy. Any tips on how to get it to work with my version. Thank you.  :)
Title: Re: Ghost Members
Post by: !!kaos!! on September 30, 2009, 11:54:18 AM
Quote from: chriso29 on September 30, 2009, 08:45:29 AM
Hello... I have SMF version 1.1.10 and using the theme kani. I tries to install both ghost version 2.0 & original. I tried to install 2.0 first but it gave me an error message "file may be corrupt or this is an uncompatible version". So I uninstalled it. Today I tried to install the original ghost version, no joy. Any tips on how to get it to work with my version. Thank you.  :)

You manually set  for 2.0 (http://custom.simplemachines.org/mods/index.php?action=parse)
Title: Re: Ghost Members
Post by: qubbah on October 10, 2009, 11:35:54 AM
how can we add in the tinyportal online block list?
Title: Re: Ghost Members
Post by: !!kaos!! on October 10, 2009, 12:10:34 PM
Quote from: qubbah on October 10, 2009, 11:35:54 AM
how can we add in the tinyportal online block list?

Can continue its own official site http://www.tinyportal.net/
Title: Re: Ghost Members
Post by: ZarPrime on October 13, 2009, 03:05:10 AM
This Mod does not seem to work with the standard Who's Online SSI function ...
Who's Online Function: <?php ssi_whosOnline(); ?>

How to make it work with this function please?
Title: Re: Ghost Members
Post by: magnitude2007 on October 13, 2009, 02:04:02 PM
Quote from: zarprime on October 13, 2009, 03:05:10 AM
This Mod does not seem to work with the standard Who's Online SSI function ...
Who's Online Function: <?php ssi_whosOnline(); ?>

How to make it work with this function please?

u need to modify the files manually
its works flawless on my forum
Title: Re: Ghost Members
Post by: ZarPrime on October 13, 2009, 09:00:11 PM
Oh, really?  I didn't say it didn't work in the Users Online area at the bottom of the info center on my site.  I said that it doesn't work with the Who's Online Function: <?php ssi_whosOnline(); ?>

So, you're saying that when you run the url yoursite.com/ssi_examples.php this function on that page shows all the ghost members, correct?
Title: Re: Ghost Members
Post by: chadon on October 17, 2009, 01:23:50 AM
QuoteNice mod Kaos. :)
It would be good if you could also make the ghost profiles Exist aswell. If a member or guest clicks on a ghost member, they will see this:
The user whose profile you are trying to view does not exist.
The jig is then up! lol

Also if a new member registers, it will not read as the name being taken, so then you will have duplicate names. Easy to fix by changing the ghost name, but yet again another point to show that these 'ghost members' are exactly that.

Keep up with the good ideas, and hopefully you'd consider adding these suggestings to your mod.

I have another suggestion to make.
When the administrator logs off all the ghost members log off in same time. This would be a great mod but I don't think it will fool any real members as it is. ;D
Title: Re: Ghost Members
Post by: R.Bourne on October 17, 2009, 04:13:24 PM
Quote from: zarprime on October 13, 2009, 03:05:10 AM
This Mod does not seem to work with the standard Who's Online SSI function ...
Who's Online Function: <?php ssi_whosOnline(); ?>

How to make it work with this function please?

Same problem here.
Title: Re: Ghost Members
Post by: R.Bourne on October 18, 2009, 02:01:48 AM
And while I'm still trying to get this MOD to work with my theme, I have another question.

Your screen capture shows another option "Enable Ghost Members Who" but I don't see it here! I also checked both versions for 1.1.0 and 2.0xx but I don't see it there either. Did you forget to include it with your final code?
Title: Re: Ghost Members
Post by: R.Bourne on October 19, 2009, 07:54:16 PM
Finally! It's working now. But after all the hard work, I am now wondering what's the point of this MOD?!!

The max number of users logged in still shows the true number minus Ghost members!!!
Title: Re: Ghost Members
Post by: magnitude2007 on October 20, 2009, 02:44:42 AM
Quote from: R.Bourne on October 19, 2009, 07:54:16 PM
Finally! It's working now. But after all the hard work, I am now wondering what's the point of this MOD?!!

The max number of users logged in still shows the true number minus Ghost members!!!

which version of ghost members u are using ?
for Ghost_Members.zip
go to themes/ur_theme/boardindex.tem....php and search for ($context['num_guests']

Replace with
($context['num_users_online']
Title: Re: Ghost Members
Post by: R.Bourne on October 20, 2009, 04:37:41 AM
Quote from: magnitude2007 on October 20, 2009, 02:44:42 AM
which version of ghost members u are using ?
for Ghost_Members.zip
go to themes/ur_theme/boardindex.tem....php and search for ($context['num_guests']

Replace with
($context['num_users_online']

Thank you for suggestion. I don't have any problem with the actual number of users online.

That means, under Users Online, it shows the correct numbers for both Guests and Members plus Ghost members:

1 Spider, 13 Guests, 97 Members (0 Buddies)

The 97 Members is the total number of actual members plus Ghost members.

But here I don't have the right info:

Most users online today: 82

BTW, I am using the Ghost_Members.zip on 1.1.10.


UPDATE: I've found out what the problem is!!
(http://i27.tinypic.com/e03869.jpg)

I am so confused how this MOD got the green light!

Anyhow .......   ::)
Title: Re: Ghost Members
Post by: xtremecruiser on October 25, 2009, 03:53:49 PM
Does not like the manual edit with Extreme6 By Fussilet

An Error Has Occurred!
Unable to load the 'main' template.
Title: Re: Ghost Members
Post by: Skargon on October 28, 2009, 11:48:43 AM
If you put input say 10 ghost names, but only put total ghost members as 5, will it cycle the names, or just show the first 5?
Title: Re: Ghost Members
Post by: R.Bourne on October 28, 2009, 06:31:14 PM
Quote from: xtremecruiser on October 25, 2009, 03:53:49 PM
Does not like the manual edit with Extreme6 By Fussilet

An Error Has Occurred!
Unable to load the 'main' template.

When I tried to install the package using package manager, it failed on each and every file! I continued with installation though. Then, as always, I began modifying the files. Finally,  got it to work. The code obviously was developed / tested on a clean SMF with no MODs obviously. But it failed on my test forum with no MOD at all.

In either case, this MOD is not useful, at least for me.
Title: Re: Ghost Members
Post by: R.Bourne on October 28, 2009, 06:32:12 PM
Quote from: Skargon on October 28, 2009, 11:48:43 AM
If you put input say 10 ghost names, but only put total ghost members as 5, will it cycle the names, or just show the first 5?

Nope! Think twice before installing it.
Title: Re: Ghost Members
Post by: PalmBeachPreps on November 08, 2009, 03:00:19 AM
Mine shows the Ghost Members as guests, which is probably for the best since they have no profile.

I think I may disable it though, until someone figures out how to give them a profile or have them log off for periods of time.  Nice mod in theory though!
Title: Re: Ghost Members
Post by: AlbEagle on November 08, 2009, 12:29:07 PM
installare manual please, not to appear so. : (
Title: Re: Ghost Members
Post by: kernelstackdump on December 02, 2009, 12:56:17 PM
1.     Execute Modification     ./Sources/ModSettings.php     Test failed
2.    Execute Modification    ./Sources/Subs.php    Test failed
Using SMF 1.1.11
Title: Re: Ghost Members
Post by: R.Bourne on December 02, 2009, 01:05:50 PM
You'll need to do full manual install. The MOD is designed and works fine on a forum with no other MOD installed.
Title: Re: Ghost Members
Post by: qubbah on December 16, 2009, 10:14:19 AM
Quote from: R.Bourne on October 17, 2009, 04:13:24 PM
Quote from: zarprime on October 13, 2009, 03:05:10 AM
This Mod does not seem to work with the standard Who's Online SSI function ...
Who's Online Function: <?php ssi_whosOnline(); ?>

How to make it work with this function please?

Same problem here.

yes .. how to add in ssi?.. tq
Title: Re: Ghost Members
Post by: Forbs on January 07, 2010, 08:03:23 AM
Where is configurations in admin panel for 1.1.11 ??
Title: Re: Ghost Members
Post by: R.Bourne on January 07, 2010, 08:10:12 AM
Admin -> Features and Options -> Ghost

IF you don't see it, that means a manual install is in order. Almost 99.9% I'm sure it is!
Title: Re: Ghost Members
Post by: Forbs on January 07, 2010, 08:24:19 AM
Quote from: R.Bourne on January 07, 2010, 08:10:12 AM
Admin -> Features and Options -> Ghost

IF you don't see it, that means a manual install is in order. Almost 99.9% I'm sure it is!
Any tutorial how i can install it mannualy?
Title: Re: Ghost Members
Post by: R.Bourne on January 07, 2010, 08:31:33 AM
Sure there is. As with all other MODs, follow the link to MOD.

Select the "Ghost_Members.zip" (NOT Ghost_Members_2-0.zip) -> Choose SMF 1.1.10 (it's the same as 1.1.11) -> Click Parse.
Title: Re: Ghost Members
Post by: kingkingston on January 07, 2010, 12:51:38 PM
So has this mod be abandoned ?
Title: Re: Ghost Members
Post by: R.Bourne on January 07, 2010, 01:04:41 PM
Doesn't do much to be abandoned. If you feel like you need it, just follow the manual install and it's done.

The installer will certainly fail with bunch of errors unless it's a fresh install of SMF with no MOD installed.

As with every other MOD, keep track of all the changes that you make in case you decide to uninstall it.
Title: Re: Ghost Members
Post by: Joker™ on January 13, 2010, 12:03:58 PM
so any update on it for RC2
Title: Re: Ghost Members
Post by: !!kaos!! on January 14, 2010, 02:52:38 PM
Was Updated!
Title: Re: Ghost Members
Post by: Joker™ on January 15, 2010, 12:44:10 AM
1.     Execute Modification     ./Sources/ManageSettings.php     Test failed
      1.    Replace    ./Sources/ManageSettings.php    Test failed
      2.    Replace    ./Sources/ManageSettings.php    Test successful
      3.    Add Before    ./Sources/ManageSettings.php    Test successful
2.    Execute Modification    ./Sources/Admin.php    Test failed
      1.    Replace    ./Sources/Admin.php    Test failed
3.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
      1.    Replace    ./Themes/default/BoardIndex.template.php    Test failed
      2.    Replace    ./Themes/default/BoardIndex.template.php    Test failed


this is the errors i got n when i went to see the manual parse the code for BoardIndex.template.php was incorrect .... plz have a look at the codes

Im using SMF 2.0 RC2 with default curve theme
Title: Re: Ghost Members
Post by: !!kaos!! on January 15, 2010, 04:04:03 AM
Try manual installation
Title: Re: Ghost Members
Post by: Joker™ on January 15, 2010, 04:07:08 AM
i tried that manual after getting that error ...... n those codes r changed in BoardIndex.template.php code is different
Title: Re: Ghost Members
Post by: !!kaos!! on January 16, 2010, 01:25:53 PM
Try adding code to an appropriate location
Title: Re: Ghost Members
Post by: Joker™ on January 17, 2010, 12:23:38 AM
bro plz look at the code of the default theme BoardIndex.template.php


Quote// "Users online" - in order of activity.
   echo '
         <h4 class="titlebg"><span class="left"></span>
            ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who' . '">' : '', '<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $context['show_who'] ? '</a>' : '', '
            <span>', $txt['online_users'], '</span>
         </h4>
         <p class="inline stats">
            ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', comma_format($context['num_guests']), ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . comma_format($context['num_users_online']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];


n this is the code ur mod trying to look for

Quote
               <div class="windowbg2 sectionbody">
                  ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];


so tell me what should i look for
Title: Re: Ghost Members
Post by: Joker™ on January 21, 2010, 01:21:55 PM
ummm i think fr the time being it should be removed that this mod is compatible with RC2

as the coding it looks for is entirely diffrent .... so when it becomes compatible then only it must be shown again

just a suggestion from my side :)
Title: Re: Ghost Members
Post by: Pawan on January 21, 2010, 02:17:58 PM
Please made for SMF latest Version RC2
Title: Re: Ghost Members
Post by: YogiBear on January 21, 2010, 03:28:24 PM
I agree, pawan.
Title: Re: Ghost Members
Post by: !!kaos!! on January 26, 2010, 05:08:09 PM
Quote from: !!kaos!! on January 14, 2010, 02:52:38 PM
Was Updated!
Quote from: !!kaos!! on January 15, 2010, 04:04:03 AM
Try manual installation
Title: Re: Ghost Members
Post by: YogiBear on February 09, 2010, 04:46:41 PM
Sid2varum, I got the very same error messages.

Manual install? I'll get there one day but meanwhile I'll leave it be.
Title: Re: Ghost Members
Post by: Utech22 on February 20, 2010, 03:17:08 PM
I am not seeing Ghost Members mod in "Admin Panel --> Configuration --> Features and Options --> Ghost"
I am using smf 2.0
Title: Re: Ghost Members
Post by: Tien on April 10, 2010, 01:53:36 PM
Seems like the Ghost Members Mod does not work with the Users Online Today Mod. Name of Ghost Members does not appear in the Users Online Today. And only shows that the Ghost Members are off-line.
Title: Re: Ghost Members
Post by: Scratching my Head on April 18, 2010, 09:45:15 PM
Parse error: syntax error, unexpected ';', expecting ')' in /***/***/***/***/Sources/ModSettings.php on line 186

This is the code:

   
      181             'ghost' => array(
      182         'title' => $txt['ghost_mem_mod'],
      183         'href' => $scripturl . '?action=featuresettings;sa=ghost;sesc=' . $context['session_id'],
      184      ),
      185      ),
      186   );



Any love?
Title: Re: Ghost Members
Post by: lipmon on May 13, 2010, 09:20:11 PM
Thx you Good for Smf2.0 Rc3 ;D
Title: Re: Ghost Members
Post by: snyperthugs on May 20, 2010, 12:13:33 AM
This mod doen't work for me. I installed manually and the GHOST tab doesn't appear. Any help?  Thanks
Title: Re: Ghost Members
Post by: Scratching my Head on May 20, 2010, 12:54:08 AM
Doesn't appear anyone is minding this mod.

Title: Re: Ghost Members
Post by: sharks on June 21, 2010, 04:05:21 PM
I'm looking for an RC3 compatible version... but seems like help is hard to find here these days. :(
Title: Re: Ghost Members
Post by: gbsothere on August 27, 2010, 03:37:05 PM
I've removed my zip from this post because live627 very graciously fixed the zip so that it will install with the package manager and it can be downloaded on his post HERE (http://www.simplemachines.org/community/index.php?topic=337319.msg2764127#msg2764127). 




I'm tentatively offering edits that make this mod compatible with RC3.  I only ended up doing this while trying to help a member install it on his RC3 forum and just wanted to share the edits in this attached zip.  I asked first, and the consensus seems to be that it's alright for me to do this.

Please understand, the zip attached only contains edits for RC3.  Whether or not it will install via the package manager, I don't know.  I installed it manually on my test board and it seems to function well and generates no errors.  I don't know if that will be your experience.  You can try it via the package manager, but if it doesn't install that way, the manual edits are not too extensive.

Please, before trying these edits, back up these files:

Admin.php
ManageSettings.php
BoardIndex.template.php

by saving them from your server and putting them somewhere safe, in the event that you feel you don't want to use this mod and still want to keep your other mods intact which may have edited these files.   :)

This mod does not interact with the database but the SMF mantra is "Back Up!" and it's always a good idea.




To any moderators:  if you feel this zip should be removed, I understand and will simply post my edits, if you'd rather. 
Title: Re: Ghost Members
Post by: Scratching my Head on August 27, 2010, 05:36:17 PM
Thanks gbsothere. I'll try it in the next couple days and let you know how it goes.

No matter how it turns out, thanks.
The hard work is appreciated.


(http://serve.mysmiley.net/sign/sign0201.gif)
Title: Re: Ghost Members
Post by: gbsothere on August 27, 2010, 05:37:09 PM
Quote from: Scratching my Head on August 27, 2010, 05:36:17 PM
Thanks gbsothere. I'll try it in the next couple days and let you know how it goes.

No matter how it turns out, thanks.
The hard work is appreciated.


(http://serve.mysmiley.net/sign/sign0201.gif)



Thanks for testing it!   :)
Title: Re: Ghost Members
Post by: Scratching my Head on August 27, 2010, 05:49:45 PM
Okay. :)

Well, it won't parse.
And it won't install.

So I'm going to try a manual install based on the install.xml


Be back in a few with results.


;)



Title: Re: Ghost Members
Post by: gbsothere on August 27, 2010, 06:14:13 PM
Quote from: Scratching my Head on August 27, 2010, 05:49:45 PM
Okay. :)

Well, it won't parse.
And it won't install.

So I'm going to try a manual install based on the install.xml


Be back in a few with results.


;)



I didn't think it would, with the package manager but thanks for confirming that.  I've been staring at code so long today with a lot of other stuff; I hope I didn't flub the edits on the .xml file.   :D 

(If I did, I'll remove the zip and take another look at it.)
Title: Re: Ghost Members
Post by: Scratching my Head on August 27, 2010, 06:20:10 PM
I have the Ulitmate Profile installed and it's not playing nice.

Would you feel like posting the changes from Ghost Members to Ghost Members SMF 2.0 RC3?

Or would that be overstaying my welcome?


Then I could just compare.

I guess I can't read the XML file like a pro, and I want someone to parse it for me so I can make the manual edits. It's
okay if you don't feel like doing it, I'll work it out eventually, buddy.

:P  ;)
Title: Re: Ghost Members
Post by: gbsothere on August 27, 2010, 06:49:03 PM
I can post the edits here that I worked up, sure.   :)

The thing is, you can see on this thread the same issue I ran into.  The guy I was helping was going to use the emulator and install the RC2 version on his RC3 forum but the "find" strings for the BoardIndex.template.php and also for ManageSettings.php just weren't there.  People were complaining about it here and, sure enough, I ran into that, as well.  So I just kept chipping away until I could get this to work on my RC3 test forum and it's working on the forum of the member I was helping.  But it's duct tape; it's not pretty.   :D

(Some weird white space may make the "finds" a bit difficult, so just copy the actual text.)


In ManageSettings.php

Find:

// Load up all the tabs...
$context[$context['admin_menu_name']]['tab_data'] = array(
'title' => $txt['admin_security_moderation'],
'help' => 'securitysettings',
'description' => $txt['security_settings_desc'],
'tabs' => array(
'general' => array(
),
'spam' => array(
'description' => $txt['antispam_Settings_desc'] ,
),
'moderation' => array(
),
),
);



Replace with:

// Load up all the tabs...
$context[$context['admin_menu_name']]['tab_data'] = array(
'title' => $txt['admin_security_moderation'],
'help' => 'securitysettings',
'description' => $txt['security_settings_desc'],
'tabs' => array(
'general' => array(
),
                  'ghost' => array(
'title' => $txt['ghost_mem_mod'],
),
'spam' => array(
'description' => $txt['antispam_Settings_desc'] ,
),
'moderation' => array(
),
),
);



Find:


// Mod authors, once again, if you have a whole section to add do it AFTER this line, and keep a comma at the end.


Replace with:


            'ghost' => 'ModifyGhostSettings',
// Mod authors, once again, if you have a whole section to add do it AFTER this line, and keep a comma at the end.


Find (end of file):

?>

Add Before:


//Begin Ghost Members Mod By !!kaos!! www.simpledestek.com
function ModifyGhostSettings()
{
global $context, $txt, $scripturl, $modSettings;

       loadLanguage('Ghost');

$config_vars = array(
            array('check', 'allow_ghost'),
            array('text', 'ghost_total_members', &$txt['ghost_total_members'], 'ghost_total_members'),
array('text', 'ghost_mem_1', '10', &$txt['ghost_mem_1'], 'ghost_mem_1'),
array('text', 'ghost_mem_2', '10', &$txt['ghost_mem_2'], 'ghost_mem_2'),
array('text', 'ghost_mem_3', '10', &$txt['ghost_mem_3'], 'ghost_mem_3'),
array('text', 'ghost_mem_4', '10', &$txt['ghost_mem_4'], 'ghost_mem_4'),
array('text', 'ghost_mem_5', '10', &$txt['ghost_mem_5'], 'ghost_mem_5'),
array('text', 'ghost_mem_6', '10', &$txt['ghost_mem_6'], 'ghost_mem_6'),
array('text', 'ghost_mem_7', '10', &$txt['ghost_mem_7'], 'ghost_mem_7'),
array('text', 'ghost_mem_8', '10', &$txt['ghost_mem_8'], 'ghost_mem_8'),
array('text', 'ghost_mem_9', '10', &$txt['ghost_mem_9'], 'ghost_mem_9'),
array('text', 'ghost_mem_10', '10', &$txt['ghost_mem_10'], 'ghost_mem_10'),
array('text', 'ghost_mem_11', '10', &$txt['ghost_mem_11'], 'ghost_mem_11'),
array('text', 'ghost_mem_12', '10', &$txt['ghost_mem_12'], 'ghost_mem_12'),
array('text', 'ghost_mem_13', '10', &$txt['ghost_mem_13'], 'ghost_mem_13'),
array('text', 'ghost_mem_14', '10', &$txt['ghost_mem_14'], 'ghost_mem_14'),
array('text', 'ghost_mem_15', '10', &$txt['ghost_mem_15'], 'ghost_mem_15'),
array('text', 'ghost_mem_16', '10', &$txt['ghost_mem_16'], 'ghost_mem_16'),
array('text', 'ghost_mem_17', '10', &$txt['ghost_mem_17'], 'ghost_mem_17'),
array('text', 'ghost_mem_18', '10', &$txt['ghost_mem_18'], 'ghost_mem_18'),
array('text', 'ghost_mem_19', '10', &$txt['ghost_mem_19'], 'ghost_mem_19'),
array('text', 'ghost_mem_20', '10', &$txt['ghost_mem_20'], 'ghost_mem_20'),

'',
            $txt['ghost_mem_pro_title'],
'',
// Ghost members profile

array('int', 'ghost_pro_1', '10', &$txt['ghost_pro_1'], 'ghost_pro_1'),
array('int', 'ghost_pro_2', '10', &$txt['ghost_pro_2'], 'ghost_pro_2'),
array('int', 'ghost_pro_3', '10', &$txt['ghost_pro_3'], 'ghost_pro_3'),
array('int', 'ghost_pro_4', '10', &$txt['ghost_pro_4'], 'ghost_pro_4'),
array('int', 'ghost_pro_5', '10', &$txt['ghost_pro_5'], 'ghost_pro_5'),
array('int', 'ghost_pro_6', '10', &$txt['ghost_pro_6'], 'ghost_pro_6'),
array('int', 'ghost_pro_7', '10', &$txt['ghost_pro_7'], 'ghost_pro_7'),
array('int', 'ghost_pro_8', '10', &$txt['ghost_pro_8'], 'ghost_pro_8'),
array('int', 'ghost_pro_9', '10', &$txt['ghost_pro_9'], 'ghost_pro_9'),
array('int', 'ghost_pro_10', '10', &$txt['ghost_pro_10'], 'ghost_pro_10'),
array('int', 'ghost_pro_11', '10', &$txt['ghost_pro_11'], 'ghost_pro_11'),
array('int', 'ghost_pro_12', '10', &$txt['ghost_pro_12'], 'ghost_pro_12'),
array('int', 'ghost_pro_13', '10', &$txt['ghost_pro_13'], 'ghost_pro_13'),
array('int', 'ghost_pro_14', '10', &$txt['ghost_pro_14'], 'ghost_pro_14'),
array('int', 'ghost_pro_15', '10', &$txt['ghost_pro_15'], 'ghost_pro_15'),
array('int', 'ghost_pro_16', '10', &$txt['ghost_pro_16'], 'ghost_pro_16'),
array('int', 'ghost_pro_17', '10', &$txt['ghost_pro_17'], 'ghost_pro_17'),
array('int', 'ghost_pro_18', '10', &$txt['ghost_pro_18'], 'ghost_pro_18'),
array('int', 'ghost_pro_19', '10', &$txt['ghost_pro_19'], 'ghost_pro_19'),
array('int', 'ghost_pro_20', '10', &$txt['ghost_pro_20'], 'ghost_pro_20'),

);

// Saving?
if (isset($_GET['save']))
{

saveDBSettings($config_vars);
writeLog();

redirectexit('action=admin;area=modsettings;sa=ghost');
}

$context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=ghost';
$context['settings_title'] = $txt['ghost_mem_mod'];
prepareDBSettingContext($config_vars);

}
//End Ghost Members Mod By !!kaos!! www.simpledestek.com



In Admin.Php

Find:

'general' => array($txt['mods_cat_modifications_misc']),


Replace With:


'general' => array($txt['mods_cat_modifications_misc']),
                                    'ghost' => array(loadlanguage('Ghost') == false ? 'Ghost' : $txt['ghost_mem_mod']),



In BoardIndex.template.php

Find:

// "Users online" - in order of activity.
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who' . '">' : '', '<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $context['show_who'] ? '</a>' : '', '
', $txt['online_users'], '
</span>
</h4>
</div>
<p class="inline stats">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', comma_format($context['num_guests']), ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . comma_format($context['num_users_online']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];



Replace with:

// "Users online" - in order of activity.
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who' . '">' : '', '<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $context['show_who'] ? '</a>' : '', '
', $txt['online_users'], '
</span>
</h4>
</div>
<p class="inline stats">
';
if (!(empty($modSettings['ghost_total_members'])))
echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', comma_format($context['num_guests']), ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $ghostmember = ($context['num_guests'] + $modSettings['ghost_total_members']), ' ', comma_format($context['num_users_online']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ' ';
      else
      echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ' ';



Find:

<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';


Replace with:

<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';

// Begin Ghost Members
if (!empty($modSettings['allow_ghost']))
{

if (!empty($modSettings['ghost_mem_1']))
echo ',&nbsp;<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_1'], '">', $modSettings['ghost_mem_1'], '</a>';
if (!empty($modSettings['ghost_mem_2']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_2'], '"> ', $modSettings['ghost_mem_2'], '</a>';
if (!empty($modSettings['ghost_mem_3']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_3'], '"> ', $modSettings['ghost_mem_3'], '</a>';
if (!empty($modSettings['ghost_mem_4']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_4'], '"> ', $modSettings['ghost_mem_4'], '</a>';
if (!empty($modSettings['ghost_mem_5']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_5'], '"> ', $modSettings['ghost_mem_5'], '</a>';
if (!empty($modSettings['ghost_mem_6']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_6'], '"> ', $modSettings['ghost_mem_6'], '</a>';
if (!empty($modSettings['ghost_mem_7']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_7'], '"> ', $modSettings['ghost_mem_7'], '</a>';
if (!empty($modSettings['ghost_mem_8']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_8'], '"> ', $modSettings['ghost_mem_8'], '</a>';
if (!empty($modSettings['ghost_mem_9']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_9'], '"> ', $modSettings['ghost_mem_9'], '</a>';
if (!empty($modSettings['ghost_mem_10']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_10'], '"> ', $modSettings['ghost_mem_10'], '</a>';
if (!empty($modSettings['ghost_mem_11']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_11'], '"> ', $modSettings['ghost_mem_11'], '</a>';
if (!empty($modSettings['ghost_mem_12']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_12'], '"> ', $modSettings['ghost_mem_12'], '</a>';
if (!empty($modSettings['ghost_mem_13']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_13'], '"> ', $modSettings['ghost_mem_13'], '</a>';
if (!empty($modSettings['ghost_mem_14']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_14'], '"> ', $modSettings['ghost_mem_14'], '</a>';
if (!empty($modSettings['ghost_mem_15']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_15'], '"> ', $modSettings['ghost_mem_15'], '</a>';
if (!empty($modSettings['ghost_mem_16']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_16'], '"> ', $modSettings['ghost_mem_16'], '</a>';
if (!empty($modSettings['ghost_mem_17']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_17'], '"> ', $modSettings['ghost_mem_17'], '</a>';
if (!empty($modSettings['ghost_mem_18']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_18'], '"> ', $modSettings['ghost_mem_18'], '</a>';
if (!empty($modSettings['ghost_mem_19']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_19'], '"> ', $modSettings['ghost_mem_19'], '</a>';
if (!empty($modSettings['ghost_mem_20']))
echo ',<a href="', $scripturl, '?action=profile;u=', $modSettings['ghost_pro_20'], '"> ', $modSettings['ghost_mem_20'], '</a>';
}
// End Ghost Members




File Operations:

Upload Ghost.english.php to .../Themes/default/languages

Title: Re: Ghost Members
Post by: Scratching my Head on August 27, 2010, 06:52:33 PM
Ahhhhh, ya' beat me to it. I was about half way through it! What fun are you?

;D

Thanks. I'll put them in and see how it goes. back in a jiff...

:D


Title: Re: Ghost Members
Post by: gbsothere on August 27, 2010, 06:55:07 PM
I forgot to mention, the settings for this are Admin===> Modification Settings====>  Ghost.

:)
Title: Re: Ghost Members
Post by: Scratching my Head on August 27, 2010, 07:02:40 PM
Works a charm mate. Many thanks.

The usual gripes apply:

Why didn't I think of it
Why couldn't someone else have made it even easier for me
...etc.

Just out of curiosity, because the member profile numbers are of course faked, what are they for? Is that to block off potential conflicts with actual members? Or ...?

Anyway, cheers. Love the mod. Much thanks.

Title: Re: Ghost Members
Post by: gbsothere on August 27, 2010, 07:16:31 PM
Quote from: Scratching my Head on August 27, 2010, 07:02:40 PM
Works a charm mate. Many thanks.

The usual gripes appy:

Why didn't I think of it
Why couldn't someone else have made it even easier for me
...etc.

Just out of curiosity, because the member profile numbers are of course faked, what are they for? Is that to block off potential conflicts with actual members? Or ...?

Anyway, cheers. Love the mod. Much thanks.


Well, I have to be honest, this isn't my mod and, between you and me, I don't quite understand it. I guess the basic plot is that it makes your forum look busier than it is but, when the names are clicked, they should go to a profile and when the admin logs off, the Ghosts should stay.   :D

Thanks for testing my codes; I appreciate it.  Maybe some savvy coder will come by and finesse them to solve some of the "if onlys".   ;)
Title: Re: Ghost Members
Post by: Scratching my Head on August 27, 2010, 07:19:34 PM
Yeah, naw. !!kaos!! didn't do too bad -- just got lost with the Upgrade, and you tweaked that. I'm re-reading the entire thread to catch up the finer points of the mod. But I love it.

I have a small forum, just starting out, and it will help to have a few ghosts there to prime the pump.

Thanks much, again, for your work in upgrading this. I rilly appreciate the work. Muchos gracias.

Title: Re: Ghost Members
Post by: gbsothere on August 27, 2010, 07:36:57 PM


(http://whereitestmystuff.com/images/thumb.gif)
Title: Re: Ghost Members
Post by: sharks on August 28, 2010, 08:32:10 AM
I downloaded the package provided by  gbsothere and tried to install on my SMF 2.0 RC3 with default theme and this is the error:

An Error Has Occurred!
The database value you're trying to insert does not exist: current_package

Can someone please fix the package so that it can be installed easier for those less knowledgeable with manual code edits?

Thank you. :)
Title: Re: Ghost Members
Post by: gbsothere on August 28, 2010, 09:44:58 AM
I edited the post with the zip, sharks.  Thanks for posting; it reminded me to do that.  I posted the edits here:

http://www.simplemachines.org/community/index.php?topic=337319.msg2763310#msg2763310 (http://www.simplemachines.org/community/index.php?topic=337319.msg2763310#msg2763310)

If someone does want to make that zip installable and reattach it, that would be great.   :)
Title: Re: Ghost Members
Post by: sharks on August 28, 2010, 02:10:25 PM
Quote from: gbsothere on August 28, 2010, 09:44:58 AM
If someone does want to make that zip installable and reattach it, that would be great.   :)

I really hope someone who knows how to, is able to do that.

I have no idea how to make a package out of the edits. I could try, but then i don't want to be pointed at for breaking a thousand SMF forums. :D
Title: Re: Ghost Members
Post by: live627 on August 28, 2010, 03:02:38 PM
Not bad gbsothere, no bad. The files must be in the root for the Package Manager to install.

I made the correction and now it can be installed automatically.
Title: Re: Ghost Members
Post by: Scratching my Head on August 28, 2010, 04:16:39 PM
Thanks live627 - and in the future? For sharks? Go here:

http://docs.simplemachines.org/index.php?topic=402.0


It can help.

Or, at least I hope so.


All the best.
Title: Re: Ghost Members
Post by: sharks on August 28, 2010, 04:45:24 PM
Thanks for packing things up,  live627.

I got some errors while installing, so i guess i will have to figure out how to do the manual install.
Title: Re: Ghost Members
Post by: Scratching my Head on August 28, 2010, 04:56:22 PM
Quote from: sharks on August 28, 2010, 04:45:24 PM
Thanks for packing things up,  live627.

I got some errors while installing, so i guess i will have to figure out how to do the manual install.

Right. Never hurts to be savvy about your software. Here is the "how" : 
http://docs.simplemachines.org/index.php?topic=402.0


Do you have all the necessary tools?

1.) Back up files before you change them
2.) See # 1

:)
Title: Re: Ghost Members
Post by: gbsothere on August 29, 2010, 08:27:44 AM
Quote from: live627 on August 28, 2010, 03:02:38 PM
Not bad gbsothere, no bad. The files must be in the root for the Package Manager to install.

I made the correction and now it can be installed automatically.



Thanks so much, live627!  I'll download it to see your changes in an attempt to learn something!   :D

(I edited my post where I'd attached it before and removed that zip, to avoid confusion.)
Title: Re: Ghost Members
Post by: live627 on August 29, 2010, 11:58:19 PM
I also edited the version numbers so the mod would install on the gold release.
Title: Re: Ghost Members
Post by: arun356y on October 05, 2010, 03:51:33 AM
aah, I installed this mod manually acc. to  gbsothere post, but when I access ghost under modifications I get a blank page, help me guys.....
Title: Re: Ghost Members
Post by: gbsothere on October 05, 2010, 10:09:18 PM
Attach your ManageSettings.php.

:)
Title: Re: Ghost Members
Post by: ukgirl077 on October 29, 2010, 09:21:31 AM
Hey...

I have a problem,i installed ghost members manually and it all went ok but this is how the ghost members are displayed

6 Guests, 19 1 User

Users active in past 33 minutes:
Ukgirl077, Docmasters, Docfan2010, dannyboy, Simonp, sean232, sarahg10, pollystafs, Rainman, marioman2, 2010themaster, HBOFAN2222, ClAxOn_pif, -BEAN0-, 9u8888


Problem is that it displays the ghost members "19" then next to it it displays the real amount of members logged in "1" is the anyway it will append the logged in users and aggregate them so its displays "20" users??
Title: Re: Ghost Members
Post by: cancasa on November 23, 2010, 01:40:29 PM
I recently installed this Mod but shortly after had to install a full smf 1.1.12 package and overwrite all files.
After setting up all the minor tweaks again I proceeded to reinstall this Mod.
When I selected the Features and Options section in Admin, the page goes blank.

I then decided to uninstall the Mod to try to resolve this problem but after uninstall when I checked the main board, all the ghost users I had set up previously were now showing although the Package section clearly states it has been uninstalled and the Features and Options section has no tab for the Ghost Mod.

This has really baffled me so if someone could explain how to fix this as I have no option to modify or remove the Mod.
Title: Re: Ghost Members
Post by: qubbah on November 23, 2010, 08:16:29 PM
how to show in tinyportal members online?
Title: Re: Ghost Members
Post by: cancasa on November 24, 2010, 06:42:55 AM
Quote from: cancasa on November 23, 2010, 01:40:29 PM
I recently installed this Mod but shortly after had to install a full smf 1.1.12 package and overwrite all files.
After setting up all the minor tweaks again I proceeded to reinstall this Mod.
When I selected the Features and Options section in Admin, the page goes blank.

I then decided to uninstall the Mod to try to resolve this problem but after uninstall when I checked the main board, all the ghost users I had set up previously were now showing although the Package section clearly states it has been uninstalled and the Features and Options section has no tab for the Ghost Mod.

This has really baffled me so if someone could explain how to fix this as I have no option to modify or remove the Mod.

I just logged out to see what it looks like and although all the Ghost users are showing, it says 0 users online?
Is anyone having the same problem as even when I uninstall the mod, the users are still showing.  >:(
Title: Re: Ghost Members
Post by: cancasa on November 25, 2010, 07:57:21 AM
Still no luck with this Mod.
Even after uninstall it is still showing users but does not have any edit options. When I attempt to reinstall it accepts but the Features and Options tab in SMF stops working and won't open.
Desperate to find a solution to this or will I have to literally reinstall the whole forum from scratch just to resolve this problem.
Any advice welcome.
Title: Re: Ghost Members
Post by: cancasa on November 29, 2010, 06:02:57 AM
Can anyone help me with this problem?  Pretty Pleeeeeeeaase   :)
Title: Re: Ghost Members
Post by: Central_Plaza on December 03, 2010, 02:09:15 PM
I need to get this file to work for version 1.1.12, can anyone offer me any assistance? I would greatly appreciate it.


Thanks, C_P
Title: Re: Ghost Members
Post by: cancasa on December 12, 2010, 04:33:33 PM
I have uninstalled this mod and uploaded a fresh "boardindex.template" file which cleared up the issue of the ghost users still showing even after the uninstall.
Now the error logs are stating that there are still issues with this mod as you can see in the screen capture below.
Any ideas.  ::) :o

Edit......I also deleted the Ghost.english file manually that was in the language folder but still no change to logs.
Title: Re: Ghost Members
Post by: cancasa on December 12, 2010, 08:34:22 PM
Everytime the page loads, I get the following message added to the error log and it's filling up fast:
"Unable to load the 'Ghost.english' language file"

I've uninstalled this mod as it's absolutely useless and all I'd like to do is fix this error that keeps coming up and put it behind me.
Can anyone please help me remove this error from the forum.

Here's the screenshot again of the error log.
Title: Re: Ghost Members
Post by: TheListener on December 14, 2010, 06:44:05 PM
Although I don't use this mod it looks as if you may of uninstalled it incorrectly.

Have a look at the files the mod touches using the parser.

Title: Re: Ghost Members
Post by: 1mmolation on February 04, 2011, 12:33:55 AM
would be possible upgrade to SMF 2.0 RC4? please.
Title: Re: Ghost Members
Post by: Scratching my Head on March 20, 2011, 07:12:12 PM
Can this work with the Increase Number of Visitors (cheat), because where it says to look for:


<div class="windowbg2 sectionbody">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];


and replace with:


<div class="windowbg2 sectionbody">';
if (!(empty($modSettings['ghost_total_members'])))
echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $ghostmember = ($context['num_guests'] + $modSettings['ghost_total_members']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ' ';
      else
      echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ' ';


I have:

<p class="inline stats">';
if (!(empty($modSettings['feet'])))
echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', comma_format($heyfeet = ($context['num_guests'] + $modSettings['feet'])), ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . comma_format($heyfeet1 = ($context['num_users_online'] + $modSettings['feet1'])), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
else
echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', comma_format($context['num_guests']), ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . comma_format($context['num_users_online']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];


Does anyone know what to do here?

Thanks for looking !

:)
Title: Re: Ghost Members
Post by: More-to-life on July 06, 2011, 11:46:49 AM
Are there going to be any updates for 2.0?

Thanks in advance