[SOLVED] Where is the management?

15 years 11 months ago #61523 by sphinx76
[SOLVED] Where is the management? was created by sphinx76
Hi, I installed CB Gallery Plugin and working fine.

When the user upload a photo avatar, the system send me an email with the details, I login in the site and the module mod_comprofilermoderator on the left on my site advice me that I must approve an avatar.
This is ok.

But when the user upload a photo on the gallery the system send me an email (I must approve it) I login in the site but I don't view any pending action.
I must search the name of username in the mail, search it in the site, open a user gallery tab and approve it.

We don't have a centralized management with alla photo of all user that must approved?

Thank's

Post edited by: sphinx76, at: 2008/05/08 15:38

Please Log in to join the conversation.

15 years 11 months ago #61527 by nant
Replied by nant on topic Re:Where is the management?
sphinx76 wrote:

Hi, I installed CB Gallery Plugin and working fine.


Great! Feel free to support further development by supporting the CB Team!

When the user upload a photo avatar, the system send me an email with the details, I login in the site and the module mod_comprofilermoderator on the left on my site advice me that I must approve an avatar.
This is ok.


This module shows CB avatars that need approval - not CB Gallery items.

But when the user upload a photo on the gallery the system send me an email (I must approve it) I login in the site but I don't view any pending action.
I must search the name of username in the mail, search it in the site, open a user gallery tab and approve it.

We don't have a centralized management with alla photo of all user that must approved?

Thank's


Yup, that's the way things currently work - at least until the next version.

Please Log in to join the conversation.

15 years 11 months ago #61538 by sphinx76
Replied by sphinx76 on topic Re:Where is the management?
Thank's you Nant, great job!

Please Log in to join the conversation.

15 years 10 months ago #62543 by sphinx76
Replied by sphinx76 on topic Re:Where is the management?
Hi Nant,
I changed some code lines to the module mod_comprofilermoderator.php (that show only avatar that must be approved) to include the link at the profile of the user that have image/file to be approved.

At line 130 on the file mod_comprofilermoderator.php I added a new sql query, this select the id/userid of the user that have the file not approved:

$query = "SELECT a.userid,b.username from jos_comprofiler_plug_profilegallery a inner join jos_users b on (a.userid=b.id) WHERE a.pgitemapproved=0";
if(!$database->setQuery($query)) print $database->getErrorMsg();
$sphinxrow = $database->loadAssocList();

Before line 148 (if($totaluserpendapproval > 0 && $ueConfig) I addes a new line with the content:

$sphinxhttp = "index.php?option=com_comprofiler&task=userProfile&user=";
foreach($sphinxrow as $r) {

echo "User: <a href=$sphinxhttp$r[userid]>$r[username]<a/><br>";
}

The code above show inside the module one list (with a user profile page link) where the image/file must be approved.


Now I have a simple management.
;)

Please Log in to join the conversation.

15 years 8 months ago #68103 by aiolos
Replied by aiolos on topic Re:[SOLVED] Where is the management?
can u send me that module please on my email ?
or can you tell me from where to download it?

Post edited by: aiolos, at: 2009/03/02 16:50

Please Log in to join the conversation.

15 years 1 month ago #87199 by Crazydane
Replied by Crazydane on topic Re:Where is the management?
There is a couple of places in the code you have written, where you write $sphinxrow-http and row..

This might be a stupid ?, but since sphinx is your username, I was just wondering if I am suppose to change that when I put the code on my own site?

sphinx76 wrote:

$query = "SELECT a.userid,b.username from jos_comprofiler_plug_profilegallery a inner join jos_users b on (a.userid=b.id) WHERE a.pgitemapproved=0";
if(!$database->setQuery($query)) print $database->getErrorMsg();
$sphinxrow = $database->loadAssocList();

Before line 148 (if($totaluserpendapproval > 0 && $ueConfig) I addes a new line with the content:

$sphinxhttp = "index.php?option=com_comprofiler&task=userProfile&user=";
foreach($sphinxrow as $r) {

echo "User: <a href=$sphinxhttp$r[userid]>$r[username]<a/><br>";
}
quote]

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.331 seconds

Facebook Twitter LinkedIn