SimplePortal

Customization => Themes and Graphics => Topic started by: [A-US]James246 on June 13, 2010, 07:56:51 AM

Title: Help with position of navigation
Post by: [A-US]James246 on June 13, 2010, 07:56:51 AM
* Which version of SMF you're using.
- SMF 1.1.11
* Which version of SimplePortal you're using.
- SimplePortal 2.3.2
* A link to your forum. (Or screenshots, either or).
- http://aus-ileague.com
* Any errors from your error log that may be related (please remove paths and IP addresses as this could give out personal information not needed on a public forum.)
- No errors.
* A detailed description of the problem. (VERY IMPORTANT).
- Well basically the problem resides in the navigation link tree menu. The one which shows your current position. When in a particular forum, it just goes 'A-US iLeague > Category Name > Board Name etc. I want it to be going 'A-US iLeague > Forums > Category Name etc.

Example: http://aus-ileague.com/index.php?board=35.0
Currently shows: A-US iLeague » General Forums » Site News
I want it to show: A-US iLeague » Forums » General Forums » Site News

Also, there seems to be a problem with the positioning of where the link tree is located. This arised upon the instillation of SimplePortal but I haven't paid much attention to it.

Lastly, is it possible to describe the location when you're on a custom page?

Example: http://aus-ileague.com/index.php?page=site_rules
Currently shows: A-US iLeague
I want it to show: A-US iLeague » Site Rules

If anyone could help me with these three issues it would be greatly appreciated.
Title: Re: Help with position of navigation
Post by: Nathaniel on June 13, 2010, 09:59:38 PM
I'm not entirely sure why its happening, but the edit below should fix it.

Code: ("Find (Themes/noize_119/style.css)") [Select]
.pathway {
Code: ("Replace") [Select]
.pathway {
float: left;
Title: Re: Help with position of navigation
Post by: [A-US]James246 on June 14, 2010, 03:45:34 AM
Thanks for the response Nathaniel. I tried your fix but it came to no help. It didn't change anything on the website. What do you think could fix it? Any ideas with the other navigation of the SimplePortal feature?
Title: Re: Help with position of navigation
Post by: Nathaniel on June 14, 2010, 04:07:06 AM
Did you clear your browsers cache after applying the edit? (most browsers have an option somewhere, the shortcut is ctrl + F5 for firefox)
Title: Re: Help with position of navigation
Post by: [A-US]James246 on June 15, 2010, 06:39:26 AM
Did you clear your browsers cache after applying the edit? (most browsers have an option somewhere, the shortcut is ctrl + F5 for firefox)

Yes, I did...
Title: Re: Help with position of navigation
Post by: [A-US]James246 on June 16, 2010, 07:57:41 PM
What happens now, especially with the other requests.  :0
Title: Re: Help with position of navigation
Post by: Nathaniel on June 17, 2010, 12:19:58 AM
In relation to the main request:
Which browser are you using? Adding 'float: right;' to the pathway class worked fine for Opera, Firefox and Chrome, although I guess that IE 6 might not like it (IE 7 and 8 should be fine though).

What happens now, especially with the other requests.  :0

Well, those are more custom coding request than support or theme related requests. Below I have answered those requests.

For the request about adding pages to the linktree, see the topic below:
http://simpleportal.net/index.php?topic=3847.msg24424#msg24424

For adding 'forum' to the linktree:
Code: ("Sources/Subs-Portal.php") [Select]
if ($modSettings['sp_portal_mode'] == 1)
$context['linktree'][0] = array(
'url' => $scripturl . '?action=forum',
'name' => $context['forum_name'],
);

Code: ("Replace") [Select]
if ($modSettings['sp_portal_mode'] == 1)
{
$context['linktree'][0] = array(
'url' => $scripturl,
'name' => $context['forum_name'],
);
$context['linktree'][1] = array(
'url' => $scripturl . '?action=forum',
'name' => $txt['sp-forum'],
);
}

I think that your theme's linktree template may be slightly different from the default theme's one, if you have problems with those edits not changing anything, then could you please attach your 'Themes/{themename}/index.template.php' file?
Title: Re: Help with position of navigation
Post by: [A-US]James246 on June 19, 2010, 04:27:52 AM
In relation to the main request:
Which browser are you using? Adding 'float: right;' to the pathway class worked fine for Opera, Firefox and Chrome, although I guess that IE 6 might not like it (IE 7 and 8 should be fine though).

(I think you mean 'float: left;'.) I did the following code changes...

Code: ("Find (Themes/noize_119/style.css)") [Select]
.pathway {
Code: ("Replace") [Select]
.pathway {
float: left;

I made the changes, cleared the cache and tested it in Firefox and Chrome to only some success. When on a Board or Topic it is in the correct position on the left. :) But when on the Portal, Custom Page or Forum Index it is still on the right. I've attached the 'style.css' file so maybe you can look at it to see what is wrong. :)

For the request about adding pages to the linktree, see the topic below:
http://simpleportal.net/index.php?topic=3847.msg24424#msg24424

For adding 'forum' to the linktree:
Code: ("Sources/Subs-Portal.php") [Select]
if ($modSettings['sp_portal_mode'] == 1)
$context['linktree'][0] = array(
'url' => $scripturl . '?action=forum',
'name' => $context['forum_name'],
);

Code: ("Replace") [Select]
if ($modSettings['sp_portal_mode'] == 1)
{
$context['linktree'][0] = array(
'url' => $scripturl,
'name' => $context['forum_name'],
);
$context['linktree'][1] = array(
'url' => $scripturl . '?action=forum',
'name' => $txt['sp-forum'],
);
}

I think that your theme's linktree template may be slightly different from the default theme's one, if you have problems with those edits not changing anything, then could you please attach your 'Themes/{themename}/index.template.php' file?

I made the changes (as well as the pages linktree) and it appears to be working fine except for when at the following locations: Portal, Forum Index and Custom Page. On the Index it shows 'A-US iLeague > Forums', and on the Custom Page it shows 'A-US iLeague > Forums > Custom Page Name' . Is there anyway to make it not says Forums on the Portal or Custom Page?

I appreciate all the help so far. :)
Title: Re: Help with position of navigation
Post by: [A-US]James246 on June 20, 2010, 06:54:37 AM
I'm still wondering how to make it not say A-US iLeague > Forum on the Portal and Custom Pages.
Title: Re: Help with position of navigation
Post by: [A-US]James246 on June 23, 2010, 08:36:08 AM
Any updates?  :D
Title: Re: Help with position of navigation
Post by: AngelinaBelle on August 19, 2010, 10:21:03 AM
Here's a related suggestion from another thread. which could point you in the right direction.
http://simpleportal.net/index.php?topic=6015.msg35386#msg35386 (http://simpleportal.net/index.php?topic=6015.msg35386#msg35386)
SimplePortal 2.3.8 © 2008-2024, SimplePortal