Subscriptions Info missing

When subscribed to walls (maybe other areas too?) there is no information under account/subscriptions which user i am subscribed to. There are only links "Unsubscribe"

How can a member know which one he wants to unsubscribe from?

Looks like there is a bug in BxDolSubscription.php, it just needs to add some info in this line i guess

 

'content' => '<a href="' . $aParams['template']['ViewLink'] . '">' . $aParams['template']['Subscription'] . '</a> <a href="javascript:void(0)" onclick="return unsubscribeConfirm(\'' . $this->_getUnsubscribeLink((int)$aSubscription['entry_id']) . '\');">' . _t('_sys_btn_sbs_unsubscribe') . '</a>',

 

From where can i get the member information this subscription points to, so the unsubscribe list makes sense?

 

Edit: added a screenshot

unsubscribe.png · 13K · 239 views
Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 20 Apr 2012

Nobody? Is this only on my installation?

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 22 Apr 2012

Hello

I just checked my Demo Dolphin 7.0.7 and Wall subscription looks like the following

NickName's Wall (new events) Unsubscribe

What Dolphin version do you use?

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 23 Apr 2012

Hello Anton, i use 7.0.9 and i only get the infos like in the attached screenshot. I wonder if anyone could just check his 7.0.9 so i know its a bug or it's only on my installation. Maybe this is being caused by some wrong language keys without parameters? Can you check the line of code you have in BxDolSubscription.php?

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 24 Apr 2012

 Hello

Hello Anton, i use 7.0.9 and i only get the infos like in the attached screenshot. I wonder if anyone could just check his 7.0.9 so i know its a bug or it's only on my installation. Maybe this is being caused by some wrong language keys without parameters? Can you check the line of code you have in BxDolSubscription.php?

 I just checked it in Fresh installed Dolphin 7.0.9 and I have correct titles there.

admin's Wall (new events) Unsubscribe

Check the translations for _wall_sbs_main and _wall_sbs_update language keys. The default values are

'_wall_sbs_main' => '{0}\'s Wall (updates)',
'_wall_sbs_update' => '{0}\'s Wall (new events)',

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 24 Apr 2012

These entries i also have.

So i did a grep on my whole dolphin installation and they are not used anywhere in any source file except in "en.php"

Next i extracted the original dolphin zip to my local pc and searched for the strings there. Same result, this language keys can only be found in "en.php"

So i wonder how your 7.0.9 can access these keys. Can you do a grep too and tell me what you get please?

grep -rl '_wall_sbs_main' .

grep -rl '_wall_sbs_update' .

in your dolphin root dir.

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 24 Apr 2012

open file /inc/classes/BxDolSubscription.php

find function getMySubscriptions()


and this code,

            $oFunction = create_function('$arg1, $arg2, $arg3', $aSubscription['params']);
            $aParams = $oFunction($aSubscription['unit'], $aSubscription['action'], $aSubscription['object_id']);
           
            $sName = 'sbs-subscription_' . $aSubscription['entry_id'];
            $aForm['inputs'][$sName] = array(
                'type' => 'custom',
                'name' => $sName,
                'content' => ' <a href="' . $aParams['template']['ViewLink'] . '">' . $aParams['template']['Subscription'] . '</a> <a href="javascript:void(0)" onclick="return unsubscribeConfirm(\'' . $this->_getUnsubscribeLink((int)$aSubscription['entry_id']) . '\');">' . _t('_sys_btn_sbs_unsubscribe') . '</a>',
                'colspan' => true
            );



This code is missing or it's hidden (either are both lines hidden or just the bottom line of code)

    $oFunction = create_function('$arg1, $arg2, $arg3', $aSubscription['params']);
    $aParams = $oFunction($aSubscription['unit'], $aSubscription['action'], $aSubscription['object_id']);

Quote · 24 Apr 2012

I checked this part and it's in, nothing missing or deactivated.

 

I still don't understand where the two language keys are being loaded in code. I am really confused now how this can work on other servers but not on my one.

 

The whole process is working i just don't have any member information there.

According to Antons example NickName's Wall (new events) Unsubscribe
i guess, this is the code part, that makes the problem.

 

'content' => ' <a href="' . $aParams['template']['ViewLink'] . '">' . $aParams['template']['Subscription'] . '</a> <a href="javascript:void(0)" onclick="return unsubscribeConfirm(\'' . $this->_getUnsubscribeLink((int)$aSubscription['entry_id']) . '\');">' . _t('_sys_btn_sbs_unsubscribe') . '</a>',
                'colspan' => true
            );

 

Anyone from Boonex pls can tell where i could check why i am missing this information?

Edit: Just did a check on a clean and fresh dolphin installation on another server. Same result.

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 25 Apr 2012

 Hello

I checked this part and it's in, nothing missing or deactivated.

 

I still don't understand where the two language keys are being loaded in code. I am really confused now how this can work on other servers but not on my one.

 

The whole process is working i just don't have any member information there.

According to Antons example NickName's Wall (new events) Unsubscribe
i guess, this is the code part, that makes the problem.

 

'content' => ' <a href="' . $aParams['template']['ViewLink'] . '">' . $aParams['template']['Subscription'] . '</a> <a href="javascript:void(0)" onclick="return unsubscribeConfirm(\'' . $this->_getUnsubscribeLink((int)$aSubscription['entry_id']) . '\');">' . _t('_sys_btn_sbs_unsubscribe') . '</a>',
                'colspan' => true
            );

 

Anyone from Boonex pls can tell where i could check why i am missing this information?

Edit: Just did a check on a clean and fresh dolphin installation on another server. Same result.

These language keys are generated using PHP code, therefore you cannot find them using grap. The value of $aParams array is gotten using serviceGetSubscriptionParams service method from BxWallModule class. Take a look at modules/boonex/wall/classes/BxWallModule.php file.

function serviceGetSubscriptionParams($sUnit, $sAction, $iObjectId) {
    $sUnit = str_replace('bx_', '_', $sUnit);
    if(empty($sAction))
        $sAction = 'main';

    $aEvents = $this->_oDb->getEvents(array('type' => 'id', 'object_id' => $iObjectId));
    if(empty($aEvents[0]) || !is_array($aEvents[0]))
        return array(
            'template' => array(
                 'Subscription' => '', 
                 'ViewLink' => ''
            )
        );

    $aProfileInfo = getProfileInfo($aEvents[0]['owner_id']);
    return array(
        'template' => array(
            'Subscription' => _t($sUnit . '_sbs_' . $sAction, $aProfileInfo['NickName']), 
             'ViewLink' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri()  . 'index/' . $aProfileInfo['NickName']
         )
    );
}

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 25 Apr 2012

Looks like the code never runs into this function/file. I can even produce errors in there, its not being touched while going to the account/subscription area. Where is this function called? I cannot find any reference...

I don't understand the display of subscriptions in 7.0.9 is working properly for anybody, really

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 25 Apr 2012

There is some bug here.

I've subscribed to 4 different profiles (including own - admin profile) wall updates:

wall-subscriptions.png · 29.9K · 346 views
Rules → http://www.boonex.com/terms
Quote · 26 Apr 2012

Hello Alex,

 

now i feel better because i thought i am the only one. This drove me very nuts. I hope there could be a patch for 7.0.9 in the future on what to change in the code.

 

Thanks Michael

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 26 Apr 2012
 
 
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.