- Registriert
 - 30. Apr. 2017
 
- Beiträge
 - 507
 
- Punkte
 - 83
 
- XF Version
 
- XF Instanz
 - Hosting
 
- PHP-Version
 - 8.3
 
- MySQL/MariaDB
 - MariaDB
 
- Provider/Hoster
 - Infomaniak Schweiz
 
Ich darf mit dem ok von customizeXF den Code rausgeben. Mich hatte es immer gestört das Gäste Bilder Anhänge sehen können im Mininatur Ansicht.
BassMann hatte da eine Idee für mich.
You can editing the post_macros template.
FIND
	
	
	
		
REPLACE
	
	
	
		
That way you'll hide completely attachments to guests only.
				
			BassMann hatte da eine Idee für mich.
You can editing the post_macros template.
FIND
		Code:
	
	<xf:if is="$post.attach_count">
                                <xf:macro template="message_macros" name="attachments"
                                    arg-attachments="{$post.Attachments}"
                                    arg-message="{$post}"
                                    arg-canView="{{ $thread.canViewAttachments() }}" />
                            </xf:if>
	REPLACE
		Code:
	
	<xf:if is="$xf.visitor.user_id">
                            <xf:if is="$post.attach_count">
                                <xf:macro template="message_macros" name="attachments"
                                    arg-attachments="{$post.Attachments}"
                                    arg-message="{$post}"
                                    arg-canView="{{ $thread.canViewAttachments() }}" />
                            </xf:if>
                            </xf:if>
	That way you'll hide completely attachments to guests only.
			
				Zuletzt bearbeitet: 
			
		
	
								
								
									
	
		
			
		
	
								
							
							
				

