Customizing SMF > Modifications and Packages

Add & Create Social Media Icons To Profiles ( SMF 1 & SMF2 )

<< < (25/60) > >>

Andrew Evenstar:
I have a question. I am using 1.1.16 with the ultimate profile.

Is there anyway to have these icons show up on the users actual profile with the included information put into the users' fields? Under "Contact Information"

Has this already been addressed? I'll read through the pages but I wanted to ask first.

This mod is awesome, Thanks! I've already customized it. I removed myspace and I changed Linked In to Live Stream account.

hcfwesker:
Yes, it can be added.  Most likely just add the same edits from Profile.template.php , to where you want it to show on ultimateprofile.template.php


--- Code: ---</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr>
<td><b>', $txt['smi_facebook_title'], ': </b></td>
<td>', !empty($context['member']['options']['facebook']) ? '<a href="http://www.facebook.com/' . $context['member']['options']['facebook'] . '" target="_blank">' . $context['member']['options']['facebook'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_myspace_title'], ': </b></td>
<td>', !empty($context['member']['options']['myspace']) ? '<a href="http://www.myspace.com/' . $context['member']['options']['myspace'] . '" target="_blank">' . $context['member']['options']['myspace'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_twitter_title'], ': </b></td>
<td>', !empty($context['member']['options']['twitter']) ? '<a href="http://www.twitter.com/' . $context['member']['options']['twitter'] . '" target="_blank">' . $context['member']['options']['twitter'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_googleplus_title'], ': </b></td>
<td>', !empty($context['member']['options']['googleplus']) ? '<a href="https://plus.google.com/' . $context['member']['options']['googleplus'] . '" target="_blank">' . $context['member']['options']['googleplus'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_linkedin_title'], ': </b></td>
<td>', !empty($context['member']['options']['linkedin']) ? '<a href="' . $context['member']['options']['linkedin'] . '" target="_blank">' . $context['member']['options']['linkedin'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_youtube_title'], ': </b></td>
<td>', !empty($context['member']['options']['youtube']) ? '<a href="http://www.youtube.com/' . $context['member']['options']['youtube'] . '" target="_blank">' . $context['member']['options']['youtube'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_deviantart_title'], ': </b></td>
<td>', !empty($context['member']['options']['deviantart']) ? '<a href="http://' . $context['member']['options']['deviantart'] . '.deviantart.com/" target="_blank">' . $context['member']['options']['deviantart'] . '</a>'  : '', '</td>
</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
--- End code ---

I just never got around to adding UltProfile edits for SMF1, it was a request from a member that didnt use UltProfile so i didn't make it a priority at the time to add the edits for SMf1

Andrew Evenstar:

--- Quote from: hcfwesker on August 19, 2012, 01:59:56 AM ---Yes, it can be added.  Most likely just add the same edits from Profile.template.php , to where you want it to show on ultimateprofile.template.php


--- Code: ---</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr>
<td><b>', $txt['smi_facebook_title'], ': </b></td>
<td>', !empty($context['member']['options']['facebook']) ? '<a href="http://www.facebook.com/' . $context['member']['options']['facebook'] . '" target="_blank">' . $context['member']['options']['facebook'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_myspace_title'], ': </b></td>
<td>', !empty($context['member']['options']['myspace']) ? '<a href="http://www.myspace.com/' . $context['member']['options']['myspace'] . '" target="_blank">' . $context['member']['options']['myspace'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_twitter_title'], ': </b></td>
<td>', !empty($context['member']['options']['twitter']) ? '<a href="http://www.twitter.com/' . $context['member']['options']['twitter'] . '" target="_blank">' . $context['member']['options']['twitter'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_googleplus_title'], ': </b></td>
<td>', !empty($context['member']['options']['googleplus']) ? '<a href="https://plus.google.com/' . $context['member']['options']['googleplus'] . '" target="_blank">' . $context['member']['options']['googleplus'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_linkedin_title'], ': </b></td>
<td>', !empty($context['member']['options']['linkedin']) ? '<a href="' . $context['member']['options']['linkedin'] . '" target="_blank">' . $context['member']['options']['linkedin'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_youtube_title'], ': </b></td>
<td>', !empty($context['member']['options']['youtube']) ? '<a href="http://www.youtube.com/' . $context['member']['options']['youtube'] . '" target="_blank">' . $context['member']['options']['youtube'] . '</a>'  : '', '</td>
</tr><tr>
<td><b>', $txt['smi_deviantart_title'], ': </b></td>
<td>', !empty($context['member']['options']['deviantart']) ? '<a href="http://' . $context['member']['options']['deviantart'] . '.deviantart.com/" target="_blank">' . $context['member']['options']['deviantart'] . '</a>'  : '', '</td>
</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
--- End code ---

I just never got around to adding UltProfile edits for SMF1, it was a request from a member that didnt use UltProfile so i didn't make it a priority at the time to add the edits for SMf1

--- End quote ---

Thanks I was able to place the info on the ultimate profile, but the information just shows up as text, and not the icons. Is it supposed to be like that? Is it easy to change? Thanks!

hcfwesker:

--- Quote from: Andrew Evenstar on August 19, 2012, 05:23:36 AM ---
Thanks I was able to place the info on the ultimate profile, but the information just shows up as text, and not the icons. Is it supposed to be like that? Is it easy to change? Thanks!

--- End quote ---

Yes, because the code was for regular profiles that just shows text.  You can try this, but even if a member doesn't add info, it'll still show the icon.


--- Code: --- echo '
<td><img src="' . $settings['images_url'] . '/smifacebook.png" alt="Facebook" border="0" /></a></td>
<td>', !empty($context['member']['options']['facebook']) ? '<a href="http://www.facebook.com/' . $context['member']['options']['facebook'] . '" target="_blank">' . $context['member']['options']['facebook'] . '</a>'  : '', '</td>
</tr><tr>
<td><img src="' . $settings['images_url'] . '/smimyspace.png" alt="MySpace" border="0" /></a></td>
<td>', !empty($context['member']['options']['myspace']) ? '<a href="http://www.myspace.com/' . $context['member']['options']['myspace'] . '" target="_blank">' . $context['member']['options']['myspace'] . '</a>'  : '', '</td>
</tr><tr>
<td><img src="' . $settings['images_url'] . '/smitwitter.png" alt="Twitter" border="0" /></a></td>
<td>', !empty($context['member']['options']['twitter']) ? '<a href="http://www.twitter.com/' . $context['member']['options']['twitter'] . '" target="_blank">' . $context['member']['options']['twitter'] . '</a>'  : '', '</td>
</tr><tr>
<td><img src="' . $settings['images_url'] . '/smigoogleplus.png" alt="GooglePlus" border="0" /></a></td>
<td>', !empty($context['member']['options']['googleplus']) ? '<a href="https://plus.google.com/' . $context['member']['options']['googleplus'] . '" target="_blank">' . $context['member']['options']['googleplus'] . '</a>'  : '', '</td>
</tr><tr>
<td><img src="' . $settings['images_url'] . '/smilinkedin.png" alt="LinkedIn" border="0" /></a></td>
<td>', !empty($context['member']['options']['linkedin']) ? '<a href="' . $context['member']['options']['linkedin'] . '" target="_blank">' . $context['member']['options']['linkedin'] . '</a>'  : '', '</td>
</tr><tr>
<td><img src="' . $settings['images_url'] . '/smiyoutube.png" alt="Youtube" border="0" /></a></td>
<td>', !empty($context['member']['options']['youtube']) ? '<a href="http://www.youtube.com/' . $context['member']['options']['youtube'] . '" target="_blank">' . $context['member']['options']['youtube'] . '</a>'  : '', '</td>
</tr><tr>
<td><img src="' . $settings['images_url'] . '/smideviantart.png" alt="Deviantart" border="0" /></a></td>
<td>', !empty($context['member']['options']['deviantart']) ? '<a href="http://' . $context['member']['options']['deviantart'] . '.deviantart.com/" target="_blank">' . $context['member']['options']['deviantart'] . '</a>'  : '', '</td>';
--- End code ---

Conay:
Hi hcfwesker,
Thanks for the great mod :)

I wanted to ask if you would modify the modification (:P) to allow people to add additional fields (for social media stuff exclusively) OR if you'd be able to add Fanfiction.net/FictionPress to your list of social media sites?

Thanks.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version