Skip to content

Commit

Permalink
change Profiles style & fix Profiles url bug
Browse files Browse the repository at this point in the history
  • Loading branch information
skywalker512 committed Jul 9, 2018
1 parent 5cf14ac commit 879c2e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addons/plugins/Profiles/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ protected function createDefaultFields()
$model->create(array(
"fieldId" => 2,
"name" => "所在地",
"description" => "国内具体到省,国外具体到国家",
"type" => "text",
"showOnPosts" => true,
"searchable" => true
Expand Down Expand Up @@ -165,11 +166,11 @@ public function action_memberController_about($sender, $member = "")
case "checkboxes":
$items = explode("\n", $field["data"]);
$items = array_map("sanitizeHTML", $items);
$field["data"] = implode("<br>", $items);
$field["data"] = implode("&nbsp;", $items);
break;

case "member":
$field["data"] = "<a href='".URL("member/name/".urlencode($field["data"]))."'>".sanitizeHTML($field["data"])."</a>";
$field["data"] = "<a href='".$field["data"]."'target='_blank'>".sanitizeHTML($field["data"])."</a>";
break;

default:
Expand Down

0 comments on commit 879c2e7

Please sign in to comment.