cing, found another fix that makes it work all but perfectly now I think.
In the vbArticlesadmin.php file, locate:
PHP Code:
$DB_site->query("UPDATE vbArticles_content SET valid='$val',title='".addslashes(htmlspecialchars($name[$key]))."',byline='".addslashes(htmlspecialchars($desc[$key]))."',author='".addslashes(htmlspecialchars($name[$key]))."',date='".addslashes(htmlspecialchars($name[$key]))."',content='".addslashes(htmlspecialchars($desc[$key]))."' WHERE artid='$key'");
echo "<p>Validated Article: $key</p>\n";
And replace it with:
PHP Code:
$DB_site->query("UPDATE vbArticles_content SET valid='$val',title='".addslashes(htmlspecialchars($title[$key]))."',byline='".addslashes(htmlspecialchars($byline[$key]))."',author='".addslashes(htmlspecialchars($name[$key]))."',date='".addslashes(htmlspecialchars($date[$key]))."',content='".addslashes(htmlspecialchars($desc[$key]))."' WHERE artid='$key'");
echo "<p>Validated Article: $key</p>\n";
Also, locate:
PHP Code:
makeinputcode("Title :","name[$link[artid]]",$link[title]);
maketextareacode("Description :","desc[$link[artid]]",$link[byline],4,50);
makeinputcode("Author :","name[$link[artid]]",$link[author]);
makeinputcode("Date :","name[$link[artid]]",$link[date]);
maketextareacode("Content :","desc[$link[artid]]",$link[content],10,50);
makeyesnocode("Validate:","validatelink[$link[artid]]",1);
makeyesnocode("Delete:","deletelink[$link[artid]]",0);
maketableheader(" ","",0);
$done=1;
And replace it with:
PHP Code:
makeinputcode("Title :","title[$link[artid]]",$link[title]);
maketextareacode("Description :","byline[$link[artid]]",$link[byline],4,50);
makeinputcode("Author :","name[$link[artid]]",$link[author]);
makeinputcode("Date :","date[$link[artid]]",$link[date]);
maketextareacode("Content :","desc[$link[artid]]",$link[content],10,50);
makeyesnocode("Validate:","validatelink[$link[artid]]",1);
makeyesnocode("Delete:","deletelink[$link[artid]]",0);
maketableheader(" ","",0);
$done=1;
This should fix any errors that people had when trying to validate submissions from the AdminCP.
:banana: