Ramui forum script
Home :: Ramui forum script :: Ramui webblog script Report bugs :: Deleting post fail
Select Style:
User:
User:
Password:
Keep me login in this computer

Deleting post fail

hi, i'm trying to delete a post for last one hour. i set all file permission as you said, but sorry....
Please help me out.
Posted by: sinni;   Post:1;   Comments:0;  Date of Join: Jul 28, 2011, 04:51
Post date: Jul 28, 2011, 04:55
New topicReplyContactReport

Delete post problem

Yes, there is an error. I don't know why no one brought it into my notice. Any way here is the solution.
1. Open file /fw_blog/admin/include/clspost.php for editing. You can use Windows Notepad or Notepad++ (a GNU software) for editing.
2. At line – 52 find text:
Code
$query = sprintf("DELETE tp, tc FROM ".$this->prefix."comments tc, ".$this->prefix."postinf tp WHERE tc.pid = tp.id AND tp.id = %d",$id);
3. Replace that line with the following line of code.
Code
$query = sprintf("DELETE tp, tc FROM ".$this->prefix."postinf tp LEFT JOIN ".$this->prefix."comments tc ON tc.pid = tp.id WHERE tp.id = %d",$id);
4. Save that file and upload it at its original position.
5. If you are unable to edit file clspost.php then please download it from the following attachment, unzip it and replace the original one.
6. Now your script will work normally.
[attachment=0]clspost.php.zip[/attachment]
**Today I'm going to release my next updated version and the update package.

-----------------------------------------------------------
Web hosting directory

Posted by: admin;   Post:34;   Comments:116;  Date of Join: Nov 05, 2008, 08:04
Post date: Jul 28, 2011, 04:59
ContactReport