PDA

View Full Version : Stop Articlelive automatically changing the link target


aleon
05-19-2005, 05:00 PM
Hi, Does anyone know where in the classes/wysiwyg editor links automatically get given target="_blank"?

I want my links to be internal and so want to stop articlelive from converting links from the wysiwyg edtor into external links.....any ideas?

Cheers
Aleon

Chris S
05-20-2005, 03:26 AM
Hi Aleon,

It's all over the place, depending on where you are.

It's in the following files:

Panels/ArticleHistoryPanel.php
Panels/ArticleHistoryPanel1.php
Panels/ArticleOptionsPanel.php
Panels/CategoryArticleMapPanel.php
Panels/FeaturedArticlesPanel.php
Panels/PopularArticlesPanel.php
Panels/PopularArticlesPanel1.php
Panels/RecentArticlesPanel.php
Panels/RecentNewsPanel.php
Panels/ViewAccountPanel.php
Panels/ViewArticlePanel.php
Panels/ViewAuthorPanel.php
Panels/ViewCategoryAdvancedPanel.php

The panels directory is under the templates/template_name/ folder.

Hi, Does anyone know where in the classes/wysiwyg editor links automatically get given target="_blank"?

I want my links to be internal and so want to stop articlelive from converting links from the wysiwyg edtor into external links.....any ideas?

Cheers
Aleon

aleon
05-23-2005, 02:37 PM
Line 23 of this file says:

//$_POST["wysiwyg"] = AL_HELPER::FixContentLinks($_POST["wysiwyg"]);

I commented this out and stopped it from automatically making my links open in new windows.

Chris S
05-24-2005, 02:03 AM
Wow there you go :)

Even easier!

Line 23 of this file says:

//$_POST["wysiwyg"] = AL_HELPER::FixContentLinks($_POST["wysiwyg"]);

I commented this out and stopped it from automatically making my links open in new windows.