Quantcast
Channel: MyBB Community Forums - Tutorials
Viewing all 685 articles
Browse latest View live

[Tutorial] Add simple css and fontawesome custom login

$
0
0
In the past a few people have asked how to do the login like the one in the devel theme hence the reason for this tutorial.



In headerinclude add:

Code:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">



In global.css find:

Code:
#panel .upper a.logout {
    font-weight: bold;
    background: url(images/headerlinks_sprite.png) right -80px no-repeat;
    padding-right: 20px;
    margin-left: 10px;
}

#panel .upper a.login,
#panel .upper a.lost_password {
    background: url(images/headerlinks_sprite.png) 0 -100px no-repeat;
    padding-left: 20px;
    margin-left: 10px;
    font-weight: bold;
}

#panel .upper a.register {
    background: url(images/headerlinks_sprite.png) right -80px no-repeat;
    padding-right: 20px;
    margin-left: 10px;
    font-weight: bold;
}

Replace with:

Code:
#panel .upper a.logout {
    font-weight: bold;
    padding-right: 20px;
    margin-left: 10px;
}
#panel .upper a.login, #panel .upper a.lost_password {
    margin-left: 10px;
    font-weight: bold;
}
#panel .upper a.register {
    margin-left: 10px;
    font-weight: bold;
}


In global.css find and remove:

Code:
#panel .lower ul.panel_links a.usercp {
    background-position: 0 -120px;
}

#panel .lower ul.panel_links a.modcp {
    background-position: 0 -140px;
}

#panel .lower ul.panel_links a.admincp {
    background-position: 0 -160px;
}


Add to global.css:

Code:
i.panel-login {
   padding-right: 5px;
    color: #C49A38;
    font-size: 14px;
}
i.panel-register {
   padding-right: 5px;
    color: #98C78B;
    font-size: 14px;
}
i.panel-logout {
   padding-right: 5px;
    color: #98C78B;
    font-size: 14px;
}
i.panel-usercp {
   padding-right: 2px;
    padding-left: 10px;
    color: #2C2C2C;
    font-size: 14px;
}
i.panel-modcp {
   padding-right: 2px;
    padding-left: 10px;
    color: #2C2C2C;
    font-size: 14px;
}
i.panel-admincp {
   padding-right: 2px;
    padding-left: 10px;
    color: #2C2C2C;
    font-size: 14px;
}

/** Login **/

input#quick_login_password {
    margin-left: -6px;
}
td.quick_password a.lost_password {
    margin-left: -20px;
}
input#quick_login_username, input#quick_login_password {
    vertical-align: middle;
    height: 30px;
    width: 200px;
    border-radius: 0px 3px 3px 0px;
    -moz-transition: all .5s;
    -webkit-transition: all .5s;
    transition: all .5s;
}
input#quick_login_username:focus, input#quick_login_password:focus {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
i.quick_username, i.quick_password, i.reg_username, i.reg_password, i.reg_email {
    background-color: #CCCCCC;
    color: #666666;
    border: 1px solid #cccccc;
    white-space: nowrap;
    vertical-align: middle;
    -moz-border-radius-topleft: 2px;
    -moz-border-radius-bottomleft: 2px;
    -webkit-border-top-left-radius: 2px;
    -webkit-border-bottom-left-radius: 2px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}
i.quick_username, i.quick_password {
    font-size: 30px;
    padding: 3px 5px;
}
i.quick_password {
    margin-left: -6px;
}
.remember_me label {
    color: #000;
}
input.login {
    background: #00C2EF;
    width: 60px;
    height: 60px;
    color: #000;
    cursor: pointer;
    border: 5px solid #005C91;
    font-family: Tahoma, Verdana, Arial, Sans-Serif;
    font-size: 13px;
    font-weight: bold;
    outline: 0;
    text-align: center;
    border-radius: 60px;
    margin-right: 5px;
    transition: all 0.8s ease;
}
input.login:hover {
    background: #005C91;
    border: 5px solid #00C2EF;
    color: #FFF;
}
i.login, i.register {
    margin-right: 5px;
}
i.logout {
    margin-left: 5px;
}


Replace header_welcomeblock_guest with:

Code:
                    <!-- Continuation of div(class="upper") as opened in the header template -->
                        <span class="welcome">{$lang->welcome_guest} <a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="$('#quick_login').modal({ fadeDuration: 250, keepelement: true, zIndex: (typeof modal_zindex !== 'undefined' ? modal_zindex : 9999) }); return false;" class="login"><i class="fa fa-sign-in panel-login"></i>{$lang->welcome_login}</a> <a href="{$mybb->settings['bburl']}/member.php?action=register" class="register"><i class="fa fa-user-plus panel-register"></i>{$lang->welcome_register}</a></span>
                    </div>
                </div>
                <div class="modal" id="quick_login" style="display: none;">
                    <form method="post" action="{$mybb->settings['bburl']}/member.php">
                        <input name="action" type="hidden" value="do_login" />
                        <input name="url" type="hidden" value="" />
                        <input name="quick_login" type="hidden" value="1" />
                        <input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
                        <table width="100%" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" border="0" class="quick_login">
                          {$loginform}
                        </table>
                    </form>
                </div>
                <script type="text/javascript">
                    $("#quick_login input[name='url']").val($(location).attr('href'));
                </script>


Replace header_welcomeblock_guest_login_modal with:

Code:
                        <tr>
                                <td class="login_form quick_username">
                                 <i class="fa fa-user quick_username"></i><input value="" name="quick_username" type="text" placeholder="{$login_username}" id="quick_login_username" class="textbox">
                               </td>
                                 <td class="login_form submit"  rowspan="2" vertical-align="middle">
                                    <input name="submit" type="submit" class="login" value="{$lang->login}" />
                                </td>                          
                            <tr>
                               <td class="login_form quick_password">
                                 <i class="fa fa-key quick_password"></i><input value="" name="quick_password" type="password" placeholder="{$lang->password}" id="quick_login_password" class="textbox">
                                 <a href="{$mybb->settings['bburl']}/member.php?action=lostpw" class="lost_password"><i class="fa fa-lightbulb-o fa-lg" style="color: #0085D3;" title="{$lang->lost_password}"></i></a>
                                </td>
                            </tr>                            
                            <tr>
                                <td class="login_form remember_me">
                                    <input name="quick_remember" id="quick_login_remember" type="checkbox" value="yes" class="checkbox" checked="checked" />
                                    <label for="quick_login_remember">{$lang->remember_me}</label>
                                </td>
                            </tr>


Replace header_welcomeblock_member with:

Code:
<!-- Continuation of div(class="upper") as opened in the header template -->
    <span class="welcome">{$lang->welcome_back} <a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}" class="logout"><i class="fa fa-sign-out panel-logout"></i> {$lang->welcome_logout}</a></span>
    </div>
</div>
<div class="lower">
    <div class="wrapper">
        <ul class="menu panel_links">
            <li><a href="{$mybb->settings['bburl']}/usercp.php" class="usercp"><i class="fa fa-user panel-usercp"></i> {$lang->welcome_usercp}</a></li>
            {$modcplink}
            {$admincplink}
        </ul>
        <ul class="menu user_links">
            <li><a href="javascript:void(0)" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup&modal=1', null, true); return false;">{$lang->welcome_open_buddy_list}</a></li>
            {$searchlink}
            {$pmslink}
        </ul>
    </div>
    <br class="clear" />
</div>

Replace header_welcomeblock_member_admin with:

Code:
<li><a href="{$mybb->settings['bburl']}/{$admin_dir}/index.php" class="admincp"><i class="fa fa-cog panel-admincp"></i> {$lang->welcome_admin}</a></li

Replace header_welcomeblock_member_moderator with:

Code:
<li><a href="{$mybb->settings['bburl']}/modcp.php" class="modcp"><i class="fa fa-file-text panel-modcp"></i> {$lang->welcome_modcp}</a></li>


.png   Screenshot_20180930-210137.png (Size: 73.85 KB / Downloads: 4)

[Tutorial] - Font-Awesome 5 Forum Icons

$
0
0
* Original "Eric J" Tutorial for earlier versions of FA: https://community.mybb.com/thread-156711.html

^^ Liverwire didn't know what happened to that post <snip> so re-made the older Font Awesome version tutorial for all those newbies. The tutorial is found at: https://community.mybb.com/thread-212919.html

This here is a continuation Tutorial For 1.8.19 lock to close changes and updating the tutorial to use Font Awesome 5:

Font-Awesome 5 Forum Icons on MyBB 1.8.19 Software


Today, we will be giving you a tutorial on how to replace forum icons with Font-Awesome 5 icons. The software of board being used in this tutorial is MyBB 1.8.19. Most of you have seen these type of additions on bulletin board's across the globe, and very much sure some of you would like to have one of these pages of your own. All others are also welcome to help other individuals on this thread who may be having issues, problems, and, errors after or before reading this tutorial. Many posts will most likely will be created regarding MyBB for owners and theme developers.

1. Loading Font Awesome 5

