Jump to content
WebFlake
  • 0

Is there a way to remove avatars and just have fixed usergroup avatars?


Matrixsc

Question

Hello all

 

Just getting to grips with IP.Board and was wondering if there Is there a way to remove avatars and just have fixed usergroup avatars for the groups members are in ?

 

avatar.jpg

 

See post above for what i mean.

 

I've looked in usergroup settings and can't see an option just to use group avatar only?

 

 

Thank you for your time.

 

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

On my skin there are these lines 

		<if test="avatar:|:$author['member_id']">
			<li class='avatar'>
				<if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
				<a itemprop="url" href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$author['members_display_name']}" class='ipsUserPhotoLink'>
				</if>
				<if test="hasVariable:|:$this->settings['member_topic_avatar_max']">	
					<img itemprop="image" src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' />
				<else />
					<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
				</if>
				<if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
				</a>
				</if>
			</li>
		<else />
			<li class='avatar'>
				<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
			</li>
		</if> 

so to remove change to this

<!--		<if test="avatar:|:$author['member_id']">
			<li class='avatar'>
				<if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
				<a itemprop="url" href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$author['members_display_name']}" class='ipsUserPhotoLink'>
				</if>
				<if test="hasVariable:|:$this->settings['member_topic_avatar_max']">	
					<img itemprop="image" src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' />
				<else />
					<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
				</if>
				<if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
				</a>
				</if>
			</li>
		<else />
			<li class='avatar'>
				<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
			</li>
		</if> --> 

If you want to add group avatars first upload the images for each group using the name group4.jpg for root admin , group3.jpg for members and so forth in the forumsupload folder using ftp.The extension can be what yu want like gif but you need to change the jpg in the following code to gif.

 

So add this code after the code to remove the current avatar

<li class='avatar'>
<img itemprop="image" src='{$this->settings['upload_url']}/group{$author['member_group_id']}.jpg'  class='ipsUserPhoto ipsUserPhoto_large' />
</li>
Link to comment
Share on other sites

  • 0

did you wanna change it ??

Go to cpanel then search the name of that image....

Copy and replace with another with the same name...

Thanks for your reply , Thing is if i was to do that then it would be the same picture for everyone so i'd rather just not have it so it just shows the usergroup avatar if that can be done ?

 

Thanks

Link to comment
Share on other sites

  • 0

u can also edit this string:

<li class='avatar'>
				<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
			</li>

to

<!--<li class='avatar'>
				<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
			</li>-->

in admin - >Look & Feel -> Select your theme to edit -> Find UserInfoPane -> and edit the code above!

Link to comment
Share on other sites

  • 0

Hello all

 

Just getting to grips with IP.Board and was wondering if there Is there a way to remove avatars and just have fixed usergroup avatars for the groups members are in ?

 

avatar.jpg

 

See post above for what i mean.

 

I've looked in usergroup settings and can't see an option just to use group avatar only?

 

 

Thank you for your time.

What do you mean by fixed usergroup avatars?

Link to comment
Share on other sites

  • 0

u can also edit this string:

<li class='avatar'>
				<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
			</li>

to

<!--<li class='avatar'>
				<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
			</li>-->

in admin - >Look & Feel -> Select your theme to edit -> Find UserInfoPane -> and edit the code above!

 

Thank you for your reply and time i will give this a go

He means that he wants every group to have a different avatar but whoever is in a certain group to have the same avatar.

 

Say you and I were an administrator but Phun was a moderator.. You and I would have the same avatar but Phun would have a different avatar.

 

Thats correct i do mean this :)

 

Thank you .

 

u can also edit this string:

<li class='avatar'>
				<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
			</li>

to

<!--<li class='avatar'>
				<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
			</li>-->

in admin - >Look & Feel -> Select your theme to edit -> Find UserInfoPane -> and edit the code above!

Tried this and it didn't seem to work it was the correct line as i searched for it and altered it to the line you gave me do i need to rebuld the cache or anything ?

 

Sorry for asking what maybe a pointless question just new to IPB .

 

Thank you

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...