hipp0
New Member
Posts: 40
inherit
261248
0
Jul 2, 2020 4:25:52 GMT -8
hipp0
40
May 2020
hipp0
|
Post by hipp0 on May 25, 2020 12:03:50 GMT -8
Forum URL: zzz-starborne.proboards.comI figured out how to remove the social section from profile. Now I am trying to remove the menu word SOCIAL. Any help is appreciated.
|
|
#e61919
Support Staff
224482
0
1
Apr 23, 2024 17:06:30 GMT -8
Scott
23,276
August 2015
socalso
|
Post by Scott on May 25, 2020 12:23:06 GMT -8
hipp0 Fyi your forum URL is: https://zzz-starborne.proboards.com/ not www.zzz-starborne-proboards.com Our forum URLs do not have "www" preceding them. ------------------------------- The instant messaging fields are hard-coded. Your best bet is to use Custom Profile Fields to add this information to the members' profiles.
|
|
hipp0
New Member
Posts: 40
inherit
261248
0
Jul 2, 2020 4:25:52 GMT -8
hipp0
40
May 2020
hipp0
|
Post by hipp0 on May 25, 2020 12:28:48 GMT -8
hipp0 Fyi your forum URL is: https://zzz-starborne.proboards.com/ not www.zzz-starborne-proboards.com Our forum URLs do not have "www" preceding them. ------------------------------- The instant messaging fields are hard-coded. Your best bet is to use Custom Profile Fields to add this information to the members' profiles. Okay thanks.
I searched the support forums it doesn't seem the social section can be modified. I see how to remove the section. Is there a way to remove the menu item for it as well?
I remove this: <div class="js-edit social-edit $[edit_area.display_social]"> $[edit_social] </div>
In edit user profile under layout templatess.
Just trying to figure out how to remove the menu item SOCIAL.
|
|
#e61919
Support Staff
224482
0
1
Apr 23, 2024 17:06:30 GMT -8
Scott
23,276
August 2015
socalso
|
Post by Scott on May 25, 2020 12:44:22 GMT -8
hipp0 , removing that will remove the content that displays under the Social tab, but not the tab itself. To remove the tab and content go to Admin > Structure > Layout Templates, Edit User Profile layout template Replace this code: {foreach $[menu]} <!-- replace href with class --> <li{if $[menu.active]} class="ui-active"{/if}><a class="js-tab" data-page="$[menu.href]">$[menu.text]</a></li> {/foreach} With this code: {foreach $[menu]} {if $[menu.text] != "Social"} <li{if $[menu.active]} class="ui-active"{/if}><a href="$[menu.href]">$[menu.text]</a></li> {/if} {/foreach} Save changes.
|
|
hipp0
New Member
Posts: 40
inherit
261248
0
Jul 2, 2020 4:25:52 GMT -8
hipp0
40
May 2020
hipp0
|
Post by hipp0 on May 25, 2020 12:54:43 GMT -8
Thanks Scott! Now that I think about it how do I remove badges also?
&& $[menu.text] != "Badges"}
{foreach $[menu]} {if $[menu.text] != "Social"} <li{if $[menu.active]} class="ui-active"{/if}><a href="$[menu.href]">$[menu.text]</a></li> {/if} {/foreach}
|
|
hipp0
New Member
Posts: 40
inherit
261248
0
Jul 2, 2020 4:25:52 GMT -8
hipp0
40
May 2020
hipp0
|
Post by hipp0 on May 25, 2020 12:59:49 GMT -8
I figured it out, I had to remove the bracket around Social.
{foreach $[menu]} {if $[menu.text] != "Social" && $[menu.text] != "Badges"} <li{if $[menu.active]} class="ui-active"{/if}><a href="$[menu.href]">$[menu.text]</a></li> {/if} {/foreach}
|
|