MyBB Community Forums

Full Version: Add image to rep
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi ive attached an image. In the highlighted area is the word reputation. i want to add an image behind it please.

Can anyone point me in the right direction.

[attachment=28573]
Admin CP -> Templates & Style -> Templates -> *your theme's templates* -> Post Bit Templates -> postbit_reputation

Find: {$lang->postbit_reputation}
Before it add something like: <img src="IMG URL" />
Edit: Irreligious has given right answer Smile
cheers for your help guys

it didnt work. it put the image next to the word reputation and not behind it
Are you sure you added the image code behind the {$lang->postbit_reputation}? First the image code, then the {$lang->postbit_reputation}
yep i did
Can you add so I can check the code and see what is wrong? ncis-fan.com, right?
yep thats correct.

heres the code

<br /><img src="images/rep_bg.png">{$lang->postbit_reputation} {$post['userreputation']}
Oh, OK. My misunderstanding. I thought that you wanted to put it before the "Reputation:", and not as background. You can put this code:

<br /><div style = "background: url(http://www.ncis-fan.com/images/rep_bg.png) no-repeat">{$lang->postbit_reputation} {$post['userreputation']}</div>

OR

Go to the global.css of your theme and add:

.repbg {
background: url(http://www.ncis-fan.com/images/rep_bg.png) no-repeat;
}

And then use this code in the postbit_reputation template:

<br /><div class="repbg">{$lang->postbit_reputation} {$post['userreputation']}</div>
ok let me try

yep thats worked now. can you take a look and see what you think please then i'll mark it solved
Pages: 1 2