News: June 24th, 2017, The Tinyportal team is pleased to announce the release of ~~ TinyPortal 1.3! GET IT NOW!!!

Login  |  Register
* * *
TinyPortal on Twitter
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 12, 2017, 01:06:21 PM

Login with username, password and session length

Recent

Members
  • Total Members: 3697
  • Latest: Ironmad
Stats
  • Total Posts: 181644
  • Total Topics: 20371
  • Online Today: 74
  • Online Ever: 383
  • (January 02, 2015, 05:58:49 AM)
Users Online
Users: 1
Guests: 47
Total: 48

Skinz





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

0 Members and 1 Guest are viewing this topic.

Offline Skb

  • Jr. Member
  • **
  • Posts: 69
    • 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.2R3

Offline Skhilled

  • Beta Tester
  • *
  • Posts: 1112
    • 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.


Offline lurkalot

  • Administrator
  • *
  • Posts: 3761
    • 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.  Running TP1.2 and TP1.2R

Camera Craniums Running SMF 2.0.13 / Tinyportal 1.2
Guitarist Guild Running SMF 2.0.13 / Tinyportal 1.2R Beta
The Garden Machinery Forum Running SMF 2.0.13 / Tinyportal 1.2R Beta

Offline Skb

  • Jr. Member
  • **
  • Posts: 69
    • 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.2R3

Offline lurkalot

  • Administrator
  • *
  • Posts: 3761
    • 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.  Running TP1.2 and TP1.2R

Camera Craniums Running SMF 2.0.13 / Tinyportal 1.2
Guitarist Guild Running SMF 2.0.13 / Tinyportal 1.2R Beta
The Garden Machinery Forum Running SMF 2.0.13 / Tinyportal 1.2R Beta

Offline Skb

  • Jr. Member
  • **
  • Posts: 69
    • 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.2R3

Offline lurkalot

  • Administrator
  • *
  • Posts: 3761
    • 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.  Running TP1.2 and TP1.2R

Camera Craniums Running SMF 2.0.13 / Tinyportal 1.2
Guitarist Guild Running SMF 2.0.13 / Tinyportal 1.2R Beta
The Garden Machinery Forum Running SMF 2.0.13 / Tinyportal 1.2R Beta