The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Profile modification (avatar/userpic) issue
Hey everyone, bit hard to explain in one line (topic title).
We figured, it would be twice as easy to combine the Avatar upload and the profile picture upload under 1 single page (Avatar and Profile picture upload ) We managed to do this quite simply, and I could add 90% of the code to the avatarupload hook. But I still had to manually edit 2 lines on profile.php, namely. an if-statement. The inbuild upload system was never build for the following case: "What if I do not change my avatar at all". so I had to add something like the following Code:
if (!empty($vbulletin->GPC['upload']['tmp_name']) OR $vbulletin->GPC['avatarurl'] != 'http://www.') { //insert normal code here } I guess it could be done with 2 custom plugins, but 2 plugins for 2 lines. I'm sure some of you guys had this problem before. How did/do you solve it? Thanks in forward. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|