Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need some help with this plugin.
#11
Hmm, did you deactivate the who's online list for guests in the Admin CP -> Users & Groups?

You have to do that too, otherwise it'll not only show the message but also the who's online list Wink
Forum Admin
Reply
#12
(06-30-2009, 06:34 AM)Lennart Wrote: Hmm, did you deactivate the who's online list for guests in the Admin CP -> Users & Groups?

You have to do that too, otherwise it'll not only show the message but also the who's online list Wink

I am sorry for not being clear at the begin of my thread. I can not use the permission system for guests for that. It has been like this all the time, do not know why. That is why I wanted such a plug-in in the first place.

So please can you make it that when a guests visits my forum to see immediately that message that he can not see the online list instead as it is now that it shows both? What change must I do? Thank you very much.
You have created some great plug-ins I see. Are there any more new coming?
Reply
#13
Hmm, why can't you use that one?
In my opinion it would be the best way...

Otherwise you'd have to find You are not allowed to see php code. in your index.php (line 44) and change the code that follows...
Change the following:
You are not allowed to see php code.to
You are not allowed to see php code.and add the Hide plugin too.

You'll have the same effect as you have with deactivating it in the groups - with one exception!

The online.php (Complete online list) will still be accessible for guests.

Find in line 24:
You are not allowed to see php code.replace with:
You are not allowed to see php code.
Now your online list should be protected.

I guess this can also be achieved without changing the core files but this is the easiest way if you can't / don't want to use the guest group permissions.

To your final question:
I'm still developing new plugins, in fact I just started.

At the moment I'm quite busy with other stuff like school but I'll have more time soon (hollidays) and then there will be a wave of new plugins Wink

Kind regards
Lennart Sauter
Forum Admin
Reply
#14
Thank you for your efforts. But I thought that maybe it was a simpler way to change only the plug-in file and not the other files because I am a noob at this.
I am looking forward to your new plug-ins. They seem very nice.
Reply
#15
Thank you.

Well, I don't know any other way, it would be very tricky.
Why can't you use the rights system?
Forum Admin
Reply
Need professional support? PRinguin, the Digital-Agency. For web design and online marketing.
Register (for free) to hide the ads.
#16
My last question. How can I replace the {\$whosonline} with {\$hideonline} at the template? As it is now it adds it after but I want to replace it. How can that be done? Not manually but by adding it at the find_replace_templatesets at the plug-in file.. This is my last question.

find_replace_templatesets("index_boardstats", '#'.preg_quote('{\$whosonline}').'#', '{\$whosonline}{\$hideonline}');

For some reason my permission system for guests does not work.
Reply
#17
Change to:
find_replace_templatesets("index_boardstats", '#'.preg_quote('{\$whosonline}').'#', '{\$hideonline}');

But this will disable the who's online list for all your users! Be warned!
Forum Admin
Reply
#18
Thank you very much. What about the deactivate function, how can I do it because I forgot all about it in all the exitement.
You seem to know a lot about php Lennart. How long did it take for you to learn it?
Reply
#19
Deactivation is exactly the other way arround:
find_replace_templatesets("index_boardstats", '#'.preg_quote('{\$hideonline}').'#', '{\$whosonline}');

I'm coding Php since a year now but I think you can learn the basics of Php in a week easily. It's really simple and there are so many examples out there Smile

Kind regards
Lennart Sauter
Forum Admin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)