Dazu hatte ich diesen mod gefunden:
Code: Alles auswählen
########################################################
##
## MOD Title: Guest_See_Part_Message
## MOD Version: 1.0.0
## Author: Wicher (http://www.detecties.com/phpbb2018)
##
## Description:
## Displays only a part of a full posting if the user is a guest.
##
##
## Installation Level: easy
## Installation Time: 1 minutes
##
## Files To Edit: 2
## - viewtopic.php
## - language/lang_main.php
##
## Included Files: None
##
########################################################
## Guest_See_Part_Message
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$user_sig_bbcode_uid = $postrow[$i]['user_sig_bbcode_uid'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$path = __FILE__;
$file = basename ($path);
if ($file != 'portal.php')//needed for portal support, otherwise portal layout will breakout when clips are played.
{
//first check if message has quote in it, quote box breaks forums layout.
$dont= '';
$count = 0;
$fulllenght = (strlen($message));
$fulllenght = $fulllenght-6;
While ($count < $fulllenght)
{
$quotecheck = substr(($message), $count, 6);
if ($quotecheck == '[quote');
{
$dont = '1';
}
$count++;
}
if (($userdata['username'] == 'Anonymous') or ($dont != '1'))
{
$lettercount = (strlen($message));
if ($lettercount > 40)
{
$message = substr(($message), 0, 40).'... <b><a href="http://'.$board_config['server_name'].$board_config['script_path'].'profile.php?mode=register">'.$lang['Register'].'</a> '.$lang['or'].' <a href="http://'.$board_config['server_name'].$board_config['script_path'].'login.php?redirect=viewtopic.php?t='.$postrow[$i]['topic_id'].'">'.$lang['Login'].'</a> '.$lang['GuestWantReadAll'].'</b>';
}
}
}
#
#-----[ FIND ]------------------------------------------
#
if ($bbcode_uid != '')
#
#-----[ REPLACE WITH ]------------------------------------------
#
if (($bbcode_uid != '') && ($userdata['username'] != 'Anonymous'))
#
#-----[ OPEN ]------------------------------------------
#
language/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ ADD, BEFORE ]------------------------------------------
#
//Guest read part
$lang['GuestWantReadAll'] = 'if you want to read the full posting';
$lang['or'] = 'or';
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Allerdings meinte easygo, dass der evtl. fehlerhaft ist und auch andere bbcodes als quote mit integriert sein müssten und so. Ich hab auch noch die bbcode box drinnen..
meine Frage: kann man den mod einbauen? oder sieht da jemand fehlerchen / potentielle fehlerquellen??