Last active
March 5, 2016 09:29
-
-
Save louanfontenele/4e43da5cd6bcf5dfc658 to your computer and use it in GitHub Desktop.
IPBoard 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Passo 1 | |
Vá ao: | |
ACP > Customization > Themes e Selecione o tema que você deseja editar | |
========================= | |
Passo 2 | |
Encontre postContainer em: | |
Forums > Front > Topics > postContainer | |
========================= | |
Passo 3 | |
Procure por: | |
<li class='cAuthorPane_photo'> | |
{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"} | |
</li> | |
========================= | |
Passo 4 | |
Substitua-o por: | |
<li class='cAuthorPane_photo'> | |
{{if $comment->author()->pp_main_photo}}<a href='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}-{$comment->author()->name}" seoTemplate="profile" seoTitle="$seoName"}' data-ipsHover data-ipsHover-target='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}-{$comment->author()->name}&do=hovercard" seoTemplate="profile" seoTitle="$seoName"}' title="{lang="view_user_profile" sprintf="$name"}"><span class='ipsUserPhoto ipsUserPhoto_variable'><img src="{setting="base_url"}uploads/{$comment->author()->pp_main_photo}" /></span></a>{{else}}<a href='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}-{$comment->author()->name}" seoTemplate="profile" seoTitle="$seoName"}' data-ipsHover data-ipsHover-target='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}-{$comment->author()->name}&do=hovercard" seoTemplate="profile" seoTitle="$seoName"}' title="{lang="view_user_profile" sprintf="$name"}"><img src="Default Image Url" /></a>{{endif}} | |
</li> | |
#note: Você precisa adicionar manualmente o URL da imagem para "Default URL Image" no código acima, como eu acredito cada imagens padrão são diferentes nomes diferentes; para encontrar este você pode ir em uploads/set_resources_1 no seu servidor ftp e olhar para a imagem, ou você pode clicar Inspect Element e encontrá-lo copiar o link da imagem e substituí-padrão URL da imagem na img src eu tenho acima | |
========================= | |
Passo 5 | |
Vá até o CSS e procure por: | |
misc.css | |
========================= | |
Passo 6 | |
Encontre por isso: | |
.ipsUserPhoto_xlarge img, img.ipsUserPhoto_xlarge, .ipsUserPhoto_xlarge:after { | |
width: 120px; | |
height: 120px; | |
{{if theme.rounded_photos}} | |
border-radius: 60px; | |
{{endif}} | |
} | |
E logo abaixo disso (código css acima), coloque: | |
.ipsUserPhoto_variable img, img.ipsUserPhoto_variable, .ipsUserPhoto_variable:after { | |
width: 150px; | |
{{if theme.rounded_photos}} | |
border-radius: 0px; | |
{{endif}} | |
} | |
========================= | |
Depois salve e veja o resultado |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment