Facebook 

SMFHacks.com - Celebrating 20 Years!

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4341
Latest: jmac32here
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 44306
Total Topics: 7676
Most Online Today: 293
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)
Users Online
Members: 0
Guests: 184
Total: 184

Author Topic: Request for admin notification  (Read 15682 times)

0 Members and 0 Guests are viewing this topic.

Request for admin notification
« on: »
Hi VB,

I have another request.

When someone reports a download the only notification I get (as admin) is an email and at the bottom of the downloads settings window.

Is there anyway you could add the notification to be sent to the admin on the website in the form of an alert or PM please?

The reason I ask is that, at the moment, the email is sent to the webmaster email address but that only eventually comes to me, none of the other admins get to know about the report

thanks

Re: Request for admin notification
« Reply #1 on: »
The system should email all the admins but a pm is easy to do

Try this change
Open Downloads2.PHP
Find
Code: [Select]
// Then send the actual email.
sendmail($row['email_address'], $subject, $body, null, 'downloads', false, 1);

Change or add the following
Code: [Select]
// Send PM to the member
$pm_recipients = array(
'to' => array($row['id_member']),
'bcc' => array(),
);
global $txt;
$pm_from = array(
'id' => 0,
'username' => $txt['downloads_txt_pmbot'] ,
'name' => $txt['downloads_txt_pmbot'],
);

sendpm($pm_recipients,  , $subject,$body,,false,$pm_from);



« Last Edit: January 28, 2024, 10:06:55 pm by SMFHacks »
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/
Like Like x 1 View List

Re: Request for admin notification
« Reply #2 on: »
Thanks VB, I'll let you know how it goes

Well unfortunately that code added had an effect on the tiny portal blocks for some reason. It also stopped the footer from showing, I tested both the default theme and others and it's the same

footer.png shows what happens with the code added, the bottom of the image is the bottom of the portal page, as you can see no footer.

the other 2 show with the code removed
« Last Edit: January 29, 2024, 02:29:20 am by davejo »

Re: Request for admin notification
« Reply #3 on: »
Strange... Anything in your error log? Does the store still work at all?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Request for admin notification
« Reply #4 on: »
Strange... Anything in your error log? Does the store still work at all?

Nothing in the error log and the Store is not used.

Re: Request for admin notification
« Reply #5 on: »
Sorry still early meant the downloads system
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Request for admin notification
« Reply #6 on: »
Sorry still early meant the downloads system

I just put the code in again and no the downloads didn't work either. I tried the change option this time but it still didn't work

Re: Request for admin notification
« Reply #7 on: »
Attach your sources/Downloads2.php
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Request for admin notification
« Reply #8 on: »
Here you go

It has been modified but those came from your suggestions

Re: Request for admin notification
« Reply #9 on: »
I had some typos try this file with your edits.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Request for admin notification
« Reply #10 on: »
I had some typos try this file with your edits.
Ok thanks, I'll let you know tomorrow as it's bedtime here ;)

Re: Request for admin notification
« Reply #11 on: »
Morning VB

I tested it this morning and it worked...but

The link that is sent to the PM, when clicked on, does not take you to the reported files, it takes you to the 'Moderation' page.

Images attached

reports1 = the PM
reports2 = where the link takes you
reports3 = shows you the admin panel at the bottom of the page
reports4 = after clicking on the 'Files reported' link

Re: Request for admin notification
« Reply #12 on: »
So probably need two links in the email/pm. One to the file itself and one to moderation center to review the comment then take action.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Request for admin notification
« Reply #13 on: »
So probably need two links in the email/pm. One to the file itself and one to moderation center to review the comment then take action.

The last image in my previous post shows the comment and the link to the download, so all we really need is the PM link to point to that, if that's possible VB

Re: Request for admin notification
« Reply #14 on: »
Any more thoughts on this VB?

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
9588 Views
Last post October 15, 2006, 07:57:53 pm
by rjmiz
5 Replies
13867 Views
Last post June 28, 2008, 09:38:39 pm
by SMFHacks
1 Replies
4710 Views
Last post March 04, 2011, 03:26:39 pm
by simibill
1 Replies
4647 Views
Last post August 19, 2021, 05:57:38 pm
by SMFHacks
2 Replies
5075 Views
Last post August 25, 2022, 06:41:00 pm
by Shades

+- Recent Topics

Registration - anti bot pattern matching by SMFHacks
November 01, 2026, 07:20:17 pm

EZPortal 8 by davejo
October 21, 2026, 01:01:54 pm

Downloads Pro 7.0 Released by SMFHacks
October 07, 2026, 07:35:30 pm

[Mod]ActivityPub Federation for SMF 2.1 by SMFHacks
October 01, 2026, 05:03:45 pm

Newsletter Pro 4.0 Released by SMFHacks
September 23, 2026, 08:08:24 pm

Can't remove or restore any item from the recycle bin by SMFHacks
September 22, 2026, 11:01:51 am

MCP Server for SMF 2.1 - let Claude, ChatGPT or Cursor run your admin chores by SMFHacks
September 12, 2026, 02:50:45 pm

Suggestions for improvements to Ultimate Shoutbox & Chatroom by davejo
September 02, 2026, 01:35:09 am

Automatic Sorting of Categories by Kiwi
August 31, 2026, 12:36:09 am

' appears as ' in Most Viewed (and Recent Items ?) by SMFHacks
August 22, 2026, 11:01:56 pm

Powered by EzPortal