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

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

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

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

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: Expanded sections (Advance settings) collapses automatically! by maxdagenais
Thanks,Yes, I did restart IIS and event the server to make sure but no luck.Again, the issue seems t...
URL Question by bmatthews
Is there a way to make the URLs a little friendly.What I am looking to do is make a page and access ...
RE: Upgrade DNN 2.1.2 to use SQL 2k5 by davidATapr
Hi Lee, Thanks for getting back to me. Our DNN and portal DBs are 2000 and I did a full backup t...
RE: Upgrade DNN 2.1.2 to use SQL 2k5 by leesykes
Have you tried backing up the SQL 2000 database and then restoring it into the SQL 2005 server?You s...
RE: Upgrade DNN 2.1.2 to use SQL 2k5 by davidATapr
Oh, and we can't upgrade to a new version of DNN because our custom modules are only for 2.1.2 and i...
Upgrade DNN 2.1.2 to use SQL 2k5 by davidATapr
Hello,We are currently using SQL Server 2000 with DNN 2.1.2.  We would like to upgrade to SQL Server...
RE: Issue customizing DNN by jncraig
DNN skins for "older" versions should work just fine with 4.9.0.
RE: Issue customizing DNN by leesykes
You could download an earlier version of DNN to get hold of the skin files for DNN Blue, the entropy...
RE: Issue customizing DNN by jberry
The tutorials were very valuable and I am back on track.  In the latest version, the only skin and c...
RE: Issue 32 - Powerful Efficient Techniques for DotNetNuke Administration using SQL by leesykes
have you created the username + password access that you specified in the connection string for the ...
RE: Installation of Modules Errors by leesykes
. I have access to all folder permissions, and it was working. I just don't enough about the install...
RE: Changing the House Menu?? by leesykes
Hello,There is not an easy way to change them to hover over submenu items. When using the house menu...
RE: Issue customizing DNN by jberry
Thank you both for the replies.  I will get back to the basics here.
RE: How to send mail using the smtp settings by jncraig
I have set up DNN to use a gmail account as the SMTP server. If I remember, you must use xxxx@gmail...
RE: add modules on login and register forms by jncraig
If you login as Host or Admin, you will have a control panel from which you can add modules to pages...
How to send mail using the smtp settings by sherlock005
Hi,I am not able to send the mail.I checked the smtp settings in host settingsi set the smtp server ...
add modules on login and register forms by blanketstream
hi , gaysi have made a site . In skin i was put tag , it is displaying on my pages. when i click on ...
RE: One Year Now, and gladly signing up for a second! by DavidWSnow
A year ago I started this thread and had some very positive comments about DNN Creative Magazine.  M...
RE: Expanded sections (Advance settings) collapses automatically! by jncraig
When generalized behavior like this starts, stopping and restarting IIS sometimes works.
RE: Expanded sections (Advance settings) collapses automatically! by maxdagenais
Hi,I apologise for all the happy faces which seemed to have been caused by cutting & Pasting of the ...
DotNetNuke Modules
RSS Feeds