Jump to content


- - - - -

(IM) Toggle Visibility v1.0.2


29 replies to this topic

#1 Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,036 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 30 July 2009 - 06:57 PM

Posted Image

File Name: (IM) Toggle Visibility v1.0.2
File Submitter: Martin
File Submitted: 30 Jul 2009
File Updated: 24 Sep 2010
File Category: IP.Board v3.0 & v3.1
Resource Type: Hook
Version: 1.0.2

File Information
Resource Type: Hook
Version: 1.0.2 (10002)
Compatibility: IP.Board 3.0 & IP.Board 3.1


Description
This hook allows you to quickly toggle your visibility (with AJAX) on the forums without the need for logging out.


Change log
v1.0.2 - Fixed AJAX issue when there's a session ID in the URL. Now it also updates your session, making the changes immediate to other members of the board.
v1.0.1 - Added group permissions

Click here to download this file

#2 Muhammad

    Coder

  • Members
  • PipPipPipPipPip
  • 181 posts
  • Real Name:Muhammad
  • IPB Version:v3.2.x

Posted 30 July 2009 - 08:53 PM

no group permissions ? ;)

#3 Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,036 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 30 July 2009 - 09:19 PM

For such a small modification, I didn't bother.

But of course, if the people want it, I'll add it.

#4 Muhammad

    Coder

  • Members
  • PipPipPipPipPip
  • 181 posts
  • Real Name:Muhammad
  • IPB Version:v3.2.x

Posted 30 July 2009 - 09:23 PM

View Postm4rtin, on Jul 31 2009, 12:19 AM, said:

For such a small modification, I didn't bother.

But of course, if the people want it, I'll add it.
will be nice i believe ;)

#5 Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,262 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.1.x
Contributor

Posted 30 July 2009 - 09:53 PM

The link should be placed before logout! It makes no sense after logout and help. And sure, we should set which groups can use it. Otherwise, it won't have any user on online list... everybody will use it.

#6 Guardsman

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 246 posts
  • IPB Version:v2.3.x

Posted 30 July 2009 - 10:40 PM

View Postm4rtin, on Jul 30 2009, 10:19 PM, said:

For such a small modification, I didn't bother.

But of course, if the people want it, I'll add it.

Yes please ;)
Nobody reads this bit...

#7 Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,036 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 31 July 2009 - 12:43 AM

View PostSOSInvision, on Jul 30 2009, 11:53 PM, said:

The link should be placed before logout! It makes no sense after logout and help. And sure, we should set which groups can use it. Otherwise, it won't have any user on online list... everybody will use it.
If only there was a hook point there, but it isn't.


New version is out, with group permissions.

#8 Muhammad

    Coder

  • Members
  • PipPipPipPipPip
  • 181 posts
  • Real Name:Muhammad
  • IPB Version:v3.2.x

Posted 31 July 2009 - 03:21 PM

View Postm4rtin, on Jul 31 2009, 03:43 AM, said:

New version is out, with group permissions.
Thanks ;)

#9 simplerock

    Novice

  • Banned
  • PipPip
  • 17 posts
  • IPB Version:v3.0.x

Posted 29 August 2009 - 04:22 AM

I installed it as in the instruction:

Quote

Step 1: Upload files

Upload the files in the "upload" folder. Remember to keep the structure intact!
Step 2: Import the Hook File

Log in to your IP.Board Admin CP and visit the System tab -> Applications & Modules -> Manage Hooks page. In the 'Install a New Hook' section, browse to the XML file included with these instructions and click Open. Once it installs this hook, be sure to enable it!

But why dont I see it? And where is the group permission setting?

Thnx in advanced.

#10 simplerock

    Novice

  • Banned
  • PipPip
  • 17 posts
  • IPB Version:v3.0.x

Posted 29 August 2009 - 04:36 AM

Nevermind, I found it. IPB 3 is so new... Thnx anyway. ;)

#11 Force Fed

    n00b

  • Members
  • Pip
  • 2 posts
  • Real Name:Chris
  • IPB Version:v3.0.x

Posted 14 September 2009 - 03:53 AM

Im going to sound like a complete noob here, I have just implemented the "toggle visibility" function into my board and upon click it is coming up with "bad request". Now im not sure if its server side not being able to deal with AJAX but I shouldnt think so as i have Shoutbox 1.1.1 online currently.... Any help would be appreciated.

#12 Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,036 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 14 September 2009 - 10:06 AM

Make sure you've uploaded the files.
If you've changed your admin directory, you have to upload the files to that folder instead.

#13 Force Fed

    n00b

  • Members
  • Pip
  • 2 posts
  • Real Name:Chris
  • IPB Version:v3.0.x

Posted 14 September 2009 - 10:24 PM

Corrected, Thanks Martin. ;)

#14 jsue

    n00b

  • Members
  • Pip
  • 1 posts
  • IPB Version:v2.3.x

Posted 06 November 2009 - 12:48 AM

All of my staff can see anonymous members. Is there a way to set which staff groups can see the anonymous members and which groups they remain hidden from?

#15 Cabola

    Old Wise One

  • Members
  • PipPipPipPipPip
  • 143 posts
  • Location:Europe - Denmark
  • Real Name:Carsten Larsen
  • IPB Version:v3.2.x

Posted 11 November 2009 - 06:31 AM

View Postjsue, on Nov 6 2009, 01:48 AM, said:

All of my staff can see anonymous members. Is there a way to set which staff groups can see the anonymous members and which groups they remain hidden from?
It doesn't really have anything to do with this topic mate, but to answer your question go look in the group permission settings..

Posted Image
Posted Image


#16 kal

    Novice

  • Members
  • PipPip
  • 15 posts
  • Location:Rhode Island
  • Real Name:Mike
  • IPB Version:N/A

Posted 08 December 2009 - 05:50 PM

I am not sure this works exactly they way I expect it to. I installed it fine with no issues. Here's is what I did:

Enabled Hook for my group (Admin).
Logged in as Me and toggled visibility off.
I can see me in the list of members online.
I waited 1 hour, opened a different browser and logged in as Test account (Members).
Test cannot see Me.
I go back to Me and click on View New Content
Test can now see Me

I've reproduced it a couple of times now. Did I miss a step in installation?

#17 Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,036 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 08 December 2009 - 10:38 PM

Not able to reproduce your issue, but I think it's related to me not updating the sessions data. If you didn't perform anything after toggling your visibility, it would never get updated.

If fixed a few issues now, try to upgrade to the new version, and see if the issue persists.

#18 mokracipka

    Advanced Member

  • Members
  • PipPipPipPip
  • 55 posts
  • Real Name:Mokra Cipka
  • IPB Version:v3.0.x

Posted 09 December 2009 - 02:24 PM

Thank you, another great mod m4rtin keep them coming :3

#19 DyCe

    Coder

  • Banned
  • PipPipPipPipPip
  • 126 posts
  • Real Name:DyCe
  • IPB Version:v2.3.x

Posted 06 September 2010 - 10:52 AM

can we change Toggle Visibility text to "Visible" and "Invisible ". if member is visible so member see invisible if member invisible then they saw visible text ?

thanks

#20 DyCe

    Coder

  • Banned
  • PipPipPipPipPip
  • 126 posts
  • Real Name:DyCe
  • IPB Version:v2.3.x

Posted 10 September 2010 - 03:44 AM

could we change Toggle visibility text from top ?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users