mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Forum-update fixes
This commit is contained in:
@@ -5,8 +5,8 @@ function user_avatar_shortcode($parm='')
|
||||
global $loop_uid;
|
||||
|
||||
|
||||
$height = e107::getPref("im_height");
|
||||
$width = e107::getPref("im_width");
|
||||
$height = e107::getPref("im_height",100);
|
||||
$width = e107::getPref("im_width",100);
|
||||
$tp = e107::getParser();
|
||||
|
||||
if(intval($loop_uid) > 0 && trim($parm) == "")
|
||||
@@ -65,7 +65,7 @@ function user_avatar_shortcode($parm='')
|
||||
$img = $tp->thumbUrl(e_IMAGE."generic/blank_avatar.jpg","w=".$width."&h=".$height,true);
|
||||
}
|
||||
|
||||
$text = "<img class='user-avatar e-tip' src='".$img."' alt='' style='width:".$width."px; height:".$height."px' />";
|
||||
$text = "<img class='img-rounded user-avatar e-tip' src='".$img."' alt='' style='width:".$width."px; height:".$height."px' />";
|
||||
// return $img;
|
||||
return $text;
|
||||
|
||||
|
@@ -61,7 +61,7 @@ class forum_setup
|
||||
{
|
||||
//Redirect upgrade to customized upgrade routine
|
||||
|
||||
e107::getRedirect()->redirect(e_PLUGIN.'forum/forum_update.php');
|
||||
e107::getRedirect()->redirect(e_PLUGIN_ABS.'forum/forum_update.php');
|
||||
|
||||
//header('Location: '.e_PLUGIN.'forum/forum_update.php');
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -283,7 +283,7 @@ $FORUM_CRUMB['forum']['value'] = "{FORUM_TITLE}";
|
||||
// <small>{BREADCRUMB}</small> //FIXME Breadcrumb looks crummy
|
||||
|
||||
$FORUM_VIEWFORUM_TEMPLATE['start'] = "";
|
||||
$FORUM_VIEWFORUM_TEMPLATE['header'] = "<div class='row-fluid'><div class='span6 pull-left'>{BACKLINK}</div> </div>
|
||||
$FORUM_VIEWFORUM_TEMPLATE['header'] = "<div class='row-fluid'><div>{BACKLINK}</div> </div>
|
||||
<div class='row-fluid'>
|
||||
<div class='span9 pull-left'><h3>{FORUMTITLE}</h3></div>
|
||||
<div class='span3 pull-right right' style='padding-top:10px'>{NEWTHREADBUTTONX}</div></div>
|
||||
|
@@ -25,6 +25,11 @@ $sc_style['ATTACHMENTS']['post'] = "</div>";
|
||||
$sc_style['ANON_IP']['pre'] = "";
|
||||
$sc_style['ANON_IP']['post'] = "";
|
||||
|
||||
|
||||
$sc_style['CUSTOMTITLE']['pre'] = "<small>";
|
||||
$sc_style['CUSTOMTITLE']['post'] = "</small>";
|
||||
|
||||
|
||||
$sc_style['USER_EXTENDED']['location.text_value']['mid'] = ": ";
|
||||
$sc_style['USER_EXTENDED']['location.text_value']['post'] = "<br />";
|
||||
|
||||
@@ -308,7 +313,7 @@ $FORUM_CRUMB['forum']['value'] = "<a class='forumlink' href='{FORUM_HREF}'>{FORU
|
||||
$FORUM_VIEWTOPIC_TEMPLATE['start'] = "
|
||||
|
||||
<div class='row-fluid'>
|
||||
<div class='span6 pull-left'>{BACKLINK}</div>
|
||||
<div>{BACKLINK}</div>
|
||||
</div>
|
||||
|
||||
<div class='row-fluid'>
|
||||
@@ -336,10 +341,9 @@ $FORUM_VIEWTOPIC_TEMPLATE['thread'] = "
|
||||
|
||||
<div class='row-fluid' >
|
||||
<div class='span2 center'>
|
||||
{CUSTOMTITLE}
|
||||
{AVATAR}<br />
|
||||
{USERCOMBO}
|
||||
|
||||
{USERCOMBO}<br />
|
||||
{CUSTOMTITLE}
|
||||
</div>
|
||||
<div class='span9 '>
|
||||
{POLL}
|
||||
|
@@ -121,6 +121,25 @@ $(document).ready(function()
|
||||
);
|
||||
|
||||
|
||||
$('button[data-loading-text],a[data-loading-text]').on('click', function()
|
||||
{
|
||||
var caption = $(this).attr('data-loading-text');
|
||||
$(this).attr('disabled', 'disabled').html(caption);
|
||||
return true;
|
||||
}
|
||||
);
|
||||
|
||||
$('input[data-loading-text]').on('click', function()
|
||||
{
|
||||
var caption = $(this).attr('data-loading-text');
|
||||
$(this).val(caption);
|
||||
$(this).removeClass('btn-success');
|
||||
//$(this).attr('disabled', 'disabled').val(caption);
|
||||
return true;
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
/* Bootstrap Modal window within an iFrame */
|
||||
$('.e-modal').on('click', function(e)
|
||||
{
|
||||
@@ -134,7 +153,7 @@ $(document).ready(function()
|
||||
$('.modal').modal('show');
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user