MyBB Missing Icons
|
2014-07-16, 19:38
Post: #1
|
|||||||
|
|||||||
MyBB Missing Icons
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> <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} <a href="{$mybb->settings['bburl']}/member.php?action=logout&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 |
|||||||
|
|||||||
2014-07-16, 19:59
(This post was last modified: 2014-07-16 20:19 by Pete.)
Post: #2
|
|||||||
|
|||||||
RE: MyBB Missing Icons
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. |
|||||||
|
|||||||
2014-07-16, 20:01
Post: #3
|
|||||||
|
|||||||
RE: MyBB Missing Icons
Ahh I just found that module, that will help me out a lot, thank you ever so much!
|
|||||||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies: | Views: | Last Post | |
SOLVED - MyBB Inline Moderation Error | Raz! | 4 | 5,497 |
2015-01-06 18:11 Last Post: Raz! |
User(s) browsing this thread: 1 Guest(s)
Powered By MyBB, © 2002-2025 MyBB Group