Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Making "Personal Information" on the Accountpage leaner.
Hi there
I am setting up a forum for a page, which is mostly used by a group of people who don't know computers and the internet that well. That's the reason, why i chose vanilla as forum software in the first place, because the basic featureset is so lean, that my users might actually be able to learn how to use it. Up to now i use an own implementation of something that can hardly be called a forum, but that makes it even easier to use.
Additionally those people (doctors) want everything to look really respectable, they don't want anything childish.
Now vanilla satisfies these conditions nearly perfectly, i'm really happy about that, but one little annoying thing remains:
In your Account-Settings, under "Personal Information" you can type in your First Name, Last Name, E-Mail address, account picture an icon and even custom data.
I don't want anybody to be able to set an account picture an icon or additional custom data. The possibility to do this confuses my users (yes, it does!) and it makes them mistrust the webpage. My users don't like the idea, that they can have funny avatars next to their postings.
Most of them won't use the feature, but i want to make sure, that no one even could use it.
So, is there a way to disable those things to appear on the Account-page? I looked through some PHP code to manually disable it, but i am not really used to PHP, i was not able to find the actual code that puts those input boxes on the webpage.
Actually i was wondering, why this is a core-feature anyway, in my oppinion this functionality should be an extension (or at least it should be possible to disable it easily).
Any help is highly appreciated,
Jan.
0
This discussion has been closed.
Comments
Edit themes/vanilla/account_identity_form.php and replace the part from the line 65 to 79:
echo '<li> <label for="txtPicture">'.$this->Context->GetDefinition('AccountPicture').'</label> <input type="text" name="Picture" value="'.$this->User->Picture.'" maxlength="255" class="SmallInput" id="txtPicture" /> <p class="Description"> '.$this->Context->GetDefinition('AccountPictureNotes').' </p> </li> <li> <label for="txtIcon">'.$this->Context->GetDefinition('Icon').'</label> <input type="text" name="Icon" value="'.$this->User->Icon.'" maxlength="255" class="SmallInput" id="txtIcon" /> <p class="Description"> '.$this->Context->GetDefinition('IconNotes').' </p> </li> </ul>';
by
echo '</ul>';
And to be sure, that no avatar or user pictures with be used you can create an extension like that:
<?php /* Extension Name: Vanilla for respectable people Extension Url: http://lussumo.com/addons/ Description: Avatars look childish, so we take them off Version: 1.0 Author: Dinoboff Author Url: http://lussumo.com/community/discussion/4085/making-personal-information-on-the-accountpage-leaner/#Item_2 */ $Context->Session->User->Icon = ''; $Context->Session->User->Picture = ''; ?>
I think that a user could set an avatar even without the form, with a link like that
http://lussumo.com/community/account/?PostBackAction=ProcessIdentity&u=1&Icon=http://domain.com/avatar.gif
where u = your user id and Icon= url to the picture.
Well... I didn't think one of your doctors will try to hack his account page, but who knows, you just need one anachist in your community to mess up your forum and scare the other respectable doctors.