Ir para conteúdo
View in the app

A better way to browse. Learn more.

GGames Fórum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Avatares Maiores

Teoricamente é para funcionar em todas as versões, mas só testei nas versões 4.1 e 4.2, testem na versão 4.3 (usando o tema original do IPBOARD) e me avisem!

Antes de tudo faça backup do seu tema.

 

Passo 1:

Vá até o ACP > Customization > Themes e escolha o tema que quer editar

 

Passo 2:

Procure por postContainer no template

1.png

Passo 3: 

Procure por:

<li class='cAuthorPane_photo'>
			{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
</li>

 

Passo 4: 

Substitua por:

<li class='cAuthorPane_photo'>
			{template="userPhoto2" app="core" group="global" params="$comment->author(), 'variable', $comment->warningRef()"}
		</li>

 

Passo 5:

Crie um novo HTML Template

2.png

Name: UserPhoto2

Variables:

$member, $size='small', $warningRef=NULL, $classes='', $hovercard=TRUE

Location: Add To an existing location

Existing Location: front

Group: Add to an existing group

Existing Group: global

3.png

Passo 6:

Encontre HTML template "UserPhoto2" e cole o seguinte código nele

{{if $member->member_id and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'members' ) )}}
{{$memberURL = ( $warningRef ) ? $member->url()->setQueryString( 'wr', $warningRef ) : $member->url();}}
	<a href="{$memberURL}" {{if $hovercard}}data-ipsHover data-ipsHover-target="{$memberURL->setQueryString( 'do', 'hovercard' )}"{{endif}} class="ipsUserPhoto ipsUserPhoto_{$size}{{if $classes}} {$classes}{{endif}}" title="{lang="view_user_profile" sprintf="$member->name"}">
		<img src='{{if $member->pp_main_photo}}{file="$member->pp_main_photo"}{{else}}{file="$member->photo"}{{endif}}' alt='{$member->name}'>
	</a>
{{else}}
	<span class='ipsUserPhoto ipsUserPhoto_{$size} {{if $classes}}{$classes}{{endif}}'>
		<img src='{file="$member->photo"}' alt='{$member->name}'>
	</span>
{{endif}}

 

Passo 7:

Na aba do CSS encontre o custom.css e cole o seguinte código no final do mesmo

.ipsUserPhoto_variable img, img.ipsUserPhoto_variable, .ipsUserPhoto_variable:after {
		width: 170px;
		{{if theme.rounded_photos}}
			border-radius: 0px;
		{{endif}}
	}

 

Salve tudo e atualize a pagina do fórum e vá até um tópico e veja se deu certo

imageproxy.php,qimg=http,P3A,P2F,P2Fi.imgur.com,P2FlRkpige.png,akey=8c572a95b11f75df68fd4690562cc977b10b01547e9e64b522230b8fb1b06a07.pagespeed.ce.wB4M9SF7xu.pngimageproxy.php,qimg=http,P3A,P2F,P2Fi.imgur.com,P2FHrsuZra.png,akey=7a4141dba9076af24dff409958f70f2d970f0a0c2fb7871d6b62a81af3e23883.pagespeed.ce.IaXJ_kGm9h.png

Feedback do Usuário

Comentários Recomendados

Postado

  • Fundador

Eita, aí sim hein! E deu certo em nosso fórum essa função sem quebrar todo o restante?

Postado

  • Fundador
8 horas atrás, 403 - Forbiddeen disse:

Eita, aí sim hein! E deu certo em nosso fórum essa função sem quebrar todo o restante?

Kkk. Não porque já usamos outra extensão e nosso tema não permite. E hoje não é tão legal isso, ao meu ver ao menos kkkk mas aí é um tutorial para quem quiser, tem aquele bug de qual falei. 

Postado

  • Fundador

Ahhhhh, o ideal seria ter dois avatares entaoy, um para os tópicos e outro para o restante.

Crie uma conta ou entre para comentar

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.