In your Templates section of the MyBB ACP, find the Ungrouped Templates -> headerinclude template. Add the following after
Code:
{$stylesheets}:


Code:
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css">


2. Adding Your Icon

Still in Templates, find Forum Bit Templates -> forumbit_depth2_forum (Do the same for forumbit_depth2_cat) and replace:

Code:
<span class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"></span>

With:

Code:
<div class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"><i class="fas fa-comments"></i></div>

Now find the following in your global.css:

Code:
.forum_status {
height: 30px;
width: 30px;
background: url(images/forum_icon_sprite.png) no-repeat 0 0;
}

.forum_on {
background-position: 0 0;
}

.forum_off {
background-position: 0 -30px;
}

.forum_offclose {
background-position: 0 -60px;
}

.forum_offlink {
background-position: 0 -90px;
}

Replace it with:

Code:
/** Forums **/

.forum_status {
height: 50px;
width: 50px;
font-size: 30px;
text-align: center;
}

.forum_status i {
display: inline-block;
line-height: 50px;
}

.forum_on {
color: #0094d1;
}

.forum_off, .forum_offclose, .forum_offlink {
color: #333;
}

.forum_off i {
opacity: .4;
}

.forum_offclose i:before {
content: "\f023";
}

.forum_offlink i:before {
content: "\f0c1";
}

3. Fix Your Legend

If you wish to keep your forum icon legend, find your Index Page Templates -> index template and replace the contents with this:

Code:
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
{$forums}
{$boardstats}

<dl class="forum_legend smalltext">
<dt><div class="forum_status forum_on"><i class="fas fa-comments"></i></div></dt>
<dd>{$lang->new_posts}</dd>

<dt><div class="forum_status forum_off"><i class="fas fa-comments"></i></div></dt>
<dd>{$lang->no_new_posts}</dd>

<dt><div class="forum_status forum_offclose"><i class="fas fa-comments"></i></div></dt>
<dd>{$lang->forum_closed}</dd>

<dt><div class="forum_status forum_offlink"><i class="fas fa-comments"></i></div></dt>
<dd>{$lang->forum_redirect}</dd>
</dl>
<br class="clear" />
{$footer}
</body>
</html>


In global.css find:

Code:
.forum_legend,
.forum_legend dt,
.forum_legend dd {
    margin: 0;
    padding: 0;
}

.forum_legend dd {
    float: left;
    margin-right: 10px;
    margin-top: 7px;
}

.forum_legend dt {
    margin-right: 10px;
    float: left;
}

Replace with:

Code:
.forum_legend, .forum_legend dt, .forum_legend dd {
    margin: 0;
    padding: 0;
}
.forum_legend dd {
    float: left;
    margin-right: 10px;
    margin-top: 17px;
}
.forum_legend dt {
    float: left;
    margin-right: 5px;
}


4. Adding Font-Awesome Subforum Icons

Find this in Forum Bit Templates -> forumbit_depth3_statusicon:

Code:
<div title="{$lightbulb['altonoff']}" class="subforumicon subforum_{$lightbulb['folder']} ajax_mark_read" id="mark_read_{$forum['fid']}"></div>

Replace it with:

Code:
<div title="{$lightbulb['altonoff']}" class="subforumicon subforum_{$lightbulb['folder']} ajax_mark_read" id="mark_read_{$forum['fid']}"><i class="fas fa-comment"></i></div>

Then in global.css find this:

Code:
.subforumicon {
height: 10px;
width: 10px;
display: inline-block;
margin: 0 5px;
background: url(images/mini_status_sprite.png) no-repeat 0 0;
}

.subforum_minion {
background-position: 0 0;
}

.subforum_minioff {
background-position: 0 -10px;
}

.subforum_minioffclose {
background-position: 0 -20px;
}

.subforum_miniofflink {
background-position: 0 -30px;
}

Replace it with:

Code:
/** Subforums **/

.subforumicon {
height: 10px;
width: 10px;
display: inline-block;
margin: 0 5px;
}

.subforum_minion {
color: #333;
}

.subforum_minioff, .subforum_minioffclose, .subforum_miniofflink {
color: #333;
}

.subforum_minioff {
opacity: .4;
}

.subforum_minioffclose i:before {
content: "\f023";
}

.subforum_miniofflink i:before {
content: "\f0c1";
}


5. Adding Font-Awesome Forum Icons

Still in Templates, find Forum Bit Templates -> forumbit_depth2_forum (Do the same for forumbit_depth2_cat) and replace:

Code:
<div class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"><i class="fas fa-comments"></i></div>

With:

Code:
<div class="forum_status forum_{$lightbulb['folder']} ajax_mark_read ficons_{$forum['fid']}" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"><i class="fas fa-comments"></i></div>

Find the following in global.css:

Code:
/** Forums **/

.forum_status {
height: 50px;
width: 50px;
font-size: 30px;
text-align: center;
}

.forum_status i {
display: inline-block;
line-height: 50px;
}

.forum_on {
color: #0094d1;
}

.forum_off, .forum_offclose, .forum_offlink {
color: #333;
}

.forum_off i {
opacity: .4;
}

.forum_offclose i:before {
content: "\f023";
}

.forum_offlink i:before {
content: "\f0c1";
}

After it, add this:


Code:
/** Ficons **/

.ficons_2 i:before {
content: "\f000";
}

.ficons_3 i:before {
content: "\f1ba";
}

.ficons_4 i:before {
content: "\f2e7";
}

.ficons_5 i:before {
content: "\f3fd";
}

.ficons_6 i:before {
content: "\f03e";
}

.ficons_7 i:before {
content: "\f000";
}

.ficons_8 i:before {
content: "\f1ba";
}

.ficons_9 i:before {
content: "\f2e7";
}

.ficons_10 i:before {
content: "\f3fd";
}

.ficons_11 i:before {
content: "\f03e";
}

.ficons_12 i:before {
content: "\f000";
}

.ficons_13 i:before {
content: "\f1ba";
}

.ficons_14 i:before {
content: "\f2e7";
}

.ficons_15 i:before {
content: "\f3fd";
}

.ficons_16 i:before {
content: "\f03e";
}

Quote:ficons_1,2,3 etc are your forums ID, if you don't know your forum ID just hover to one of the forums and underneath left hand corner of your screen you'll see something like forumdisplay.php?fid=9 or go inside your forum and on the search bar you will see fid ID.



All past and current tutorial credits go to

Eric J., Livewire, Vintagedaddyo

Font-Awesome 5 ModCP Forum Icons on MyBB 1.8.19 Software


Replace modcp.css with:


Code:
.modcp_nav_item:before{
     font-size:16px;
     font-family:"Font Awesome 5 Free";
      font-weight: 900;
     color: #2C2C2C;
     width:28px;
     margin-right:3px;
     text-align:center;
     display:inline-block;
}

.modcp_nav_home:before{
     content:"\f015";
}

.modcp_nav_announcements:before {
   content:"\f0f3"
}

.modcp_nav_reports:before {
   content: "\f071";
}

.modcp_nav_modqueue:before {
   content:"\f02d"
}

.modcp_nav_modlogs:before {
   content: "\f109";
}

.modcp_nav_editprofile:before {
   content: "\f007";
}

.modcp_nav_banning:before {
   content: "\f023";
}

.modcp_nav_warninglogs:before {
   content: "\f06e";
}

.modcp_nav_ipsearch:before {
   content: "\f002";
}

.modqueue_message {
    overflow: auto;
    max-height: 250px;
}

.modqueue_controls {
    width: 270px;
    float: right;
    text-align: center;
    border: 1px solid #ccc;
    background: #fff;
    padding: 6px;
    font-weight: bold;
}

.modqueue_controls label {
    margin-right: 8px;
}

.label_radio_ignore,
.label_radio_delete,
.label_radio_approve {
    font-weight: bold;
}

.modqueue_meta {
    color: #444;
    font-size: 95%;
    margin-bottom: 8px;
}

.modqueue_mass {
    list-style: none;
    margin: 0;
    width: 150px;
    padding: 0;
}

.modqueue_mass li {
    margin-bottom: 4px;
    padding: 0;
}

.modqueue_mass li a {
    display: block;
    padding: 4px;
    border: 1px solid transparent;
}

.modqueue_mass li a:hover {
    background: #efefef;
    border: 1px solid #ccc;
    text-decoration: none;
}



Font-Awesome 5 UserCP Forum Icons on MyBB 1.8.19 Software


Replace usercp.css with:

Code:
.usercp_nav_item {
     display:block;
}

.usercp_nav_item a {
    color:#0072BC;
}

.usercp_nav_item:before  {
     font-size:16px;
     font-family: "Font Awesome 5 Free";  
     font-weight: 900;
     color: #2C2C2C;
     width:28px;
     margin-right:3px;
     text-align:center;
     display:inline-block;
}

.usercp_nav_composepm:before {
     content:"\f3e5";  
}

.usercp_nav_pmfolder:before {
     content:"\f07c";
}

.usercp_nav_sub_pmfolder:before  {
     content:"\f07b";
}

.usercp_nav_trash_pmfolder:before {
     content:"\f2ed";
}

.usercp_nav_pmtracking:before {
     content:"\f024";
}

.usercp_nav_pmfolders:before {
     content:"\f07b";
}

.usercp_nav_profile:before {
     content:"\f007";
}

.usercp_nav_email:before {
     content:"\f0e0";
}

.usercp_nav_password:before {
     content:"\f084";
}

.usercp_nav_username:before {
     content:"\f111";
}

.usercp_nav_editsig:before {
     content:"\f303";
}

.usercp_nav_avatar:before {
     content:"\f03e";
}

.usercp_nav_options:before {
     content:"\f085";
}

.usercp_nav_usergroups:before {
     content:"\f0c0";
}

.usercp_nav_editlists:before {
     content:"\f004";
}

.usercp_nav_attachments:before  {
     content:"\f0c6";
}

.usercp_nav_drafts:before {
     content:"\f303";
}

.usercp_nav_subscriptions:before {
     content:"\f02e";
}

.usercp_nav_fsubscriptions:before {
     content:"\f03a";
}

.usercp_nav_notepad:before {
     content:"\f02d";
}

.usercp_nav_viewprofile:before {
     content:"\f007";
}

.usercp_nav_home:before {
     content:"\f015";
}

.usercp_nav_status:before {
     content:"\f118";
}

.usercp_nav_myalerts:before {
     content:"\f0f3";
}

.usercp_nav_myalerts_delete_all:before {
     content:"\f058";
}

.usercp_nav_myalerts_delete_read:before {
     content:"\f05c";
}

.usercp_nav_award:before {
     content:"\f091";
}

#usercpalerts_e td[class^="trow"],#usercppms_e td[class^="trow"],#usercpprofile_e td[class^="trow"],#usercpmisc_e td[class^="trow"] {
     border:none;
     padding:0px;
}

.pagination {
     padding:3px 0px;
}

.usercp_notepad {
     width:99%;
}

.usercp_container {
     margin:5px;
     padding:8px;
}

td[class^=trow] {
     border:none;
}

.pmspace {
    float: right;
    margin: -3px 5px;
}

.pmspace_container {
    background: #fff;
    border: 1px solid #ccc;
    width: 100px;
    display: inline-block;
}

.pmspace_used {
    display: inline-block;
    color: #fff;
    margin: -1px;
}

.pmspace_used.low {
    border: 1px solid #0c5a01;
    background: #167203;
}

.pmspace_used.medium {
    background: #ff862b;
    border: 1px solid #d7611e;
}

.pmspace_used.high {
    background: #e73c3c;
    border: 1px solid #c00;
}

.pmspace_unused {
    display: inline-block;
}

.pmspace_text {
    padding: 1px 5px;
    display: inline-block;
}

.new_pm {
    font-weight: bold;
}


.png   Screenshot_20181001-211315.png (Size: 42.88 KB / Downloads: 2)

.png   Screenshot_20181001-211326.png (Size: 56.54 KB / Downloads: 2)

.png   Screenshot_20181001-230204.png (Size: 82.95 KB / Downloads: 3)

.png   Screenshot_20181001-230247.png (Size: 199.54 KB / Downloads: 3)

TimeLine & Card View reputation page.

$
0
0
What you will end up with.

[Image: iandrew.org-i_Andrew.org-_Reputation_Reportfortest.png]

Open Templates > Your theme > Reputation Templates > reputation
Copy & paste this.

Code:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->reputation_report}</title>
{$headerinclude}
<script type="text/javascript">
<!--
var delete_reputation_confirm = "{$lang->delete_reputation_confirm}";
// -->
</script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1804"></script>
</head>
<body>
{$header}
{$add_reputation}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder tfixed clear">
<tr>
<td class="thead"><strong>{$lang->reputation_report}</strong></td>
</tr>
<tr>
<td class="tcat"><strong>{$lang->summary}</strong></td>
</tr>
<tr>
<td class="trow1">

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<span class="largetext"><strong>{$username}</strong></span><br />
<span class="smalltext">
({$usertitle})<br />
<br />
<strong>{$lang->total_reputation}:</strong> <span class="repbox {$total_class}">{$rep_total}</span><br /><br />
<strong>{$lang->reputation_members} {$rep_members}</strong><br />
<strong>{$lang->reputation_posts} {$rep_posts}</strong>
</span>
</td>
<td align="right">

<img style="margin-top: 1em; margin-right: 1em;position: relative;-webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; -webkit-box-shadow: 0 0 0 3px #fff, 0 0 0 4px #999, 0 2px 5px 4px rgba(0,0,0,.2); -moz-box-shadow: 0 0 0 3px #fff, 0 0 0 4px #999, 0 2px 5px 4px rgba(0,0,0,.2); box-shadow: 0 0 0 3px #fff, 0 0 0 4px #999, 0 2px 5px 4px rgba(0,0,0,.2); height: 100px; width: 100px;" src="{$mybb->user['avatar']}" alt="{$mybb->user['username']}'s avatar" title="{$mybb->user['username']}'s avatar" />

</td>
</tr>
</table> <br />

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder trow2">
<tr>
<td>&nbsp;</td>
<td><span class="smalltext reputation_positive">{$lang->positive_count}</span></td>
<td><span class="smalltext reputation_neutral">{$lang->neutral_count}</span></td>
<td><span class="smalltext reputation_negative">{$lang->negative_count}</span></td>
</tr>
<tr>
<td><span class="smalltext">{$lang->last_week}</span></td>
<td><span class="smalltext">{$f_positive_week}</span></td>
<td><span class="smalltext">{$f_neutral_week}</span></td>
<td><span class="smalltext">{$f_negative_week}</span></td>
</tr>
<tr>
<td><span class="smalltext">{$lang->last_month}</span></td>
<td><span class="smalltext">{$f_positive_month}</span></td>
<td><span class="smalltext">{$f_neutral_month}</span></td>
<td><span class="smalltext">{$f_negative_month}</span></td>
</tr>
<tr>
<td><span class="smalltext">{$lang->last_6months}</span></td>
<td><span class="smalltext">{$f_positive_6months}</span></td>
<td><span class="smalltext">{$f_neutral_6months}</span></td>
<td><span class="smalltext">{$f_negative_6months}</span></td>
</tr>
<tr>
<td><span class="smalltext">{$lang->all_time}</span></td>
<td><span class="smalltext">{$f_positive_count}</span></td>
<td><span class="smalltext">{$f_neutral_count}</span></td>
<td><span class="smalltext">{$f_negative_count}</span></td>
</tr>
</table> <br />


<div>{$reputation_votes} </div>

    </td>
</tr>
</table>
{$multipage}
{$footer}
</body>
</html>


Open Templates > Your theme > Reputation Templates > reputation_vote
Copy & paste this.

Code:
<div class="container">
<div class="row">
</div>
    <div class="qa-message-list" id="wallmessages">
    <div class="message-item" id="m16">
<div class="message-inner">
<div class="qa-message-content">

<table width="100%" cellspacing="0" cellpadding="{$theme['tablespace']}" border="0">
<tr>
<td valign="middle" width="1">
<img style="position: relative;-webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; -webkit-box-shadow: 0 0 0 3px #fff, 0 0 0 4px #999, 0 2px 5px 4px rgba(0,0,0,.2); -moz-box-shadow: 0 0 0 3px #fff, 0 0 0 4px #999, 0 2px 5px 4px rgba(0,0,0,.2); box-shadow: 0 0 0 3px #fff, 0 0 0 4px #999, 0 2px 5px 4px rgba(0,0,0,.2); height: 50px; width: 50px;" src="{$mybb->user['avatar']}" alt="{$mybb->user['username']}'s avatar" title="{$mybb->user['username']}'s avatar" />
</td>
<td valign="middle">
<div style="padding:10px;" class="trow1 {$status_class}" id="rid{$reputation_vote['rid']}">
{$report_link}{$delete_link}
{$reputation_vote['username']} <span class="smalltext">{$reputation_vote['user_reputation']} - {$last_updated}<br />{$postrep_given}</span>
<br /><strong class="{$vote_type_class}">{$vote_type} {$vote_reputation}:</strong> {$reputation_vote['comments']}
</div>
</td>
</tr>
</table>
</div>
</div></div>


</div>
</div>


Add this in Themes > Your theme > Global.css

