Hacks: Profile Photo HackPosted by: m0ntyon 2005/4/15 6:52:35 12097 reads This hack adds photo upload ability to Xoops 2 User Profile
you can download the hack HERE
see Demo HERE
to test the upload > username = demouser - password = demouser2005
It utilises the same function as the Avatar section but they are both seperate. This means that the photo settings can be customised in exactly the same way as the Avatars are, an extra menu has been added to the system menu in admin which
works exactly the same as the avatar manager.
Photo's can also be controlled by admin in the user settings similar to the way avatrs are.
you can control image size, image width, image height, user post (how many posts are needed before users are allowed to upload)
this hack is tested on Xoops 184.108.40.206 & 220.127.116.11, it may work on earlier/later versions but i have not tested on any others.
if you don't want to risk overwriting existing files, then you can open the files up in an editor and copy the code yourself into your installation. (useful if you have made many hacks already)
all modified code is commented in the files (just search for ' added by m0nty ') and you should be able to identify affected edits.
to install this hack, you need to upload all the files in the archive to your root xoops folder and overwrite all existing. (be sure to backup old files as i take no responsibility for errors)
then find the file mysql.txt in the package, open it up in an editor and run each query in phpmyadmin or whatever tool you use for mysql management, this will create 2 new tables and add 1 row to current xoops_users table, and 5 new rows to xoops_config table.
Newly Added Files: