20
Quote:
fishspon wrote:
sorry for bumping the post again, but i'm really, truly stuck... i hope somebody can help
the emails i get always link to articleid=1, instead of the correct number. Here's an example:
Subject: REVIEW for my site
Hey! You got a new submission for your site.
Title: Technics SL-PG490
Posted by: fishsponge
Date: 2003/11/24 1:55
http://hififorum.co.uk/modules/wfsection/admin/index.php?op=edit&articleid=1
As you can see, articleid 1 is not the Technics SL-PG490 article... any ideas on this problem?
Thanks in advance
Hobbs.
Fix for this problem:
In admin/index.php around line 138, replace that block of code with this one:
if ( !empty($isnew) && $article->notifypub() && $article->uid() != 0 ) {
$poster = new XoopsUser($article->uid());
$subject = _AM_ARTPUBLISHED;
$message = sprintf(_AM_HELLO,$poster->uname());
$message .= "\n\n"._AM_YOURARTPUB."\n\n";
$message .= _AM_TITLEC.$article->title()."\n"._AM_URLC.XOOPS_URL."/modules/".$xoopsModule->dirname()."/article.php?articleryid=".$article->articleid()."\n"._AM_PUBLISHEDC.formatTimestamp($article->published(),"$wfsConfig['timestamp']",0)."\n\n";
$message .= $xoopsConfig['sitename']."\n".XOOPS_URL."";
$xoopsMailer =& getMailer();
$xoopsMailer->useMail();
$xoopsMailer->setToEmails($poster->getVar("email"));
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
$xoopsMailer->setFromName($xoopsConfig['sitename']);
$xoopsMailer->setSubject($subject);
$xoopsMailer->setBody($message);
$xoopsMailer->send();
}
that should fix this problem