Code:
.message-item {
margin-bottom: 25px;
margin-left: 40px;
position: relative;
}
.message-item .message-inner {
background: #fff;
border: 1px solid #ddd;
border-radius: 3px;
padding: 10px;
position: relative;
}
.message-item .message-inner:before {
border-right: 10px solid #ddd;
border-style: solid;
border-width: 10px;
color: rgba(0,0,0,0);
content: "";
display: block;
height: 0;
position: absolute;
left: -20px;
top: 6px;
width: 0;
}
.message-item .message-inner:after {
border-right: 10px solid #fff;
border-style: solid;
border-width: 10px;
color: rgba(0,0,0,0);
content: "";
display: block;
height: 0;
position: absolute;
left: -18px;
top: 6px;
width: 0;
}
.message-item:before {
background: #fff;
border-radius: 2px;
bottom: -30px;
box-shadow: 0 0 3px rgba(0,0,0,0.2);
content: "";
height: 100%;
left: -30px;
position: absolute;
width: 3px;
}
.message-item:after {
background: #fff;
border: 2px solid #ccc;
border-radius: 50%;
box-shadow: 0 0 5px rgba(0,0,0,0.1);
content: "";
height: 15px;
left: -36px;
position: absolute;
top: 10px;
width: 15px;
}
.clearfix:before, .clearfix:after {
content: " ";
display: table;
}
.message-item .message-head {
border-bottom: 1px solid #eee;
margin-bottom: 8px;
padding-bottom: 8px;
}
.message-item .message-head .avatar {
margin-right: 20px;
}
.message-item .message-head .user-detail {
overflow: hidden;
}
.message-item .message-head .user-detail h5 {
font-size: 16px;
font-weight: bold;
margin: 0;
}
.message-item .message-head .post-meta {
float: left;
padding: 0 15px 0 0;
}
.message-item .message-head .post-meta >div {
color: #333;
font-weight: bold;
text-align: right;
}
.post-meta > div {
color: #777;
font-size: 12px;
line-height: 22px;
}
.message-item .message-head .post-meta >div {
color: #333;
font-weight: bold;
text-align: right;
}
.post-meta > div {
color: #777;
font-size: 12px;
line-height: 22px;
}


Note: I am not sure of the correct avatar variable so it shows the avatar of who evers reputation page it is in the top right.

Original time line code from here 
https://bootsnipp.com/snippets/featured/...gle-column

Card View staff page with avatars and usergroup title.

$
0
0
Card View staff page with avatars and usergroup title.


What you will end up with.

[Image: iandrew.org-i_Andrew.org-_Forum_Team.png]




Open Templates > Your theme > Show Forum Team Templates > showteam_moderators

Code:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="5"><strong>{$usergroup['title']}</strong></td>
</tr>
<tr>
<td class="trow1">
{$modrows}
</td>
</tr>
</table>
<br />



Open Templates > Your theme > Show Forum Team Templates > showteam_moderators_mod

Code:
<div align="center" class="repcard">    
    
<table width="100%" cellspacing="0" cellpadding="{$theme['tablespace']}" border="0" align="center">
<tr>
<td valign="middle" width="1">

<img src="{$user['avatar']}">
    
</td>
<td valign="middle" style="text-align: left;">
    
<img src="{$theme['imgdir']}/buddy_{$status}.png" title="{$lang->$status}" alt="{$lang->$status}" style="vertical-align: middle;" /><a href="{$user['profilelink']}"><strong>{$user['username']}</strong></a>
    
<div> {$usergroup['usertitle']} </div>    
<div>{$user['lastvisit']} </div>
<div class="float_left postbit_buttons"> {$emailcode}{$pmcode} </div>    
    
</td>
</tr>
</table>    

</div>



Open Templates > Your theme > Show Forum Team Templates > showteam_usergroup

Code:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="4"><strong>{$usergroup['title']}</strong></td>
</tr>
<tr>
<td class="trow1">
{$usergrouprows}
</td>
</tr>
</table>
<br />


Open Templates > Your theme > Show Forum Team Templates > showteam_usergroup_user

Code:
<div align="center" class="repcard">    
    
<table width="100%" cellspacing="0" cellpadding="{$theme['tablespace']}" border="0" align="center">
<tr>
<td valign="middle" width="1">

<img src="{$user['avatar']}">

    
</td>
<td valign="middle" style="text-align: left;">
    
<img src="{$theme['imgdir']}/buddy_{$status}.png" title="{$lang->$status}" alt="{$lang->$status}" style="vertical-align: middle;" /><a href="{$user['profilelink']}"><strong>{$user['username']}</strong></a>    

<div> {$usergroup['usertitle']} </div>
    
<div> {$user['lastvisit']} </div>
<div class="float_left postbit_buttons"> {$emailcode}{$pmcode} </div>    
    
</td>
</tr>
</table>    

</div>



Add this in Themes > Your theme > Global.css

Code:
.repcard {
    background: #fff;
    width: 32%;
    color: #ccc;
    display: inline-table;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: .2rem;
    float: center;
    text-align: center;
    margin: 0.3rem;
    margin: 5px;
    padding: 10px;
}



I have used some code from this thread so it adds the users avatar and usergroup on the staff page.
https://community.mybb.com/thread-171941...pid1164321

Upload this showteam.php in your MyBB root folder.

.php   showteam.php (Size: 8.1 KB / Downloads: 1)

Gid FontAwesome Username Icon Postbit & Profile & Memberlist

$
0
0
Gid FA Username Icon Postbit & Profile & Memberlist


For Font Awesome 4.7 :

In headerinclude add:

Code:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

For Font Awesome 5:

In headerinclude add:

Code:
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css">

Add to global.css

FA 4.7:

Code:
/** Gid FA 4.7 Username Icon Postbit & Profile & Memberlist by Vintagedaddyo **/

.titletag {
  display: inline-block;
  font-family: "FontAwesome";
  font-weight: 600;
}

.titletag_4:before {
  content: "\f013";
  color: #008000;
}

.titletag_6:before {
  content: "\f0e3";
  color: #CC00CC;
}

.titletag_3:before {
  content: "\f0e3";
  color: #CC00CC;
}

.titletag_2:before {
  content: "\f007";
  color: #0072BF;
}

Code:
/** Gid FA 5 Username Icon Postbit & Profile & Memberlist by Vintagedaddyo **/

.titletag {
  display: inline-block;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.titletag_4:before {
  content: "\f013";
  color: #008000;
}

.titletag_6:before {
  content: "\f0e3";
  color: #CC00CC;
}

.titletag_3:before {
  content: "\f0e3";
  color: #CC00CC;
}

.titletag_2:before {
  content: "\f007";
  color: #0072BF;
}


In postbit and postbit_classic find:


Code:
<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />


Replace with:


Code:
<span class="titletag titletag_{$usergroup['gid']}">&nbsp;</span><strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />


In member_profile find:


Code:
<span class="largetext"><strong>{$formattedname}</strong></span><br />


Replace with:


Code:
<span class="titletag titletag_{$memprofile['usergroup']}">&nbsp;</span><span class="largetext"><strong>{$formattedname}</strong></span><br />

In memberlist_user find:

Code:
{$user['profilelink']}<br />


And replace with:

Code:
<span class="titletag titletag_{$usergroup['gid']}">&nbsp;</span>{$user['profilelink']}<br />



Now, you can keep adding to this by adding additional "gids" to the css.

MyBB default "gids" are:

Code:
[ 1 ] _ Guests
[ 2 ] _ Registered
[ 3 ] _ Super Moderators
[ 4 ] _ Administrators
[ 5 ] _ Awaiting Activation
[ 6 ] _ Moderators
[ 7 ] _ Banned

And same can be done by further adding your non default "gids" to the css.

If you are having a hard time figuring out all your gids you can download getgroups.php attached below and upload it to your forum root directory and visit it by "forum/getgroups.php" and it will display all of your currrent gids by number and name.

.php   getgroups.php (Size: 400 bytes / Downloads: 0)

.png   Forums Member List.png (Size: 11.4 KB / Downloads: 5)

.png   Forums Profile of Luctus.png (Size: 3.22 KB / Downloads: 2)

.png   Aliquam risus augue nisi diam.png (Size: 6.18 KB / Downloads: 3)

Replace postbit online/offline images with Fontawesome icons

$
0
0
Replace postbit online/offline images with Fontawesome icons

Most basic way is as follows:


For Font Awesome 4:

In headerinclude add:

Code:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

Replace postbit_online with:

Code:
<a href="online.php" title="{$lang->postbit_status_online}"><i class="fa fa-check-circle online" alt="{$lang->postbit_status_online}"></i></a>


Replace postbit_offline with:


Code:
<i class="fa fa-times-circle offline" title="{$lang->postbit_status_offline}" alt="{$lang->postbit_status_offline}"></i>



For Font Awesome 5:

In headerinclude add:

Code:
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css">

Replace postbit_online with:

Code:
<a href="online.php" title="{$lang->postbit_status_online}"><i class="fas fa-check-circle online" alt="{$lang->postbit_status_online}"></i></a>


Replace postbit_offline with:


Code:
<i class="fas fa-times-circle offline" title="{$lang->postbit_status_offline}" alt="{$lang->postbit_status_offline}"></i>


You can then modify further by css for example this basic usage is pulling from existing offline and online class for coloring..., so you could replace those in the call with your custom classes and allow for positioning, coloring, and whatever else you so desire...

.png   Screenshot_20181003-154334.png (Size: 58.29 KB / Downloads: 2)

.png   Screenshot_20181003-154314.png (Size: 73.99 KB / Downloads: 2)

Add favicon to your forum. Favicon provided, FontAwesome favicon generator links too!

$
0
0
Simple solution for those who have asked or are planning to ask how to add a favicon to their forum.

Add to headerinclude:

Code:
<!-- Add Favicon -->
<link rel="Shortcut icon" href="{$theme['imgdir']}/favicon.ico" />


Download Upload.zip below and extract it and there is a folder called images with an icon called favicon.ico...., put that image in your forums images or themes directory..

example: yourforum/images/favicon.ico

If you want a different favicon and don't have the ability to make one yourself, you could always try something simple like:

https://paulferrett.com/fontawesome-favicon/  * to generate say a font-awesome 4.7 based favicon

And you would modify the headerinclude to reflect the icon name change for example:

Code:
<!-- Add Favicon -->
<link rel="Shortcut icon" href="{$theme['imgdir']}/favicon-comments.ico" />


Or use: https://gauger.io/fonticon/ for creating fontawesome 5 favicons with the ability to layer!

And that option keeps the image name as favicon.ico  so this would still work without modification in headerinclude:


Code:
<!-- Add Favicon -->
<link rel="Shortcut icon" href="{$theme['imgdir']}/favicon.ico" />



Note: FYI, the reason linking the favicon in the theme is better than just dropping a favicon into root directory is that with linking it in the theme you can have theme specific favicons. Smile

.zip   Upload.zip (Size: 1.1 KB / Downloads: 2)

Alternative subforum layout

$
0
0
What you will end up with.
[Image: Screenshot_1.jpg]

Templates > Your theme > Forum Bit Templates > forumbit_depth2_forumforumbit_depth2_cat
Code:
<tr>
<td class="{$bgcolor}" align="center" width="1"><span class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"></span></td>
<td class="{$bgcolor}">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}</div>
</td>
<td class="{$bgcolor}" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" align="right" style="white-space: nowrap">{$lastpost}</td>
{$subforums}
</tr>


Templates > Your theme > Forum Bit Templates > forumbit_subforums
Code:
<tr>
<td class="trow1" colspan="6">
<strong>{$lang->subforums}</strong> {$sub_forums}
</td>
</tr>

[Tutorial] - Color by fid/tid forum title, thread title, threadlist title, cat titl

$
0
0
You could try:


For forums:

Add to global.css


Code:
/**  Colored Forum Titles by Fids by vintagedaddyo **/

.fcolor_2 a:link,.fcolor_2 a:active {
color:green!important;
font-weight:700!important;
}

.fcolor_2 a:visited {
color:green!important;
font-weight:700!important;
text-decoration:none!important;
}

.fcolor_2 a:hover {
color:green!important;
font-weight:700!important;
text-decoration:underline!important;
}

.fcolor_3 a:link,.fcolor_3 a:active {
color:#FFD700!important;
font-weight:700!important;
}

.fcolor_3 a:visited {
color:#FFD700!important;
font-weight:700!important;
text-decoration:none!important;
}

.fcolor_3 a:hover {
color:#FFD700!important;
font-weight:700!important;
text-decoration:underline!important;
}

.fcolor_4 a:link,.fcolor_4 a:active {
color:red!important;
font-weight:700!important;
}

.fcolor_4 a:visited {
color:red!important;
font-weight:700!important;
text-decoration:none!important;
}

.fcolor_4 a:hover {
color:red!important;
font-weight:700!important;
text-decoration:underline!important;
}


* you then would adjust the fcolor_ #  numbers to match your forum ids and add further ids and colors for all of your forum ids. This way you can have different colors for any and or all.


In forumbit_depth2_forum template find:

Code:
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>

And replace with:

Code:
<span class="fcolor_{$forum['fid']}"><a href="{$forum_url}">{$forum['name']}</a></span>


For subforums:

In forumbit_depth3 find:

Code:
<strong><a href="{$forum_url}" title="{$forum_viewers_text_plain}">{$forum['name']}</a></strong>

Replace with:

Code:
<span class="sfcolor_{$forum['fid']}"><a href="{$forum_url}" title="{$forum_viewers_text_plain}">{$forum['name']}</a></span>

Add to global.css:

Code:
/** Subforum title color by fid by vintagedaddyo **/

.sfcolor_6 a:link,.sfcolor_6 a:active {
color:green!important;
font-weight:700!important;
}

.sfcolor_6 a:visited {
color:green!important;
font-weight:700!important;
text-decoration:none!important;
}

.sfcolor_6 a:hover {
color:green!important;
font-weight:700!important;
text-decoration:underline!important;
}


* you then would adjust the sfcolor_ #  numbers to match your sub forum ids and add further ids and colors for all of your forum ids. This way you can have different colors for any and or all.



For colored thread titles:

In showthread find:

Code:
<div>
<strong>{$thread['threadprefix']}{$thread['subject']}</strong>
</div>

replace with:

Code:
<div>
<span class="tcolor_{$thread['tid']}">{$thread['threadprefix']}{$thread['subject']}</span>
</div>


Add to global.css:

Code:
/** colored by tid thread titles by vintagedaddyo **/

.tcolor_1 {
color:orange!important;
font-weight:700!important;
}

.tcolor_2 {
color:yellow!important;
font-weight:700!important;
}

.tcolor_3 {
color:red!important;
font-weight:700!important;
}


* you then would adjust the tcolor_ #  numbers to match your thread ids and add further ids and colors for all of your thread ids. This way you can have different colors for any and or all.



For colored threadlist titles:

in forumdisplay_thread find:

Code:
<span>{$prefix} {$gotounread}{$thread['threadprefix']}<span class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}"><a href="{$thread['threadlink']}">{$thread['subject']}</a></span>{$thread['multipage']}</span>

replace with:

Code:
 <span>{$prefix} {$gotounread}{$thread['threadprefix']}<span class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}"><span class="tlcolor_{$thread['tid']}"><a href="{$thread['threadlink']}">{$thread['subject']}</a></span></span>{$thread['multipage']}</span>
 


Add to global.css:

Code:
/** colored by tid threadlist titles by vintagedaddyo **/

.tlcolor_1 a:link,.tlcolor_1 a:active {
color:orange!important;
font-weight:700!important;
}

.tlcolor_1 a:visited {
color:orange!important;
font-weight:700!important;
text-decoration:none!important;
}

.tlcolor_1 a:hover {
color:orange!important;
font-weight:700!important;
text-decoration:underline!important;
}

.tlcolor_2 a:link,.tlcolor_2 a:active {
color:#FFD700!important;
font-weight:700!important;
}

.tlcolor_2 a:visited {
color:#FFD700!important;
font-weight:700!important;
text-decoration:none!important;
}

.tlcolor_2 a:hover {
color:#FFD700!important;
font-weight:700!important;
text-decoration:underline!important;
}

.tlcolor_3 a:link,.tlcolor_3 a:active {
color:red!important;
font-weight:700!important;
}

.tlcolor_3 a:visited {
color:red!important;
font-weight:700!important;
text-decoration:none!important;
}

.tlcolor_3 a:hover {
color:red!important;
font-weight:700!important;
text-decoration:underline!important;
}
 


* you then would adjust the tlcolor_ #  numbers to match your thread ids and add further ids and colors for all of your thread ids. This way you can have different colors for any and or all.



For category depth 1 & 2 titles:


Find in forumbit_depth1_cat:

Code:
<div><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div>

Replace with:
Code:
<div><span class="catcolord1_{$forum['fid']}"><a href="{$forum_url}">{$forum['name']}</a></span><br /><div class="smalltext">{$forum['description']}</div></div>


Find in forumbit_depth2_cat:

Code:
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$subforums}</div>

And replace with:

Code:
<span class="catcolord2_{$forum['fid']}"><a href="{$forum_url}">{$forum['name']}</a></span>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$subforums}</div>

 
 
add to global.css:
 
Code:
/** colored category depth 1&2 titles by vintagedaddyo**/


/** d1**/

.catcolord1_1 a:link,.catcolord1_1 a:active {
color:orange!important;
font-weight:700!important;
}

.catcolord1_1 a:visited {
color:orange!important;
font-weight:700!important;
text-decoration:none!important;
}

.catcolord1_1 a:hover {
color:orange!important;
font-weight:700!important;
text-decoration:underline!important;
}

.catcolord1_2 a:link,.catcolord1_2 a:active {
color:yellow!important;
font-weight:700!important;
}

.catcolord1_2 a:visited {
color:yellow!important;
font-weight:700!important;
text-decoration:none!important;
}

.catcolord1_2 a:hover {
color:yellow!important;
font-weight:700!important;
text-decoration:underline!important;
}

/** d2 **/

.catcolord2_3 a:link,.catcolord2_3 a:active {
color:purple!important;
font-weight:700!important;
}

.catcolord2_3 a:visited {
color:purple!important;
font-weight:700!important;
text-decoration:none!important;
}

.catcolord2_3 a:hover {
color:purple!important;
font-weight:700!important;
text-decoration:underline!important;
}

