Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorLucas3677
    • CommentTimeAug 23rd 2007 edited
     # 1
    After installing the Account Pictures extension on my test forum, I had realized that there was no way to remove the photo from being displayed. Here is a quick fix for those interested.


    1. Open the default.php file and find the line with if( $this->PostBackAction == 'ProcessAccountPictures' ) {

    2. Below that line insert the following:
      if (isset($_REQUEST['btnRemoveAccountPicture'])) {
      $User->Picture = '';
      $UserManager->SaveIdentity($User);
      }

      if (isset($_REQUEST['btnRemoveAccountIcon'])) {
      $User->Icon = '';
      $UserManager->SaveIdentity($User);
      }

    3. Find the line <input type="file" name="AccountIcon" value="" class="SmallInput" style="width: 300px;" id="txtAccountIcon" /> and add <input type="submit" name="btnRemoveAccountIcon" value="Remove" />

    4. Find the line <input type="file" name="AccountPicture" value="" class="SmallInput" style="width: 300px;" id="txtAccountPicture" /> and add <input type="submit" name="btnRemoveAccountPicture" value="Remove" />

    5. Save and upload!



    I am still new to the whole coding style of Vanilla so this may not be the prettiest way, but nonetheless, it's a temporary fix.

    (By the way, this does not remove the image itself from the server, it only removes it from displaying.)
    •  
      CommentAuthorJazzman
    • CommentTimeAug 24th 2007
     # 2
    You can also go to the "Personal Information" page and remove the links from there :) But your solution is better for the average user ;)
    • CommentAuthorLucas3677
    • CommentTimeAug 24th 2007
     # 3
    Oh... I can't believe I missed that.
Add your comments
    Username Password
  • Format comments as