Web addresses should open in a new window

Phoca Guestbook - creating guestbooks in Joomla! CMS
dette
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 01 Oct 2012, 09:46

Web addresses should open in a new window

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Web addresses should open in a new window

Post by Jan »

Hi, guestbook uses standard tinymce editor located in Joomla! so you can set it there, I think :idea:

Jan
If you find Phoca extensions useful, please support the project
dette
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 01 Oct 2012, 09:46

Re: Web addresses should open in a new window

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Web addresses should open in a new window

Post by Jan »

Aha, this then needs to be customized directly in the code:

components/com_phocaguestbook/views/guestbook/tmpl/ ...

Jan
If you find Phoca extensions useful, please support the project
dette
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 01 Oct 2012, 09:46

Re: Web addresses should open in a new window

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Web addresses should open in a new window

Post by Jan »

Hi, default.php

Jan
If you find Phoca extensions useful, please support the project
dette
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 01 Oct 2012, 09:46

Re: Web addresses should open in a new window

Post 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>&nbsp;</p><div><form action="'.$this->action.'" method="blank" name="adminForm" id="pgbadminForm">';
if (count($this->items)) {
KlintMX
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 26 Jan 2013, 21:27

Re: Web addresses should open in a new window

Post 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
dette
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 01 Oct 2012, 09:46

Re: Web addresses should open in a new window

Post by dette »

A thousand thanks for your help. It worked wonderfully and I would have never found out alone.

Have a nice day.
Post Reply