vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   End-User Options - AJAX Invisible Mode Switch (https://vborg.vbsupport.ru/showthread.php?t=167691)

uae 01-13-2008 10:00 PM

AJAX Invisible Mode Switch
 
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
- 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:
PHP Code:

    $userdata =& datamanager_init('User'$vbulletinERRTYPE_SILENT);
    
$userdata->set_existing($vbulletin->userinfo);
    
$userdata->set_bitfield('options''invisible', ($vbulletin->userinfo['invisible'] ? 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

Quote:

Originally Posted by Roxie (Post 1421453)
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

Quote:

Originally Posted by soletrader (Post 1421016)
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.

Quote:

Originally Posted by Roxie (Post 1421453)
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

Quote:

Originally Posted by hIBEES (Post 1421910)
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

Quote:

Originally Posted by hIBEES (Post 1421910)
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

Quote:

Originally Posted by cooldude714 (Post 1426112)
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

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

Quote:

Originally Posted by Ideal Web Tech (Post 1521555)
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:

[high]* Julrou clicked install
[/high]
:p


All times are GMT. The time now is 07:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01392 seconds
  • Memory Usage 1,817KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete