Hacks

Profile Photo Hack

m0nty  15-Apr-2005 04:07 10137 Reads   20 Comment(s) 
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 2.0.9.2 & 2.0.9.3, 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.

instructions:

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.


files affected:

edituser.php
userinfo.php
misc.php

class/xoopslists.php
kernel/user.php
language/english/global.php
language/english/user.php
language/english/misc.php

modules/system/menu.php
modules/system/constants.php
modules/system/admin/users/main.php
modules/system/admin/users/users.php
modules/system/language/english/modinfo.php
modules/system/language/english/admin.php
modules/system/language/english/admin/preferences.php
modules/system/language/english/admin/users.php
modules/system/templates/system_userinfo.html

Newly Added Files:

kernel/photo.php

modules/system/admin/photos/
modules/system/admin/photos/main.php
modules/system/admin/photos/xoops_version.php
modules/system/language/admin/photos.php

Rating 0/5
Rating: 0/5 (0 votes)
Voting is disabled!


Login

Who's Online

281 user(s) are online (9 user(s) are browsing Publisher)


Members: 0


Guests: 281


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits

Categories