0 Members and 1 Guest are viewing this topic.

Delete a member's blog - Administrator function (osDateEvo1.2)
« on: November 24, 2017, 09:31:19 PM »
Hello,

I realized Blogs may not be widely used. However, there is currently no way for an administrator to delete a member's blog (if it is deemed inappropriate or violates terms of usage).

I am sharing with you changes I made so that an Administrator may delete blogs. The changes are:
  • blogs are retrieved with a delete action
  • a single blog may be deleted from the retrieved results
  • one or more selected blogs may be deleted with a group action

Because the changes are extensive, I have attached the 2 files that should be uploaded to their respective folders (you will also see the code commented with the initials 'ARV'):
/admin/blogsearch.php
/templates/default/admin/blogmatch.tpl

It is missing some features (since they were not critical for me)
- there is no pagination (i.e. blog titles are retrieved without LIMITs and not paged)
- administrators are still unable to update a member's blog
- after the delete, the script will not automatically re-retrieve results using the previously entered parameters

Good luck.
PHPStorm, MAMP Pro, Sequel Pro
Currently converting my 2.1.6 site to osDateEvo 1.2

*

Pharg

  • *****
  • 3,107
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Delete a member's blog - Administrator function (osDateEvo1.2)
« Reply #1 on: November 24, 2017, 10:07:44 PM »
Hi arievaul,

Thanks for sharing the nice blog mod :)

Will test this out shortly.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

Pharg

  • *****
  • 3,107
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Delete a member's blog - Administrator function (osDateEvo1.2)
« Reply #2 on: November 24, 2017, 10:31:50 PM »
Hi arievaul,

Brilliant works great :)
« Last Edit: November 24, 2017, 10:42:20 PM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35