.catcolord2_5 a:link,.catcolord2_5 a:active {
color:red!important;
font-weight:700!important;
}

.catcolord2_5 a:visited {
color:red!important;
font-weight:700!important;
text-decoration:none!important;
}

.catcolord2_5 a:hover {
color:red!important;
font-weight:700!important;
text-decoration:underline!important;
}

catcolord2_9 a:link,.catcolord2_9 a:active {
color:gold!important;
font-weight:700!important;
}

.catcolord2_9 a:visited {
color:gold!important;
font-weight:700!important;
text-decoration:none!important;
}

.catcolord2_9 a:hover {
color:gold!important;
font-weight:700!important;
text-decoration:underline!important;
}


* you then would adjust the catcolord1_ #  & catcolord2_# numbers to match your forum ids and add further ids and colors for all of your forum ids. This way you can have different colors for any and or all.

.png   Screenshot_20181007-135533.png (Size: 79.67 KB / Downloads: 7)

.png   Screenshot_20181007-133835.png (Size: 84.95 KB / Downloads: 8)

.png   Screenshot_20181007-054445.png (Size: 57.84 KB / Downloads: 7)

.png   Screenshot_20181007-154627.png (Size: 72.76 KB / Downloads: 7)

1.8 CSS theme guide.

$
0
0
Will update this with other pages.

Index page 
https://i.postimg.cc/BqWq7KKW/index.jpg

Forum display 
https://i.postimg.cc/hcCsMvKV/forumdisplay.jpg

Show Thread
https://i.postimg.cc/Yp4mkqKK/showthread.jpg
https://i.postimg.cc/fWbvcQSw/codeandquotes.jpg

User control panel
https://i.postimg.cc/jjDYBFLP/usercp.jpg






.jpg   index.jpg (Size: 485.54 KB / Downloads: 5)   
.jpg   forumdisplay.jpg (Size: 580.09 KB / Downloads: 9)   
.jpg   codeandquotes.jpg (Size: 208.01 KB / Downloads: 4)   
.jpg   usercp.jpg (Size: 234.86 KB / Downloads: 6)

Create A Simple Plugin To Disable "Simple" Mode When Editing Style Sheets

$
0
0
I don't know if anyone else is interested at all, but I despise the "simple" editing mode, so I wrote a very simple plugin to disable "simple" mode in ACP.

To make this edit on your forums, you will need to add the following contents to a PHP file named smmd.php (for simple mode must die lol) and copy it into the inc/plugins folder of your forum. Then of course, you have to activate it.

PHP Code:
<?php
/**
 * Simple Mode Must Die!
 */

/**
 * plugin info
 *
 * @return void
 */
function smmd_info()
{
    return array(
        'name' => 'Simple Mode Must Die!',
        'compatability' => '18*',
        'version' => '0.1',
        'author' => 'Wildcard',
    );
}

if (
defined('IN_ADMINCP')) {
    $plugins->add_hook('admin_style_themes_begin''smmd_admin_themes_begin');
}

/**
 * disable simple mode style sheet editing
 *
 * @return void
 */
function smmd_admin_themes_begin()
{
    global $mybb;
    if($mybb->input['action'] == "edit_stylesheet" && (!isset($mybb->input['mode']) || $mybb->input['mode'] == "simple"))
    {
        $mybb->input['mode'] = 'advanced';
    }
}

?>


If you already have a custom plugin for your forum, it would be much better to just copy the plugin hook conditional and the function into an existing plugin.

Note: The compatibility option in plugin info can work for 1.6 as well, just edit it as you like.

Styling changes for Default Theme

$
0
0
Part 1

Global.css
Find approx line 150:
Code:
#panel .upper {
    background: #0f0f0f url(images/tcat.png) repeat-x;
    color: #fff;
    border-top: 1px solid #444;
    border-bottom: 1px solid #000;
    padding: 7px;
    clear: both;
}

Replace with:
Code:
#panel .upper {
    background: #444;
    color: #fff;
    /*border-top: 1px solid #444;
    border-bottom: 1px solid #000;*/    
    padding: 8px 12px;
    clear: both;
}

Find approx line 166:
Code:
#panel .lower {
    background: #efefef;
    color: #999;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #ccc;
    padding: 5px;
}

Replace with:
Code:
#panel .lower {
    background: #efefef;
    color: #999;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #ccc;
    padding: 8px 12px;
}

Find approx line 194:
Code:
#search input.button {
    background: #0066a2 url(images/thead.png) top left repeat-x;
    color: #fff;
}

Replace with:
Code:
#search input.button {
    background: #007fd0;
    color: #fff;
}

Find approx line 264:
Code:
#footer .lower {
    color: #666;
    padding: 6px 6px 12px 6px;
    overflow: hidden;
    font-size: 11px;
}

Replace with:
Code:
#footer .lower {
    color: #666;
    padding: 6px 6px 12px 6px;
    overflow: hidden;
    font-size: 12px;
}

Find approx line 289:
Code:
#debug {
    float: right;
    text-align: right;
    margin-top: 20px;
    font-size: 11px;
}

Replace with:
Code:
#debug {
    float: right;
    text-align: right;
    margin-top: 20px;
    font-size: 12px;
}

Find approx line 365:
Code:
.thead {
    background: #0066a2 url(images/thead.png) top left repeat-x;
    color: #ffffff;
    border-bottom: 1px solid #263c30;
    padding: 8px;
}

Replace with:
Code:
.thead {
    background: #007fd0;
    color: #ffffff;
    /*border-bottom: 1px solid #263c30;*/
    padding: 8px 12px;
}

Find approx line 388:
Code:
.tcat {
    background: #0f0f0f url(images/tcat.png) repeat-x;
    color: #fff;
    border-top: 1px solid #444;
    border-bottom: 1px solid #000;
    padding: 6px;
    font-size: 12px;
}

Replace with:
Code:
.tcat {
    background: #444;
    color: #fff;
    /*border-top: 1px solid #444;
    border-bottom: 1px solid #000;*/
    padding: 8px 12px;
    font-size: 12px;
}

Find approx line 410:

.trow1 {
background: #f5f5f5;
border: 1px solid;
border-color: #fff #ddd #ddd #fff;
}

.trow2 {
background: #efefef;
border: 1px solid;
border-color: #fff #ddd #ddd #fff;
}

Replace with:

.trow1 {
    background: #fafafa;
    padding: 8px 12px;
    border-right: 1px solid #e7e7e7; border-bottom: 1px solid #e7e7e7;
}

.trow2 {
background: #f6f6f6;
    padding: 8px 12px;
    border-right: 1px solid #e7e7e7; border-bottom: 1px solid #e7e7e7;
}

Find approx 468:

Code:
.trow_sep {
    background: #ddd;
    color: #333;
    border-bottom: 1px solid #c5c5c5;
    padding: 6px;
    font-size: 12px;
    font-weight: bold;
}

.tfoot {
    border-top: 1px solid #fff;
    padding: 6px;
    background: #ddd;
    color: #666;
}

Replace with:

Code:
.trow_sep {
    background: #ddd;
    color: #333;
    /*border-bottom: 1px solid #c5c5c5;*/
    padding: 8px 12px;
    /*font-size: 12px;*/
    font-weight: bold;
}

.tfoot {
    border-top: 1px solid #fff;
    padding: 8px 12px;
    background: #ddd;
    color: #666;
}

Find approx line 536:

.smalltext {
font-size: 11px;
}

Replace with:

.smalltext {
font-size: 12px;
}

Find approx line 594:

button,
input.button {
padding: 3px 8px;
cursor: pointer;
font-family: Tahoma, Verdana, Arial, Sans-Serif;
font-size: 13px;
background: #eee url(images/buttons_bg.png) repeat-x;
border: 1px solid #bbb;
color: #333;
outline: 0;
}

Replace with:

button,
input.button {
padding: 3px 8px;
cursor: pointer;
font-family: Tahoma, Verdana, Arial, Sans-Serif;
font-size: 13px;
background: #eee;
border: 1px solid #bbb;
color: #333;
outline: 0;
}

Find approx line 625:

label.error {
color: #f30;
margin: 5px;
padding: 0px;
display: block;
font-weight: bold;
font-size: 11px;
}

Replace with:

label.error {
color: #f30;
margin: 5px;
padding: 0px;
display: block;
font-weight: bold;
font-size: 12px;
}

Find approx line 860:

.pm_alert {
background: #FFF6BF;
border: 1px solid #FFD324;
text-align: center;
padding: 5px 20px;
margin-bottom: 15px;
font-size: 11px;
}

.red_alert {
background: #FBE3E4;
border: 1px solid #A5161A;
color: #A5161A;
text-align: center;
padding: 5px 20px;
margin-bottom: 15px;
font-size: 11px;
word-wrap: break-word;
}

Replace with:

.pm_alert {
background: #FFF6BF;
border: 1px solid #FFD324;
text-align: center;
padding: 12px 20px;
margin-bottom: 15px;
/*font-size: 11px;*/
}

