Hiding the ‘Tags’ tab for certain weblogs…
Posted: 15 July 2008 03:24 AM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  34
Joined  2006-12-12

Is there some way to hide the ‘Tags’ tab for certain weblogs? We have a large number of weblogs for the site we are working on and tags are not relevant for all… I’d even be upf ro some hacking if that’s the best way… smile

Profile
 
 
Posted: 15 July 2008 07:28 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Nathan,

This is currently a feature we plan to implement in the next version smile

Thank you!

 Signature 
Profile
 
 
Posted: 15 July 2008 08:22 AM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  34
Joined  2006-12-12

No worries, I managed to hack it in there with a bit of PHP… are you happy for me to post that here? Obviously I understand if not… smile

Profile
 
 
Posted: 15 July 2008 08:24 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Nathan,

Certainly, post away wink

 Signature 
Profile
 
 
Posted: 15 July 2008 08:30 AM   [ Ignore ]   [ # 4 ]
Jr. Member
RankRank
Total Posts:  34
Joined  2006-12-12

At around about line 262 in ext.tag.php just wrap the two lines there in a if statement as shown below:

$weblogs = array(3,4,9,10,11); 
if (!
in_array($weblog_id$weblogs)) {
 $LANG
->fetch_language_file('tag');
 
$publish_tabs['tag'$LANG->line('tags');
}

Obviously the ‘weblogs’ array is an array of weblog id’s that you do not want the tag tab to be applied to. You could do this round the other way, writing an array of weblogs that should include the tag tab but I felt this was the better option in my scenario. smile

It doesn’t seem to do any damage here and removes the extra tab on those weblogs as expected.

Profile
 
 
Posted: 03 September 2008 07:28 PM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

This is now available with Tag 2.1.2 smile

 Signature 
Profile