Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/mybb-es.com/html/inc/plugins/avatarep.php on line 1102

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/mybb-es.com/html/inc/class_language.php on line 201
Small buttons below avatar as MyBB-Es
noiredeb   10 Jul, 2012, 7:04 am
#1
Hi, I would like to know if there is a tutorial (or how you do you) for small buttons that are under the avatar, in the user profile (country, gender, about his forum), as here on MyBB-Es.

I would put inside those buttons: url of the forum, send pm, search user's posts.

Thank you in advance!
KeeZ   23 Jul, 2012, 7:43 am
#2
First you need create Your custom profile fields like Country, Gender.

After...

Add This to global.css

Código:
.pbbox {
    background: url(images/trow_shadow.png) repeat-x scroll left bottom #FFFFFF;
    border-radius: 10px 10px 10px 10px;
    box-shadow: 0 0 1em #B6B6B6;
    font-family: Tahoma;
    font-size: 11px;
    font-weight: normal;
    margin-bottom: 3px;
    padding: 6px 5px 5px;
    text-align: left;
    width: 92%;
}

after ad this to "postbit" or "postbit_classic" temaplate

Código:
<div class="pbbox"><center><a href="{$post['fid1']}" title="Country" class="pbbox"><img src="images/yourtheme/flags/{$post['fid1']}.png" al="" title="Country {$post['fid1']}" /></a><a href="{$post['fid3']}" title="Sexo" class="pbbox"><img src="images/yourtheme/{$post['fid3']}.png" al="" title="Gender {$post['fid3']}" /></a></a><a href="{$post['fid8']}" title="Especiality" class="pbbox"><img src="images/yourtheme/{$post['fid8']}.png" al="" title="Hi my name is {$post['username']} and i'm {$post['fid8']}" /></a></center></div>

You need edit This:
  • Links

Like this: <img src="images/yourtheme/flags/
  • Format image

Like this: {$post['fid3']}.png

You can change this with your format like .gif .jpg
  • Custom profile fields

You need edit the number of custom profile fields like: {$post['fid8']}

8 is the number you need edit that.

Original post in spanish: Link

Sorry for my english. (Is basic) Big Grin!
  
Powered By MyBB, © 2002-2024 MyBB Group.
Made with by Curves UI.