Jump to content
  • 0

Cum schimb avatarul default ipb4.2.5


Question

7 answers to this question

Recommended Posts

  • 0
Posted
18 hours ago, DeNyS. said:

 

Pe ipb4.1 da merge imi ia avatarul default care il pun in resource crezi ca degeaba am facut acest post? deci practic nu-mi ia avatarul din resource chiardaca am pus calea spre el imi apare cum e aici pe forum cu litera fiecarui nume ati inteles nu stie cineva cum pot sa-l schimb sa nu mai apara avatar cu prima litera din nume ci cel ce l-am pus eu un resouce 

uitati si postContainer:

 

{{$idField = $comment::$databaseColumnId;}}
{{$itemClassSafe = str_replace( '\\', '_', mb_substr( $comment::$itemClass, 4 ) );}}
{{if $comment->isIgnored()}}
	<div class='ipsComment ipsComment_ignored ipsType_light' id='elIgnoreComment_{$comment->$idField}' data-ignoreCommentID='elComment_{$comment->$idField}' data-ignoreUserID='{$comment->author()->member_id}'>
		{lang="ignoring_content" sprintf="$comment->author()->name"} <a href='#elIgnoreComment_{$comment->$idField}_menu' data-ipsMenu data-ipsMenu-menuID='elIgnoreComment_{$comment->$idField}_menu' data-ipsMenu-appendTo='#elIgnoreComment_{$comment->$idField}' data-action="ignoreOptions" title='{lang="see_post_ignore_options"}' class='ipsType_blendLinks'>{lang="options"} <i class='fa fa-caret-down'></i></a>
		<ul class='ipsMenu ipsHide' id='elIgnoreComment_{$comment->$idField}_menu'>
			<li class='ipsMenu_item ipsJS_show' data-ipsMenuValue='showPost'><a href='#'>{lang="show_this_post"}</a></li>
			<li class='ipsMenu_sep ipsJS_show'><hr></li>
			<li class='ipsMenu_item' data-ipsMenuValue='stopIgnoring'><a href='{url="app=core&module=system&controller=ignore&do=remove&id={$comment->author()->member_id}" seoTemplate="ignore"}'>{lang="stop_ignoring_posts_by" sprintf="$comment->author()->name"}</a></li>
			<li class='ipsMenu_item'><a href='{url="app=core&module=system&controller=ignore" seoTemplate="ignore"}'>{lang="change_ignore_preferences"}</a></li>
		</ul>
	</div>
{{endif}}

<a id='comment-{$comment->$idField}'></a>
<article {{if $comment->author()->hasHighlightedReplies()}}data-memberGroup="{$comment->author()->member_group_id}" {{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if ( settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight and settings.reputation_enabled ) OR $comment->isFeatured()}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->author()->hasHighlightedReplies()}}ipsComment_highlighted{{endif}}{{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden() OR $item->hidden() === -2}}ipsModerated{{endif}}'>
	{{if $item->isQuestion() and !$comment->new_topic}}
		{template="postRating" group="topics" app="forums" params="$item, $comment, $votes"}
	{{endif}}

	<div class='cAuthorPane cAuthorPane_mobile ipsResponsive_showPhone ipsResponsive_block'>
		<h3 class='ipsType_sectionHead cAuthorPane_author ipsResponsive_showPhone ipsResponsive_inlineBlock ipsType_break ipsType_blendLinks ipsTruncate ipsTruncate_line'>
			{template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), $comment->author()->group['g_id']"}
			<span class='ipsResponsive_showPhone ipsResponsive_inline'>&nbsp;&nbsp;{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span>
		</h3>
		<div class='cAuthorPane_photo'>
			{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
		</div>
	</div>
	<aside class='ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone'>
		<h3 class='ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break'><strong>{$comment->author()->link( $comment->warningRef() )|raw}</strong> <span class='ipsResponsive_showPhone ipsResponsive_inline'>&nbsp;&nbsp;{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span></h3>
		
		<ul class='cAuthorPane_info ipsList_reset'>
			{{if $comment->author()->member_title && $comment->author()->member_id}}
				<li class='ipsType_break'>{$comment->author()->member_title}</li>
			{{elseif $comment->author()->rank['title'] && $comment->author()->member_id}}
				<li class='ipsType_break'>{$comment->author()->rank['title']}</li>
			{{endif}}
			{{if $comment->author()->rank['image'] && $comment->author()->member_id}}
				<li>{$comment->author()->rank['image']|raw}</li>
			{{endif}}
          <li class='cAuthorPane_photo'>
                  {{if $comment->author()->pp_main_photo}}
              		<span class='ipsUserPhoto ipsUserPhoto_variable'>
              			<img src="{setting='base_url'}uploads/{$comment->author()->pp_main_photo}" />
                    </span>
              {{else}}
              			<img src='{resource="default_photo.png" app="core" location="global"}' />
              {{endif}}
            </li>
          
			<li>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</li>
			{{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }}
				<li><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li>
			{{endif}}
          {template="customFieldsDisplay" group="global" app="core" params="$comment->author()"}
			{{endif}}
		</ul>
	</aside>
	<div class='ipsColumn ipsColumn_fluid'>
		{template="post" group="topics" app="forums" params="$item, $comment, $item::$formLangPrefix . 'comment', $item::$application, $item::$module, $itemClassSafe"}
	</div>
</article>

 

  • 0
Posted
1 hour ago, CRIST said:

pe bune :)) postul e din 2015 deci practic nu pot schimba avatarul default l-am pus am pus calea spre el dar nu o ia ci apare tot cel cu litera exact cum este aici pe forum o solutie va rog , multumesc.

Mă omule, tutorialul  de sus este valabil și pentru 4.2 sau 4.1 --- am incercat eu tutorialul acum 2 zile, deci e funcționant.

  • 0
Posted (edited)
2 hours ago, DeNyS. said:

Mă omule, tutorialul  de sus este valabil și pentru 4.2 sau 4.1 --- am incercat eu tutorialul acum 2 zile, deci e funcționant.

De ce postezi aiurea daca nu te uiti la ce am lasat eu, crezi ca am ciunga in par? uite am pus calea in postContainer la fel ca in tutorial de ce crezi ca am lasat si postContainer am incercat 2 variante vi le las mai jos sa le vedeti.

<li class='cAuthorPane_photo'>
                  {{if $comment->author()->pp_main_photo}}
              		<span class='ipsUserPhoto ipsUserPhoto_variable'>
              			<img src="{setting='base_url'}uploads/{$comment->author()->pp_main_photo}" />
                    </span>
              {{else}}
              			<img src='{resource="default_photo.png" app="core" location="global"}' />
              {{endif}}
            </li>
<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="http://i.imgur.com/34324324234.png" /></a>{{endif}}
          	</li>

 

problema e ca nu imi ia avatarul din - resource="default_photo.png" ci imi ramane tot acele cu litere am incercat si cu avatarul pe un site de upload cu link direct spre el si nici asa nu a mers, o solutie va rog cineva care are ipb 4.2.5 instalat si care a reusit sa schimbe avatarul, multumesc. 

 

 

Edited by CRIST
  • 0
Posted

El dorește să schimbe avatarul care vine pre-stabilit din temă nu să-i mărească dimensiunea, lucrul ăsta îl faci din editările temei, urci imaginea ta peste cea precedentă. Dezactivează și folosirea literelor pentru avatar. Greu e să-ți dai seama că asta blochează.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.