Login
Donate to Zikula
Mediashare - User Pictures patch by Kaik - v1
Author: Kaik
Zikula Version: Zikula 1.0.0
Category: Utility
API Compliancy:
Yes
pnRender Compliancy:
Yes
Description:
I is mediashare module with changes that allows to use mediashare as a user picture module.
Changes:
There is a top album Main album in this album are users Main User albums created by system when user click on my album link. User is not able to create more Main User albums than one the album id == uid and the name is users name. In Main User Album user is able to create subalbums as normal.
If user set up main file in his Main User Album hashed path to this file will be in user avatar field. To have all working correctly is advised to instal avatar module and in settings change the avatar storage folder to mediashare storage folder then copy all avatars from images/avatar to /mediasharestoragefolder so you will have old avatars and new functionality together as well as compatibility with other modules whitch use avatars.
Support Information:
Supported Languages:
Change Log:
Comments
Thanks for help.
Thanks
Thanks to all
I am working on a new structure of your files.
I am not ready. But if you want, you can look into my current "hack".
Quick&Dirty:
mediashare_userpic_hack
I've migrated all files to Mediashare 3.4
But this isn't just an copy&paste-hack. You have to do a lot of template-work after that.

Comment by:
Herr.Vorragend
06 Nov 2008 - 06:22PM
Do you know which files of Mediashare you have changed?
So we could separate you addition into different function-files.
Example:
modules\Mediashare\pnuser\newfunction.php
modules\Mediashare\pnuserapi\newapifunction.php
modules\Mediashare\plugins\newplugin.php
Or even better:
config\Mediashare\pnuser\newfunction.php
config\Mediashare\pnuserapi\newapifunction.php
config\Mediashare\plugins\newplugin.php
It is quite hard to keep you "hack" up-to-date. We don't have an overview, what was changed inside the original files.
But you idea is good.
I could help you with this, if you want.