Remove link in approval email

Phoca Guestbook - creating guestbooks in Joomla! CMS
dotcom22
Phoca Enthusiast
Phoca Enthusiast
Posts: 54
Joined: 10 Nov 2008, 18:19

Remove link in approval email

Post by dotcom22 »

Hello Jan

I have set the guestbook for approve each item before publishing... The problem is in the approval email a direct link is displayed related to the new item but this link is useless because item awaiting approval so nothing can be seen.

Instead displaying the item related link I would like display the direct admin link like that user can just click and login in his admin for take appropriate action... So probably by just adding /administrator somewhere I can do that..

Please can you tell me in witch file I can make this modification ?

Many thank
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Remove link in approval email

Post by Jan »

Hi, the links goes to the main site of Phoca Guestbook, it is not possible to create links to administration area in Joomla! (becasue of security reasons - there are many functions to protect it - login, tokens, ...)

Jan
If you find Phoca extensions useful, please support the project
dotcom22
Phoca Enthusiast
Phoca Enthusiast
Posts: 54
Joined: 10 Nov 2008, 18:19

Re: Remove link in approval email

Post by dotcom22 »

Thank for reply....

The link I would like is just http://www.mysite.com/administrator and no more....You say this is not possible ????

Anyway can you tell me in witch file the link is present...??? If I can't replace the original link I want just remove it because users will not understand why they can''t see nothing...
dotcom22
Phoca Enthusiast
Phoca Enthusiast
Posts: 54
Joined: 10 Nov 2008, 18:19

Re: Remove link in approval email

Post by dotcom22 »

hi Jan

I have found inside front/controllers/phocaguestbook.php the code related to email message and the value $url where it seem the link is displayed....I have try to remove this value but the link continue to be displayed inside message...

Can you please tell me how to remove totally the link ?

thank
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Remove link in approval email

Post by Jan »

Hi, where exactly did you remove it, the front is only working folder, no influence on the component, you should change it in:

components/com_phocaguestbook/controllers/phocaguestbook.php

and comment e.g.:

. JText::_( 'Click the link' ) ."\n"
. $url."\n\n"

Jan
If you find Phoca extensions useful, please support the project
dotcom22
Phoca Enthusiast
Phoca Enthusiast
Posts: 54
Joined: 10 Nov 2008, 18:19

Re: Remove link in approval email

Post by dotcom22 »

you rock !! many thank
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Remove link in approval email

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply