vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Profile Enhancements - vBStatus - Facebook Style Status Updates (v5) (https://vborg.vbsupport.ru/showthread.php?t=243775)

Levi75 01-23-2012 03:45 PM

what a about á,é,í,ó,ú letters with accents

gkuhlmann 02-22-2012 08:50 AM

I had the same problem with CKeditor being broken with this mod on vB 4.1.10. I solved the problem by rewriting the mod's JavaScript to use jQuery (which we include in our forum anyway).

The functions vbstatus_formkill(), vbstatus_change_status() and vbstatus_update_status() in the file vbstatus/vbstatus_javascript.js need to be replaced with the following code:

Code:

function vbstatus_formkill(e){
        e.stopPropagation();
        e.preventDefault();
}
function vbstatus_change_status(statusID,userID,inputID,editboxID,statusboxID)
{
        jQuery('#'+inputID).val(jQuery.trim(jQuery('#'+statusID).text()));
        jQuery('#'+statusboxID).hide();
        jQuery('#'+editboxID).css('display','inline');
        jQuery('#'+inputID).keydown( function(e){
                if(e.which==13){
                        vbstatus_update_status(statusID,userID,inputID,editboxID,statusboxID);
                        e.preventDefault();
                }
        });       
        if( jQuery('#inlinemodform').length > 0 ) {
                jQuery('#inlinemodform').submit( vbstatus_formkill );
        }

}

function vbstatus_update_status(statusID,userID,inputID,editboxID,statusboxID)
{
        var update_url = 'vbstatus.php?do=update_status';
        var update_text = jQuery.trim(jQuery('#'+inputID).val());
        jQuery.post( update_url, {'status':update_text}, function( response ) {
                if ( typeof( response.updated_status ) != 'undefined' ) {
                        if ( response.updated_status ) {
                                jQuery('#'+statusID).html( response.updated_status );
                        } else {
                                jQuery('#'+statusID).html( 'hat noch keinen Status' );
                        }
                        jQuery('#'+editboxID).hide();
                        jQuery('#'+statusboxID).css('display','inline');
                }
                if ( jQuery('#inlinemodform').length > 0 ) {
                        jQuery('#inlinemodform').unbind('submit',vbstatus_formkill);
                }
                jQuery('#'+inputID).unbind('keydown');
        }, 'json' );
}

NOTES: The parts that set/remove the submit event handler on the 'inlinemod' form have not been tested yet.
The code above has been tested with jQuery 1.6.4
Accented and other special characters seem to work (tested with Firefox 10 and IE 9)
I used jQuery() rather than the shorthand notation $ because we set jQuery.noConflict() in the header. If you are sure the $ identifier is not used otherwise (e.g. no other javascript framework is included), you can of course replace the "jQuery" with "$"

pyes 03-13-2012 04:35 PM

this code odes not exist.
find: {vb:raw prepared.onlinestatus}

DoubleGlasses 04-07-2012 02:18 PM

I installed this today and I thought it was working but then when I switch pages - my status changes to just the text - utf-8

Is there something I did wrong?

GhostHunter2010 04-07-2012 02:36 PM

any live demo..

ywwz 04-08-2012 02:07 PM

working on 4.1.11?

FTG LIQUID CL 05-27-2012 12:06 AM

i added to 4.1.12,i see the status update,but when i click edit it does not do anything,any ideas why

edytwinky 05-27-2012 01:13 AM

How hard do you think it would be to make the vBStatus get posted to a specified thread. So there's on particular thread that shows all vBStatus' instead of having to look at the postbit?

PrincessFiona 05-28-2012 07:27 PM

I've wanted that for a long time!

TerryMason 06-14-2012 03:49 PM

gkuhlmann,
Thank you for posting that. It's alittle over my head, but it still allowed me to get everything working.

I updated the vbstatus/vbstatus_javascript.js file with the code that gkuhlmann provided, then changed my headerinclude template, replacing my old vbstatus information with this:

Code:

<!--BEGIN VBSTATUS-->
<vb:if condition="$show['member']">
<vb:if condition="$vbulletin->options['vbstatus_active']">
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/jquery/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="{vb:raw vboptions.bburl}/vbstatus/vbstatus_javascript.js"></script>
</vb:if>
</vb:if>
<!--END VBSTATUS-->


I've removed the reference that loaded mootools, and added one that loads jquery-1.6.4.min.js, which is included in my copy of vbulletin 4.1.11. I wrapped this thing in an "if you are a member then show this" conditional, since I don't believe that guests need this 100k or so of javascript.


Let me know if I've done this wrong.


All times are GMT. The time now is 01:33 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.01164 seconds
  • Memory Usage 1,742KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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