Все расширения, созданные нашим сообществом для phpBB, как находящиеся в разработке, так и прошедшие валидацию на официальном сайте phpbb.com, будут анонсированы тут. Вся техническая поддержка по этим расширениям оказывается в этом форуме.
igorbond, а, пардон не заметил лишнее.
Сдаётся, что какое-то расширение вмешалось. Но можно не искать причину, а в этот путь положить недостающий файлик
rxu писал(а): 17.07.2020 14:19
php_bb , added in the repo.
thank you very much,
one more question, how can i add permission to this extension? i wanna let some admin/moderators do and some admin/moderators don't!
and by the way, why are your two extensions in two different folders? {thanksforposts} is in [gfksx] and {topicactions} is in [rxu]
thanks,
after deleting a topic, in [ACP -> Maintenance -> Moderator log], USERNAME is "Anonymous" and USER-IP is "servers's ip"
how can i edit the code to change "Anonymous" to {username of who set it for deletion} and "servers's ip" to {user-ip of who set it for deletion}
and also how to add "Done by topic_actions extension" to ACTION
thank you,
php_bb писал(а): 27.07.2020 7:10
how can i edit the code to change "Anonymous" to {username of who set it for deletion}
You can't as anonymous is the user who actually did that. The action is being performed with the cron job which can be triggered by anonymous page visit as well. That's by phpBB core design. Same for the IP address. That's the case for any cron job and not only for this particular one.
php_bb писал(а): 27.07.2020 7:10
and "servers's ip"
That's not the extension related but up to the server configuration. If f.e. Nginx is used as Apache proxy then IP forwarding should be properly set. But server settings is something beyond my good skills so Google may help
when a moderator marks a topic for deletion, we can get that moderator's username and ip and store it in the database and after cron job done, get that info from the database and save it for moderator log! can we do this?
User who scheduled the action is not logged. The action itself is being completed by cron job which may be triggered by any user's visit which is logged.
rxu писал(а): 27.07.2020 9:36
User who scheduled the action is not logged.
no i mean when a moderator scheduled for deletion, get that moderator's info and save it into database. and after cron job done, get that info from database and put in moderator log!
That would require additional database changes (adding columns to the topics table or a dedicated database table) which I wouldn't want to do as it complicates the extension unnecessarily.
rxu писал(а): 27.07.2020 10:03
which I wouldn't want to do
at lease please guide me to edit the code to create log for [Moderator log] when a moderator schedules for delete/lock. before cron job. log for schedule and log for if cancels schedule. thanks.