Pixelated a phpBB Template by SkaidonDesigns
 
Kaktusan Corp. Support Area Forum Index
www.kaktusancorp.com
www.cheapestadultscripts.com
Play with the Best, be the Best!
Plug Rush
FAQ
Search
Memberlist
Usergroups
Profile
Log in to check your private messages
Log in

The Mightiest Webmaster Solutions Ever
Porn Blog Space
Porn Blog Space
Cheapest Adult Scripts
Cheapest Adult Scripts
Blogs Automater
Blogs Automater
Links Organizer
Links Organizer

Haven't registered yet? Do it here now!
Forcing links to open in a new window

 
Post new topic   Reply to topic    Kaktusan Corp. Support Area Forum Index -> Porn Blog Space
View previous topic :: View next topic  
Author Message
nicky



Joined: 07 Oct 2011
Posts: 26

PostPosted: Tue Dec 04, 2012 5:24 am    Post subject: Forcing links to open in a new window Reply with quote
I want to use a sponsor's RSS feed in a sidebar and there is no way to add a target attribute to the link in the RSS widget.
The smartlink plugin does not seem to work for sidebar links.
I have a piece of java script but the upgraded wordpress forces changes to the script when you save in a text box and it does not work at all.
Has anybody any ideas?
I have just discovered that the script changes forced by wordpress also prevent statcounter from being installed on new blogs - this is actually a far more serious issue.
Back to top
View user's profile Send private message

Author Message
kaktus
Owner


Joined: 22 May 2004
Posts: 1576
Location: CheapestAdultScripts.com

PostPosted: Tue Dec 04, 2012 7:29 am    Post subject: Reply with quote
Hi there,
i have just tested javascript code and statcounter code in a Text widget and all is normal, i don't see anything changed or something broken. Are you sure you are using a regular Text widget to put your javascript code?

As about the new window links, i don't see such an option to be available in WP..
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number

Author Message
nicky



Joined: 07 Oct 2011
Posts: 26

PostPosted: Tue Dec 04, 2012 7:53 am    Post subject: Reply with quote
Yeah there is only one text box. I got stat counter to work by using the XHTML compliant code. There is a new window option at the bottom of the Smartlinks plugin settings but I seem to recall that Smartlinks don't work with later versions of WP. I also set it to noindex but that has no effect either.
I also tried enclosing the javascript with CDATA and comment tags but that didn't work.
This is the java I want in a text box (it should really go in the <head>)
<script>

function externalLinks()
{
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++)
{
var anchor = anchors[i];
if(anchor.getAttribute("href"))
anchor.target = "_blank";
}
}
window.onload = externalLinks;

</script>
When I click save it becomes this:
<script>

function externalLinks()
{
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i&lt;anchors.length; i++)
{
var anchor = anchors[i];
if(anchor.getAttribute(&quot;href&quot;))
anchor.target = &quot;_blank&quot;;
}
}
window.onload = externalLinks;

</script>
And doesn't work. I assume it's something to do with XHTML compliance but I don't know.
Back to top
View user's profile Send private message

Author Message
kaktus
Owner


Joined: 22 May 2004
Posts: 1576
Location: CheapestAdultScripts.com

PostPosted: Tue Dec 04, 2012 8:22 am    Post subject: Reply with quote
It looks like the plugin allowing javascript,embeds and etc.. got broken. I have fixed it now, so try now to put the javascript code. For me it gets imported fine..
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number

Author Message
nicky



Joined: 07 Oct 2011
Posts: 26

PostPosted: Tue Dec 04, 2012 8:44 am    Post subject: Reply with quote
Thank you. I'll give it a try now.
Back to top
View user's profile Send private message

Author Message
nicky



Joined: 07 Oct 2011
Posts: 26

PostPosted: Tue Dec 04, 2012 9:01 am    Post subject: Reply with quote
Thanks kaktus, it's working great now!
Back to top
View user's profile Send private message

Display posts from previous:   
Post new topic   Reply to topic    Kaktusan Corp. Support Area Forum Index -> Porn Blog Space All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2002 phpBB Group


 
phpBB Template designed by SkaidonDesigns