Online Issue

We are having a problem using the iphone app with chat module.

Simple messenger only lets you contact people that are online.

When logged into the app my status on the webpage won´t change to online.

 

Any possibilities to change that?

Thanks.

Quote · 18 May 2012

Hello, 'simple chat' is only for members that are online to contact each other !

This option will not be available to a 'online member' trying to contact a 'offline member'

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 18 May 2012

umm sorry maybe I give you wrong answer here.... I read post wrong !

I see your issue is with getting you status to be 'online'

maybe someone else can help here  ...

DedicatedServer4You.com -- BIGGEST Range of Dedicated Servers at the Lowest Price!
Quote · 18 May 2012

By default mobile app doesn't change member's online status - because by default there is no way to interact  with mobile online user. 

If 3rd-party module added such functionality, it should also have custom code to update user online status to make it work properly. Please ask the mod author to add this functionality to the module.

Rules → http://www.boonex.com/terms
Quote · 20 May 2012

 

By default mobile app doesn't change member's online status - because by default there is no way to interact  with mobile online user. 

 With that being said, how do I tell if I am accessing the site via mobile versus a browser.

From a security standpoint, if you know what parameters to pass to a module, how do you make sure the mobile app is passing it and not from the address bar in the browser or a from a wget or curl script?

it's easy from a web browser, just pass the profileID to the module and do the following in the module

if (getLoggedId() != $iProfileId){

$this->_oTemplate->displayAccessDenied()

}

When I do this from the mobile App, I ALWAYS get access denied.

how do I do this when it comes from the mobile app?

 

By default mobile app doesn't change member's online status - because by default there is no way to interact  with mobile online user. 

 With that being said, how do I tell if I am accessing the site via mobile versus a browser.

From a security standpoint, if you know what parameters to pass to a module, how do you make sure the mobile app is passing it and not from the address bar in the browser or a from a wget or curl script?

it's easy from a web browser, just pass the profileID to the module and do the following in the module

if (getLoggedId() != $iProfileId){

$this->_oTemplate->displayAccessDenied()

}

When I do this from the mobile App, I ALWAYS get access denied.

how do I do this when it comes from the mobile app?


Thanks!

 

 


Thanks!

 

http://www.mytikibar.com
Quote · 28 May 2012

If it is module, then you need to handle 'mobile' => 'check_login' alert - preferred.

Or just write modification in checkLogin function in xmlrpc/BxDolXMLRPCUtil.php file - not preferred.

 With that being said, how do I tell if I am accessing the site via mobile versus a browser. 

 

Rules → http://www.boonex.com/terms
Quote · 29 May 2012

 

If it is module, then you need to handle 'mobile' => 'check_login' alert - preferred.

Or just write modification in checkLogin function in xmlrpc/BxDolXMLRPCUtil.php file - not preferred.

 

 

 

 Either it's too early in the morning or I am too blonde to understand this.

With the following code, can you explain how this would work?

Normally, thru the website, this works, thru the mobile app it doesn't.  I KNOW it's in the IF block, I just don't follow your example is all.

Seriously, THANKS a bunch!  :D

 

//check here to make sure it's WHO is supposed to be viewing this'            
    if (getLoggedId() != $iProfileId){        
        echo $oMobileTemplate->parseHtmlByName('mobile_box.html',array('content'=>_t('_modzzz_mobile_access_denied')));
        $oMobileTemplate->pageCode('My Drinks', false);
        return;                
    }

http://www.mytikibar.com
Quote · 31 May 2012

 

 

If it is module, then you need to handle 'mobile' => 'check_login' alert - preferred.

Or just write modification in checkLogin function in xmlrpc/BxDolXMLRPCUtil.php file - not preferred.

 

 

 

 Either it's too early in the morning or I am too blonde to understand this.

With the following code, can you explain how this would work?

Normally, thru the website, this works, thru the mobile app it doesn't.  I KNOW it's in the IF block, I just don't follow your example is all.

Seriously, THANKS a bunch!  :D

 

//check here to make sure it's WHO is supposed to be viewing this'            
    if (getLoggedId() != $iProfileId){        
        echo $oMobileTemplate->parseHtmlByName('mobile_box.html',array('content'=>_t('_modzzz_mobile_access_denied')));
        $oMobileTemplate->pageCode('My Drinks', false);
        return;                
    }

 It was discussed - where to paste the code to update online status for mobile users - so I've pointed the places where such code is appropriate.

Rules → http://www.boonex.com/terms
Quote · 1 Jun 2012

Got it!  thanks!

http://www.mytikibar.com
Quote · 3 Jun 2012

Ia there a way to delete old chats from members who are not on the site anymore. I can't get rid of those chats, which causes an issue when chatting with a new/logged in member.

Everyday is a new beginning.
Quote · 3 Dec 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.