what is $txt[103] want to create button

Started by jzone, May 17, 2006, 01:59:22 PM

Previous topic - Next topic

jzone

Please can someone help me to add a new button to smf forum that redirects users to my homepage

hxxp:xs.to/xs.php?h=xs100&d=06203&f=Homepage_button.png [nonactive]

hxxp:xs100.xs.to/xs100/06203/Homepage_button.png [nonactive]

hxxp:xs.to [nonactive]

I am stuck here

$txt[103]

I want to substitute this and say some like "mainpage" where would I add this.

Basically so far I have duplicated this and will modify it. I've got two Home buttons but How do I rename this button to something like "mainpage"

<div id="bbhome"  '.$mycode.'><a href="', $scripturl, '"><img src="' . $settings['images_url'] . '/blank.gif" alt="' . $txt[103] . '" style="margin: 0px; width: 47px; height: 24px;" border="0" /></a></div>

I think it got something to do with

$txt[103]



thank you

B Patterson

Themes/theme_name/languages/index.your_lang.php

The find $txt[103] and change it as you need.... or just create a new one like:

$txt['my_home_page']

and call that instead.... Or just hard-code it into the page ;)

jzone

thanks for the reply.

But no such index files exists in the Bloc Oxygen theme I there is only just a settings.english.php

How can I hard code?

cheers

Rudolf

You'll find it in the deafult theme's directory. If the file doesn't exists in a theme it defaults to the ... default. ;)
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Dannii

Unless you have a multilanguage forum, you can just use a hard-string text rather than getting it from $txt
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

jzone

#5
Quote from: rudiksz on May 18, 2006, 08:41:47 AM
You'll find it in the deafult theme's directory. If the file doesn't exists in a theme it defaults to the ... default. ;)

Yes! finally I've got it working

Fantastic! Thank you very much  :) ;) :D ;D

Quote from: eldacarUnless you have a multilanguage forum, you can just use a hard-string text rather than getting it from $txt

Unless it's difficult could you give instructions on how to do it?

Cheers


B Patterson

instead of saying "echo $txt[103]" or whatever, just write the string into the HTML code.... as you normally would...

jzone

#7
right let me get this straight, to hardcode I need to modify

alt="' . $txt[103] . '" (part of the string)

to

alt="'homepage'"

Hope that's right, cheers

vbgamer45

get rid of '
in

alt="'homepage'"


and make it

alt="homepage"
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro


Advertisement: