| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 5614|Reply: 0
Collapse the left

Mobile Avatar Uploader Script by Me

[Copy link]
Post time: 2015-05-07 09:02 From the mobile phone
| Show all posts |Read mode
Edited by rameshkiran114 at 2015-5-12 09:07

Name :
Mobile Avatar Uploader

Supported in :
All Discuz Versions

Screenshots/Demo :




Procedure :
Download the below File and Extract it to your device memory.



Now Open FTP client Of Your site and Go to Path source / module / home /
Here Upload the home_avatarupload.php file, which are extracted before.


Now Go to Path template / default / mobile / home /
Here Replace the space_profile.htm file with Old File.

Now Open Root Folder Of FTP client.

Here Download the home.php file And Edit it Using Any Text Editor.
In That File Find :
if(!in_array($mod, array('space', 'spacecp', 'misc', 'magic', 'editor', 'invite', 'task', 'medal', 'rss', 'follow')))
Change It as :
if(!in_array($mod, array('space', 'spacecp', 'misc', 'magic', 'editor', 'invite', 'task', 'medal', 'rss', 'follow', 'avatarupload')))

That's it...
Now Go to Yoursite and Click On Username to Upload Avatar

Enjoy~

updated :
1. Changed Resizing method. (crops image to perfect width and height.)
2. Uploaded original image saved as big avatar and resizes it as middle or small pics.

New Update :
Added File Checking - Which checks the uploaded file image or not.

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

Rate

Number of participants 2Rating +2 Collapse Reason
Pme + 1 Usefull
Ananthavas + 1 Very nice!

View Rating Log

You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-25 10:04 GMT+3 , Processed in 0.029012 sec., 9 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list