Tabs in Tags Block

Anybody find a solution for deleting certain tabs in the tags block, e.g 'Photos', 'Sites', etc.?

Alex

Quote · 13 Apr 2010

Did you try to place them in the "Non parsable tags" under Settings - Tags Settings

Quote · 13 Apr 2010

I believe the non parsable tags under settings is if you do not want the tag to show up. i.e for common words.

 

I am looking for a way to not show the actual tab of 'Photos', 'Sites', etc. Like this solution in 6.1 http://www.boonex.com/unity/forums/?action=goto&topic_id=Tabs-in-tags-block     but for D7

Quote · 14 Apr 2010

Did you ever figure this out?  I would like to do the same thing.

Quote · 27 Aug 2010

Not sure but did you guys tried Deano's Tools mod, it's pretty handy and should let you do that -

http://www.boonex.com/unity/extensions/entry/Deanos_Tools_V1_6_Dolphin_7_0_Version

Facebook, Twitter & Instagram Combo - http://bit.ly/1h5CarP
Quote · 27 Aug 2010

Its lets you delete certain tags added by members.  Since there seems to be a problem with the Tags calculating properly for the Profiles, I would like to remove the Profiles Tab.  I used a fix to the .htaccess file to get the tags working correctly for the search but I'm having the same problem another person referenced in another thread.

The Profile Tags Tab only shows tags that were added early when members created profiles and is not updating as Profile Tags are edited.

 

I did load the Mod you mentioned.  Nice.

Quote · 27 Aug 2010

You can filter out specific tags from appearing on the menu like so.

Open templates/base/scripts/BxBaseTags.php at about line 72 look for this function.

function getTagsTopMenu ($aParam, $sAction = '')
{
$aTopMenu = array();
$aParamTmp = $aParam;

foreach ($this->aTagObjects as $sKey => $aTagUnit)
{
$sName = _t($aTagUnit['LangKey']);
$sHref = "{$_SERVER['PHP_SELF']}?tags_mode=$sKey" . ($sAction ? '&action=' . $sAction : '');

if (isset($aParam['filter']) && $aParam['filter'])
{
$aParamTmp['type'] = $sKey;
$sName .= '(' . $this->getTagsCount($aParamTmp) . ')';
$sHref .= '&filter=' . $aParam['filter'];
}

if (isset($aParam['date']) && $aParam['date'])
$sHref .= '&year=' . $aParam['date']['year'] .
'&month=' . $aParam['date']['month'] .
'&day=' . $aParam['date']['day'];

$aTopMenu[$sName] = array('href' => $sHref, 'key' => $sKey, 'dynamic' => true, 'active' => ( $sKey == $aParam['type']));
}
return $aTopMenu;
}


Modify it to add the lines marked in green below.

function getTagsTopMenu ($aParam, $sAction = '')
{
$aTopMenu = array();
$aParamTmp = $aParam;

foreach ($this->aTagObjects as $sKey => $aTagUnit)
{
if($sKey != 'profile') {
$sName = _t($aTagUnit['LangKey']);
$sHref = "{$_SERVER['PHP_SELF']}?tags_mode=$sKey" . ($sAction ? '&action=' . $sAction : '');

if (isset($aParam['filter']) && $aParam['filter'])
{
$aParamTmp['type'] = $sKey;
$sName .= '(' . $this->getTagsCount($aParamTmp) . ')';
$sHref .= '&filter=' . $aParam['filter'];
}

if (isset($aParam['date']) && $aParam['date'])
$sHref .= '&year=' . $aParam['date']['year'] .
'&month=' . $aParam['date']['month'] .
'&day=' . $aParam['date']['day'];

$aTopMenu[$sName] = array('href' => $sHref, 'key' => $sKey, 'dynamic' => true, 'active' => ( $sKey == $aParam['type']));
}
}

return $aTopMenu;
}


Now if you want to fiter out more then one section then change this added line. if($sKey != 'profile') { to add additional filters like so.

if($sKey != 'bx_photos' && $sKey != 'profile' && $sKey != 'bx_news') {


https://www.deanbassett.com
Quote · 27 Aug 2010

Thank you.

 

Are the Tags just not working with 7.+?

 

Is there a process I need to take to update the Tags table with new edited profiles, data, etc.?

Quote · 27 Aug 2010

 I've tried it? But it didn't work. This error appears Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/xxxxxx/public_html/templates/base/scripts/BxBaseTags.php on line 203

What is wrong?


foreach ($this->aTagObjects as $sKey => $aTagUnit)
{
if($sKey != 'profile') {
$sName = _t($aTagUnit['LangKey']);

Quote · 17 Sep 2011

Ok, it works. There was my mistake - i forgot this oneЖ

$aParam['type']));
}
}

Quote · 22 Sep 2011

Perfect! Thanks Deano

Quote · 22 Apr 2013
 
 
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.