TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 18, 2024, 09:36:14 AM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 112
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 115
  • Total: 116
  • @rjen

Eliminare la voce di menu "Mostra shouts"

Started by robertino, December 21, 2007, 04:08:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

robertino

Ciao a tutti!

Spero possiate aiutarmi. Vorrei eliminare il menu "TinyPortal" nelle pagine del Profilo utente, in particolare la voce "Mostra shouts": come si fa? Mi basterebbe nasconderli.

Ecco il codice:
Quote// Tinyportal
      'tpsummary' => array(array('profile_view_any', 'profile_view_own'), array('profile_view_any')),
      'tparticles' => array(array('profile_extra_any', 'profile_extra_own'), array('tp_articles')),
      'tpdownload' => array(array('profile_extra_any', 'profile_extra_own'), array('tp_dlmanager')),
      'tpshoutbox' => array(array('profile_extra_any', 'profile_extra_own'), array('tp_blocks')),
      'tpgallery' => array(array('profile_extra_any', 'profile_extra_own'), array('tp_gallery')),
      'tplinks' => array(array('profile_extra_any', 'profile_extra_own'), array('tp_links')),
      // end Tinyportal

Come faccio a "nascondere" il codice? Se metto i tag "<!--" e "-->" non succede nulla.

GRAZIE

raid

#1
non so precisamente cosa tu debba togliere, comunque ti posso consigliare per il futuro di installare una piattaforma WAMP (se hai windows e credo che tu lo abbia, altrimenti LAMP per linux).

Il wamp ti crea un ambiente in locale sul tuo pc dove puoi fare tutte le prove che vuoi senza dover aver paura di fare disastri.

per quanto riguarda il codice che hai messo:
in teoria dovresti dare uno sguardo a tutto ciĆ² che parla di shoutbox, prova a commentare con  //, prendi spunto da altri commenti presenti nei files
SMF 2.0 + TP RC2

raid

Io ho rimosso queste voci dal file Profile.php dentro la cartella "Sources":

if($context['user']['is_owner'] || allowedTo('tp_blocks'))
$context['profile_areas']['tinyportal']['areas']['tpshoutbox'] = '<a href="' . $scripturl . '?action=profile;u=' . $memID . ';sa=tpshoutbox">' . $txt['shoutboxprofile'] . '</a>';


e questa:
function tpshoutbox($memID)
{
global $txt, $user_profile, $db_prefix, $context, $db_prefix;

loadtemplate('TPprofile');
$context['page_title'] = $txt['shoutboxprofile'];
TP_profile_shoutbox($memID);
}


e sembra andare bene.

Fai sempre un backup del file prima di modificare, magari chiamalo Profile.phpBCK
SMF 2.0 + TP RC2