fix for link and level for admincreated users
fix for link and level for admincreated users

--- a/includes/corefunctions.php
+++ b/includes/corefunctions.php
@@ -227,7 +227,7 @@
 // Function to format a URL into a clickable link
 function format_link($text, $title = "", $target = 0) {
 	if(empty($title)) $title = $text;
-	if(strpos($text, "http://") === false) $text = "http://".$text;
+	if(strpos($text, "http://") === false && strpos($text, "https://")) $text = "https://".$text;
 	$text = "<a href='$text'".($target ? " target='_blank'" : "").">$title</a>";
 	return $text;
 }

--- a/user/profile.php
+++ b/user/profile.php
@@ -37,7 +37,7 @@
 }
  
 $tpl->assign("userpenname", $userinfo['penname']." ".$nameinfo);
-$tpl->assign("membersince", date("$dateformat", $userinfo['date']));
+
 if($userinfo['realname'])
 	$tpl->assign("realname", $userinfo['realname']);
 if($userinfo['bio']) {
@@ -46,7 +46,12 @@
 }
 if($userinfo['image'])
 	$tpl->assign("image", "<img src=\"".$userinfo['image']."\">");
-$tpl->assign("userlevel", isset($userinfo['level']) && $userinfo['level'] > 0 && $userinfo['level'] < 4 ? _ADMINISTRATOR.(isADMIN ? " - ".$userinfo['level'] : "") : _MEMBER);
+
+/* don't display member if it was added by admin - release them rather */
+if(isset($userinfo['admicreated']) && $userinfo['admicreated'] == 0) {
+	$tpl->assign("membersince", date("$dateformat", $userinfo['date']));
+	$tpl->assign("userlevel", isset($userinfo['level']) && $userinfo['level'] > 0 && $userinfo['level'] < 4 ? _ADMINISTRATOR.(isADMIN ? " - ".$userinfo['level'] : "") : _MEMBER);
+}
 /* Dynamic authorinfo fields */
 $result2 = dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_authorinfo WHERE uid = '$uid'");
 $dynamicfields = "";
@@ -89,3 +94,4 @@
 }
 $tpl->gotoBlock("_ROOT");
 ?>
+