News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Adding an Editable profile field

Started by Dastle, July 03, 2010, 03:46:30 AM

Previous topic - Next topic

Dastle

I need to know how to add something in this area.


Doesn't have to be a profile field, I just need to know how to add some extra text there.



I'm pretty sure you have to edit something here?...

// Are there any custom profile fields - if so print them!
   if (!empty($context['custom_fields']))
   {
      if ($lastItem != 'hr')
         echo '
                  <hr width="100%" size="1" class="hrcolor" />'; MARKMARK

      echo '
                  <dl>';

      foreach ($context['custom_fields'] as $field)
      {
         echo '
                     <dt>
                        <strong>', $field['name'], ': </strong><br />
                        <span class="smalltext">', $field['desc'], '</span>
                     </dt>
                     <dd>
                        ', $field['input_html'], '
                     </dd>';
      }

      echo '
                  </dl>';

   }

Surf3rDud3

What version? 2.0 RC3?

To enable this feature
Admin > Core Features > Enable Advanced Profile Fields

To edit and add:
Go to Features and Options > Profile Fields.

Then add what you like :)


Dastle

That'll definitely be helpful in the future, thanks, but I wish to only add a link, not a field. :(

Surf3rDud3

Then if you want to add a link in the Fields Section I would think you would need to actually edit the code. I have no idea where or what code line. Maybe someone else will be able to help. I've messed with codes but not with this section or part.

Dastle

I found out how, I made my own modification :)

Surf3rDud3


Pupo


Advertisement: