Extension Description:
Adds a responsive button set in the header for your users to view:
New posts, active topics, their posts & unread topics.
Guests will see buttons to Register & Login. The links above are also removed from the 'Quick links' menu.

Features:

The buttons are responsive, and will center upon viewing via mobile devices.

2.x.x has a counter added to the Unread posts button.

1.x.x (Will not be submitted to CDB) Does not include the counter, available Here.

Logged in users will see the following buttons in the header:New | Active | Unread | Mine

Guests will see the following buttons instead:Register | Login | Active Topics

Some small scripting to remove the core links from the 'Quick links' menu.

Install instructions:
Download and extract the zip folder.
Upload the 'volksdevil' folder to your boards 'ext' folder so that you have:YOUR_BOARD_ROOT/ext/volksdevil/activitybuttons
Navigate to the 'customise' tab and enable the 'Activity Buttons' extension.

Requirements:
Only developed with prosilver style in mind, though may look OK on others.
Currently only 'en' language, will take translations.

My first ever extension so please advise if I've done something wrong...I don't even know if [RC] is the correct tag for this? I'm only a basic self taught HTML/CSS coder so I probably won't be able to make 'big' changes, but I will help if I can.

Last edited by Volksdevil on Sun Jan 31, 2016 11:51 pm, edited 16 times in total.

I tested on a heavily modified prosilver style and the buttons don't appear. The upper banner is completely rewitten in my style.

On the other hand, several items of the Quick links dropdown menu are gone. I'll have a look at how you did it, because I'm interested by this aspect.

Just an addition:
I looked at your language file. You should not use blocks like 'Active' to mix it with 'topics' to produce 'Active topics. In French, for instance, one should write 'Sujets actifs', that is in the opposite order. You're trying to spare on this, but it is the wrong place.

RE: The language file, I had to get some help on that (In the process of learning how to use them) but now I think I have a rough idea, so I can create a new language var specific to the 'Active topics' > 'Sujets actifs'? That would do it right?

No, I set up the language file.
My bad, I should of pointed that out. Just didn't think outside the English language..
@volksdevil, make sure to adjust your if statement with it then (haven't looked at if you did or not, just a heads up)

Rest is all really basic and kept to one word, pretty much what the intension of this extension is I suppose. A quick and easy overview of some links.

''I'm pretty sure there's a lot more to life than being really, really, ridiculously good looking. And I plan on finding out what that is.''

posey wrote:@volksdevil, make sure to adjust your if statement with it then (haven't looked at if you did or not, just a heads up)

Yep, adjusted that 'IF' statement, and I've also now edited the code so that if the board search is disabled, then the options don't show. But guests will still see buttons to register and login.

pierredu wrote:You'll say that I'm picky...
But what should Mine mean? My what? Topics? Posts? And Active, is this active forums, active topics?

I understand, I'm picky too, but the other way I like things minimalist, and to keep the div holding the buttons as small as possible, the language needed to be as short as possible. Just that it causes issues with the overly large <div id="site-description"> also in the header, why it has a width of 65% instead of 'auto' I don't know.

Volksdevil wrote:I like things minimalist, and to keep the div holding the buttons as small as possible, the language needed to be as short as possible

The problem with that approach is that you probably will not know how it will translate - something that is only a few characters in EN may well be many more characters in some other language and the opposite is also a possibility. You should try and make descriptions as clear as possible which may mean that you have to use some css trickery.

DavidRemember: You only know what you know and - you don't know what you don't know!My CDB Contributions | How to install an extensionI will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.No support requests via PM or email as they will be ignored

Can you point out any specific coding guideline issues? Being my first extension, and not being entirely confident in what I'm doing, any help is appreciated.

david63 wrote:You should try and make descriptions as clear as possible which may mean that you have to use some css trickery.

Which descriptions David?
I've now added some css to make the core <div id="site-description"> auto width rather than 65% which will give much more room. I just need to check how the <h1> and <p> within the site-description div are affected.