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
|
|
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? |
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 |
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
|
/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 |
Will try and report back, thanks for the effort, it is most appreciated. |
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
|