.red_alert {
background: #FBE3E4;
border: 1px solid #A5161A;
color: #A5161A;
text-align: center;
padding: 12px 20px;
margin-bottom: 15px;
/*font-size: 11px;*/
word-wrap: break-word;
}

Find approx line 923:

div.error {
padding: 5px 10px;
border: 2px solid #FFD324;
background: #FFF6BF;
font-size: 12px;
}

Replace with:

div.error {
padding: 12px 20px;
border: 2px solid #FFD324;
background: #FFF6BF;
/*font-size: 12px;*/
}

Find approx line 949:

.pagination {
font-size: 11px;
padding-top: 10px;
margin-bottom: 5px;
}

Replace with:

.pagination {
font-size: 12px;
padding-top: 10px;
margin-bottom: 5px;
}

Find approx line 1153:

.post .post_author div.author_statistics {
float: right;
font-size: 11px;
padding: 3px 10px 3px 5px;
color: #666;
line-height: 1.3;
}

Replace with:

.post .post_author div.author_statistics {
float: right;
font-size: 12px;
padding: 3px 10px 3px 5px;
color: #666;
line-height: 1.3;
}

Find approx line 1168:

.post .post_head {
font-size: 11px;
padding-bottom: 4px;
border-bottom: 1px dotted #ddd;
margin-bottom: 4px;
}

Replace with:

.post .post_head {
font-size: 12px;
padding-bottom: 4px;
border-bottom: 1px dotted #ddd;
margin-bottom: 4px;
}

Find approx line 1209:

.post .post_meta {
margin: 4px 0;
font-size: 11px;
color: #999;
}

Replace with:

.post .post_meta {
margin: 4px 0;
font-size: 12px;
color: #999;
}

Find approx line 1233:

.postbit_buttons > a:link,
.postbit_buttons > a:hover,
.postbit_buttons > a:visited,
.postbit_buttons > a:active {
display: inline-block;
padding: 2px 5px;
margin: 2px;
font-size: 11px;
background: #eee url(images/buttons_bg.png) repeat-x;
border: 1px solid #ccc;
color: #555;
}

Replace with:

.postbit_buttons > a:link,
.postbit_buttons > a:hover,
.postbit_buttons > a:visited,
.postbit_buttons > a:active {
display: inline-block;
padding: 2px 5px;
margin: 2px;
font-size: 12px;
background: #eee;
border: 1px solid #ccc;
color: #555;
}

Find approx line 1336:

a.button:link,
a.button:hover,
a.button:visited,
a.button:active {
background: #0f0f0f url(images/tcat.png) repeat-x;
color: #fff;
display: inline-block;
padding: 4px 8px;
margin: 2px 2px 6px 2px;
border: 1px solid #000;
font-size: 14px;
}

Replace with:

a.button:link,
a.button:hover,
a.button:visited,
a.button:active {
background: #0f0f0f;
color: #fff;
display: inline-block;
padding: 4px 8px;
margin: 2px 2px 6px 2px;
border: 1px solid #000;
font-size: 14px;
}

Find approx line 1686:

div.jqi{
width: 400px;
max-width:90%;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
position: absolute;
background-color: #ffffff;
font-size: 11px;
text-align: left;
border: solid 1px #eeeeee;
border-radius: 6px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
padding: 7px;
}

Replace with:

div.jqi{
width: 400px;
max-width:90%;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
position: absolute;
background-color: #ffffff;
font-size: 12px;
text-align: left;
border: solid 1px #eeeeee;
border-radius: 6px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
padding: 7px;
}

Before:


.png   mybb-1-min.png (Size: 43.45 KB / Downloads: 10)


After:


.png   mybb-2-min.png (Size: 40.42 KB / Downloads: 10)

change the theme automatically when the language changes (MyBB Version 1.8.15)

$
0
0
Hi mybb community
This is my first post and I would like to put this topic to be useful for anyone who wants to change the theme automatically when the language changes from the Quick Language selection box at the bottom of the forum.
[Image: 101.png]


This change was made to the version (MyBB Version 1.8.15)
I don't know about the previous versions, Maybe you can apply the same method.


1 - Open the "global.php" file in the root path

2 - Find the sentence "// Run global_start plugin hook now that the basics are set up"
     You'll find it near line number 100.
Code:
// Run global_start plugin hook now that the basics are set up
$plugins->run_hooks('global_start');
if(function_exists('mb_internal_encoding') && !empty($lang->settings['charset']))
{
    @mb_internal_encoding($lang->settings['charset']);
}


3 - Add this code directly after the code that I mentioned above.
Code:
// This Style Depends on the language chosen by the user
if($mybb->settings['bblanguage'] == 'english')
{
    $mybb->user['style'] = 2;
}
else
{
    $mybb->user['style'] = 4;
}
( 2 and 4 ) are the theme numbers.


4 - Save your changes, that's it.


[Image: 102.png]

Or You can find the theme number through the link when you point to the name of the theme.

[Image: 103.png]


Because I use both English and Arabic language.
In English, the theme should be from left to right.
Arabic is the opposite, from right to left.
So I have to change the theme according to the user's choice.

Please if i did something wrong, correct me.
For me, everything works perfectly.

I hope this post is useful to someone.
Thanks Mybb.

Simple css groupimages for default usergroup & mybblike team ranks for custom group

$
0
0
Originally posted as a response here: https://community.mybb.com/thread-220273...pid1317126

Opted to include it in tutorial section just in case someone finds a usage for it and or value.


Add to global.css:

Code:
/* general styling of all team group */

div[class^=team_usergroup_] {
  display: inline-block;
  margin: 6px 2px;
  padding: 0 8px;
  border: solid 1px #AAA;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 400;
  color: #767676;
  text-transform: uppercase;
  text-align: center;
  vertical-align: middle;
}

/* default */

/* individual styling of team group for user group 4 Administrator */

div.team_usergroup_4 {
  color: #FFF;
  background-color: #008000;
  border-color: #008000;
}

/* individual styling of team group for user group 3 Super Moderator */

div.team_usergroup_3 {
  color: #FFF;
  background-color: #CC00CC;
  border-color: #CC00CC;
}

/* individual styling of team group for user group 6 Moderator */

div.team_usergroup_6 {
  color: #FFF;
  background-color: #CC00CC;
  border-color: #CC00CC;
}

/* individual styling of team group for user group 2 Registered */

div.team_usergroup_2 {
  color: #FFF;
  background-color: #0072BF;
  border-color: #0072BF;
}

/* individual styling of team group for user group 1 Guest */

div.team_usergroup_1 {
  background: none;
}

/* individual styling of team group for user group 7 Banned */

div.team_usergroup_7 {
  background: none;
}

/* individual styling of team group for user group 5 Awaiting Activation */

div.team_usergroup_5 {
  background: none;
}

/* Additional groups */

/* individual styling of team group for user group 8 Management */
div.team_usergroup_8 {
  color: #008a00;
/*   background-color: #008a00; */
  border-color: #008a00;
}


/* individual styling of team group for user group 9 Development */

div.team_usergroup_9 {
  color: #d23b67;
/*   background-color: #d23b67; */
  border-color: #d23b67;
}

/* individual styling of team group for user group 10 Design */

div.team_usergroup_10 {
  color: #657d08;
/*   background-color: #657d08; */
  border-color: #657d08;
}

/* individual styling of team group for user group 11 Security */

div.team_usergroup_11 {
  color: #927878;
/*   background-color: #927878; */
  border-color: #927878;
}

/* individual styling of team group for user group 12 DevOps */

div.team_usergroup_12 {
  color: #8967de;
/*   background-color: #8967de; */
  border-color: #8967de;
}

/* individual styling of team group for user group 13 Support */

div.team_usergroup_13 {
  color: #f35858;
/*   background-color: #f35858; */
  border-color: #f35858;
}

/* individual styling of team group for user group 14 Community */

div.team_usergroup_14 {
  color: #2bb7c7;
/*   background-color: #2bb7c7; */
  border-color: #2bb7c7;
}

/* individual styling of team group for user group 15 Web */

div.team_usergroup_15 {
  color: #2ba4eb;
/*   background-color: #2ba4eb; */
  border-color: #2ba4eb;
}

/* individual styling of team group for user group 16 Editorial */

div.team_usergroup_16 {
  color: #62c9a1;
/*   background-color: #62c9a1; */
  border-color: #62c9a1;
}

Replace postbit_groupimage with:

Code:
<div class="team_usergroup_{$usergroup['gid']}" title="{$usergroup['title']}">{$usergroup['image']}</div>

Replace memberlist_user_groupimage with:


Code:
<div class="team_usergroup_{$usergroup['gid']}" title="{$usergroup['title']}">{$usergroup['image']}</div>

Replace member_profile_groupimage with:

Code:
<div class="team_usergroup_{$memprofile['usergroup']}" aly="{$usertitle}" title="{$usertitle}">{$memperms['image']}</div><br />

Add in groups in groupimage input for example for each usergroup its respective group name:

