Uutiset:

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

Main Menu
Advertisement:

Social Media Icons Mod: Default form value that shows up for all unless changed?

Aloittaja Anarchology, marraskuu 22, 2013, 01:54:35 AP

« edellinen - seuraava »

Anarchology

I've been playing around with the Add & Create Social Media Icons MOD in order to remove a couple unwanted fields as well as add some custom ones. Once of which is add the feature of having a custom one setup that would direct to a member's in-side blog. However, I want to it setup so that by default for every member, the value is not only default (seen already typed in when changing their profile), but also is shown as default under their user info in every post until they otherwise change it to their liking.

I figure that the block of code in the mod that would need to be modified is in Theme/defaul/Profile.Template.php. The original snippet of it for Facebook is below:

<tr>
<td><b>', $txt['smi_facebook_title'], ':</b><div class="smalltext">', $txt['smi_facebook_desc'], '</div></td>
<td><input type="text" name="default_options[facebook]" maxlength="25" size="24" value="', @$context['member']['options']['facebook'], '" /></td>
</tr>


I tried just adding text to value="', but that only created text that then would just disappear. I'm trying to figure out a way to make that default value live for everyone until they manage to go in and change it to their liking. I feel like I'm just some simple snippet of code away from accomplishing it, but I'm scratching my head to say the least.

Thanks in advance!

Arantor

Any questions about a mod should be directed to the 'support and comments for this mod' thread.
Holder of controversial views, all of which my own.


Advertisement: