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


All times are GMT. The time now is 02:25 AM.

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.01130 seconds
  • Memory Usage 1,747KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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