Search the Community
Showing results for tags 'fix'.
-
Default Avatar Fix (If Not Showing) Icyboards OR Self Hosted For an unknown reason, sometimes when we try to place user avatars in particular areas, the default avatar (if they do not have one) does not show! I'll explain here a little HTML (image scroll tag with javascript) fix that will solve all your problems. Usually this problem will occur while putting the image in the header area or somewhere else. If you are having this problem on posts or profiles, this solution may work as well you'll just need to play around with the variable used for the users avatar. Tutorial Created By: Isoldehn Tutorial Permissions: You may use this tutorial on other sites so long as you credit me for the creation of the tutorial. If you reword this tutorial and make it your own, no need to credit me as it's no longer my wording. Do not claim credit for the creating the code and do not credit me for creating the code, this code is floating about the internet in many resource areas and is as well a very BASIC code. Tutorial Needs: Copy & Paste Abilities Self Hosted MyBB - Use this code, replace INSERTDEFAULTAVATARIMGURLHERE with your forums default avatar link: <img src="{$mybb->user['avatar']}" onerror="this.onerror=null;this.src='INSERTDEFAULTAVATARIMGURLHERE';"></img> Icyboards Hosted MyBB - Use this code, replace INSERTDEFAULTAVATARIMGURLHERE with your forums default avatar link: <img src="{$mybb->user['avatarcdn']}" onerror="this.onerror=null;this.src='INSERTDEFAULTAVATARIMGURLHERE';"></img> ---- This guide WILL work for using images any where else on a forum. So if you do not use MyBB/Icyboards, this might work on whatever forum you are using if you declare variable correctly. My example is just for MyBB in particular.
-
Inline Moderation/Multi-Quote Issues (After 02/10/2017) After an update on Icyboards (I believe around 02/10/2017), it seems that a few of Icyboard hosted forums are having some issues with inline moderation (as well as a few other things such as multiquote). Spork kindly addressed that updated templates can only be updated on the default templates and any templates you have created for your own skin/theme will likely not be auto updated (if I can find the thread I will quote him here, but I can't seem to find it right now). That means that your personally created templates will likely have not updated and could be causing these issues. First things first: - In your headerinclude template find the default javascript (script) that MyBB adds in below the {$stylesheets}. - If you are confused it will look something like this: <script type="text/javascript"> <!-- JAVASCRIPT STUFF WILL BE IN HERE // --> </script> Now: - Replace that code with this code: <script type="text/javascript"> <!-- lang.unknown_error = "{$lang->unknown_error}"; lang.select2_match = "{$lang->select2_match}"; lang.select2_matches = "{$lang->select2_matches}"; lang.select2_nomatches = "{$lang->select2_nomatches}"; lang.select2_inputtooshort_single = "{$lang->select2_inputtooshort_single}"; lang.select2_inputtooshort_plural = "{$lang->select2_inputtooshort_plural}"; lang.select2_inputtoolong_single = "{$lang->select2_inputtoolong_single}"; lang.select2_inputtoolong_plural = "{$lang->select2_inputtoolong_plural}"; lang.select2_selectiontoobig_single = "{$lang->select2_selectiontoobig_single}"; lang.select2_selectiontoobig_plural = "{$lang->select2_selectiontoobig_plural}"; lang.select2_loadmore = "{$lang->select2_loadmore}"; lang.select2_searching = "{$lang->select2_searching}"; var cookieDomain = "{$mybb->settings['cookiedomain']}"; var cookiePath = "{$mybb->settings['cookiepath']}"; var cookiePrefix = "{$mybb->settings['cookieprefix']}"; var cookieSecureFlag = "{$mybb->settings['cookiesecureflag']}"; var deleteevent_confirm = "{$lang->deleteevent_confirm}"; var removeattach_confirm = "{$lang->removeattach_confirm}"; var loading_text = '{$lang->ajax_loading}'; var saving_changes = '{$lang->saving_changes}'; var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}"; var my_post_key = "{$mybb->post_code}"; var rootpath = "{$mybb->settings['bburl']}"; var imagepath = "{$theme['imgdir']}"; var yes_confirm = "{$lang->yes}"; var no_confirm = "{$lang->no}"; var MyBBEditor = null; var spinner_image = "{$theme['imgdir']}/spinner.gif"; var spinner = "<img src='" + spinner_image +"' alt='' />"; var modal_zindex = 9999; // --> </script> If that fixes your problems, fantastic! You were likely missing: var cookieSecureFlag = "{$mybb->settings['cookiesecureflag']}"; Unfortunately if that does not fix your problem, please make a support thread in the Icyboards forums, something far more complicated may be causing your issues. -- As a kind reminder, if these issues are stemming from your own personal javascript/jquery, it is likely a conflict (your javascript/jquery is conflicting with MyBB's). Sometimes it is fixable (such as loading jquery codes before loading the rest), sometimes it requires completely new code. This guide will not help you fix those issues.