[TC] Gaming Forums

Full Version: MyBB Missing Icons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have uploaded the themes to dropbox and the layout and backgrounds are fine, but the icons are not.
This is what the forum should look like:
http://mods.mybb.com/uploads/previews/22...review.jpg

But it looks like this:
http://gyazo.com/d1eeaf5ddaf1194fa53bc26f5727a9ea

Under Manage Templates > Header Templates > header_welcomeblock_member . The current css coding is :

CodePress - Real Time Syntax Highlighting Editor written in JavaScriptvar language = 'generic'; var engine = 'older'; var ua = navigator.userAgent; var ts = (new Date).getTime(); // timestamp to avoid cache var lh = location.href; if(ua.match('MSIE')) engine = 'msie'; else if(ua.match('KHTML')) engine = 'khtml'; else if(ua.match('Opera')) engine = 'opera'; else if(ua.match('Gecko')) engine = 'gecko'; if(lh.match('language=')) language = lh.replace(/.*language=(.*?)(&.*)?$/,'$1'); document.write('<link type="text/css" href="codepress.css?ts='+ts+'" rel="stylesheet" />'); document.write('<link type="text/css" href="languages/'+language+'.css?ts='+ts+'" rel="stylesheet" id="cp-lang-style" />'); document.write('<scr'+'ipt type="text/javascript" src="engines/'+engine+'.js?ts='+ts+'"></scr'+'ipt>'); document.write('<scr'+'ipt type="text/javascript" src="languages/'+language+'.js?ts='+ts+'"></scr'+'ipt>'); if(engine == "msie" || engine == "gecko") document.write('<body><pre> </pre></body>'); else if(engine == "opera") document.write('<body></body>'); // else if(engine == "khtml") document.write('<body> </body>');  <div style="float: left; padding-left: 8px; padding-top: 2px;"><strong>Welcome {$mybb->user['username']},</strong> &nbsp; <a href="{$mybb->settings['bburl']}/private.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}https://dl.dropboxusercontent.com/u/231830406/Website/icons/pm.png" alt="" title="" class="icons-irt" /><strong>{$lang->welcome_pms}</strong></a> {$lang->welcome_pms_usage} &nbsp; <a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}https://dl.dropboxusercontent.com/u/231830406/Website/icons/logout.png" alt="" title="" /><strong>{$lang->welcome_logout}</strong></a></div><div style="float: right; padding-right: 8px; padding-top: 2px;"><a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a> - <a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a> | <a href="{$mybb->settings['bburl']}/usercp.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}https://dl.dropboxusercontent.com/u/231830406/Website/icons/ucp.png" alt="" title="" /><strong>{$lang->welcome_usercp}</strong></a>{$modcplink}{$admincplink}</div>

Is the highlighted part a correct way or is it 'damaging' the code.
Thanks,
Raz
For a start that is not just CSS it's a mixture of HTML, PHP, Javascript and inline CSS.

Sadly, you can't just pump a URL into it like that. You have have to place the images in the MyBB images folder "/images" in the appropriate theme folder.

If you simply want a link to "ucp.png", you need to do it like this:

Code:
<img src="https://dl.dropboxusercontent.com/u/231830406/Website/icons/ucp.png" alt="User CP" />

So replace:

Code:
<img src="{$mybb->settings['bburl']}/{$theme['imgdir']}https://dl.dropboxusercontent.com/u/231830406/Website/icons/ucp.png" alt="" title="" />

with what I put above.
Ahh I just found that module, that will help me out a lot, thank you ever so much!
Reference URL's