A user has submitted an image for approval.

13 years 4 weeks ago #24818 by adailey
Hi All,
Just installed CB and tested an avatar. I received the email
"A user has submitted an image for approval. Please login and take the appropriate action".

I am logged in. Now, where do I take the appropriate action?
13 years 3 weeks ago #24911 by Klabautermann
I am also looking for this
13 years 3 weeks ago #24915 by nant
please search - i have personally answered this 2 times this week!

dont remember this actual thread
12 years 11 months ago #28767 by jcherian39
I modified the _UE_IMAGE_ADMIN_MSG in the language file to include the username, email, etc... however when i get the email all i get is the administrator information.

How do I make it to where it is pulling the information of the user that uploaded the image and waiting approval.

Here is what I added.

DEFINE ('_UE_IMAGE_ADMIN_MSG','User [USERNAME] has a image uploaded at [SITEURL] and requires approval.\n'
.'This email contains their details\n\n'
.'Name - [NAME]\n'
.'e-mail - [EMAILADDRESS]\n'
.'Username - [USERNAME]\n\n\n'
.'Please do not respond to this message as it is automatically generated and is for information purposes only\n');

Any help you can provide would be great....

Joe
12 years 11 months ago #28769 by adailey
Thanks Joe. Must more productive reply. I will give it a whirl and reply back to the forum.

Thank you for your assistance.
12 years 11 months ago #28770 by jcherian39
There is also one other change that I had to make in the profile class file..

function sendToModerators( $sub, $message ) {
global $database,$ueConfig;
$database->setQuery( "SELECT u.id FROM #__users u INNER JOIN #__comprofiler c ON u.id=c.id"
."\n WHERE u.gid IN (".implode(',',getParentGIDS($ueConfig)).") AND u.block=0 AND c.confirmed=1 AND c.approved=1 AND u.sendEmail=1" );
$mods = $database->loadObjectList();
foreach ($mods AS $mod) {
$this->sendFromSystem($mod->id, $sub, $message, false);
}

to

function sendToModerators( $sub, $message ) {
global $database,$ueConfig;
$database->setQuery( "SELECT u.id FROM #__users u INNER JOIN #__comprofiler c ON u.id=c.id"
."\n WHERE u.gid IN (".implode(',',getParentGIDS($ueConfig)).") AND u.block=0 AND c.confirmed=1 AND c.approved=1 AND u.sendEmail=1" );
$mods = $database->loadObjectList();
foreach ($mods AS $mod) {
$this->sendFromSystem($mod->id, $sub, $message, true);
}

Mainly changed the boolean on the last line to 'true'... otherwise the emails just came across as staight text and didn't provide any of the database values at all..

Joe
Moderators: beatnantkrileon
Time to create page: 0.421 seconds

Facebook Twitter LinkedIn