how to make links open a new window?
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Could you specify what platform are you using?
Blogger, Typepad, LIve Writer ... -
wordpress -
Inappropriate?You can't make links open in new window by default. After inserting a link, use link tools of your platform to make them open in a new window.
The company says
this answers the question
-
where is the part of the application that is injecting the related links? couldn't i just modify that, or is it compiled? is this an open source extension? -
Inappropriate?Well, for most part yes. You can try asking at our developer forum - http://groups.google.com/group/zemant... and one of the developers will help you.
We're releasing some SDK documentation in about a week, but I don't think our infrastructure right now supports such changes. -
Inappropriate?You can change it, but it will take some work. It's probably the easiest, if you are using our WP plugin, since you can modify that to insert some additional Javascript code.
What you have to do is execute:
zQuery.zemanta.platform.links_template = function () {
return new Zemanta.helpers.ZTemplate('{anchor}');
};
But do it after widget has loaded.
Since widget gets loaded of internet, it is not possible for you to change our Javascript directly, even though we wouldn't mind if you did. What you can do, if you are using our WP plugin, is change zemanta.php inside of it.
It contains function zem_wp_head, where you can add another print statement after all the others, which will add a delayed execution of above statement. Simplest would be something like:
print '<script type="text/javascript">window.setTimeout(function () {zQuery.zemanta.platform.links_template = function () {
return new Zemanta.helpers.ZTemplate('<a href="{href}" title="{title}" rel="{rel}" class="zem_slink" target="_new_win">{anchor}</a>');
};}, 30000);</script>';
This will change behaviour off links to open in new window, but will do so only after 30 seconds, so you would need to wait a bit before you could use it.
Please let me know if this works for you or if you need further assistance. -
Thanks for your reply; I'll try to do the above. I am using the firefox extension version; would this still apply? -
Inappropriate?Well, same things needs to be done, but you can't do it this way. You could do it through Geasemonkey script, if you have that add-on installed or through a bookmarklet.
I'll write the latter and get back to you soon. -
Inappropriate?I see that first part of my original comment was mangled by GS and wouldn't work anyway. Anyhow, I've written the bookmarklet and you can find it here.
Just add link on that page to bookmarks toolbar by dragging it there and click on it after our widget loads. Links added through our widget afterwards should open in new window. -
Inappropriate?It's too bad that you can't default the links to open in a new window. This defeats the purpose of using Zemanta for the links.
-
Inappropriate?do like I did do not use any of the links sooner or later with drop in membership they may wake up and give end user what they want if not we always have the option,uninstall
I’m amused
Loading Profile...




EMPLOYEE

EMPLOYEE
