News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

smf icon

Started by mrbolsonator, September 08, 2008, 01:19:47 AM

Previous topic - Next topic

mrbolsonator

want to change the new post icon from the smf theme to another picture, how do i do this?

[SiNaN]

Welcome mrbolsonator.

../Themes/your_theme/images/

on.gif => for unread board
on2.gif => for a read board, having an unread child board
off.gif => for unread board

Change them with the images you want.
Former SMF Core Developer | My Mods | SimplePortal

mrbolsonator

i cant change the files to .gif, is there a script that i can change the name/location of the pictures to?

[SiNaN]

Of course. In

../Themes/your_theme/BoardIndex.template.php
../Themes/your_theme/MessageIndex.template.php
../Themes/your_theme/Help.template.php

files, you should search for those and replace the extention as you whish.
Former SMF Core Developer | My Mods | SimplePortal

mrbolsonator

so it came up with an X and not my image, does the image have to be in .gif format to work?

[SiNaN]

No, if you make the edits correctly. May I have a link to your forum to check it?
Former SMF Core Developer | My Mods | SimplePortal

mrbolsonator

www.fuelcrazyamerica.com

i switched it back....but i will try one more time

P.S. i had the same problem trying to put a logo up

[SiNaN]

I think you got it now, right?
Former SMF Core Developer | My Mods | SimplePortal

mrbolsonator

it wont show the pictures'

it just shows an X and no new posts

Marcus Forsberg

Quote from: [SiNaN] on September 08, 2008, 01:22:25 AM

off.gif => for unread board

Don't you mean off.gif => for read board ;)

mrbolsonator

now i am very confused

[SiNaN]

Can you try a hard refresh? (ctrl+f5) It works perfect for me.
Former SMF Core Developer | My Mods | SimplePortal

Marcus Forsberg

It works good for me to. :P

mrbolsonator

on internet explorer it is not working, and on mozzilla the images are huge

now i have two problems...i need to shrink the pictures, and get them to show on explorer

mrbolsonator

third problem, so i singed out and ur right, it works...but it didnt on my page being the admin, is something else wrong?

Marcus Forsberg

Shrinking the pictures should be done by adding width="XXpx" height="XXpx" to the IMG tag, I think.

<img src="image.jpg" width="25px" height="25px">

I may be wrong as I haven't had a closer look at the actuall code affecting all this.
Maybe I should just let [SiNaN] handle this :D

mrbolsonator

ok so one problem delt with, the pics work and i shrunk them...now for my admin page why cant i see them? does anyone know

[SiNaN]

You should resize the image with a picture editor if you want it to look better rather than just using HTML to resize them.

What do you mean by admin page?
Former SMF Core Developer | My Mods | SimplePortal

Marcus Forsberg

Quote from: mrbolsonator on September 08, 2008, 02:20:58 AM
third problem, so i singed out and ur right, it works...but it didnt on my page being the admin, is something else wrong?

mrbolsonator

ok so i was using a different theme than my main forum and i put the pictures ont he default theme instead of mine. but my theme doesnt have the same files as the default, it only has like 4 files. now what.

[SiNaN]

You should just edit the ones that are available on your custom theme. Others are gathered from default theme.

But as a note, you should copy those images to your custom themes' images directory too.

../Themes/custom_theme/images
Former SMF Core Developer | My Mods | SimplePortal

mrbolsonator

ok now it works...sorry about that guys im just really stupid and dint even think about just using the default theme instead of my duplicate. thank you so much for all your help, if there is any critique you have for my site, please tell me!

Marcus Forsberg

No, no, you're not stupid, everyone does mistakes. You've never seen MY mistakes, you would get totatly.. oh, what ever..

I'll sign up at that site, it's message is really good.
I hope that one day that site will go big. ;)

mrbolsonator

thank you so much nascar!!! and to anyone else who signs up on my forum

www.fuelcrazyamerica.com

Advertisement: