Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mybb Icon problem.
#11
This is where it is looking for the image:

{$theme['imgdir']}

Which is:

Images/YourTheme/
#12
(02-06-2011, 01:38 PM)Fragma Wrote: This is where it is looking for the image:

{$theme['imgdir']}

Which is your current themes image directory.

It doesnt enjoy finding the pictures then.
#13
Ok, if I had in my Theme directory the following files:

On.gif
Off.gif
Lock.gif

Assuming the images actually work, I would need to have my index code as:

Code:
<dl class="forum_legend smalltext">
    <dt><img src="{$theme['imgdir']}/On.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
    <dd>{$lang->new_posts}</dd>

    <dt><img src="{$theme['imgdir']}/Off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
    <dd>{$lang->no_new_posts}</dd>

    <dt><img src="{$theme['imgdir']}/Lock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
    <dd>{$lang->forum_locked}</dd>
</dl>
#14
I'll paste that in. See if it works.

Doesn't work. :/
#15
(02-06-2011, 01:51 PM)mywhy10 Wrote: I'll paste that in. See if it works.

Doesn't work. :/

You put them wherever you want, but you have to point to the directory where they are located on your own. Otherwise it wouldn't be possible to have more than one theme if you couldn't point to different theme locations or templates.
#16
(02-06-2011, 02:38 PM)Infinity Wrote: You put them wherever you want, but you have to point to the directory where they are located on your own. Otherwise it wouldn't be possible to have more than one theme if you couldn't point to different theme locations or templates.


Its pointing toward images/codergreen

but its not working.
Ive had a guy on Teamviewer for like 30 minutes, neither of us can figure it out.
#17
You have:

{$theme['imgdir']}/on1.png

This would translate to:

http://modcity-forums.tk/images/codergreen/on1.png

Which if you check, doesn't exist.


EDIT:
Looks like you got it working.



#18
I fixed it man. IT was still pointing to the gif, idk why, but I uploaded a newly made gif that worked.


Possibly Related Threads…
Thread Author Replies Views Last Post
  MyTabs icon styling help Zelion 0 869 02-05-2018, 08:48 AM
Last Post: Zelion
  MyAlerts icon Zelion 0 790 02-05-2018, 08:40 AM
Last Post: Zelion
  MyBB Activation Problem Jackk 2 1,170 04-08-2013, 10:09 AM
Last Post: TheArmyKid
  MyBB Admin Control Panel Problem P.TanweerAhmad 4 2,998 08-04-2011, 02:56 AM
Last Post: P.TanweerAhmad
  Add Icon to Forum Mybb [tut] BannedPoop 15 6,467 07-13-2011, 04:47 PM
Last Post: Don Corleone

Forum Jump:


Users browsing this thread: 1 Guest(s)