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

Comment by:
Herr.Vorragend's Avatar
Herr.Vorragend
06 Nov 2008 - 06:22PM
Thank you. But your modificated mediashare-version seems not to be based on the current SVN. (by the way: The topic-modules isn't necessary anymore). It looks like an older 2007er version.

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.

 
Comment by:
Kaik's Avatar
Kaik
07 Nov 2008 - 05:40AM
Ok, to say truth I don't know how "separate you addition into different function-files" its working. I have changed few files and I know which ones and where and I will post them soon today or tommorow. I have changed edit function so I don't know if system will replace hole function from new file.

Thanks for help.
 
Comment by:
Kaik's Avatar
Kaik
08 Nov 2008 - 06:51AM
I have changed files in package so if you can take a look would be nice.

Thanks
 
Comment by:
thilowitt's Avatar
thilowitt
10 Nov 2008 - 07:43AM
You have included the sub-folder "Frontend" in the theme-templates. Will that really overwrite the original Mediashare frontend (I did the same and could not find the new frontend in the Mediashare set-up drop-down-list for frontends)? I have a second question: where in the theme can I locate a changed Mediashare style sheet? I need to have different styles for different themes my users may choose.

Thanks to all
 
Comment by:
Kaik's Avatar
Kaik
10 Nov 2008 - 09:19AM
Hmm it seems to overwrite only HTML files. You should locate modules style sheets in /themes/themename/style/modulename/style.css
 
Comment by:
Herr.Vorragend's Avatar
Herr.Vorragend
11 Nov 2008 - 02:42AM
Please store individual styles-sheets in /config/styles/

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.
 
Only logged in users are allowed to comment. register/log in