News: Welcome to the TinyPortal Support site.

Login  |  Register
* * *
TinyPortal on Twitter
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 21, 2018, 04:48:34 PM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 183746
  • Total Topics: 20457
  • Online Today: 57
  • Online Ever: 383
  • (January 02, 2015, 05:58:49 AM)
Users Online
Users: 1
Guests: 30
Total: 31

Skinz





amazon.com

Author Topic: Remove TP Button from Profile  (Read 743 times)

0 Members and 1 Guest are viewing this topic.

Offline Skb

  • Jr. Member
  • **
  • Posts: 84
    • Metabolically Challenged
Remove TP Button from Profile
« on: November 28, 2017, 05:32:03 AM »
I've tried the tricks mentioned here
https://www.tinyportal.net/index.php?topic=34947.msg280449#msg280449
but came up blank.
Any help on this please ?
www.diabetic.pub/forum
because every diabetic needs help.
SMF 2.0.15 / TP 1.3R

Offline Skhilled

  • Beta Tester
  • *
  • Posts: 1162
    • Doc Skillz
Re: Remove TP Button from Profile
« Reply #1 on: November 28, 2017, 08:22:36 AM »
I'm no coder but have done a quick check and "TP_fetchprofile_areas" and "TP_fetchprofile_areas2" are still in use. Perhaps, whatever file that currently calls those functions may lead to a fix.

Reading can seriously damage your ignorance!

Offline lurkalot

  • Administrator
  • *
  • Posts: 4545
    • Camera Craniums
Re: Remove TP Button from Profile
« Reply #2 on: December 02, 2017, 03:22:03 AM »
I've tried the tricks mentioned here
https://www.tinyportal.net/index.php?topic=34947.msg280449#msg280449
but came up blank.
Any help on this please ?

Take a look in /sources/TPassimilate.php

Comment out this code, (Make backup first, just in case).

Code: [Select]
function tpAddProfileMenu(&$profile_areas)
{
global $txt;

$profile_areas['tp'] = array(
'title' => 'Tinyportal',
'areas' => array(),
);

$profile_areas['tp']['areas']['tpsummary'] = array(
'label' => $txt['tpsummary'],
'file' => 'TPmodules.php',
'function' => 'tp_summary',
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
);

$profile_areas['tp']['areas']['tparticles'] = array(
'label' => $txt['articlesprofile'],
'file' => 'TPmodules.php',
'function' => 'tp_articles',
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
'subsections' => array(
'articles' => array($txt['tp-articles'], array('profile_view_own', 'profile_view_any')),
'settings' => array($txt['tp-settings'], array('profile_view_own', 'profile_view_any')),
),
);

$profile_areas['tp']['areas']['tpdownload'] = array(
'label' => $txt['downloadprofile'],
'file' => 'TPmodules.php',
'function' => 'tp_download',
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
);

$profile_areas['tp']['areas']['tpshoutbox'] = array(
'label' => $txt['shoutboxprofile'],
'file' => 'TPmodules.php',
'function' => 'tp_shoutb',
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
);
}
Mick aka lurkalot.

Camera Craniums Running SMF 2.0.13 / Tinyportal 1.3
Guitarist Guild Running SMF 2.0.15 / Tinyportal 1.4R Beta
The Garden Machinery Forum Running SMF 2.0.15 / Tinyportal 1.4R Beta

Offline Skb

  • Jr. Member
  • **
  • Posts: 84
    • Metabolically Challenged
Re: Remove TP Button from Profile
« Reply #3 on: December 02, 2017, 04:12:58 AM »
Thanks Mickey Bro. That worked.
www.diabetic.pub/forum
because every diabetic needs help.
SMF 2.0.15 / TP 1.3R

Offline lurkalot

  • Administrator
  • *
  • Posts: 4545
    • Camera Craniums
Re: Remove TP Button from Profile
« Reply #4 on: December 02, 2017, 04:36:23 AM »
Thanks Mickey Bro. That worked.

You're welcome.  Apologies for the delay.  ;)

Strangely enough there was the same question asked in the support thread, here today, https://www.simplemachines.org/community/index.php?topic=27642.msg3950365#msg3950365
Mick aka lurkalot.

Camera Craniums Running SMF 2.0.13 / Tinyportal 1.3
Guitarist Guild Running SMF 2.0.15 / Tinyportal 1.4R Beta
The Garden Machinery Forum Running SMF 2.0.15 / Tinyportal 1.4R Beta

Offline Skb

  • Jr. Member
  • **
  • Posts: 84
    • Metabolically Challenged
Re: Remove TP Button from Profile
« Reply #5 on: December 02, 2017, 09:32:30 AM »
I had asked him. He was trying to help me out. I have informed him of the correct measure.

Apologies if this has created any issues.
www.diabetic.pub/forum
because every diabetic needs help.
SMF 2.0.15 / TP 1.3R

Offline lurkalot

  • Administrator
  • *
  • Posts: 4545
    • Camera Craniums
Re: Remove TP Button from Profile
« Reply #6 on: December 02, 2017, 09:42:19 AM »
I had asked him. He was trying to help me out. I have informed him of the correct measure.

Apologies if this has created any issues.

Skb, I did wonder if that was the case, either way it's not a problem.  O0
Mick aka lurkalot.

Camera Craniums Running SMF 2.0.13 / Tinyportal 1.3
Guitarist Guild Running SMF 2.0.15 / Tinyportal 1.4R Beta
The Garden Machinery Forum Running SMF 2.0.15 / Tinyportal 1.4R Beta