Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4260
Latest: Verrick
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 43301
Total Topics: 7525
Most Online Today: 102
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 72
Total: 72

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

0 Members and 1 Guest are viewing this topic.

Offline davejo

  • Downloads Pro Customer
  • Full Member
  • *****
  • Posts: 185
    • View Profile
    • Quizland
Request for admin notification
« on: January 28, 2024, 02:36:03 am »
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


Listen to Quizland radio here

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16455
    • View Profile
Re: Request for admin notification
« Reply #1 on: January 28, 2024, 10:03:06 pm »
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

Offline davejo

  • Downloads Pro Customer
  • Full Member
  • *****
  • Posts: 185
    • View Profile
    • Quizland
Re: Request for admin notification
« Reply #2 on: January 29, 2024, 01:26:34 am »
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 »


Listen to Quizland radio here

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16455
    • View Profile
Re: Request for admin notification
« Reply #3 on: January 29, 2024, 08:13:37 am »
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/

Offline davejo

  • Downloads Pro Customer
  • Full Member
  • *****
  • Posts: 185
    • View Profile
    • Quizland
Re: Request for admin notification
« Reply #4 on: January 29, 2024, 09:02:06 am »
Strange... Anything in your error log? Does the store still work at all?

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


Listen to Quizland radio here

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16455
    • View Profile
Re: Request for admin notification
« Reply #5 on: January 29, 2024, 09:30:03 am »
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/

Offline davejo

  • Downloads Pro Customer
  • Full Member
  • *****
  • Posts: 185
    • View Profile
    • Quizland
Re: Request for admin notification
« Reply #6 on: January 29, 2024, 11:03:27 am »
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


Listen to Quizland radio here

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16455
    • View Profile
Re: Request for admin notification
« Reply #7 on: January 29, 2024, 11:21:45 am »
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/

Offline davejo

  • Downloads Pro Customer
  • Full Member
  • *****
  • Posts: 185
    • View Profile
    • Quizland
Re: Request for admin notification
« Reply #8 on: January 29, 2024, 11:57:15 am »
Here you go

It has been modified but those came from your suggestions


Listen to Quizland radio here

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16455
    • View Profile
Re: Request for admin notification
« Reply #9 on: January 29, 2024, 01:47:36 pm »
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/

Offline davejo

  • Downloads Pro Customer
  • Full Member
  • *****
  • Posts: 185
    • View Profile
    • Quizland
Re: Request for admin notification
« Reply #10 on: January 29, 2024, 04:15:03 pm »
I had some typos try this file with your edits.
Ok thanks, I'll let you know tomorrow as it's bedtime here ;)


Listen to Quizland radio here

Offline davejo

  • Downloads Pro Customer
  • Full Member
  • *****
  • Posts: 185
    • View Profile
    • Quizland
Re: Request for admin notification
« Reply #11 on: January 30, 2024, 01:43:15 am »
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


Listen to Quizland radio here

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16455
    • View Profile
Re: Request for admin notification
« Reply #12 on: January 30, 2024, 01:51:36 pm »
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/

Offline davejo

  • Downloads Pro Customer
  • Full Member
  • *****
  • Posts: 185
    • View Profile
    • Quizland
Re: Request for admin notification
« Reply #13 on: January 30, 2024, 03:52:16 pm »
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


Listen to Quizland radio here

Offline davejo

  • Downloads Pro Customer
  • Full Member
  • *****
  • Posts: 185
    • View Profile
    • Quizland
Re: Request for admin notification
« Reply #14 on: February 06, 2024, 08:34:00 am »
Any more thoughts on this VB?


Listen to Quizland radio here

 

Related Topics

  Subject / Started by Replies Last post
9 Replies
10459 Views
Last post January 20, 2007, 12:39:51 am
by marcbkk
5 Replies
8574 Views
Last post June 28, 2008, 09:38:39 pm
by SMFHacks
1 Replies
3079 Views
Last post March 04, 2011, 03:26:39 pm
by simibill
1 Replies
1255 Views
Last post August 19, 2021, 05:57:38 pm
by SMFHacks
2 Replies
1816 Views
Last post August 25, 2022, 06:41:00 pm
by Shades

+- Recent Topics

Pretty Urls extras by SMFHacks
May 13, 2024, 10:28:54 am

Mod question by Verrick
May 11, 2024, 02:42:50 pm

i have paid but cant download ad pro. by SMFHacks
May 02, 2024, 11:29:38 pm

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

Powered by EzPortal