Spy Modification Help

I am on D7.0.9

On my Spy module could anyone please show me how to have "Content Update" showing only please. None of the profile changes I need.

Thanks

Quote · 8 Mar 2012

And again

Quote · 8 Mar 2012

Does anyone have an idea about this. There is a solution in the forum, but it did not work for me, perhaps because I am on 7.9?

Quote · 9 Mar 2012

very simple you would have to modify the spy module to have the "Content update" selected as default and just remove the other two option

Quote · 9 Mar 2012

Yes, you are right and I gathered that, but not being a developer where do i remove the code from? Which file and what code. Help would be appreciated.

I found a forum thread with the code, but applying that did nothing. hence my request. Thanks

Quote · 9 Mar 2012

/modules/boonex/spy/classes/BxSpyModule.php

~497

$aVars['type']          = false != bx_get('type') ? bx_get('type') : 'all';
$aVars['type']          = false != bx_get('type') ? bx_get('type') : 'content_activity';

then ~ 622

            //-- process top block's links --//
            $aDBTopMenu   = array();
            $aDBTopMenu[ _t('_bx_spy_all_activity') ] = array(
                'href' => $aVars['page_url'] . '?type=all', 'dynamic' => true, 'active' => ($aVars['type'] == 'all'),
            );

            $aDBTopMenu[ _t('_bx_spy_content_updates') ] = array(
                'href' => $aVars['page_url'] . '?type=content_activity', 'dynamic' => true, 'active' => ($aVars['type'] == 'content_activity')
            );

            $aDBTopMenu[ _t('_bx_spy_profiles_updates') ] = array(
                'href' => $aVars['page_url'] . '?type=profiles_activity', 'dynamic' => true, 'active' => ($aVars['type'] == 'profiles_activity')
            );
            //--

            //-- process top block's links --//
            $aDBTopMenu   = array();
            $aDBTopMenu[ _t('_bx_spy_content_updates') ] = array(
                'href' => $aVars['page_url'] . '?type=content_activity', 'dynamic' => true, 'active' => ($aVars['type'] == 'content_activity')
            );

            //--

should work

NOT TESTED

Quote · 9 Mar 2012

Will try and report back, thanks for the effort, it is most appreciated.

Quote · 9 Mar 2012

 OK, I did it. Got a little confused on the 2nd part, but all done. Looks really good.

Is there away for me to check another way to ensure that I did it right and it did not affect anything else?

On the spy block, there is now only Content Update title and the activities shown only show items that have been updated within the various mods, no profile changes are displayed.

 

/modules/boonex/spy/classes/BxSpyModule.php

~497

$aVars['type']          = false != bx_get('type') ? bx_get('type') : 'all';
$aVars['type']          = false != bx_get('type') ? bx_get('type') : 'content_activity';

then ~ 622

            //-- process top block's links --//
            $aDBTopMenu   = array();
            $aDBTopMenu[ _t('_bx_spy_all_activity') ] = array(
                'href' => $aVars['page_url'] . '?type=all', 'dynamic' => true, 'active' => ($aVars['type'] == 'all'),
            );

            $aDBTopMenu[ _t('_bx_spy_content_updates') ] = array(
                'href' => $aVars['page_url'] . '?type=content_activity', 'dynamic' => true, 'active' => ($aVars['type'] == 'content_activity')
            );

            $aDBTopMenu[ _t('_bx_spy_profiles_updates') ] = array(
                'href' => $aVars['page_url'] . '?type=profiles_activity', 'dynamic' => true, 'active' => ($aVars['type'] == 'profiles_activity')
            );
            //--

            //-- process top block's links --//
            $aDBTopMenu   = array();
            $aDBTopMenu[ _t('_bx_spy_content_updates') ] = array(
                'href' => $aVars['page_url'] . '?type=content_activity', 'dynamic' => true, 'active' => ($aVars['type'] == 'content_activity')
            );

            //--

should work

NOT TESTED

 

Quote · 9 Mar 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.