Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 31 Oct 2013, 22:07
jrw422dx jrw422dx is offline
 
Join Date: Jun 2011
Cool How to open a link in same page/window

Is there a code that can be added when you insert a link on the page to keep it from opening in a new tab/window/page, but open that link in the same page?

Also is there a special code that will work to insert a media player that shows up on the page and when clicked will not take you to a new page/window/tab?

I have lyrics to songs in a thread with a link to the MP3 file but cant figure out how to put a player there that people can just click the play button. Obviously when you put in the link it opens a new tab making you have to toggle back to view the lyrics.

Jon
Reply With Quote
  #2  
Old 01 Nov 2013, 07:13
midnz's Avatar
midnz midnz is offline
 
Join Date: Jul 2010
Real name: Wayne
Originally Posted by jrw422dx View Post
Is there a code that can be added when you insert a link on the page to keep it from opening in a new tab/window/page, but open that link in the same page?

Jon
target="_top"

http://www.w3schools.com/tags/att_a_target.asp
Reply With Quote
  #3  
Old 01 Nov 2013, 11:13
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Aug 2009
Real name: Chris
I think what he is looking for is, target="_self" not top.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #4  
Old 01 Nov 2013, 11:27
midnz's Avatar
midnz midnz is offline
 
Join Date: Jul 2010
Real name: Wayne
I've always used "top" after discovering that using "self" sometimes causes issues, like selecting a link within a sidebar opens the webpage within that sidebar rather than the full window/tab. Mind you, I haven't tested that since 3.6x.
Reply With Quote
  #5  
Old 01 Nov 2013, 11:34
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Aug 2009
Real name: Chris
Yeah I don't believe that is a issue anymore, but thanks for your explanation on why you use it that way.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #6  
Old 01 Nov 2013, 11:51
jrw422dx jrw422dx is offline
 
Join Date: Jun 2011
Would it safe to assume that I would need to have ALLOW HTML on for that to be able to work? I have tried adding it several different ways in the add a link box and no results. It just posts the whole code and I get a 404 error when I click it.
Reply With Quote
  #7  
Old 01 Nov 2013, 11:55
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Aug 2009
Real name: Chris
Where exactly is the link shown, and what is the code you are using to show it?
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #8  
Old 01 Nov 2013, 12:05
jrw422dx jrw422dx is offline
 
Join Date: Jun 2011
Here is what I am trying to make work.

<a href="http://www.online-ministries.org/audio/walt-mills-only-the-blood.mp3" target="_top">

Pasting that into the "LINK" box with TEXT highlighted produces nothing.

Would rather have a player one could just click on to listen but cant figure that either.

I am running 4.2.2 and ALLOWED HTML in that particular forum

And if you would like to look at the page and what I am trying to do, its here http://www.online-ministries.org/for...s-that-Inspire

As you will see with all the links I have there, all will open in a new tab which makes viewing the lyrics useless unless you switch back to the parent page

Last edited by jrw422dx; 01 Nov 2013 at 12:13.
Reply With Quote
  #9  
Old 01 Nov 2013, 12:18
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Aug 2009
Real name: Chris
TBH I don't even think opening the player in the same page will do what you want, you would need to have it open as a popup like when you go to post attachments. Maybe this mod can get what you want,
http://www.vbulletin.org/forum/showt...ighlight=popup

I would not allow HTML in the forums, that is generally a bad idea.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #10  
Old 01 Nov 2013, 12:29
jrw422dx jrw422dx is offline
 
Join Date: Jun 2011
Thank You Chris I will give that a shot this evening..

Anyone else have an idea or know of another way?
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:22.

Layout Options | Width: Wide Color: