Example #1
0
        $hashtext .= $user->getUsername();
    }
    $hash = md5($hashtext);
    // Cache for 180 minutes
    $cache->Start($hash, 7200);
}
//Display all the tags
echo "<h2>" . T_("All tags") . "";
if ($userName) {
    echo " -- " . $userName;
}
echo "</h2>";
if ($current_page != "") {
    $strPopular = displayPopularTagsCloud(tagCloud(getPopularTags(-1, $userName), 5, 90, 225, $sortOrder), $current_page);
} else {
    $strPopular = displayPopularTagsCloud(tagCloud(getPopularTags(-1, $userName), 5, 90, 225, $sortOrder));
}
if ($strPopular != "") {
    echo "<p class=\"tags\">" . $strPopular . "</p>";
}
?>
<p id="sort">
 <?php 
echo T_("Sort by");
?>
:    <a href="?sortOrder=alphabet<?php 
echo $userStr;
?>
"><?php 
echo T_("Alphabet");
?>
Example #2
0
            }
            echo "<div class=\"rm_content\"><a href=\"" . $current_page . "\" title=\"" . T_("Remove all tags") . "\">[" . T_("remove all") . "]</a>\n" . $forAllStr . $strRelatedMinus . $strRelated . "</div><br>";
        } else {
            echo "<div class=\"rm_content\">" . $strRelated . "</div><br>";
        }
    }
}
if (in_array('popular', $blocks)) {
    if (!(IS_GETBOO && $userName == "")) {
        if ($current_page != "" && $current_page != "recent_tags.php") {
            $strPopular = displayPopularTagsCloud(tagCloud(getPopularTags(35, $userName), 5, 85, 170, "alphabet"), $current_page);
        } else {
            if (!$boolMain) {
                $strPopular = displayPopularTagsCloud(tagCloud(getPopularTags(35, $userName), 5, 85, 170, "alphabet"));
            } else {
                $strPopular = displayPopularTagsCloud(tagCloud(getPopularTags(50, $userName), 5, 85, 250, "alphabet"));
            }
        }
        if ($strPopular != "") {
            if ($userName != "") {
                $userStr = "?uname=" . $userName;
            }
            ?>
		<div class="rm_heading"><?php 
            echo T_("Popular tags");
            ?>
</div>
		<div class="rm_content"><?php 
            echo "<p class=\"menu_tags\">" . $strPopular . "</p>";
            ?>
</div>
Example #3
0
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

GetBoo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GetBoo; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
***************************************************************************/
// Based on Scuttle API classes
// Implements the del.icio.us API request for all a user's tags.
// del.icio.us behavior:
// - tags can't have spaces
// Force HTTP authentication first!
require_once 'httpauth.inc.php';
include "../includes/tags_functions.php";
$user = new User();
$userName = $user->getUsername();
$tags = getPopularTags("-1", $userName);
// Set up the XML file and output all the tags.
header('Content-Type: text/xml');
echo '<?xml version="1.0" standalone="yes" ?' . ">\r\n";
echo "<tags>\r\n";
foreach ($tags as $row) {
    echo "\t<tag count=\"" . $row['amount'] . '" tag="' . filter($row['title'], 'xml') . "\" />\r\n";
}
echo "</tags>";
Example #4
0
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

GetBoo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GetBoo; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
***************************************************************************/
// Javascript from Scuttle project
require_once 'tags_functions.php';
$tagsStr = displayPopularTagsCloudSelect(tagCloud(getPopularTags(50, $username), 5, 90, 225, "alphabet"));
if ($tagsStr != null) {
    ?>
		<script type="text/javascript">
		Array.prototype.contains = function (ele) {
		    for (var i = 0; i < this.length; i++) {
		        if (this[i] == ele) {
		            return true;
		        }
		    }
		    return false;
		};

		Array.prototype.remove = function (ele) {
		    var arr = new Array();
		    var count = 0;