The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Edit Avatar and Profile Pic on same page
I would really love to be able to have the Edit Avatar and Edit Profile Picture on the same page. It's a little ambiguous having them separate. I copy pasted the modifyavatar template to the top of the modifyprofilepic template and changed the modifyavatar bit to <form enctype="multipart/form-data" action="profile.php?do=updateprofilepic" method="post"> (fromt of "?do=updateavatar")
I am able to upload and change both images from the same page but the profile pics are not showing up on the edit page. It appears as though there is no picture. Can somebody help me out please? Thanks. --------------- Added [DATE]1296658727[/DATE] at [TIME]1296658727[/TIME] --------------- Can somebody please help me? |
#2
|
|||
|
|||
Can anybody offer me some support please?
Thanks. |
#3
|
|||
|
|||
I think the profile picture isn't showing up because it's only included in the template if the code sets $show['profilepic'] to true, and that only happens if profile.php thinks you're editing the profile picture (do=editprofilepic), and obviously "do" can't be editavatar and editprofilepic at the same time. You might be able to make a plugin using hook location profile_editavatar_start then copy the code from the "$_REQUEST['do'] == 'editprofilepic'" section of profile.php.
Or if you don't want to tackle that, there might be some way to modify the template to handle the possibility of no profile picture without using the $show['profilepic'] variable (although the 'editprofilepic' code also handle permissions and max sizes, etc, so it's probably best to try the plugin thing). |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|