Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
AJAX Invisible Mode Switch Details »»
AJAX Invisible Mode Switch
Version: 1.0.2, by uae uae is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: End-User Options - Version: 3.7.x Rating:
Released: 01-13-2008 Last Update: 05-15-2008 Installs: 93
Uses Plugins Template Edits Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

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.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
caoducanh9x

Comments
  #2  
Old 01-14-2008, 04:57 AM
soletrader soletrader is offline
 
Join Date: Jul 2006
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possible to allow this for only certain usergroups?
Reply With Quote
  #3  
Old 01-14-2008, 07:19 AM
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
Posts: 1,630
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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(); 
Reply With Quote
  #4  
Old 01-14-2008, 05:31 PM
Sofia Sofia is offline
 
Join Date: Oct 2006
Location: France
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you uae
Reply With Quote
  #5  
Old 01-14-2008, 07:33 PM
Roxie's Avatar
Roxie Roxie is offline
 
Join Date: May 2002
Location: on vb.org
Posts: 526
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this show for users that don't have the ability to set themselves to invisible?
Reply With Quote
  #6  
Old 01-14-2008, 09:03 PM
asj's Avatar
asj asj is offline
 
Join Date: Jul 2006
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Roxie View Post
Will this show for users that don't have the ability to set themselves to invisible?
The same
Reply With Quote
  #7  
Old 01-15-2008, 02:08 AM
Basboss Basboss is offline
 
Join Date: Aug 2005
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by soletrader View Post
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 View Post
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.
Reply With Quote
  #8  
Old 01-15-2008, 01:40 PM
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 919
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 01-18-2008, 01:21 AM
dreads dreads is offline
 
Join Date: Feb 2007
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe this will be a great mod

Installing very soon
Reply With Quote
  #10  
Old 01-18-2008, 04:59 AM
Nizwa Nizwa is offline
 
Join Date: Oct 2005
Location: Oman-Nizwa
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:15 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.07860 seconds
  • Memory Usage 2,313KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete