Avatar / Signatur verbergen?

Du suchst einen bestimmten Mod, weißt aber nicht genau wo bzw. ob er überhaupt existiert? Wenn dir dieser Artikel nicht weiterhilft, kannst du hier den von dir gewünschten/gesuchten Mod beschreiben ...
Falls ein Mod-Autor eine der Anfragen hier aufnimmt um einen neuen Mod zu entwicklen, geht's in phpBB 2.0: Mods in Entwicklung weiter.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Valerie Raghnall
Mitglied
Beiträge: 3907
Registriert: 17.07.2002 14:03
Wohnort: Graz

Avatar / Signatur verbergen?

Beitrag von Valerie Raghnall »

Meine User haben den Wunsch geäußert, die Option zu haben, die Avatare nicht anzuzeigen, selbiges für die Signatur. Will heißen allgemein keine Avatare und Signaturen anzeigen obwohl Avatare und Signaturen verwendet werden. Und das pro User zu wählen ob es angezeigt werden soll oder nicht... gefunden hab ich dazu nichts... gibt es sowas / kann man sowas machen?
A Bus Station is where buses stop. A Train Station is where trains stop. On my desk, there is a Work Station.
denissin
Mitglied
Beiträge: 53
Registriert: 10.02.2005 09:33
Wohnort: Weiterstadt

Beitrag von denissin »

die signatur kann man im profil abschalten und beim avatar ... einfach keinen wählen!
Valerie Raghnall
Mitglied
Beiträge: 3907
Registriert: 17.07.2002 14:03
Wohnort: Graz

Beitrag von Valerie Raghnall »

Das gilt aber nur für das eigene, nicht für alle anderen. ich brauch aber etwas, das alle Signaturen und alle Avatare ausblenden kann, ned nur das eigene.


Edit: Also es gibt diesen Hack hier...

Individual Ignore Signature and Avatar (Per User Basis)

... aber da müsste man für jeden User einzeln das ignorieren... ich bräuchte eben was, das es ermöglicht im Profil einzustellen, dass Avatare und Signaturen ned angezeigt werden sollen.
A Bus Station is where buses stop. A Train Station is where trains stop. On my desk, there is a Work Station.
Benutzeravatar
gloriosa
Mitglied
Beiträge: 13770
Registriert: 04.01.2005 20:23
Wohnort: Landeshauptstadt Erfurt

Beitrag von gloriosa »

Hallo,
wenn im ACP --> Allgemeines --> Konfiguration alle drei Auswahlmöglichkeiten für Avatare deaktiviert sind, tauchen Avatare dementsprechend auch nicht mehr auf !
Viele Grüße - gloriosa :D
Die einen schützen sich vor frischem Wind, während die anderen ihn nutzen.
Kein kostenloser MOD-Einbau usw. bzw. Support via PN, Email oder IRC !
Valerie Raghnall
Mitglied
Beiträge: 3907
Registriert: 17.07.2002 14:03
Wohnort: Graz

Beitrag von Valerie Raghnall »

Ja Gloriosa... aber ich will das nicht allgemein, sondern so, dass die Benutzer entscheiden können ob ja oder nicht. Wie ich schon sagte... optional.
A Bus Station is where buses stop. A Train Station is where trains stop. On my desk, there is a Work Station.
Benutzeravatar
Mehrpack
Mitglied
Beiträge: 417
Registriert: 28.02.2004 07:24

Beitrag von Mehrpack »

hi,
also mit diesem mod kann man wählen ob signaturen und/oder avatare angezeigt werden:

http://www.phpbb.com/phpBB/catdb.php?mo ... &id=800998

bei mir ging er nicht, hoffe du hast mehr glück.

Mehrpack
Nobody is Perfect.
Valerie Raghnall
Mitglied
Beiträge: 3907
Registriert: 17.07.2002 14:03
Wohnort: Graz

Beitrag von Valerie Raghnall »

Danke, ich versuch ihn mal :)
A Bus Station is where buses stop. A Train Station is where trains stop. On my desk, there is a Work Station.
Valerie Raghnall
Mitglied
Beiträge: 3907
Registriert: 17.07.2002 14:03
Wohnort: Graz

Beitrag von Valerie Raghnall »

ok... eingebaut und folgender fehler:


Parse error: parse error, unexpected T_VARIABLE in /is/htdocs/30521/www.myst-era.de/xpaw/xboard/admin/admin_users.php on line 257

ansonsten funktionierts.

Mod

Code: Alles auswählen

############################################################## 
## MOD Title: View/Disable Avatars/Signatures 
## MOD Author: r6untouchable < admin@throttlejunkies.com > (Ryan) N/A 
## MOD Description: Lets users choose to view/disable avatars/sigs 
## MOD Version: 1.0.0 
## 
## Installation Level: (Intermediate) 
## Installation Time: ~15-20 Minutes 
## Files To Edit: 
##               includes/ucercp_register.php 
##               language/lang_english/lang_main.php 
##               admin/admin_users.php
##               templates/subSilver/admin/user_edit_body.tpl
##               templates/subSilver/profile_add_body.tpl
##               templates/subSilver/viewtopic_body.tpl
##               viewtopic.php
## Included Files: (N/A) 
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
##############################################################
## Author Notes: Please place the SQL commands in a text file and run them that way.
## 
##############################################################
## MOD History: 
## 
##   2003-08-30 - Version 1.0.0 
##      - Initial Release 
## 
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################

# 
#-----[ SQL ]------------------------------------------ 
#
ALTER TABLE phpbb_users ADD COLUMN user_showavatars tinyint(1) default '1'; 
ALTER TABLE phpbb_users ADD COLUMN user_showsignatures tinyint(1) default '1';
# 
#-----[ OPEN ]------------------------------------------ 
#
includes/usercp_register.php
# 
#-----[ FIND ]------------------------------------------ 
#
$allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies']) ) ? ( ($HTTP_POST_VARS['allowsmilies']) ? TRUE : 0 ) : $board_config['allow_smilies'];
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
$showavatars = ( isset($HTTP_POST_VARS['showavatars']) ) ? ( ($HTTP_POST_VARS['showavatars']) ? TRUE : 0 ) : TRUE; 
$showsignatures = ( isset($HTTP_POST_VARS['showsignatures']) ) ? ( ($HTTP_POST_VARS['showsignatures']) ? TRUE : 0 ) : TRUE;
# 
#-----[ FIND ]------------------------------------------ 
#
$allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies']) ) ? ( ($HTTP_POST_VARS['allowsmilies']) ? TRUE : 0 ) : $userdata['user_allowsmile'];
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
$showavatars = ( isset($HTTP_POST_VARS['showavatars']) ) ? ( ($HTTP_POST_VARS['showavatars']) ? TRUE : 0 ) : $userdata['user_showavatars'];
$showsignatures = ( isset($HTTP_POST_VARS['showsignatures']) ) ? ( ($HTTP_POST_VARS['showsignatures']) ? TRUE : 0 ) : $userdata['user_showsignatures'];
# 
#-----[ FIND ]------------------------------------------ 
#
$sql = "UPDATE " . USERS_TABLE . "
	SET
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
#
user_allowsmile = $allowsmilies,
# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
#
 user_showavatars = $showavatars, user_showsignatures = $showsignatures,
# 
#-----[ FIND ]------------------------------------------ 
#
// Get current date
//
$sql = "INSERT INTO "
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
#
user_allowsmile,
# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
#
 user_showavatars, user_showsignatures,
# 
#-----[ FIND ]------------------------------------------ 
#
VALUES ($user_id,
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
#
$allowsmilies,
# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
#
 $showavatars, $showsignatures,
# 
#-----[ FIND ]------------------------------------------ 
#
$allowsmilies = $userdata['user_allowsmile'];
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
$showavatars = $userdata['user_showavatars'];
$showsignatures = $userdata['user_showsignatures'];
# 
#-----[ FIND ]------------------------------------------ 
#
display_avatar_gallery($mode,
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
#
$allowsmilies,
# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
#
 $showavatars, $showsignatures,
# 
#-----[ FIND ]------------------------------------------ 
#
'ALWAYS_ALLOW_SMILIES_NO' => ( !$allowsmilies ) ? 'checked="checked"' : '',
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
'SHOW_AVATARS_YES' => ( $showavatars ) ? 'checked="checked"' : '',
'SHOW_AVATARS_NO' => ( !$showavatars ) ? 'checked="checked"' : '',
'SHOW_SIGNATURES_YES' => ( $showsignatures ) ? 'checked="checked"' : '',
'SHOW_SIGNATURES_NO' => ( !$showsignatures ) ? 'checked="checked"' : '',
# 
#-----[ FIND ]------------------------------------------ 
#
'L_ALWAYS_ADD_SIGNATURE' => $lang['Always_add_sig'],
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
'L_SHOW_AVATARS' => $lang['Show_avatars'],
'L_SHOW_SIGNATURES' => $lang['Show_signatures'],
# 
#-----[ OPEN ]------------------------------------------ 
#
language/lang_english/lang_main.php
# 
#-----[ FIND ]------------------------------------------ 
#
//
// That's all, Folks!
# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
$lang['Show_avatars'] = 'Show Avatars in Topic';
$lang['Show_signatures'] = 'Show Signatures in Topic';

# 
#-----[ OPEN ]------------------------------------------ 
#
admin/admin_users.php
# 
#-----[ FIND ]------------------------------------------ 
#
$allowsmilies = ( isset( $HTTP_POST_VARS['allowsmilies']) ) ? intval( $HTTP_POST_VARS['allowsmilies'] ) : $board_config['allow_smilies'];
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
$showavatars = ( isset( $HTTP_POST_VARS['showavatars']) ) ? intval( $HTTP_POST_VARS['showavatars'] ) : $board_config['showavatars'];
$showsignatures = ( isset( $HTTP_POST_VARS['showsignatures']) ) ? intval( $HTTP_POST_VARS['showsignatures'] ) : $board_config['showsignatures'];
# 
#-----[ FIND ]------------------------------------------ 
#
$sql = "UPDATE " . USERS_TABLE . "
	SET
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
#
user_allowsmile = $allowsmilies,
# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
#
 user_showavatars = $showavatars, user_showsignatures = $showsignatures,
# 
#-----[ FIND ]------------------------------------------ 
#
$allowsmilies = $this_userdata['user_allowsmile'];
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
$showavatars = $this_userdata['user_showavatars'];
$showsigatures = $this_userdata['user_showsignatures'];
# 
#-----[ FIND ]------------------------------------------ 
#
$s_hidden_fields .= '<input type="hidden" name="allowsmilies" value="' . $allowsmilies . '" />';
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
$s_hidden_fields .= '<input type="hidden" name="showavatars" value="' . $showavatars . '" />';
$s_hidden_fields .= '<input type="hidden" name="showsignatures" value="' . $showsignatures . '" />';
# 
#-----[ FIND ]------------------------------------------ 
#
'ALWAYS_ALLOW_SMILIES_NO' => (!$allowsmilies) ? 'checked="checked"' : '',
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
'SHOW_AVATARS_YES' => ($showavatars) ? 'checked="checked"' : '',
'SHOW_AVATARS_NO' => (!$showavatars) ? 'checked="checked"' : '',
'SHOW_SIGNATURES_YES' => ($showsignatures) ? 'checked="checked"' : '',
'SHOW_SIGNATURES_NO' => (!$showsignatures) ? 'checked="checked"' : '',
# 
#-----[ FIND ]------------------------------------------ 
#
'L_ALWAYS_ALLOW_SMILIES' => $lang['Always_smile'],
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
'L_SHOW_AVATARS' => $lang['Show_avatars'],
'L_SHOW_SIGNATURES' => $lang['Show_signatures'],
# 
#-----[ OPEN ]------------------------------------------ 
#
templates/subSilver/admin/user_edit_body.tpl
# 
#-----[ FIND ]------------------------------------------ 
#
<input type="radio" name="allowsmilies" value="0" {ALWAYS_ALLOW_SMILIES_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	<tr>
		<td class="row1"><span class="gen">{L_SHOW_AVATARS}:</span></td>
		<td class="row2">
			<input type="radio" name="showavatars" value="1" {SHOW_AVATARS_YES} />
			<span class="gen">{L_YES}</span>
			<input type="radio" name="showavatars" value="0" {SHOW_AVATARS_NO} />
			<span class="gen">{L_NO}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_SHOW_SIGNATURES}:</span></td>
		<td class="row2">
			<input type="radio" name="showsignatures" value="1" {SHOW_SIGNATURES_YES} />
			<span class="gen">{L_YES}</span>
			<input type="radio" name="showsignatures" value="0" {SHOW_SIGNATURES_NO} />
			<span class="gen">{L_NO}</span></td>
	</tr>
# 
#-----[ OPEN ]------------------------------------------ 
#
templates/subSilver/profile_add_body.tpl
# 
#-----[ FIND ]------------------------------------------ 
#
<input type="radio" name="allowsmilies" value="0" {ALWAYS_ALLOW_SMILIES_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	<tr>
		<td class="row1"><span class="gen">{L_SHOW_AVATARS}:</span></td>
		<td class="row2">
			<input type="radio" name="showavatars" value="1" {SHOW_AVATARS_YES} />
			<span class="gen">{L_YES}</span>
			<input type="radio" name="showavatars" value="0" {SHOW_AVATARS_NO} />
			<span class="gen">{L_NO}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_SHOW_SIGNATURES}:</span></td>
		<td class="row2">
			<input type="radio" name="showsignatures" value="1" {SHOW_SIGNATURES_YES} />
			<span class="gen">{L_YES}</span>
			<input type="radio" name="showsignatures" value="0" {SHOW_SIGNATURES_NO} />
			<span class="gen">{L_NO}</span></td>
	</tr>
# 
#-----[ OPEN ]------------------------------------------ 
#
templates/subSilver/viewtopic_body.tpl
# 
#-----[ FIND ]------------------------------------------ 
#
{postrow.POSTER_AVATAR}
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#

<!-- BEGIN switch_showavatars --> 
<br />{postrow.POSTER_AVATAR} 
<!-- END switch_showavatars -->

# 
#-----[ FIND ]------------------------------------------ 
#
{postrow.SIGNATURE}
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#

<!-- BEGIN switch_showsignatures --> 
{postrow.SIGNATURE} 
<!-- END switch_showsignatures -->

# 
#-----[ OPEN ]------------------------------------------ 
#
viewtopic.php
# 
#-----[ FIND ]------------------------------------------ 
#
'U_POST_ID' => $postrow[$i]['post_id']) 
   );
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
if ($userdata['user_showavatars']) 
   { 
      $template->assign_block_vars('postrow.switch_showavatars', array()); 
   }
if ($userdata['user_showsignatures']) 
   { 
      $template->assign_block_vars('postrow.switch_showsignatures', array()); 
   }
# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM

Zeile 257

Code: Alles auswählen

		$user_style = ( $HTTP_POST_VARS['style'] ) ? intval( $HTTP_POST_VARS['style'] ) : $board_config['default_style'];

davor ist eben der Sig/Ava Bereich eingefügt worden...

Code: Alles auswählen

		$allowsmilies = ( isset( $HTTP_POST_VARS['allowsmilies']) ) ? intval( $HTTP_POST_VARS['allowsmilies'] ) : $board_config['allow_smilies'];
		
		$showavatars = ( isset( $HTTP_POST_VARS['showavatars']) ) ? intval( $HTTP_POST_VARS['showavatars'] ) : $board_config['showavatars'];
		$showsignatures = ( isset( $HTTP_POST_VARS['showsignatures']) ) ? intval( $HTTP_POST_VARS['showsignatures'] ) : $board_config['showsignatures']


edit:

Korrigiere. funktioniert nicht. Ich krieg ne ganz seltsame anzeige... erst ne ganze reihe runter die namen der leute und den ganzen blah vonwegen wohnort, rang etc... und dann erst den postingbereich...
A Bus Station is where buses stop. A Train Station is where trains stop. On my desk, there is a Work Station.
Benutzeravatar
Mehrpack
Mitglied
Beiträge: 417
Registriert: 28.02.2004 07:24

Beitrag von Mehrpack »

hi,
zum problem in admin user.

imho fehlt da ein ; bei der letzten zeile.

also:

Code: Alles auswählen

      $allowsmilies = ( isset( $HTTP_POST_VARS['allowsmilies']) ) ? intval( $HTTP_POST_VARS['allowsmilies'] ) : $board_config['allow_smilies']; 
       
      $showavatars = ( isset( $HTTP_POST_VARS['showavatars']) ) ? intval( $HTTP_POST_VARS['showavatars'] ) : $board_config['showavatars']; 
      $showsignatures = ( isset( $HTTP_POST_VARS['showsignatures']) ) ? intval( $HTTP_POST_VARS['showsignatures'] ) : $board_config['showsignatures']
ersetzen mit:

Code: Alles auswählen

      $allowsmilies = ( isset( $HTTP_POST_VARS['allowsmilies']) ) ? intval( $HTTP_POST_VARS['allowsmilies'] ) : $board_config['allow_smilies']; 
       
      $showavatars = ( isset( $HTTP_POST_VARS['showavatars']) ) ? intval( $HTTP_POST_VARS['showavatars'] ) : $board_config['showavatars']; 
      $showsignatures = ( isset( $HTTP_POST_VARS['showsignatures']) ) ? intval( $HTTP_POST_VARS['showsignatures'] ) : $board_config['showsignatures'];
zum anderen problem.
das war auch mein problem.
im moment kann ich dir da auch keine lösung anbieten, bloss das mit dem ausblenden in der tabelle die zeile oder reihe zerstört wird und deswegen es zu diesem darstellungsfehler kommt.
leider weiss ich im moment keine lösung dafür, da ich mich eben damals damit nicht weiter beschäftigt habe und ich im moment nicht rumprobieren kann da ich mit was anderem beschäftigt bin.

Mehrpack
Nobody is Perfect.
Valerie Raghnall
Mitglied
Beiträge: 3907
Registriert: 17.07.2002 14:03
Wohnort: Graz

Beitrag von Valerie Raghnall »

thx :)

hmmm... ich hab ja das <br/> in verdacht, dass es daran schuld ist... muss ich beizeiten mal ausprobieren. bei der sig ist das nämlich nicht dabei und da zerhauts das nicht so.
A Bus Station is where buses stop. A Train Station is where trains stop. On my desk, there is a Work Station.
Antworten

Zurück zu „phpBB 2.0: Mod Suche/Anfragen“