News:

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

Main Menu

Help please

Started by DFarish, November 10, 2009, 10:38:11 AM

Previous topic - Next topic

DFarish

I know  that i posted this in another topic. I think the other topic was marked closed. I had added a menu button to go back to my web site and it was working great. I have upgraded and now I can't set the menu text BACK TO WEBSITE to show on the menu. The link is there but no words. Here is the syntax I used in the SUBS.PHP

  $buttons = array(
                        'back to web site' => array(
                                'title' => $txt['back to web site'],
                                'href' => 'http://www.cbtry142frg.org',
                                'show' => true,
                                'sub_buttons' => array(
                                ),
                        ),
                        'home' => array(
                                'title' => $txt['home'],
                                'href' => $scripturl,
                                'show' => true,
                                'sub_buttons' => array(
                                ),
                                'is_last' => $context['right_to_left'],
                                // 'target' => '_blank',
Thanks,

Doug

Matthew K.

Add the following code to Modifications.english.php

Add before?>


//Back to site button
$txt['back_to_site'] = 'back to website';


also change your title from 'title' => $txt['back to web site'], to 'title' => $txt['back_to_site'],

Hope this helps!
Labradoodle-360

DFarish

Okay you totaly lost me on this one. Is the upgrade that different. I feel like an idiot.  :-[
Thanks,

Doug

Matthew K.

Quote from: DFarish on November 10, 2009, 10:54:26 AM
Okay you totaly lost me on this one. Is the upgrade that different. I feel like an idiot.  :-[
If you would like, attach your file, along with the Modifications.english.php which is in (Themes/default/languages) and I'll do the modifications for you :)

DFarish

#4
Okay here you go. Thanks a bunch.
Thanks,

Doug

Matthew K.

What would you like the actual button text to say?

(Back to Website? Please give me the exact case...)

DFarish

BACK TO WEBSITE. Just like the rest of the menu. All upper case.
Thanks,

Doug

Matthew K.

#7
Hope this helps!  :)

Labradoodle-360

DFarish

 ;D  ;D  ;D Thank You, Thank You. that did the trick. Your awsome.

Doug
Thanks,

Doug

DFarish

Can you remove the attached files? Thanks
Thanks,

Doug

Matthew K.

You're very welcome ;D

If this has been completely resolved, please mark it as so (bottom left.), if you have more problems, feel free to either PM me or mark this topic as unresolved.

Glad I could help!
Labradoodle-360
Quote from: DFarish on November 10, 2009, 11:35:24 AM
;D  ;D  ;D Thank You, Thank You. that did the trick. Your awsome.

Doug

Matthew K.

Quote from: DFarish on November 10, 2009, 11:42:13 AM
Can you remove the attached files? Thanks

So no one else can download them?

DFarish

Yes. It's not so much the web site url, I'm just worried that some one could get in and spam the board or change settings. The board is a private one reserved for our National
Guard Unit and the Family Readiness Group. They are very strict on who is on the board because of the information. I need to figure out on how to make the board more secure. i.e....spammers, hackers and the like.

Thank you again for the help. If you have any suggestions on what I need to do please let me know.
Thanks,

Doug

Matthew K.

Sure, I will remove the attachments I posted.
Quote from: DFarish on November 10, 2009, 12:30:20 PM
Yes. It's not so much the web site url, I'm just worried that some one could get in and spam the board or change settings. The board is a private one reserved for our National
Guard Unit and the Family Readiness Group. They are very strict on who is on the board because of the information. I need to figure out on how to make the board more secure. i.e....spammers, hackers and the like.

Thank you again for the help. If you have any suggestions on what I need to do please let me know.

Advertisement: