High resolution rank image

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
CD130
Registered User
Posts: 116
Joined: Thu Nov 13, 2014 2:09 pm

High resolution rank image

Post by CD130 »

Hello, how can I use a high resolution rank image, but show it as a small image on the forum board? Like here on phpbb.com the support rank image is 544 × 96. When I use it on my board the image wont't fit in the banner.
You do not have the required permissions to view the files attached to this post.
User avatar
meetdilip
Registered User
Posts: 123
Joined: Mon Sep 01, 2014 4:33 am

Re: High resolution rank image

Post by meetdilip »

You can define image size in CSS. See this

https://stackoverflow.com/questions/156 ... -using-css

I simply defined width and height to the image you attached here. You can see the result yourselves
Screenshot_2019-12-27 phpBB • High resolution rank image.png
width was 120px and height was 30px.
You do not have the required permissions to view the files attached to this post.
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6798
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: High resolution rank image

Post by HiFiKabin »

I don't know if you are using that rank image as an example or that you are actually going to use them on your board. If the second is correct, then please be aware that they were designed especially for phpBB.com by Hanakin and you should seek his permission before you can use them elsewhere.
User avatar
Mannix_
Registered User
Posts: 2029
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt

Re: High resolution rank image

Post by Mannix_ »

HiFiKabin wrote: Fri Dec 27, 2019 11:43 am I don't know if you are using that rank image as an example or that you are actually going to use them on your board. If the second is correct, then please be aware that they were designed especially for phpBB.com by Hanakin and you should seek his permission before you can use them elsewhere.
I think you can download them from cdb along with svg forum icons so he is free to use them :)
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
CD130
Registered User
Posts: 116
Joined: Thu Nov 13, 2014 2:09 pm

Re: High resolution rank image

Post by CD130 »

HiFiKabin wrote: Fri Dec 27, 2019 11:43 am I don't know if you are using that rank image as an example or that you are actually going to use them on your board. If the second is correct, then please be aware that they were designed especially for phpBB.com by Hanakin and you should seek his permission before you can use them elsewhere.
I used it as an example :)

Can anybody tell me where I can find the CSS code for the rank image that I have to change?
User avatar
Mannix_
Registered User
Posts: 2029
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt

Re: High resolution rank image

Post by Mannix_ »

there is none you would need to add it

Code: Select all

.rank-img img {
    width: your width in px;
}
you can add it to content.css file for example
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
CD130
Registered User
Posts: 116
Joined: Thu Nov 13, 2014 2:09 pm

Re: High resolution rank image

Post by CD130 »

Thanks, I already tried this code in content.css and common.css, but it won't work 🤷‍♂️ I also removed the cache.

Code: Select all

.rank-img img {
	width: 160px;
}
User avatar
Mannix_
Registered User
Posts: 2029
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt

Re: High resolution rank image

Post by Mannix_ »

Then give us a link to a topic where we can see that image
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
CD130
Registered User
Posts: 116
Joined: Thu Nov 13, 2014 2:09 pm

Re: High resolution rank image

Post by CD130 »

@Mannix_ I send you a PM with more information about my private phpbb board and some photo's.
CD130
Registered User
Posts: 116
Joined: Thu Nov 13, 2014 2:09 pm

Re: High resolution rank image

Post by CD130 »

What do I have to do to add rank-img?

My board/ clean install phpbb:
Schermafbeelding 2019-12-27 om 17.17.21.png
pphpbb.com:
Schermafbeelding 2019-12-27 om 17.21.17.png
You do not have the required permissions to view the files attached to this post.
User avatar
Mannix_
Registered User
Posts: 2029
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt

Re: High resolution rank image

Post by Mannix_ »

CD130 wrote: Fri Dec 27, 2019 4:21 pm What do I have to do to add rank-img?
open viewtopic_body.html find

Code: Select all

<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd class="profile-rank">{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->
and replace with

Code: Select all

<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd class="profile-rank rank-img">{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco

Re: High resolution rank image

Post by 3Di »

Mannix_ wrote: Fri Dec 27, 2019 6:43 pm open viewtopic_body.html find
Why?

You simply go to ACP / Users and groups / Manage ranks and add the image previously saved in ./images/ranks/ to the rank.
2019-12-27 19_58_21-Manage ranks.png
The CSS change is ok, resize the image otherwise. ;)
You do not have the required permissions to view the files attached to this post.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
Mannix_
Registered User
Posts: 2029
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt

Re: High resolution rank image

Post by Mannix_ »

3Di wrote: Fri Dec 27, 2019 7:01 pm Why?


He want to add the class not the image hes done that already :)
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco

Re: High resolution rank image

Post by 3Di »

Mannix_ wrote: Fri Dec 27, 2019 7:30 pm He want to add the class not the image
I missed that point sorry :)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
CD130
Registered User
Posts: 116
Joined: Thu Nov 13, 2014 2:09 pm

Re: High resolution rank image

Post by CD130 »

Mannix_ helped me out!!! Many thanks!!

Solution:

Code: Select all

.profile-rank img {
	width: 160px;
}

Return to “[3.2.x] Styles Support & Discussion”