Email link incomplete for new submissions

Please report bugs here!

Moderator: Thorsten

Post Reply
dicks
Posts: 39
Joined: Mon Oct 09, 2006 2:48 pm

Email link incomplete for new submissions

Post by dicks »

Hi,

When someone submits a new FAQ an email is sent. That works, however the link in the email is not to the admin panel but to the normal FAQ:
There's a new entry in the FAQ!
Please check the admin section!
Pamela for Skype FAQ: http://www.pamela-systems.com/help/faq
I looked in the config settings but could not find any place to add "/admin" to the above link. Any ideas?

Bye!

DickS
Johannes
Posts: 7
Joined: Mon Jun 05, 2006 10:19 pm

Post by Johannes »

Hi,

there's no configuration option for that. If you want to change the link open save.php with an text editor, somewhere around line 73 you can read

Code: Select all

$body = unhtmlentities($PMF_LANG['msgMailCheck'])."\n".$PMF_CONF['title'].": http://".$_SERVER['HTTP_HOST'].('80' == $_SERVER['SERVER_PORT']? '' : ':'.$_SERVER['SERVER_PORT']).dirname($_SERVER['PHP_SELF']);
change that line to

Code: Select all

$body = unhtmlentities($PMF_LANG['msgMailCheck'])."\n".$PMF_CONF['title'].": http://".$_SERVER['HTTP_HOST'].('80' == $_SERVER['SERVER_PORT']? '' : ':'.$_SERVER['SERVER_PORT']).dirname($_SERVER['PHP_SELF']).'/admin/';
johannes
dicks
Posts: 39
Joined: Mon Oct 09, 2006 2:48 pm

Post by dicks »

Great :)

Hope this makes in in 2.0 config options.

Bye!

DickS
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
no need of config for both 1.6.8 and 2.0.0 'cause it seems more an issue than the need of a configurable value to fix it: Johannes has brought to your attention what has been already committed in CVS by Thorsten and I missed to alert you in this thread ;).

Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Post Reply