How can I customize buttons/text?

Started by sfklaas, May 09, 2008, 08:34:41 PM

Previous topic - Next topic

sfklaas

My goal is to be able to customize the buttons/text that say "New Topic", "Reply" and change them to "Leave Comments". Where can I find the file to edit the text?

Kindred

if it is text on a background, you can edit the text in the languages/*.english.php files (which file depends on which "button")

If it is an actual graphic button, then you can typically find them in images/english
Сл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."

Inside Sin

Here's a little start, just go to the theme you want to edit, I'm using the Classic YaBB theme..

Go into the MessageIndex.template.php File of your theme.

Then search for:

// Are they allowed to post new topics?

You should see below that the image code, if you'd like to change it, that's the place. Just remove the <img> code and add plain text if you want text instead of graphics.

Thats all i can show atm.

Kindred

Inside Sin... it's bad form to add text directly into the theme... Doing so will break any multi-language capabilities.
Сл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."

Inside Sin


Deaks

but why when a txt string is easy to do :)
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Kindred

Inside Sin,

We're trying to encourage people to learn GOOD coding habits.
Сл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."

Inside Sin

Eh, I guess. But how would i do the other GOOD way?

Kindred




echo ' display that value of a TEXT string... ' . $txt['YourTextStringName'] . 'and then finish the line';


then add

$txt['YourTextStringName']='This is my Text string....';

to modifications.english.php
(or whatever language)
Сл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: