You need to Register for free and Login to post a message in the forum.

Forum

Subject: Open menu links in new window?
Prev Next
You are not authorized to post a reply.

Author Messages
ericb1
Nuke Newbie
Nuke Newbie
Posts:5

03 Jul 2008 12:33 PM  

I'm using DNN 4.7 and the beyondcss skin from speerio.  I wanted to open some menu links in a new browser window because they're external links to my site.  So from the speerio site, I was helped by adding a text module to a page and adding this javascript to the header:

[script removed]

So now any link that's not an index of my site opens in a new window.  This works great.  However, now I would like to use a different skin, and this little bit of javascript doesn't work on the new skin (Flux).  I'm not the best with javascript, but is there something simple that I can do to change it so that it will work with my new skin?  I'm guessing that the new skin doesn't use or recognize some of this syntax?

Any help is greatly appreciated, thanks!

leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3138

04 Jul 2008 7:32 AM  
Hello,

If you attach the code in a zip file to your forum post we can have a look, thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
ericb1
Nuke Newbie
Nuke Newbie
Posts:5

07 Jul 2008 9:24 AM  
Thanks so much!  I didn't see that it removed the [script removed]Thanks again.

Attachment: 177242895371.zip

leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3138

10 Jul 2008 1:39 PM  
hello,

It's hard to tell without viewing the original skin and your current skin, but at a guess it looks as though the ID of the menu in the Speerio skin is 'smenu' - perhaps you need to check the ID of the menu in your own skin with the ID of the menu mentioned in the script.

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
ericb1
Nuke Newbie
Nuke Newbie
Posts:5






But it doesn't look like it uses the DIV tag. I tried replacing this in my javascript, with all of these tags, but nothing seems to work. Thanks again.

Which I guess
15 Jul 2008 2:44 PM  
Thanks again for your help.

In the old skin, I can find this bit of code with 'smenu':





In the new skin, the only menu option I can find is here:

leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3138

17 Jul 2008 11:05 AM  
perhaps you could attach the original skin code in a zip so we can have a look?

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
ericb1
Nuke Newbie
Nuke Newbie
Posts:5

18 Jul 2008 12:18 PM  

Thank you so much for your help, I really appreciate it.  Ididn't realize that the code I tried to paste in before didn't work, I had added some comments to the bottom that didn't appear.

Anyway, the attached 2 zip files show the 'old' and 'new' skins.  The .js works correctly on the old skin, I'm trying to adapt it work on the new skin.  I just attached the .ascx file from the skin folder, not the entire skin.  If you need to see the whole skin, please let me know and I can re-attach.  Thanks again!


Attachment: 171818187471.zip
Attachment: 171818187454.zip

ericb1
Nuke Newbie
Nuke Newbie
Posts:5

18 Jul 2008 12:23 PM  
This forum re-names attachment files, so the old skin is called '171818187454.zip' and the new skin is called '171818187471.zip' thanks again!
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3138

22 Jul 2008 6:14 AM  
ok, looking at the old skin code, a div tag surrounds the house menu with the ID of smenu.

So, the script looks for any links inside the ID of smenu.

Looking at your skin, you are using tables, and this has the code of:

td class="menu-td"

Around the SolpartMenu, so perhaps you could try adding an ID="smenu", or replacing the table with a div with the ID.

Thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > Open menu links in new window?



ActiveForums 3.7

Latest Forum Posts

Expanded sections (Advance settings) collapses automatically! by maxdagenais
Hi, Recently our production DNN install (DNN 4.8.4) with 50+ portals started misbehaving as ...
WOW GOLD by wowgolds987
Buy [url=http://www.mmoinn.com]wow power leveling[/url], you can get the most wow money, Why not! Mm...
Changing the House Menu?? by ollep
Hi Lee   I can’t see sub-menu’s in some of the horizontal House Menu skins?   I recall you where...
RE: Pop up window by yerann
Thank you for the reply.  Yes this is the module I was looking for. 
RE: around every module by leesykes
Are you using containers? I seem to recall this prob occurs if you do not use a container. I use a t...
around every module by databanq
It seems like DNN adds a span-tag around all of my modules, and inside this tag it adds a div tag. T...
RE: Events calendar by leesykes
Would love to do that, but not going this year, it was one or the other and decided to give europe a...
RE: Events calendar by mgordon
Thanks Lee.  I'll do that.On a separate note.  Will you be in Vegas for the DevConnections conferenc...
RE: Installation of Modules Errors by leesykes
I would contact your hosting provider and ask them to re-enable permissions on your DNN installation...
RE: Issue 32 - Powerful Efficient Techniques for DotNetNuke Administration using SQL by leesykes
not sure, could you post you web.config connection string for your local installation? anyone else a...
RE: Events calendar by leesykes
not dnn specific, you could post a request in the forum here, or look outside of DNN on the outsourc...
RE: Admin upload skins? by leesykes
Yes the whole install section has been redone - only host will now have access for installing. Skins...
RE: Events calendar by mgordon
I have never checked that out, but maybe it's time to start doing so.  Thanks Lee.  Do you have any ...
RE: Events calendar by leesykes
have you tried any of the dnn job sites like dnnguru.com - I get emails often from indian developers...
RE: Admin upload skins? by jncraig
To answer the question: this is a setting that can be configured on the host settings page. Also...
RE: Events calendar by mgordon
I have taken a look at it.  It does not do what we're looking to do.
RE: Events calendar by jncraig
Has anyone taken a look at the new Engage Events module?
RE: Events calendar by leesykes
I can not see a way to achieve this, perhaps you will need to look for a 3rd party events module
RE: Events calendar by mjbieg
Thanks, Mark - I will keep looking and I find something, I will post it.
RE: Events calendar by mgordon
Hi,I've been trying to find something like this for a looooong time now.  Unfortunately, you can't g...
DotNetNuke Modules
RSS Feeds