PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Thu Feb 25, 2010 9:28 am Reply with quote Back to top

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!
View user's profile Send private message Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team


Joined: Dec 02, 2006
Posts: 1362
Location: Texas, USA

PostPosted: Thu Feb 25, 2010 9:46 am Reply with quote Back to top

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
View user's profile Send private message
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Thu Feb 25, 2010 10:04 am Reply with quote Back to top

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 Smile


Thanks. I want to add a url right after the Home link.
View user's profile Send private message Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team


Joined: Dec 02, 2006
Posts: 1362
Location: Texas, USA

PostPosted: Thu Feb 25, 2010 11:08 am Reply with quote Back to top

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
View user's profile Send private message
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Thu Feb 25, 2010 11:33 am Reply with quote Back to top

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.. Wink


That really messed everything up.... I have a screenshot, how do I attach?
View user's profile Send private message Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team


Joined: Dec 02, 2006
Posts: 1362
Location: Texas, USA

PostPosted: Thu Feb 25, 2010 12:26 pm Reply with quote Back to top

ooops, you are right, try adding this instead

Code:
$nukeNAV .= '<li><a href="http://www.yourlink.com/">Your Link Name</a></li>';
View user's profile Send private message
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Thu Feb 25, 2010 4:04 pm Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 1536
Location: North Carolina

PostPosted: Thu Feb 25, 2010 4:50 pm Reply with quote Back to top

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.
View user's profile Send private message Send e-mail Visit poster's website
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Fri Feb 26, 2010 10:34 am Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
k9-noja
Regular
Regular


Joined: Dec 07, 2009
Posts: 72
Location: holland

PostPosted: Thu Mar 18, 2010 3:47 am Reply with quote Back to top

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.
View user's profile Send private message Send e-mail Visit poster's website
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 1536
Location: North Carolina

PostPosted: Thu Mar 18, 2010 9:41 am Reply with quote Back to top

You would need to make an iframe module.
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum