Author |
Message |
blith
Client
![](modules/Forums/images/avatars/102.gif)
Joined: Jul 18, 2003
Posts: 977
|
Posted:
Thu Feb 25, 2010 9:28 am |
|
Hi, I have an external page I would like to link to out of the NukeNav block. How can I add a URL to the list? I did a search of this site and google. Thanks! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
spasticdonkey
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/48fb116845dfecf66294c.gif)
Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA
|
Posted:
Thu Feb 25, 2010 9:46 am |
|
The menu is generated by this file
includes/jquery/nukeNAV.php
Not sure where you are trying to add it in the menu, but if you need more pointers, post back ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
blith
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Feb 25, 2010 10:04 am |
|
spasticdonkey wrote: | The menu is generated by this file
includes/jquery/nukeNAV.php
Not sure where you are trying to add it in the menu, but if you need more pointers, post back |
Thanks. I want to add a url right after the Home link. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
spasticdonkey
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Feb 25, 2010 11:08 am |
|
didn't try but this should work, find:
Code:$nukeNAV = '<ul id="nukeNAV" class="nukeNAV"><li><a href="./">'._HOME.'</a></li>'."\n";
|
on a new line, add after
Code:$nukeNAV = '<li><a href="http://www.yourlink.com/">Your Link Name</a></li>'."\n";
|
substituting your link info, of course.. ![Wink](modules/Forums/images/smiles/icon_wink.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
blith
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Feb 25, 2010 11:33 am |
|
spasticdonkey wrote: | didn't try but this should work, find:
Code:$nukeNAV = '<ul id="nukeNAV" class="nukeNAV"><li><a href="./">'._HOME.'</a></li>'."\n";
|
on a new line, add after
Code:$nukeNAV = '<li><a href="http://www.yourlink.com/">Your Link Name</a></li>'."\n";
|
substituting your link info, of course.. |
That really messed everything up.... I have a screenshot, how do I attach? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
spasticdonkey
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Feb 25, 2010 12:26 pm |
|
ooops, you are right, try adding this instead
Code:$nukeNAV .= '<li><a href="http://www.yourlink.com/">Your Link Name</a></li>';
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
blith
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Feb 25, 2010 4:04 pm |
|
spasticdonkey wrote: | ooops, you are right, try adding this instead
Code:$nukeNAV .= '<li><a href="http://www.yourlink.com/">Your Link Name</a></li>';
| |
That did not mess up the page but the link does not show in the Navigation block. I am trying to get it to show directly under Home. Thanks for your help!
*edit= this actually makes it appear in the menu bar at the top. I would like it in the navigation block under Home. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/3234de284ee21bd39eecd.jpg)
Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Thu Feb 25, 2010 4:50 pm |
|
Open blocks/block-nukeNAV.php and find
Code:$content = '<table border="0" cellpadding="0" cellspacing="0"><tr><td><ul class="nukeNAVmod"><li><a href="./">'._HOME."</a></li>\n";
|
Under that add
Code:$content .= '<li><a href="http://your link">Your Link</a></li>';
|
Of course replace your link and Your Link with what you need. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
blith
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Feb 26, 2010 10:34 am |
|
nuken wrote: | Open blocks/block-nukeNAV.php and find
Code:$content = '<table border="0" cellpadding="0" cellspacing="0"><tr><td><ul class="nukeNAVmod"><li><a href="./">'._HOME."</a></li>\n";
|
Under that add
Code:$content .= '<li><a href="http://your link">Your Link</a></li>';
|
Of course replace your link and Your Link with what you need. |
That worked, thank you very much. I guess I was not very clear in my first post. But now I have the link in both places! Awesmoe. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
k9-noja
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/5591143b4b2234e676a80.png)
Joined: Dec 07, 2009
Posts: 72
Location: holland
|
Posted:
Thu Mar 18, 2010 3:47 am |
|
is it also posible to let the external link open in same section like, let's say the forum or your acount.
so that u stay on your site en keep the blocks on the side. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Mar 18, 2010 9:41 am |
|
You would need to make an iframe module. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|