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:3375

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:3375

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:3375

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:3375

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

RE: Email Set UP per Portal by jncraig
I think that the answer depends on how email is configured at your host. You'll probably have to co...
RE: skin/container error load by jncraig
I would suggest checking permissions for directories. Does this occur only when you upload a skin...
RE: Add New Profile Properties by jncraig
Hmmm ... I don't have an answer. Does anyone else?
RE: No Access for me too by ristori
it is ok now. Thanks for this action.
skin/container error load by islandman
Has anyone else run across this error when loading skins or containers from site settings?I am using...
Email Set UP per Portal by islandman
How do I set up a unique email address per domain name off 1 hosting environment. for example...m...
RE: localhost Install issues by cdees
Lee: I wanted to follow up on this for anyone following this thread. I have been unable to solve t...
RE: Add New Profile Properties by WSI
HI Joe, The DNN version is 4.5.5. Thanks, Cliff
Change Skin on URL by vinita
Hi,Can the skin be changed based on the url used to access a portal. Multiple portal aliases may be ...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
Best DNN portal ever! by derpir
I have been a subscriber since august 2008, and DNNCreative.com is simply the best DNN Portal, their...
RE: skinning trouble by derpir
Hello Yes could you be so kind and take a look att the htm-file and css-file.I would be very gratef...
Search function is not working by kishorpawar
I am using Seach module in my project but not working, i have set   host setting alsoHost --> Schedu...
RE: backend is changing from sql2005 to sql2008 by leesykes
hello,There should not be any code changes needed, but you'll need to make sure that SQL 2008 upgrad...
RE: skinning trouble by leesykes
Hello,I would need to see your code to help you with this one, you can zip up your files and attach ...
RE: Installing DotNetNuke 4.9.00 on VWD 2005 w/ SQL server 2008 by leesykes
I have run a test with SQL Server 2008 express and DotNetNuke installed in exactly the the same way ...
RE: Issue 39 Interview by leesykes
thanks Bill, glad it was useful, we will have a think about the best way to approach this,Thanks,
RE: Issue 39 Authentication by leesykes
yes I have a live site in 4.9.0 at it seems stable as well.
backend is changing from sql2005 to sql2008 by meenu
hi all advance thanks. in my DNN0408 website am using sql2005 as backend.now planning to remove sq...
DotNetNuke Modules
RSS Feeds