hiding selected keywords - feature idea

hi,

I disable displaying selected keywords by a string-notation
like "hidden_imagesBlue", so words are not shown anymore
if they starts with "hidden_",
but I can still use them for dynamic albums, as filter "Blue Images".

In the file template-functions.php
on about line 3456
...
$singletag = getTags();

// start --------------
foreach ($singletag as $key=>$val) {
if (preg_match('/hidden_/',$val)) {
unset($singletag[$key]); }
}
$singletag = array_values($singletag); // rebuild keys
// end --------------

$tagstring = implode(', ', $singletag);
...

Therefor I had to comment out in the file
reconfigure.php
on line 180
of the
function reconfigurePage( ...
the default-action on line 206-207
between default: and break;
Otherwise there comes every 3-4 times a terror-popup up,
that something changed in the core.

btw.: but the feature is not finished yet:
I have to disable the set-keywords too for the tag_cloud ("Archive") ...

Eli

Comments

  • acrylian Administrator, Developer
    Sounds like a special requirement you should solve either via a plugin or theme based custom function. You NEVER should modify core functions.
Sign In or Register to comment.