Alrighty, I've looked at and typed the word "follow" for long enough that the word's lost all sense of meaning, but I've got an edit for you. Please be sure to follow these directions
precisely, particularly when copy/pasting the provided changes, as broken HTML can really mess up the forum's appearance and may take a bit to sort out via the asynchronous manner of forum posts.
Anyway, here you go:
--
1. Navigate to
admin > structure > layout templates. If you have more than one theme, the layout templates main page has a theme selector at the top right of the section. You'll need to make this adjustment individually for every theme you have now, or create in the future, should you want this change to be present throughout your themes.
2. On the list of available editable pages, click on
user profile. Once on the subsequent page, you'll see several tabs on top of a text box full of HTML and layout template variables; make sure you select the
second tab ("Summary").
3. Presuming you have made no other changes to this template, scroll down to line 130 where you will see a line that says:
{if $[following]}, followed by a bunch of HTML and additional variables. As a quick-and-dirty, this line is the opening to a conditional statement stating
if this user is following others, show the content that appears after this tag. Since we want to add content if the user is
not following anyone, we're going to want to find the closing
{/if} tag on around line 144.
4. Once you find that closing tag, click into the text box and enter a new line
above it. Add the following text in that space:
{else}
<div id="following" class="content-box right-col">
This user is not following anyone.
</div>
5.
Do not add a closing {/if} tag after this statement, as we are using the existing one. Effectively, the statement now reads
if this user is following others, show the content that appears after this tag, otherwise (if they aren't) show this content instead.6. We're going to repeat this exercise for followERs now, which is right below. You should see the opening conditional tag
{if $[follower]} immediately after the closing {/if} in the last section.
7. Similarly, we'll need to find the closing {/if} tag for this statement, which should now be around line 164. As before, enter a new line
above the closing {/if}.
8. Now, add the following:
{else}
<div id="followers" class="content-box right-col">
This user has no followers.
</div>
9. Again,
do not add a closing {/if} tag as we will be utilising the one that already exists. This statement now reads
if this user is being followed by others, show the content that appears after this tag, otherwise show this content.10. Save your changes, and you should be good to go! If the user has followers/is following, you'll see the user icons and names; otherwise, instead of a blank space, you'll see text saying that they have no followers/are not following anyone. Again, this will only be true for the desktop version of the forum.
NOTE: If you want to change the text that appears when the user has no followers and/or is not following, feel free to change those lines; be sure not to delete too much / break any of the tagging that comes before or after either line.
Let me know if you need any additional assistance!