Backend uploading

17 years 10 months ago #15441 by JMPerkins
Replied by JMPerkins on topic Re:Backend uploading
Hi Nick,

Thanks for the modification. I'm going to post it here for other users that want to use this feature.

[code:1]change line 880 of the cb.profilegallery.php file from:

if ($isME && ($user->cb_pgtotalitems < $tabparams["cbpgtotalquotaitems"])) {

to:

if (($isME || $isModerator) && ($user->cb_pgtotalitems < $tabparams["cbpgtotalquotaitems"])) {


--

This change should allow moderators to upload on behalf of a user when viewing the users profile gallery.[/code:1]

I do have another question very similar to this one. Can the users profile page be modified so the admin/moderator can change or add the profile image?

Thanks again.

Please Log in to join the conversation.

17 years 10 months ago #15444 by JMPerkins
Replied by JMPerkins on topic Re:Backend uploading
Hi, I think I was able to figure it out myself. Thanks to the code you supplied. Let me know if this looks right to you or if you think it may cause a problem somewhere.

Change line #814 from

[code:1]if ($my->id == $user->id) {

to

if ($my->id == ($user->id || $cbUserIsModerator->id)) {[/code:1]

Thanks for any advice or input.

Please Log in to join the conversation.

17 years 10 months ago #15445 by JMPerkins
Replied by JMPerkins on topic Re:Backend uploading
I take that back. It doesn't work. It only takes me back to the admin to modify. Not the current profile trying to edit.

Back to the drawing board.

Please Log in to join the conversation.

17 years 10 months ago #15446 by nant
Replied by nant on topic Re:Backend uploading
I know - I just debugged it and I have a working version to be added as a feature for RC2.

If you want PM me and I will send you a test version.

For the rest ... I am aiming on releasing RC2 by the end of this month (no promises).

Please Log in to join the conversation.

17 years 10 months ago #15601 by nbf78
Replied by nbf78 on topic Re:Backend uploading
Hi Nant,

It would be really nice to have an option of uploading two profile images on the CB profile. And to have an option to choose what appears in the listing and what appears in the profile.

For me this is what I really would like:

1. Admin choose an image from gallery plugin itself to appear in CB listing as thumbnail.

2. Admin uploads a different logo which appears in the profile as a profile image. So only logo appears in profile.

Do you think its possible with RC2?

Thanks a lott!!.

Please Log in to join the conversation.

17 years 10 months ago #15619 by nant
Replied by nant on topic Re:Backend uploading
both items are really CB core related features.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.319 seconds

Facebook Twitter LinkedIn