A lil' help here...

Started by [NSX]Blood, August 29, 2011, 09:58:14 AM

Previous topic - Next topic

[NSX]Blood

Hello guys, how do I create a button in the navigation bar that redirects me to a sub-domain in my website?
For example: User Control Panel link redirects to ucp.mysite.com [nofollow]
I tried, but without success...
The button text was left blank and it was redirecting me to mysite.com/ucp.mysite.com [nofollow] for some reason that I am not known with.
So I was wondering if you guys could help me out with this stuff!
Thank you in advance :)


[NSX]Blood

Fine, here goes my code:

'UCP' => array(
'title' => $txt['User CP'],
'href' => 'http://www.ucp.nsg-gaming.net',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
),

The button doesn't show up.

Illori

and where in the file are you adding that code? also do you have User CP defined in your language files?

[NSX]Blood

I'm adding it right before the mlist button, just as stated in the tutorial.
I'm gonna try defining it in the language files as you said.

[NSX]Blood

I just did and it's still not showing up. :(

Illori

in what way did you add the language string and in what file?

[NSX]Blood

/Mythemedir/ThemeStrings.english

$txt['User_CP'] = 'User CP';

I also replaced

'title' => $txt['User_CP']


Illori

does your theme have other themestrings? if not put it in the default/languages/index.english.php file at the bottom of the file before the ?>

[NSX]Blood


Illori

you could change 'title' => $txt['User CP'], to 'title' => 'Your text here',

[NSX]Blood

Wait a minute, I just noticed that this is showing at the top left

$txt['User_CP'] = 'User CP';

Illori


[NSX]Blood


Illori

that does not help anyone help you fix your issue.

[NSX]Blood

Quote from: Illori on August 29, 2011, 11:02:19 AM
that does not help anyone help you fix your issue.
Okay, have you got any other ideas of a possible fixing?

Illori

no as i cant see what you have done or where the issue is.

[NSX]Blood

Anyways I found a mod, and added my link successfully!

Advertisement: