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

Recent

Welcome to TinyPortal. Please login or sign up.

April 16, 2024, 07:14:36 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,158
  • Total Topics: 21,219
  • Online today: 106
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 71
  • Total: 72
  • @rjen

Gästen die Module nicht anzeigen?

Started by Mario472, February 12, 2006, 10:01:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mario472

Hallo,

ich möchte nicht, dass GÃÆ'Ã,¤sten in der Userbox die Module angezeigt werden. Wie erreiche ich das?

feline

Du meinst Download etc. ?

Dafür gibt's meines wissens keine extra Einstellung.
Einzige möglichkeit (so mache ich es auch) den GÃÆ'Ã,¤sten keine Userbox anzuzeigen.

Ich werde mir mal die neuesten Sourcen ansehen, denke sowas sollte man einbauen ...

Fel

Mario472

Ja, genau das meine ich. Na, dann werde ich mal abwarten und noch 'nen Kaffee (oder 2 oder 3...) trinken gehen. ;)

feline

ÃÆ'ââ,¬Å¾ndere das TPortalBlocks.template.php an Zeile 364 wie folgt ...


        // Otherwise they're a guest - so politely ask them to register or login.
        else
        {
                echo '
                                                        ', $txt['welcome_guest'], '<br />
                                                        ', $context['current_time'], '<br />

                                                        <form action="', $scripturl, '?action=login2" method="post" >
                                                                <input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
                                                                <select name="cookielength">
                                                                        <option value="60">', $txt['smf53'], '</option>
                                                                        <option value="1440">', $txt['smf47'], '</option>
                                                                        <option value="10080">', $txt['smf48'], '</option>
                                                                        <option value="302400">', $txt['smf49'], '</option>
                                                                        <option value="-1" selected="selected">', $txt['smf50'], '</option>
                                                                </select>
                                                                <input type="submit" value="', $txt[34], '" /><br />
                                                                ', $txt['smf52'], '
                                                        </form>';
/* --- start removed by Feline (guest do not show modules)
// module links
echo '<hr /><p style="margin: 4px 0 5px 0;"><img src="'.$settings['images_url'].'/tpmodule.gif" style="margin: 0;" align="absbottom" alt="" />
      <b>'.$txt['tp-admin4'].'</b></p>';
if($context['TPortal']['show_download']=='1')
echo $bullet2.'<a href="'.$scripturl.'?action=tpmod;dl=0">'.$txt['tp-dldownloads'].'</a><br />';
        }
echo '<br /></td></tr></table>';
   --- end remove by Feline */

// --- start mod by Feline
        }
echo '</td></tr></table>';
// --- end mod by Feline


Fel