A user has submitted an image for approval.

17 years 4 months 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?

Please Log in to join the conversation.

17 years 4 months ago #24911 by Klabautermann
Replied by Klabautermann on topic Re:A user has submitted an image for approval.
I am also looking for this

Please Log in to join the conversation.

17 years 4 months ago #24915 by nant
please search - i have personally answered this 2 times this week!

dont remember this actual thread

Please Log in to join the conversation.

17 years 2 months ago #28767 by jcherian39
Replied by jcherian39 on topic Re:A user has submitted an image for approval.
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

Please Log in to join the conversation.

17 years 2 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.

Please Log in to join the conversation.

17 years 2 months ago #28770 by jcherian39
Replied by jcherian39 on topic Re:A user has submitted an image for approval.
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

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.239 seconds

Facebook Twitter LinkedIn