Page 1 of 1
Web addresses should open in a new window
Posted: 01 Oct 2012, 09:50
by dette
Hello,
http://www.roh-kostbar.de/rohkost-gaestebuch.html here, I have integrated a guestbook and just today I noticed that the links that are to be entered by the visitors to open in the same window instead of in a new . In the backend, you can set it and not the php files I serched with target and _blank and _self. I can not find anything where I can change something.
Has anyone ever solved this problem and can help me.
I would be very happy about it, because even in google I could not find this problem.
It's not about the links in the text, one can adjust in the editor, but the entries that make users when they post.
Thanks
Dette
Re: Web addresses should open in a new window
Posted: 01 Oct 2012, 13:47
by Jan
Hi, guestbook uses standard tinymce editor located in Joomla! so you can set it there, I think
Jan
Re: Web addresses should open in a new window
Posted: 01 Oct 2012, 17:51
by dette
Thanks for your answer, but unfortunately you do not understand. I do not mean the links in the message.
I speak of the form field, where the user enters its web address. There is no editor.
Dette
Re: Web addresses should open in a new window
Posted: 02 Oct 2012, 11:10
by Jan
Aha, this then needs to be customized directly in the code:
components/com_phocaguestbook/views/guestbook/tmpl/ ...
Jan
Re: Web addresses should open in a new window
Posted: 02 Oct 2012, 12:49
by dette
Yes I know, but I do not find the correct file. I have searched almost all. Can someone help me?
Thanks in advance.
Dette
Re: Web addresses should open in a new window
Posted: 02 Oct 2012, 14:51
by Jan
Hi, default.php
Jan
Re: Web addresses should open in a new window
Posted: 02 Oct 2012, 15:21
by dette
Thank you Jan for your help. I was looking in the file and twice (line 57 and line 225) method "post" found.
"post" I have exchanged for "blank". I hope that's right. But the web address still opens in a new window. "post" is actually not all that wrong. "self" would be wrong.
Sorry to nerve that, but perhaps you can help me again. Unfortunately I have too little knowledge of the matter. Here is the link to the problem
http://kueche-hitzefrei.de/index.php/ro ... ebuch.html
Here is an excerpt from the php file:
if ($this->tmpl['display_posts'] == 1) {
$form2 = '<p> </p><div><form action="'.$this->action.'" method="
blank" name="adminForm" id="pgbadminForm">';
if (count($this->items)) {
Re: Web addresses should open in a new window
Posted: 26 Jan 2013, 21:38
by KlintMX
As far as I can see, You have JCE Mediabox on Your site.
I tested Your guestbook with a post
I can not see, which Joomla version You have, but the changes could be the same - here You can see how I did - Joomla 2.5.8
components/com_phocaguestbook/views/guestbook/tmpl/default.php
Line 169
class="jcepopup noicon" type="iframe"
target="blank"
Code: Select all
$gbPosts .= ' <span><a class="jcepopup noicon" type="iframe" href="'.$values->homesite.'" target="blank">'.PhocaguestbookHelperFront::wordDelete($values->homesite, 50, '...').'</a></span>';
If You want the link to open in a new window, just forget the class
Good luck
Re: Web addresses should open in a new window
Posted: 27 Jan 2013, 13:33
by dette
A thousand thanks for your help. It worked wonderfully and I would have never found out alone.
Have a nice day.