inherit
114253
0
Apr 1, 2024 6:38:35 GMT -8
Teg
Can't Wait for V6
3,138
November 2007
teg
|
Post by Teg on May 8, 2015 22:43:31 GMT -8
Brian, I was wondering if the following script, by you, can be edited and used in an if/else statement. It says to put it in global header and I don't want to mess anything up so I wanted to check with you first... Here is what I was thinking...
{if $[current_user.is_member]}
<script type="text/javascript"> // Forum name in navigation tree links to "/main" $(document).ready(function(){ $('#nav-tree-branch-0 > div > a').attr('href','/page/main'); }); </script>
{/if}
otherwise, the home page can go to /home and I don't care lol Nevermind.. It works If I do it as: {if $[current_user.is_member]}
<script type="text/javascript"> // Forum name in navigation tree links to "/page/main" $(document).ready(function(){ $('#nav-tree-branch-0 > div > a').attr('href','/page/main'); }); </script>
{/if}
|
|
#eb7100
1480
0
1
May 16, 2024 2:11:14 GMT -8
Craig
208,890
September 2001
cmdynasty
|
Post by Craig on May 9, 2015 0:26:06 GMT -8
So you are good with this?
|
|
inherit
114253
0
Apr 1, 2024 6:38:35 GMT -8
Teg
Can't Wait for V6
3,138
November 2007
teg
|
Post by Teg on May 9, 2015 2:11:49 GMT -8
So you are good with this? Yup lol, sorry to waste a thread and post... Gotta love when you figure out things on your own after posting a support thread about it. But hey, we live we learn lol
|
|
#eb7100
1480
0
1
May 16, 2024 2:11:14 GMT -8
Craig
208,890
September 2001
cmdynasty
|
Post by Craig on May 9, 2015 6:39:25 GMT -8
No worries. Just making sure
|
|
inherit
114253
0
Apr 1, 2024 6:38:35 GMT -8
Teg
Can't Wait for V6
3,138
November 2007
teg
|
Post by Teg on Nov 1, 2015 11:02:10 GMT -8
BrianI was wondering if it's possible to set the nav tree area of admin cp to do the same as above?
|
|
#eb7100
33409
0
1
May 16, 2024 19:58:36 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on Nov 1, 2015 11:23:28 GMT -8
The admin area cannot be edited in any way.
|
|
inherit
114253
0
Apr 1, 2024 6:38:35 GMT -8
Teg
Can't Wait for V6
3,138
November 2007
teg
|
Post by Teg on Nov 1, 2015 11:25:33 GMT -8
Okay because that is conflicting with a custom code. I have a current link state set for all nav links on a theme and I was able to use the code above to fix one issue but when you come out of admin it highlights or selects the "home" route instead of the forum route
|
|