1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-12 02:26:21 +02:00

Path correction and styling fixes

This commit is contained in:
Cameron
2013-04-27 13:16:08 -07:00
parent 80ec0b9b40
commit f6d863e74e
3 changed files with 7 additions and 6 deletions

View File

@ -20,7 +20,7 @@ class admin_shortcodes
if (!ADMIN) { return ''; } if (!ADMIN) { return ''; }
return " return "
<div style='text-align: center'> <div style='text-align: center'>
<input class='button' type='button' onclick=\"javascript: window.open('".e_ADMIN_ABS."credits.php', 'myWindow', 'status = 1, height = 400, width = 300, resizable = 0')\" value='".LAN_CREDITS."' /> <input class='btn button' type='button' onclick=\"javascript: window.open('".e_ADMIN_ABS."credits.php', 'myWindow', 'status = 1, height = 400, width = 300, resizable = 0')\" value='".LAN_CREDITS."' />
</div>"; </div>";
} }

View File

@ -397,7 +397,7 @@ class e_form
$previnput = $idinput."-preview"; $previnput = $idinput."-preview";
$optioni = $idinput."-options"; $optioni = $idinput."-options";
$img = (strpos($curVal,"://")!==false) ? $curVal : $tp->thumbUrl(e_MEDIA."avatars/default/".$curVal,"aw=".vartrue($width)."&ah=".vartrue($height)); $img = (strpos($curVal,"://")!==false) ? $curVal : $tp->thumbUrl(e_AVATAR_DEFAULT.$curVal,"aw=".vartrue($width)."&ah=".vartrue($height),true);
if(!$curVal) if(!$curVal)
{ {
@ -416,7 +416,7 @@ class e_form
$text .= "<input class='btn button e-expandit' type ='button' style='cursor:pointer' size='30' value=\"Choose Avatar\" />"; //TODO Common LAN. $text .= "<input class='btn button e-expandit' type ='button' style='cursor:pointer' size='30' value=\"Choose Avatar\" />"; //TODO Common LAN.
} }
$avFiles = e107::getFile()->get_files(e_MEDIA."avatars/default/",".jpg|.png|.gif|.jpeg|.JPG|.GIF|.PNG"); $avFiles = e107::getFile()->get_files(e_AVATAR_DEFAULT,".jpg|.png|.gif|.jpeg|.JPG|.GIF|.PNG");
$text .= "\n<div id='{$optioni}' style='display:none' >\n"; //TODO unique id. $text .= "\n<div id='{$optioni}' style='display:none' >\n"; //TODO unique id.
@ -433,7 +433,7 @@ class e_form
foreach($avFiles as $fi) foreach($avFiles as $fi)
{ {
$img_path = $tp->thumbUrl(e_MEDIA_ABS."avatars/default/".$fi['fname'],$attr); $img_path = $tp->thumbUrl(e_AVATAR_DEFAULT.$fi['fname'],$attr,true);
$text .= "\n<a class='e-expandit' title='Choose this avatar' href='#{$optioni}'><img src='".$img_path."' alt='' onclick=\"insertext('".$fi['fname']."', '".$idinput."');document.getElementById('".$previnput."').src = this.src;\" /></a> "; $text .= "\n<a class='e-expandit' title='Choose this avatar' href='#{$optioni}'><img src='".$img_path."' alt='' onclick=\"insertext('".$fi['fname']."', '".$idinput."');document.getElementById('".$previnput."').src = this.src;\" /></a> ";
//TODO javascript CSS selector //TODO javascript CSS selector
} }

View File

@ -319,7 +319,7 @@ if(!$text = $e107cache->retrieve("nq_chatbox"))
$cbpost = $sql->db_getList(); $cbpost = $sql->db_getList();
$text .= "<div id='chatbox-posts-block'>\n"; $text .= "<div id='chatbox-posts-block'>\n";
$text .= $tp->parseTemplate($CHATBOX_TEMPLATE['start'], true, $sc); $text .= $tp->parseTemplate($CHATBOX_TEMPLATE['start'], false, $sc);
foreach($cbpost as $cb) foreach($cbpost as $cb)
{ {
@ -327,7 +327,7 @@ if(!$text = $e107cache->retrieve("nq_chatbox"))
$text .= $tp->parseTemplate($CHATBOX_TEMPLATE['item'], false, $sc); $text .= $tp->parseTemplate($CHATBOX_TEMPLATE['item'], false, $sc);
} }
$text .= $tp->parseTemplate($CHATBOX_TEMPLATE['end'], true, $sc); $text .= $tp->parseTemplate($CHATBOX_TEMPLATE['end'], false, $sc);
$text .= "</div>"; $text .= "</div>";
} }
@ -348,6 +348,7 @@ if(!$text = $e107cache->retrieve("nq_chatbox"))
$caption = (file_exists(THEME."images/chatbox_menu.png") ? "<img src='".THEME_ABS."images/chatbox_menu.png' alt='' /> ".CHATBOX_L2 : CHATBOX_L2); $caption = (file_exists(THEME."images/chatbox_menu.png") ? "<img src='".THEME_ABS."images/chatbox_menu.png' alt='' /> ".CHATBOX_L2 : CHATBOX_L2);
if($pref['cb_layer'] == 1) if($pref['cb_layer'] == 1)