Curiousity with links in discussions in forums that are embedded in Wordpress
peregrine
MVP
if I put this link in a comment it opens a new tab as expected.
if I click on the discussion topic in the discussions page the discussion topic stays embedded.
However,
If I put the same link in a discussion (as the first item) - when you click on the discussion topic in the discussions page it opens a new tab for the discussion.
can anybody replicate this, if you have a wordpress site.
the code to insert in discussion
<a href="http://en.wikipedia.org/wiki/Headphones#Types" rel="nofollow" target="_blank">type of headphones</a>
0
Comments
@Todd,
Is there a way in buttonbar or in the embed version to process links the same way. It seems that using the buttonbar url vs. just posting the links have different side effects when embedded.
vs.
http://en.wikipedia.org/wiki/Headphones#Types
and if you add target="_blank" in the url when you start a discussion, it does some weird things when embedded in wordpress. As noted above.
Surely there is someone with a wordpress forum with 3 minutes, who can test the above.
here is what i found out
go figure...
Thanks much shadowdare for your help testing.
Shadowdare's site did not experience any of the problems I mentioned.
It appears the problem is site specific glitch. - so just ignore this thread.
It appears this mysterious behavior was caused by the interaction of the discussion tooltips plugin. Who wrote that damn thing
. aside from that the plugin doesn't appear to cause any other issues.
You're welcome.
Here's a workaround for this issue with the discussion tooltips plugin that also strips BBCode tags if people use them in their posts:
$bodyLine = $Sender->EventArguments['Discussion']->Body; $formline = strip_tags(str_replace(array('[',']'), array('<','>'), $bodyLine)); $sline = substr($formline, 0, 220);thx. I added your workaround for BBCode tags to the notes on the plugin.
I also added a change to notes to prevent the problem I experienced when using html tags.
No problem. I've tested my workaround and it works, and also fixes the target="_blank" URL problem.