Page 1 of 1

Remove link in approval email

Posted: 02 Feb 2010, 01:55
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

Re: Remove link in approval email

Posted: 02 Feb 2010, 17:22
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

Re: Remove link in approval email

Posted: 02 Feb 2010, 19:29
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...

Re: Remove link in approval email

Posted: 03 Feb 2010, 14:39
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

Re: Remove link in approval email

Posted: 04 Feb 2010, 13:37
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

Re: Remove link in approval email

Posted: 04 Feb 2010, 13:50
by dotcom22
you rock !! many thank

Re: Remove link in approval email

Posted: 04 Feb 2010, 17:58
by Jan
Ok