News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

How to add an img for tittle page!

Started by SkzlN, December 04, 2016, 07:00:16 AM

Previous topic - Next topic

SkzlN

hey guys! my theme is : Ornament, my forum link is dark-killers.net , so i want to know how to move this following tittle page to a tittle page with img! sreeshot :

actual :

the one i want (wish) :

if anyone know, feel free to reply!




d3vcho

Just 1 and a half hour since you posted. We're all volunteers here. Be patient...

Regards :)
"Greeting Death as an old friend, they departed this life as equals"

SkzlN

Quote from: d3vcho on December 04, 2016, 08:41:15 AM
Just 1 and a half hour since you posted. We're all volunteers here. Be patient...

Regards :)

you staffs are just volunteer? i've think it's your job! Ahh! so now i understanding! thanks for informing me <3

Dzonny

We're all volunteers here, yes.

You can try to do what you asked for with this mod:
http://custom.simplemachines.org/mods/index.php?mod=2857

Let us know if that helps! :)

SkzlN

bro! with this mod, can i custome the icons or no? bcs i want to custom it :v

i tested it and i can't bro! i want to know how to custom for only one icon on all the pages names! if you know, feel free to reply!

Dzonny


SkzlN


Dzonny

The best solution in this case would be to manually add images next to titles I guess, so you can edit Subs.php:
'home' => array(
'title' => $txt['home'],

Edit the title part so it looks something like this:

'title' => '<img src="http://dark-killers.net/community/Themes/default/images/sp/smiley.png" />&nbsp; ' . $txt['home'],

You can do that for all menu items right below that code in the same file.

Kindred

Not needed to put HTML into the title like that... I believe there is a variable that can be used in the array...  icon, or something like that
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SkzlN

i believe that some themes are already have a automatically icon on the tittles within edit sub , just idk how he do :(

Kindred

no...   it would not be a part of the theme...   what you are asking for would be an update to the menu array in subs.php
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SkzlN

Dzonny already give me a solution bro :)

look here so : dark-killers.net

just bro, i need to know how to add this avatar more center with the text of the tittles on forum, are you know @Kindred ?

look : this forum cs-club.net/forum
this forum have the icons on more center of the tittle, and my forum don't have it, you know how i can do like?

Kindred

Dzonny gave you *A* solution... but not the best solution.

You should be asking for assistance with things like the avatar in the thread dedicated to supporting your specific theme
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori

Quote from: Kindred on December 06, 2016, 11:35:37 AM
You should be asking for assistance with things like the avatar in the thread dedicated to supporting your specific theme

this has been told to the user before. it is a crip theme.

Dzonny

If there's an icon variable in menu array that's surely better solution, although I wasn't aware that there is such variable.

Kindred

hrmmm... I must have added it as a mod at some point.

However, there is this mod
http://custom.simplemachines.org/mods/index.php?mod=2857

which does what you suggested, but gives and interface to work with it.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SkzlN

This is the same mod Dzonny said more up, and he've crash my forum, but he fixed my forum, but i can't re do the risk with this mod :)

Dzonny

By the way, that mod use the exact same code like I wrote above for the menu icons.

Kindred

the only way it would "crash your forum" is if the mod indicated some failure(s) on the installation with a big red warning, but you continued anyway... :P

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: