MyBB Community Forums

Full Version: custom profile default filled in
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I was wondering if there is a way that when say a new member joins, the site will automatically make a few of the custom profile field filled in with something until the user decides to change it?
bumping this up

Can someone move this to 1.6 support?
bumping, still haven't found a way to do this yet unfortunately
You could do it with a plugin, by adding a separate field to the custom profile fields management page. But, an easier way to do it would just be to display the default information you want on the profile/postbit with the PHP in Templates plugin.

So for example, you could do:

<if $post['fidX'] == "" then>
Default Information Here
<else />
{$post['fidX']}
</if>
Do I put that in the member_profile template? I am entirely recoding my profiles so I take out the {$profilefields} thing to put them each in individually.
The code I used above would be for the postbit. For the profiles, you can use the $userfields['fidX'] instead of $post['fidX']. Works fine for me on RoW. Smile
Thank you so much Big Grin

nevermind, got it XD thanks again! <3
Testing both of these out and for some reason I'm having some issues. I have it set up here in the profile but when I put in the custom urls they are not changing from the default image.
http://myth-rpg.com/forum/member.php?act...file&uid=4
Then in the postbit they don't show up for me, but a friend says they do for her. Not sure why. http://myth-rpg.com/forum/showthread.php...d=34#pid34
Can you post the code that you are currently using for both? I see the same image on both the profile and the postbit, but I'm not sure which is your default image.
sure :3 the default images are these two -
http://myth-rpg.com/forum/images/avatars/default2.png
http://myth-rpg.com/forum/images/avatars/default1.png

this in the profile

<if $post['fid1'] == "" then>
<img src="/forum/images/avatars/default1.png" align="left" class="icons" style="position: relative; margin-top: -50px; height: 130px; width: 130px;">
<else />
<img src="{$userfields['fid1']}" align="left" class="icons" style="position: relative; margin-top: -50px; height: 130px; width: 130px;">
</if>


<if $post['fid2'] == "" then>
<img src="/forum/images/avatars/default2.png" align="left" class="icons" style="position: relative; margin-top: -95px; margin-left: 110px; height: 110px; width: 110px;">
<else />
<img src="{$userfields['fid2']}" align="left" class="icons" style="position: relative; margin-top: -95px; margin-left: 110px; height: 110px; width: 110px;">
</if>

this in the postbit


<if $post['fid1'] == "" then>
<img src="/forum/images/avatars/default1.png" align="left" class="icons" style="position: relative; margin-top: -50px; height: 130px; width: 130px;">
<else />
<img src="{$post['fid1']}" align="left" class="icons" style="position: relative; margin-top: -50px; height: 130px; width: 130px;">
</if>

<if $post['fid2'] == "" then>
<img src="/forum/images/avatars/default2.png" align="left" class="icons" style="position: relative; margin-top: -95px; margin-left: 110px; height: 110px; width: 110px;">
<else />
<img src="{$post['fid2']}" align="left" class="icons" style="position: relative; margin-top: -95px; margin-left: 110px; height: 110px; width: 110px;">
</if>

Pages: 1 2