1. Michael729
  2. Support
  3. Wednesday, June 13 2018, 09:34 PM
In the Social Network plugin, when looking at a person's profile the default view is Profile. I would like to change the name of that and also change the default to the Info tab (and change its name as well).

How do I make those changes?
Attachments (1)
admin Accepted Answer
Admin
Hi,
follow these steps to customize these texts:
- Access to Admin Panel (http://docs.easy-profile.com/index.php/article/social-network-configuration)
- Go to Theme Manager
- Choose "SocialNetwork Theme"
- Choose file Users/view.ctp on left menu
- Click on button "Copy"*** and copy it in "Blue Theme"
- Come back to Theme Manager and choose "Blue Theme"
- You will see your override to customize, basically these texts are at lines 127 and 130, you can replace "profile" and "info" with what you prefer ;)

NOTE: This way create a override for layout file called "Users/view.ctp" and after future upgrade you does not loss your override.
  1. more than a month ago
  2. Support
  3. # 1
Michael729 Accepted Answer
thank you for that. I was able to change the items there.. but you didn't answer the second part of my question:

how do i change the default view to show the Info tab when a profile is first opened?
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Ops...sorry :(

Now you have already created the override, so:
- open override from Theme Manager->Blue Theme->Users/view.ctp
- at line 260 replace this:
echo $this->element('ajax/profile_detail');
with this:
{ ?><script>jQuery(document).ready(function($){$('#browse [data-url="<?php echo $this->request->base?>/users/ajax_info/<?php echo $user['User']['id']?>"]').click();});</script><?php }
  1. more than a month ago
  2. Support
  3. # 3
Michael729 Accepted Answer
thank you for the excellent support!
  1. more than a month ago
  2. Support
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.