Add & Create Social Media Icons To Profiles

Started by hcfwesker, January 30, 2012, 10:06:52 AM

Previous topic - Next topic

CheeseHead05

I believe I have it correct now, but its not showing up on the forum profile..

hcfwesker


CheeseHead05


CheeseHead05

Can someone tell me why isnt my custom icons appearing in my forum profile?

hcfwesker

please give more information, we've already ran around in circles because of info you werent providing and using the options incorrectly.  if you want thororugh support, provide as MANY details as possible and be clear on what th issue is

.... do you mean theyre not displaying on members profile page or they dont appear on the modify profile page. do they appear anywhere else. are you using a custom theme? have you checked the default curve theme?  have you checked the php files relating to profiles to confirm edits were added correctly?  these little details help speed up the support process.

CheeseHead05

#325
hcfwesker,

Sorry for the confusion. I am using a custom theme "greengrass" from the customize page. The instagram icon is not showing on the forum profile. And I would assume since it is showing up on the edit page, it should show up in the forum profile as well, right? and I have not checked the php files..

avguste

Hello

I just installed this mod. How can I get this mod to work with the Ultimate Profile?
I have been looking and looking and cant find a solution. Any help would be great

thank you

TheListener

The mod works with Ultimate Profile with no problems.

Did you have any errors on install?


TheListener

Quote from: CheeseHead05 on June 19, 2013, 02:28:23 PM
hcfwesker,

Sorry for the confusion. I am using a custom theme "greengrass" from the customize page. The instagram icon is not showing on the forum profile. And I would assume since it is showing up on the edit page, it should show up in the forum profile as well, right? and I have not checked the php files..


I also use greengrass.

;)

Have you placed the instagram image into the themes image folder Cheesy?


avguste

Quote from: Old Fossil on June 20, 2013, 12:29:42 PM
The mod works with Ultimate Profile with no problems.

Did you have any errors on install?



No errors at all.
I activate the Ultimate Profile, but the social buttons don't show up

TheListener

Quote from: avguste on June 20, 2013, 12:35:13 PM
Quote from: Old Fossil on June 20, 2013, 12:29:42 PM
The mod works with Ultimate Profile with no problems.

Did you have any errors on install?



No errors at all.
I activate the Ultimate Profile, but the social buttons don't show up

Do they show on your ordinary profile?

avguste


hcfwesker

also, did you already have ultimate profiles installed BEFORE installing this mod?

@Cheesy, like Fossil asked, did you add your custom image to your themes images folder.  have you checked on the smf default curve theme .... which i already asked but you gave no answer.

thanx for the extra hand, Fossil :)

TheListener


TheListener

Quote from: hcfwesker on June 20, 2013, 12:53:14 PM

thanx for the extra hand, Fossil :)

Anytime Wesky.

;)

Reminds me Is it true that msn have dropped their message thingy?


CheeseHead05

hcfwesker,

Ive tried all of that still no resolution...

hcfwesker

Quote from: CheeseHead05 on June 23, 2013, 08:47:08 PMI've tried all of that still no resolution...

Then you didn't install the MOd correctly or some edits failed on install and you installed the mod anyways.

Instead of replying with "none of that worked ...."  Let's make a checklist for each item.  Answer EACH question individually with your findings because obviously you haven't, yet.  Saying "I tried that and it didn't work"  tells me nothing.

1. Do the icons appear anywhere else besides not showing on the profile page.  ( Seriously, check all pages they're suppose to display on).  PM, posts, profile, ultimate profile.
2.  Do ANY of the default social media icons show, like facebook or youtube?
3.  Have you checked the SMF Default Curve theme? 
4.  Have you checked the php files relating to profiles to confirm edits were added correctly?
5.  Go through the parse page on the MOD download page and check ALL edits were added correctly, and for files on your custom theme.
6.  Did you upload your image to the default AND custom theme's images folder?

I'm sorry dude, I'm just getting more on edge asking questions for details but i get a short generic response in return.  This is going to be an issue with coding most likely.  Problem is I can't hop on your databse and site and do the searching myself, so we have to narrow down the problem to decide what files to check.  You're the only one having this issue so it obviously has to be an install/coding issue on your part.






Mark S

#337
Sorry to butt into this intense tutelage but, I have 2, minor problems with how the social media icons display in the mini-profile on forum posts and I could use some help.

I am using the default curve theme with custom profile fields and order custom profile fields mods.

First issue is a display alignment issue -  The social media icons have skewed the alignment of the first two additional custom profle fields which appear in the mini-profile next to the forum posts. 
See attachment one - This is the how the displayed custom profile fields appeared before the Soc Media Icon mod was installed.
See attachment two - This shows how the first two additional custom profile fields appear after the mod was installed.

It appears to me to be a display.template issue but, I'm not sure and if it is, I don't know to change the coding to move the first, custom profile field under the social media icons instead of next to them.

The second issue was a real curve ball.  I don't have the MSN messenger icons marked active at all but, that (hated) butterfly just flew into the picture all by itself and, when hovering over it, it shows an email account I haven't used in years  ???
See attachment 3.

Below is the code above and below the Social Media Icon Mod from the display.template file in case you need to look at it.

I hope this was sufficient info to determine the fix.  Nice mod and you're really putting a lot of efffort into supporting it.

EDIT - AFTER posting this (of course), I had a dumb idea... just move the mod code below the custom profile field mod code. 

It worked and the first was solved.   It must have been something with the ending tag of the mod code not working with displaying the custom profile fields mod code starting or something.  However, that butterfly issue still remains.

         // Show their personal text?
         if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
            echo '
                        <li class="blurb">', $message['member']['blurb'], '</li>';

         // Any custom fields to show as icons?
         if (!empty($message['member']['custom_fields']))
         {
            $shown = false;
            foreach ($message['member']['custom_fields'] as $custom)
            {
               if ($custom['placement'] != 1 || empty($custom['value']))
                  continue;
               if (empty($shown))
               {
                  $shown = true;
                  echo '
                        <li class="im_icons">
                           <ul>';
               }
               echo '
                              <li>', $custom['value'], '</li>';
            }
            if ($shown)
               echo '
                           </ul>
                        </li>';
         }

         // This shows the popular messaging icons.
         if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
            echo '
                        <li class="im_icons">
                           <ul>
                              ', !empty($message['member']['icq']['link']) ? '<li>' . $message['member']['icq']['link'] . '</li>' : '', '
                              ', !empty($message['member']['msn']['link']) ? '<li>' . $message['member']['msn']['link'] . '</li>' : '', '
                              ', !empty($message['member']['aim']['link']) ? '<li>' . $message['member']['aim']['link'] . '</li>' : '', '
                              ', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
                           </ul>
                        </li>';

         // This shows the social media icons.
         if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
            echo '
                        <li class="im_icons">
                           <ul>
                              ', !isset($context['disabled_fields']['facebook']) && !empty($message['member']['facebook']['link']) ? '<li>' . $message['member']['facebook']['link'] . '</li>' : '', '
                              ', !isset($context['disabled_fields']['myspace']) && !empty($message['member']['myspace']['link']) ? '<li>' . $message['member']['myspace']['link'] . '</li>' : '', '
                              ', !isset($context['disabled_fields']['twitter']) && !empty($message['member']['twitter']['link']) ? '<li>' . $message['member']['twitter']['link'] . '</li>' : '', '
                              ', !isset($context['disabled_fields']['googleplus']) && !empty($message['member']['googleplus']['link']) ? '<li>' . $message['member']['googleplus']['link'] . '</li>' : '', '
                              ', !isset($context['disabled_fields']['linkedin']) && !empty($message['member']['linkedin']['link']) ? '<li>' . $message['member']['linkedin']['link'] . '</li>' : '', '
                              ', !isset($context['disabled_fields']['youtube']) && !empty($message['member']['youtube']['link']) ? '<li>' . $message['member']['youtube']['link'] . '</li>' : '', '
                              ', !isset($context['disabled_fields']['deviantart']) && !empty($message['member']['deviantart']['link']) ? '<li>' . $message['member']['deviantart']['link'] . '</li>' : '', '
                              ', !isset($context['disabled_fields']['pinterest']) && !empty($message['member']['pinterest']['link']) ? '<li>' . $message['member']['pinterest']['link'] . '</li>' : '', '';

         // Any custom fields with Social Media?
         if (!empty($message['member']['custom_fields']))
         {
            $shown = false;
            foreach ($message['member']['custom_fields'] as $custom)
            {
               if ($custom['placement'] != 3 || empty($custom['value']))
                  continue;
               if (empty($shown))
               {
                  $shown = true;
               }
               echo '
                              <li><a href="', $custom['value'], '" title="', $custom['title'], ' - ', $custom['value'], '" /><img src="', $settings['images_url'], '/', $custom['customsmiicon'], '" /></a></li>';
            }
            if ($shown)
               echo '
                           </ul>
                        </li>';
         }

         // Show the profile, website, email address, and personal message buttons.
         if ($settings['show_profile_buttons'])
         {
            echo '
                        <li class="profile">
                           <ul>';
            // Don't show the profile button if you're not allowed to view the profile.
            if ($message['member']['can_view_profile'])
               echo '
                              <li><a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt['view_profile'] . '" title="' . $txt['view_profile'] . '" />' : $txt['view_profile']), '</a></li>';

            // Don't show an icon if they haven't specified a website.
            if ($message['member']['website']['url'] != '' && !isset($context['disabled_fields']['website']))
               echo '
                              <li><a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank" class="new_win">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $message['member']['website']['title'] . '" />' : $txt['www']), '</a></li>';

            // Don't show the email address if they want it hidden.
            if (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
               echo '
                              <li><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';

            // Since we know this person isn't a guest, you *can* message them.
            if ($context['can_send_pm'])
               echo '
                              <li><a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']) . '" />' : ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']), '</a></li>';

            echo '
                           </ul>
                        </li>';
         }

         // Any custom fields for standard placement?
         if (!empty($message['member']['custom_fields']))
         {
            foreach ($message['member']['custom_fields'] as $custom)
               if (empty($custom['placement']) || empty($custom['value']))
                  echo '
                        <li class="custom">', $custom['title'], ': ', $custom['value'], '</li>';
         }

         // Are we showing the warning status?
         if ($message['member']['can_see_warning'])
            echo '
                        <li class="warning">', $context['can_issue_warning'] ? '<a href="' . $scripturl . '?action=profile;area=issuewarning;u=' . $message['member']['id'] . '">' : '', '<img src="', $settings['images_url'], '/warning_', $message['member']['warning_status'], '.gif" alt="', $txt['user_warn_' . $message['member']['warning_status']], '" />', $context['can_issue_warning'] ? '</a>' : '', '<span class="warn_', $message['member']['warning_status'], '">', $txt['warn_' . $message['member']['warning_status']], '</span></li>';
      }
      // Otherwise, show the guest's email.
      elseif (!empty($message['member']['email']) && in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
         echo '
                        <li class="email"><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';





Fat_Man

Got an error trying to install the 1.1.0 zip.

21. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test failed

Underneath it says....

1. Add Before ./Themes/default/languages/Modifications.english-utf8.php Test failed

Any idea whats causing this?

Thanks

Kindred

probably another mod which incorrectly changed something like the ?> at the end of the file...

your modifications file should end with ?> on a line by itself, with nothing after it.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: