PDA

View Full Version : End-User Options - AJAX Invisible Mode Switch


uae
01-13-2008, 10:00 PM
AJAX Invisible Mode Switch

Quick change invisible/visible status anywahere in your forum with one click!

--------------------------------
| New Files: (2 images)
| New Templates: 0
| New Phrases: 1
| Table to Alter: 0
| File Edits: 0
| Template Edits: 1
| Queries: 0
--------------------------------

New Installation
****************************
** Unzip the files to a directory on your computer.
Step 1. Upload "invisible.gif" & "visible.gif" to YOURFORUMS/IMAGES/statusicon directory.
Step 2. Import Product.
Step 3. Do the Template Edit: // Skip if you got Template-Modifications System installed.

Upgrade from 3.6
****************************
If you upgraded your forum with the 3.6 version installed, reimport the product and redo the template edit.


Instructions For Use with vBa CMPS:
Go to your admincp, vBa CMPS -> Default Settings -> Portal Output Global Variables (it should be under the Options).
Add the following:showinvisiblemode

invisiblemode
Save & Enjoy!Version History:
1.0.0 (https://vborg.vbsupport.ru/showthread.php?p=1373007#post1373007)
- Initial Release for vB 3.6.x
1.0.1
- First version for vB 3.7.x
1.0.2
- Template Edit Fixed
-- To upgrade, just redo the template edit.

soletrader
01-14-2008, 04:57 AM
is it possible to allow this for only certain usergroups?

ragtek
01-14-2008, 07:19 AM
hi
just one little issue:
it would be much "cleaner" if you would use the vbulletin standardmethods
1. yui connection manager instead of your own ajaxmethod
2. here's how i'm handling it in my own version:
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_SILENT);
$userdata->set_existing($vbulletin->userinfo);
$userdata->set_bitfield('options', 'invisible', ($vbulletin->userinfo['invisible'] ? 0 : 1));
$userdata->save();
$xml = new vB_AJAX_XML_Builder($vbulletin, 'text/xml');
$xml->add_group('ajaxtest');

if($vbulletin->userinfo['invisible']==0){
$src='unsichtbar.jpg';
}
else {
$src='sichtbar.jpg';
}
$xml->add_tag('imgsrc',$src);
$xml->close_group();
$xml->print_xml();

Sofia
01-14-2008, 05:31 PM
Thank you uae :)

Roxie
01-14-2008, 07:33 PM
Will this show for users that don't have the ability to set themselves to invisible?

asj
01-14-2008, 09:03 PM
Will this show for users that don't have the ability to set themselves to invisible?
The same :rolleyes:

Basboss
01-15-2008, 02:08 AM
is it possible to allow this for only certain usergroups?
I think it's using the "Can Set Self to Invisible Mode" from the usergroup permissions, so yes it's possible as per your usergroup permissions.

Will this show for users that don't have the ability to set themselves to invisible?
Again, it's using the default usergroup permissions, so No.

Bounce
01-15-2008, 01:40 PM
How does this work??

Installed it,it shows the images..should you be able to click on the image to change your invisible status??

If so mine aint working :D

dreads
01-18-2008, 01:21 AM
I believe this will be a great mod :D

Installing very soon

Nizwa
01-18-2008, 04:59 AM
great mod

Snake
01-18-2008, 11:54 AM
I've been looking for something like this. Thank you very much!

darksoulz
01-19-2008, 03:51 AM
How does this work??

Installed it,it shows the images..should you be able to click on the image to change your invisible status??

If so mine aint working :D

same here. Tried with Firefox and IE

cooldude714
01-20-2008, 07:32 PM
How does this work??

Installed it,it shows the images..should you be able to click on the image to change your invisible status??

If so mine aint working :D

I want to know the same :confused:

If I go User CP > Edit Options > Use Invisible Mode and alter it, the image changes but that's it.

cooldude714
01-21-2008, 07:33 PM
Any support?

Bounce
01-29-2008, 08:27 PM
Any support?

He's invisible :D

Arkodyne
02-11-2008, 04:42 AM
This is definitely one of those features that you wish you had as an Admin, but don't necessarily think of to implement. Good job!

Alien
04-30-2008, 01:41 AM
Anyone having issue with this just showing the icon, but it does not allow clicking?

The error I'm getting when attempting to click:

requestMarkData is not defined

Could this be interfering with the Mood Manager mod?

whitetigergrowl
04-30-2008, 02:42 AM
Yep. Not working for me properly either.

Alien
04-30-2008, 03:17 AM
I wonder if it's somehow tied to the security token recently introduced in 3.7.0 RC4+

Anyone get this to work?

whitetigergrowl
05-02-2008, 12:27 AM
Still nothing eh?

athlon64bit
05-02-2008, 12:55 PM
I hope that this guy gets it fixed soon. I think that it may have been the security token which wrecked it. Please fix it for vb3.7.

fariborz
05-02-2008, 05:55 PM
This product not worked for me, because has many problems with Mood Manager Product ;)

whitetigergrowl
05-02-2008, 05:58 PM
I'm pretty positive there is a way to fix any potential issues with the mood manager hack.

athlon64bit
05-04-2008, 05:08 PM
I hope so. My forum members keep bugging me asking me if it is fixed yet. They loved this addon.

Basboss
05-05-2008, 06:48 AM
It's working fine with vB3.7 Gold!

Thanatos
05-05-2008, 11:53 AM
2 seperate and plugin clean installs of vB 3.7 Gold and its non-functional.

athlon64bit
05-07-2008, 12:59 AM
Hey guys, I got it working by simply doing the navbar edits. Make sure you redo the navbar edits after you install. VB3.7 reverted the template edits in navbar so they need redoing.:D

Ignicoccus
05-09-2008, 01:34 PM
Works perfectly on my 3.7 Gold forum ! Thanks for sharing :up:

Thanatos
05-10-2008, 03:38 PM
Nope, I can't get this to work.

New Forum, New Database. 3.7.0 Gold - No other mods installed.

Uploaded the images, installed the product, edited the NavBar, enabled in the AdminCP.

Not sure what else to check. Still doesn't work.

Conner85
05-12-2008, 10:22 AM
Same here..

I have to go into UserCP and click the box to change the status.

Ideal Web Tech
05-16-2008, 12:50 PM
Use the following code for the navbar template edit instead of the one he provided. He renamed his handler and ajax call functions but didnt update the instructions for the template edit to reflect it.

Oops forgot to paste the code


<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong>&nbsp;<if condition="$showinvisiblemode"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/<if condition="!$invisiblemode">in</if>visible.gif" alt="$vbphrase[ajax_invisible_mode]" onclick="requestSwitchData('index.php?{$session[sessionurl]}do=doinvisiblemode&amp;userid={$invisiblemodeuser}',' parseSwitch',this)" /></if><br />

Conner85
05-16-2008, 01:51 PM
What following code?

Thanatos
05-16-2008, 02:24 PM
Use the following code for the navbar template edit instead of the one he provided. He renamed his handler and ajax call functions but didnt update the instructions for the template edit to reflect it.

Let me echo that...what following code lol.

uae
05-16-2008, 07:13 PM
Sorry guys, been away...
The template edit has been fixed, to upgrade, redo the template edit from the text file.

Behzad Varedi
05-16-2008, 07:37 PM
Hi,

I have same problem after edit the template and when I click , nothing happens :D

Ideal Web Tech
05-17-2008, 02:16 AM
There posted the proper code that I forgot earlier on accident.

Conner85
05-17-2008, 09:59 PM
Hahahaha.. it's cool man. By the way, nice mod uae. I'm sure everyone understands that it's hard to keep up with stuff from time to time. Keep up the good work. You too IWT.

SuperTaz
05-18-2008, 01:14 AM
works great. thanks

RaceJunkie
06-01-2008, 02:59 AM
I thought the template edit was suppose to be automatic? Not the case here.

Julrou
06-17-2008, 01:44 PM
Great mod, very useful. :up:

* Julrou clicked install
:p

ErrorLog
08-04-2008, 08:25 PM
Thank You ..

Salar
08-09-2008, 07:30 AM
thanks :)

Cocko
08-09-2008, 08:20 AM
Good mod. Installed.

How to show on vBadvanced CMPS 3.0.1 ?

Edit: Add global variables
showinvisiblemode
ajaxinvisiblemode
invisiblemode

Julie
08-09-2008, 03:24 PM
Installed :) Great little tool. Thanks!

BlessedFWI
01-02-2009, 08:52 AM
Sweet. :D Installed and works great!

Kosmic1
12-11-2009, 05:32 PM
Great mod :)

However, it's not working perfectly on vbadvanced, even using the Global Variable.

When we change the page (like forum to portal), the invisible mode changes again to default mode.

How can I fix it??

morpheus302
08-05-2010, 10:17 PM
Does it work with vB4??

SuperTaz
06-07-2011, 12:18 AM
Too bad this doesn't work with v. 4.1.3+