local images instead of gravatars?

Hello,

Is there a way to make CB use locally stored images instead of gravatars?

Thanks!

Cyrill

For the users?

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

yes, Luis. Is there a way to replace gravatars with an uploaded photo (like what Mura does). Or at what point do I need to intercept it?

The prospective web site will have listings of professionals in a certain area (with associated information like rates, addresses, certificates, references, etc., and photos). Most of that data will be user-generated.

I am trying to determine how much can I use ContentBox and how much of it will have to be done separately, just based on ColdBox. I used CB about 7 years ago before I abandoned web development. Now I am trying to get back into it and I want to use CB as much as possible.

The primary place gravatars are used in ContentBox is on blog/page comments. Users don’t need to log in to comment, so we don’t know who they are other than their E-mail address which is where the gravatar site comes in. Are you wanting to safe profile pictures somehow for anonymous users?

As far as logged in users-- you can do whatever you want, but you’d need to be more specific with us on what pages you are wanting to customize the display. If this is a hand-built event coming from a module, or even a custom widget output in a piece of page content, you can do pretty much whatever CFML code your heart desires.

And on the note of storing users in ContentBox, if that is in fact what you have in mind, there are a few different approaches for that:

  1. Use the existing “author” ORM entity and services. Store additional data as JSON in the user preferences
  2. Extend the author entity and add additional properties there. Interceptors can be used to augment the admin screens to present extra fields and save the extra data
  3. Create a completely separate ORM entity and services and admin screens from scratch
    All three of those options assume you are writing ContentBox modules that you are dropping in alongside the ContentBox core modules to add new functionality and change how ContentBox works. There’s just so many options it’s hard to answer you specifically right now other than, “Yes, you can do that-- it just depends on what you’re looking for.”

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Like Brad said. The best way is to do a profile image module so you can add this via the UI and present it. It is a fairly easy module to build.

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

Thank you Luis and thank you Brad for taking time to offer suggestions. Greatly appreciated!

Cyrill

I would gladly help you on this so you can post it on ForgeBox

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

Thank you, Luis. It took me a while, but I am slowly churning along. It takes a while for my senior brain to learn new concepts. Besides, I have a day job too…

Is there a cfimage utilities cfc within coldbox/contentbox similar to the FileUtils.cfc plugin? If I am to alow image upload, I probably want to make it uniform size.

For now I am figuring out how to use file browser, since I did not find anything else on forgebox for upload. But this will mean disabling most of the filebrowser interface. I tried to use an fb_preTitleBar and fb_postTitleBar inteceptors thinking that clearing the buffer would clear the main fb menu, but that did not work. Is there any other way to change the interface without editing the index.cfm fb view file?

Thank you again, and the deeper I get into contentbox, the more impressive it gets :slight_smile:

That is great Cyrill. Please ask away, don’t be shy, we are all here to learn!

Change the interface of the file browser? In what sense?

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

Luis, sorry it takes so long between your and swers and mine…

<Change the interface of the file browser? In what sense?>

If I am to use the filebrowser to upload avatars (call it from the custom module “uploadavatar”) I don’t want to show all the menu buttons, but rather just the drop zone. and / or the uppload button. But the filebrowser uses its own view, is it possible to run the filebrowser like so:

#runEvent(event=“contentbox-filebrowser:home.index”,eventArguments=Args)#

but make it use a custom view (probably in the “uploadavatar” module views folder instead of the standard one.