Thread: Profile Enhancements - vBStatus - Facebook Style Status Display (v4)
View Single Post
  #508  
Old 01-01-2010, 08:13 PM
zombietom's Avatar
zombietom zombietom is offline
 
Join Date: May 2008
Location: ky
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RobbieZ View Post
Ok so I seem to have solved the problem to the edit not working when clicked.

javascript:Att_Ajax('userid=4&postid=26888','vbsta tus/vbstatus_ajax.php')

First of all I used this.

https://vborg.vbsupport.ru/showpost....&postcount=391

and overwrote and saved.

Then I cleared my cache or private data (depends what browser your using)
This fixed this mod for me.
I have added the updated ajax_wrapper file, to save you some time..copy and paste
open your current ajax wrapper file and delete everything and copy & paste this file in its place
PHP Code:
/*|-----------------------------------------|*\
|#| AJAX Class Wrapper                      |#|
|#| Created By Zero Tolerance               |#|
|#| CVS$v1.0.2$                             |#|
|#| (C) Inferno Technologies 2005 - 2006    |#|
|#| All Rights Reserved                     |#|
\*|-----------------------------------------|*/

// example usage:
/*
 AJAX = new _AJAX(true)
 AJAX.onreadystatechange(myresponsefunction)
 AJAX.send('var=hi&var2=hi2', 'POST', 'index.php')
*/

/**
    _ajax
    Initiates class wrapper for AJAX

    @param    _async    boolean        Determines if asynchronous is on or not

    @return     null
*/

function _ajax(_async)
{
    
this.async   _async
    this
.handler null
}

/**
    [_ajax]createhandler
    Initiates xml http header request (handler)

    @return        boolean        Returns true on success
*/

_ajax.prototype.createhandler = function()
{
    try
    {
        
this.handler = new XMLHttpRequest
        
return this.handler.setRequestHeader true false
    
}
    catch(
e)
    {
        try
        {
            
this.handler = new ActiveXObject('Microsoft.XMLHTTP')
            return 
true
        
}
        catch (
e)
        {
            return 
false
        
}
    }

    return 
false
}

/**
    [_ajax]onreadystatechange
    Sets trigger function to execute once request state changes

    @param    _func    Function    function to trigger

    @return        boolean        Returns true on success
*/

_ajax.prototype.onreadystatechange = function(_func)
{
    if (
this.handler == null)
    {
        if (!
this.createhandler())
        {
            return 
false
        
}        
    }

    
this.handler.onreadystatechange _func
    
return true
}

/**
    [_ajax]encode_datastream
    Automatically encodes URI components

    @param    _datastream    string        URI Components
*/

_ajax.prototype.encode_datastream = function(_datastream)
{
    
_datastream _datastream.split('&')

    for (
key in _datastream)
    {
        if (
_datastream[key].toString().match(/\=/))
        {
            
bits _datastream[key].toString().split('=')

            
_datastream[key] = bits[0] + '=' encodeURIComponent(bits[1])
        }
    }

    return 
_datastream.join('&')
}

/**
    [_ajax]send
    Sends the http xml request

    @param    _datastream    string        Request data
    @param    _type        string        Request type
    @param    _file        string        Request file (index.php/index.cgi, etc...)

    @return            null
*/

_ajax.prototype.send = function(_datastream_type_file)
{

    if (!
this.handler.readyState && !this.handler.readyState 4)
    {
        
_datastream this.encode_datastream(_datastream)
        
this.handler.open(_type_file '?' + ((_type == 'GET')? _datastream ''), this.async)
        
this.handler.send(_datastream)
    }    

thanks
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01201 seconds
  • Memory Usage 1,825KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete