| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 11792|Reply: 12
Collapse the left

About Mobile Avatar upload Feature

[Copy link]
Post time: 2013-11-27 16:20
| Show all posts |Read mode
Edited by Ananthavas at 2013-11-27 21:30

For mobile users, it's impossible to upload avatar, since most mobile browsers doesn't support flash..
However, UC FORUM(Official Forum of UC Browser) has a feature, in which users can upload avatar without using flash function, but just by browsing to their profile page in mobile mode & using a usual file upload option, just like below:

After clicking submit button, the avatar will get uploaded successfully..
Being curious about this, I just peeked into their space_profile.htm, which is located at http://forum.ucweb.com/template/ ... e/space_profile.htm
By viewing the source code of the above page, we can see something like this:

  1. <form action="home.php?mod=avatarupload&mobile=yes" method="post"
  2.                     enctype="multipart/form-data">
  3.                     <input type="file" name="file" id="file" />
  4.                     <br />
  5.                     <input type="submit" name="submit" value="{lang submit}" />
  6.             </form>
Copy the Code
I tried to implement this on our forum, but it failed, since their is nothing like "home.php?mod=avatarupload" written in Discuz..
However, the page can be designed like the above, with upload form embedded..
Anyone knows, how to get this "home.php?mod=avatarupload" thing defined somewhere?
Vot? Kaaleth? Anyone?

This Query is made on the behalf of me & RaviPratap bro..


This post contains more resources

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

x

 Russia

Post time: 2013-11-27 18:35
| Show all posts
Good idea.
It would be cool to ask the UC admins to give their code hack to us.
Post time: 2013-11-28 04:14
| Show all posts
vot 2013-11-27 20:35
Good idea.
It would be cool to ask the UC admins to give their code hack to us.

Not so cool idea.already asked them and got no response.
So i think you will have to ask them yourself since You are of high authority.
 Author| Post time: 2013-11-28 04:28 From the mobile phone
| Show all posts
vot 2013-11-27 20:35
Good idea.
It would be cool to ask the UC admins to give their code hack to us.

Some of us had already asked them(since long time ago).. But they are not disclosing anything...Maybe its because we are just members of that forum.
It'll be great, if u can ask them about this.. I think they'll reply to you, since u have proper privileges..
We'll provide the contact details..

 Russia

Post time: 2013-11-28 07:38
| Show all posts
Anyone knows, how to get this "home.php?mod=avatarupload" thing defined somewhere?

I think, they used not a good method.
It is better to use a default upload link
/home.php?mod=spacecp&ac=avatar
but modify the upload algorithm and remove the Flash uploader.
Post time: 2013-11-28 15:07
| Show all posts
vot 2013-11-28 09:38
I think, they used not a good method.
It is better to use a default upload link
/home.php?mod=space ...

But they have the uploader in the pc page.and it works fine to say......so you got any thing more for us....?
 Author| Post time: 2013-11-28 16:51
| Show all posts
vot 2013-11-28 09:38
I think, they used not a good method.
It is better to use a default upload link
/home.php?mod=space ...

Where is the current avatar upload algorithm defined?
I mean which file?
Any clues?

Comments

Any progress coder....?  Post time 2013-11-29 13:03

 Russia

Post time: 2013-11-28 18:41
| Show all posts
/uc_client/client.php:
function uc_avatar()

/uc_server/control/user.php:
function onuploadavatar()
function onrectavatar()

Rate

Number of participants 1Rating +1 Collapse Reason
Ananthavas + 1 Thanks..

View Rating Log

 Author| Post time: 2013-11-29 15:26
| Show all posts
Edited by Ananthavas at 2013-11-29 17:27
ravipratap95: Any progress coder....?

@Ravipratap,
well...I'm not a CODER yet...
so it's too much confusing for me to dig into such complex codings..
That's why  this thread was made..
Let's Hope for someone to help us...or try to implement what vot said by any means..that's all we can do now...
Post time: 2013-12-01 15:26
| Show all posts
Ananthavas 2013-11-29 17:26
@Ravipratap,
well...I'm not a CODER yet...
so it's too much confusing for me to dig into such co ...

Yeah~....meanwhile ill try asking UC team again for the code....with the right words i think they may tell...
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-22 17:19 GMT+3 , Processed in 0.090173 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