No link for User's Displayed name and Profile picture using Fake-Book theme

Rich Evans Posted in Theme Development 2 years ago

My Environment:

  • Host: DigitalOcean
  • Centos7
  • Apache 2.4.6
  • Haproxy 1.5.18
  • Firewalld 0.6.3
  • PHP 7.4.26
  • MariaDB 10.6.5
  • OSSN 6.1
  • OSSN Theme: Fake-book 6.2

My Question

Using the Fake-book theme.. The user's name and profile picture in the top blue banner are not linked to the user's profile page. Can anyone confirm this? Also.. Is this expected behavior for the current version? .. and if so, would it be a welcomed update if the User's displayed name and picture linked to their profile page? .. If so I will endeavor to get my feet wet with OSSN theme development and add it. But I wanted to ask here before I try to have at it.


us Rich Evans Replied 2 years ago

@Hugo_Cuellar - Just did as you suggested.. It worked like a charm! Thanks!

us Rich Evans Replied 2 years ago

Will try this tonight and report back. Than you!!

cl Erassus ︎ ︎ Replied 2 years ago

@Rich Evans

Hi Rich! i'm not a user of facebook theme, but i will try to help you, and yes, the username in the topbar is not linked to the user page.

Try this:

Edit this file:

themes > facebook > plugins > default > theme > page > elements >

In the line 28 change the line with this:

<a href="<?php echo ossn_loggedin_user()->profileURL(); ?>"><img src="<?php echo ossn_loggedin_user()->iconURL()->smaller;?>" /></a>

And thne line 29 change the line with this:

<span class="name d-none d-sm-inline-block"><a href="<?php echo ossn_loggedin_user()->profileURL(); ?>"><?php echo ossn_loggedin_user()->fullname; ?></a></span>

Now the little box photo and the name is linkeable to the user profile logged in.

enter image description here

You need the change the blue color for something in the .css file so it can be readable.