Code:
<i>administrator</i>

Add additional usergroups 8 through 16 as follows:

8) Management
9) Development
10) Design
11) Security
12) DevOps
13) Support
14) Community
15) Web
16) Editorial

[Image: iycrpt.png]

Select Style Arrow

$
0
0
Admin Cp - Themes & Styles - Global.css Select Find


select {
	background: url(images/arrow_down.png)  no-repeat right #ffffff;
	padding: 3px;
	border: 1px solid #ccc;
	width: 200px;
	outline: 0;
	font-family: Tahoma, Verdana, Arial, Sans-Serif;
	font-size: 13px;
	-webkit-appearance: none;
}

wiew
https://imgur.com/DoIlNy4

images
https://imgur.com/LMsbIvT

.png   arrow_down.png (Size: 396 bytes / Downloads: 20)

Simple card statistics

$
0
0
index_boardstats - add to bottom


<fieldset style="width: 190px; float: left; height: 100px;background:#f1f1f1;">
<center><i class="fas fa-pencil-alt fa-4x"style="color:#7cbbe9"></i><br /><br />{$stats['numthreads']}</center> 
</fieldset>
<fieldset style="width: 190px; float: left; height: 100px;background:#f1f1f1;">
<center><i class="fas fa-users fa-4x"style="color:#7cbbe9"></i><br /><br />{$stats['numusers']}</center> 
</fieldset>
<fieldset style="width: 230px; float: left; height: 100px;background:#f1f1f1;">
<center><i class="fas fa-comments fa-4x"style="color:#7cbbe9"></i><br /><br />{$stats['numposts']}</center> 
</fieldset>
<fieldset style="width: 190px; float: left; height: 100px;background:#f1f1f1;">
<center><i class="fas fa-user fa-4x"style="color:#7cbbe9"></i><br /><br />$newestmember</center> 
</fieldset>
<fieldset style="width: 190px; float: left; height: 100px;background:#f1f1f1;">
<center><i class="fas fa-globe fa-4x"style="color:#7cbbe9"></i><br /><br />{$mostonline['numusers']}</center> 
</fieldset>



https://imgur.com/UR3eHOq

Need YouTube Music to display on profile

$
0
0
I need a Tut where I can have YouTube Music to Play on my members profile and postbit.

Font Awesome 5 Title Symbols

$
0
0
Global.Css Add

.posticons-icon {
    display: inline-block;
    color: #f1f1f1;
    text-align: center;
}

.posticons-icon i {
    display: inline-block;
    line-height: 10px;
    font-size:15px;
    font-family:"Font Awesome 5 Free";
    font-weight: 900;
    -webkit-border-top-left-radius: 4px;
    border-top-left-radius: 4px;
}

.posticons-icon_1 i:before {
    content: "\f188";
    color: green;
} 

.posticons-icon_2 i:before {
    content: "\f06a";
    color: #a03b39;
}

.posticons-icon_3 i:before {
    content: "\f059";
    color: #323c8c;
}

.posticons-icon_4 i:before {
    content: "\f118";
    color: #3898a5
}

.posticons-icon_5 i:before {
    content: "\f57a";
    color: #8ca538
}

.posticons-icon_6 i:before {
    content: "\f598";
    color: #61ad10;
}

.posticons-icon_7 i:before {
    content: "\f0f3";
    color: #fddc00
}

.posticons-icon_8 i:before {
    content: "\f58b";
    color: #e44b00
}

.posticons-icon_9 i:before {
    content: "\f557";
    color: #18a5a1;
}

.posticons-icon_10 i:before {
    content: "\f004";
    color: #d17877;
}

.posticons-icon_11 i:before {
    content: "\f05a";
    color: #3c649e;
} 

.posticons-icon_12 i:before {
    content: "\f0eb";
    color: #dbbc20;
} 

.posticons-icon_13 i:before {
    content: "\f001";
    color: #207adb;
}

.posticons-icon_14 i:before {
    content: "\f03e";
    color: #328c87;
} 

.posticons-icon_15 i:before {
    content: "\f743";
    color: #828cd6;
}

.posticons-icon_16 i:before {
    content: "\f5c2";
    color: #38a553;
}

.posticons-icon_17 i:before {
    content: "\f005";
    color: #ccc47c;
} 

.posticons-icon_18 i:before {
    content: "\f165";
    color: #65c6b9;
} 

.posticons-icon_19 i:before {
    content: "\f164";
    color: #658fc6;
} 

.posticons-icon_20 i:before {
    content: "\f03d";
    color: #e886dc;
} 




postbit template - postbit_icon Find - Delete All Add These


<div class="posticons-icon posticons-icon_{$icon['iid']}"title="{$icon['name']}" style="vertical-align: middle;" />&nbsp;
<i class="fas fa-"></i></div>



header symbols template - posticons_icon - Delete All Add These

<label class="posticons_label"><input type="radio" name="icon" value="{$dbicon['iid']}"{$checked} /> 
<div class="posticons-icon posticons-icon_{$dbicon['iid']}"title="{$dbicon['name']}" ><i class="fas fa-"></i></div> 
</label>


forumdisplay_thread_icon replace with 

<div class="posticons-icon posticons-icon_{$icon['iid']}"title="{$icon['name']}" style="vertical-align: middle;" />&nbsp;
<i class="fas fa-"></i></div>


Headerinclude Add


<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css">


View
https://imgur.com/a/47lGnEw

For A Better Mybb

Font Awesome 5 online/offline/away status in ShowTeam plus postbit status Page

$
0
0
Add to headerinclude: * unless fa5 is already included

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css">

Add to global.css:

/** ShowTeam FA Status by vintagedaddyo **/

 .buddy_offline:before {
     font-family: "Font Awesome 5 Free";
     content: "\f057";
     font-size: 16px;
     color: #C7C7C7;
 }

 .buddy_online:before {
     font-family: "Font Awesome 5 Free";
     content: "\f058";
     font-size: 16px;
     color: #15A018;
 }

 .buddy_away:before {
     font-family: "Font Awesome 5 Free";
     content: "\f057";
     font-size: 16px;
     color: #FCD12A;
 }


In Show Forum Team Templates -> showteam_usergroup_user

Find:

 
<img src="{$theme['imgdir']}/buddy_{$status}.png" title="{$lang->$status}" alt="{$lang->$status}" style="vertical-align: middle;" /> 



Replace with:

<span class="buddy_{$status}" title="{$lang->$status}" alt="{$lang->$status}" style="vertical-align: middle;">&nbsp;</span>


Now if you want the postbit user online/offline/away status to match do the following:

Add to global.css:

/** User FA Status by vintagedaddyo **/

.user_offline:before {
    font-family: "Font Awesome 5 Free";
    content: "\f057";
    font-size: 13px;
    color: #C7C7C7;
    font-weight: 900;
}

.user_online:before {
    font-family: "Font Awesome 5 Free";
    content: "\f058";
    font-size: 13px;
    color: #15A018;
    font-weight: 900;
}

.user_away:before {
    font-family: "Font Awesome 5 Free";
    content: "\f057";
    font-size: 13px;
    color: #FCD12A;
    font-weight: 900;
}


Replace postbit_online with:

<a href="online.php" title="{$lang->postbit_status_online}"><span class="user_online" alt="{$lang->postbit_status_online}"></span></a>


Replace postbit_offline with:

<span class="user_offline" title="{$lang->postbit_status_offline}" alt="{$lang->postbit_status_offline}"></span>


Replace postbit_away with:

<a href="{$post['profilelink_plain']}" title="{$lang->postbit_status_away}"><span class="user_away" alt="{$lang->postbit_status_away}"></span></a>


.png   Screenshot_20181109-054345.png (Size: 52.87 KB / Downloads: 21)

.png   Screenshot_20181109-134342.png (Size: 111.7 KB / Downloads: 4)

.png   Screenshot_20181109-134407.png (Size: 73.19 KB / Downloads: 5)

.png   Screenshot_20181109-134503.png (Size: 81.11 KB / Downloads: 3)

Default guest avatar + Hover Effect

$
0
0
Global.css Add

.dfavatar-box {
    border-radius: 50%;
    overflow: hidden;
    margin-top: -22px;
    margin-right: 15px;
    background: #fff url('images/default_avatar.png') no-repeat;
    background-size: 100% auto;
    float: left;
    width: 35px;
    height: 35px;
    border: 6px solid #111;
}

.dfavatar-box:hover {
    -moz-transition: all .5s ease-in-out;
    -webkit-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
    -ms-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
    -moz-transform: rotate(720deg);
    -webkit-transform: rotate(720deg);
    -o-transform: rotate(720deg);
    -ms-transform: rotate(720deg);
    transform: rotate(720deg)
}

header_welcomeblock_guest Add To Top


<div class="dfavatar-box"></div> 

wiev
https://imgur.com/a/RxKOmVd

.png   Ekran Alıntısı1.PNG (Size: 20.92 KB / Downloads: 14)
Viewing all 685 articles
Browse latest View live