Page 1 of 3

[CDB] Rank Post Styling

Posted: Thu Jul 10, 2014 6:19 pm
by PayBas
Rank Post Styling

A small extension that lets you add special CSS classes to post containers. This gives you the ability to put rank-specific styling rules in your CSS files. Things like making all posts made by admins display in red text-color. Or a brighter background, or whatever. You are in control.
screenshot.png
  • Integration with phpBB 3.1 ranks ACP module
  • Allows admin to specificy a CSS class rule for each "special" rank
  • CSS class rule is applied to <div class="post-container"> which wraps posts
  • Available in:
    • Viewtopic
    • Search results (posts mode)
    • Memberlist (viewprofile)
  • Gives total control to style whatever you like (fonts, colors, images, etc.)
Warning!:
This extension is only for those that are familiar with HTML and CSS. No support will be given beyond the actual functionality of the extension. All styling is up to you.

More info & download: https://www.phpbb.com/customise/db/exte ... t_styling/

Re: [DEV] Rank Post Styling

Posted: Thu Jul 10, 2014 6:50 pm
by Mess
Does this include the space "behind" the miniprofile? Like the Blizzard image behind the miniprofile for admins in your pbwow addon?

Re: [DEV] Rank Post Styling

Posted: Thu Jul 10, 2014 6:55 pm
by PayBas
Mess wrote:Does this include the space "behind" the miniprofile? Like the Blizzard image behind the miniprofile for admins in your pbwow addon?
Yes. If you know some CSS, you will be able to do this relatively easily.

Basically this extension allows you to style every part of a post (based on a specific rank). From the most outer container to the content.

Re: [DEV] Rank Post Styling

Posted: Thu Jul 10, 2014 7:36 pm
by Mess
/Drool

Re: [DEV] Rank Post Styling

Posted: Fri Jul 11, 2014 12:46 pm
by Darkness_demoN
Whow this sounds good !!!! I will install it when i come back from worck. I suggest to make one forum or somthing where people can post their styles and image how it looks like :) I will try to do 1 or 2 :)

Re: [DEV] Rank Post Styling

Posted: Sun Jul 13, 2014 4:40 am
by Patrick W.
This is a great extension! Do you have any plans to add ACP options for this to allow those who do not have HTML/CSS experience to use this?

Re: [DEV] Rank Post Styling

Posted: Sun Jul 13, 2014 7:23 am
by PayBas
Patrick W. wrote:This is a great extension! Do you have any plans to add ACP options for this to allow those who do not have HTML/CSS experience to use this?
Not really, because the possible options would be exhausting to list. Besides, you might want different CSS rules for different installed styles.

Re: [DEV] Rank Post Styling

Posted: Thu Jul 17, 2014 6:57 am
by Darkness_demoN
http://i.imgur.com/0tzXFHH.png
Hmm i think it didnt worck for me :/

Using:
Apache Version : 2.4.9
PHP Version : 5.5.12
MySQL Version : 5.6.17

Current version 3.1.0-RC2

Re: [DEV] Rank Post Styling

Posted: Thu Jul 17, 2014 7:00 am
by PayBas
Darkness_demoN wrote:Hmm i think it didnt worck for me :/
Until phpBB 3.1 RC3 is released, you will need to manually add some code. You can find it in the opening post, under "requires".

Re: [DEV] Rank Post Styling

Posted: Thu Jul 17, 2014 7:33 am
by Darkness_demoN
More info & download: ???
I open that many times and read README.md but didn't find where and what code i need to add.

Re: [DEV] Rank Post Styling

Posted: Thu Jul 17, 2014 7:45 am
by david63
Darkness_demoN wrote:More info & download: ???
I open that many times and read README.md but didn't find where and what code i need to add.
No - the link above that where is say "Requires". This is for the pull request that has the new events (in the core files) which this extension will need

Re: [DEV] Rank Post Styling

Posted: Thu Jul 17, 2014 8:19 am
by Darkness_demoN
david63 wrote: No - the link above that where is say "Requires". This is for the pull request that has the new events (in the core files) which this extension will need
Ok i manage to made it :D But why this only work on PBTech style ?

Edit 1:
I try to copy images and custom.css from styles\PBTech\theme into styles\prosilver\theme but still nothing :/

Re: [DEV] Rank Post Styling

Posted: Thu Jul 17, 2014 8:26 am
by PayBas
Darkness_demoN wrote:Ok i manage to made it :D But why this only work on PBTech style ?
It works on all styles that have prosilver's template events.

It's up to the style author if they want to include CSS rules that can be used by this extension. I included some rules in PBWoW 3 and PBTech, but for any other style you will have to create the rules yourself.

edit in response to above edit: Like I said, you need CSS knowledge to get this to work on your different styles. I can't provide any support for individual styles (except my own). You can't just copy CSS rules from one style to another and expect them to work like magic.

Re: [DEV] Rank Post Styling

Posted: Thu Jul 17, 2014 8:30 am
by Darkness_demoN
PayBas wrote: It works on all styles that have prosilver's template events.

It's up to the style author if they want to include CSS rules that can be used by this extension. I included some rules in PBWoW 3 and PBTech, but for any other style you will have to create the rules yourself.
The name of the css file need to be custom.css or somthing else ?

Re: [DEV] Rank Post Styling

Posted: Thu Jul 17, 2014 8:32 am
by PayBas
Darkness_demoN wrote:The name of the css file need to be custom.css or somthing else ?
They don't need to be in any specific location. They just need to be loaded.

You could add them to common.css, or content.css, or stylesheet.css, or you could add @import(custom.css) to your stylesheet.css and put the rules in custom.css.

It's up to you.