Auto Assigned Avatar

16 years 4 days ago #61782 by Raj
Auto Assigned Avatar was created by Raj
I have a little module called AutoAssignAvatars. The module required a little hack to line 677:

if(eregi("autoassigned",$rowExtras->avatar)==false && eregi("gallery/",$rowExtras->avatar)==false && is_file($mainframe->getCfg('absolute_path')."/images/comprofiler/".$rowExtras->avatar))

Otherwise, the automatically assigned avatars are deleted when the user changes avatars on their own.

To program around this hack, I had users upload their avatars into a directory, generated a random name, then copied the avatar into images/comprofiler. But....it would be much nicer if the CB code were changed, and would make programming the module about 10,000 time simpler.

Roger Davis

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.221 seconds

Facebook Twitter LinkedIn