Changeset 635
- Timestamp:
- 10/13/06 03:44:11 (2 years ago)
- Files:
-
- devel/search/personaltags.php (modified) (1 diff)
- devel/units/search/tags_display_personal.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/search/personaltags.php
r589 r635 14 14 global $page_owner; 15 15 16 $title = run("profile:display:name", $page_owner) . " :: " . gettext("Tags"); 16 $username = trim(optional_param('profile_name','')); 17 $user_id = user_info_username("ident",$username); 18 if (!$user_id) { 19 $user_id = $page_owner; 20 } 21 22 $title = run("profile:display:name", $user_id) . " :: " . gettext("Tags"); 17 23 18 24 $body = run("content:tags"); 19 $body .= run("search:tags:personal:display" );25 $body .= run("search:tags:personal:display", $user_id); 20 26 21 27 $body = templates_draw(array( devel/units/search/tags_display_personal.php
r416 r635 3 3 // Display a user's tags 4 4 5 global $page_owner; 5 global $page_owner; // logged in user 6 $parameter = (int) $parameter; // user whose tags we're looking at 6 7 7 8 $searchline = "(" . run("users:access_level_sql_where",$page_owner) . ")"; 8 9 $searchline = str_replace("access","t.access", $searchline); 9 if ($tags = get_records_sql('SELECT DISTINCTtag, count(ident) AS number10 if ($tags = get_records_sql('SELECT tag, count(ident) AS number 10 11 FROM '.$CFG->prefix.'tags t 11 WHERE '.$searchline.' AND owner = '.$pa ge_owner.'12 GROUP BY tag ORDER BY tagASC')) {12 WHERE '.$searchline.' AND owner = '.$parameter.' 13 GROUP BY tag ASC')) { 13 14 $max = 0; 14 15 foreach($tags as $tag) { … … 28 29 29 30 $tag->tag = stripslashes($tag->tag); 30 $run_result .= "<a href=\"".url."search/index.php?all=".urlencode(htmlspecialchars((($tag->tag)), ENT_COMPAT, 'utf-8'))."&owner=$pa ge_owner\" style=\"font-size: $size%\" title=\"".htmlspecialchars($tag->tag, ENT_COMPAT, 'utf-8')." (" .$tag->number. ")\">";31 $run_result .= "<a href=\"".url."search/index.php?all=".urlencode(htmlspecialchars((($tag->tag)), ENT_COMPAT, 'utf-8'))."&owner=$parameter\" style=\"font-size: $size%\" title=\"".htmlspecialchars($tag->tag, ENT_COMPAT, 'utf-8')." (" .$tag->number. ")\">"; 31 32 $run_result .= $tag->tag . "</a>"; 32 33 if ($tag_count < sizeof($tags) - 1) {
