[CDB] Activity Buttons - Quick Links into Header

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Get Involved
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

[CDB] Activity Buttons - Quick Links into Header

Post by Volksdevil »

Please let me know if you install it, and it works as it should. :)

Extension Name:
Activity Buttons.

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.
Demo URL:
http://www.testphpbb.co.uk

Extension Download:
http://www.testphpbb.co.uk

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.

Screenshots:
Desktop Logged In:
Image

Desktop Logged Out:
Image

Mobile Logged In:
Image

Mobile Logged Out:
Image

Author:
Volksdevil with big thanks to posey

Extension Version:
2.0.0 - A counter is now added to the unread posts button. Version 1.0.3 without counter still Here
1.0.3 - Added Portuguese-Brazil & Spanish languages.
1.0.2 - Removed Search button, tweaked CSS.
1.0.1 - Changed language to be more specific.
1.0.0

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? :oops: 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.
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
pierredu
Registered User
Posts: 1256
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [RC] Activity Buttons

Post by pierredu »

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.
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

Re: [RC] Activity Buttons - Quick Links to Header

Post by Volksdevil »

Ah, that's a shame mate. Sorry about that. This uses the following event to place the buttons:
overall_header_searchbox_before

I removed the quick links items using .remove(), and then removed the leftover separators using .next()

Code: Select all

$( ".icon-search-self, .icon-search-new, .icon-search-unread, .icon-search-unanswered, .icon-search-active, .icon-search" ).remove();
$( ".icon-search-active, .icon-search" ).next().remove();
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? :)

EDIT: Yep, that should work. Updated/uploaded V1.0.1. :)
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
pierredu
Registered User
Posts: 1256
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [RC] Activity Buttons - Quick Links to Header

Post by pierredu »

That is fine.
Are you sure you're not doing "lego strings" elsewhere? For instance with 'Unread'?
User avatar
mrgoldy
Former Team Member
Posts: 1394
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: [RC] Activity Buttons - Quick Links to Header

Post by mrgoldy »

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.
phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
User avatar
pierredu
Registered User
Posts: 1256
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [RC] Activity Buttons - Quick Links to Header

Post by pierredu »

You'll say that I'm picky...
But what should Mine mean? My what? Topics? Posts? And Active, is this active forums, active topics?
User avatar
Mauron
Registered User
Posts: 342
Joined: Wed Jul 16, 2014 11:25 am

Re: [RC] Activity Buttons - Quick Links to Header

Post by Mauron »

Volksdevil wrote:I don't even know if [RC] is the correct tag for this? :oops:
I'd definitely go for [DEV].
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

Re: [RC] Activity Buttons - Quick Links to Header

Post by Volksdevil »

OK cheers.
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 :lol: 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.

Mine = My Posts
Active = Active topics

:)
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: [DEV] Activity Buttons - Quick Links into Header

Post by david63 »

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.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
pierredu
Registered User
Posts: 1256
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [DEV] Activity Buttons - Quick Links into Header

Post by pierredu »

Or at least add some comments in the basic language file.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [RC] Activity Buttons - Quick Links to Header

Post by 3Di »

Mauron wrote:
Volksdevil wrote:I don't even know if [RC] is the correct tag for this? :oops:
I'd definitely go for [DEV].
IMHO [alpha] it's ok, seems to be working, just coding guidelines issues and the like. Not checked though.
🆓 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
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

Re: [DEV] Activity Buttons - Quick Links into Header

Post by Volksdevil »

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.

Must get a test board up and running.
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

Re: [DEV] Activity Buttons - Quick Links into Header

Post by Volksdevil »

Currently on the cusp of uploading an update, but I'd like some feedback if possible?

I've been trying to get around the CSS issue of having the wide site-description div meaning that the H1 and <P> were being shifted over. But I've tried to do it in ways with minimal coding.

So I've actually removed the 'Search' button which frees up some space and done some testing with a new domain/test board :D A large site name and description are used to see how it copes and seems OK?

Test board: http://www.TestPhpbb.co.uk
User: test
Pass: testing

So...Omit the 'Search' button? Seems pointless having it I think, especially as it's next to the search bar anyway.
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

Re: [Alpha] Activity Buttons - Quick Links into Header

Post by Volksdevil »

Please grab the latest upload.

Updated to convert all coding to correct [EOL] End of line etc.
Same version number of extension. :)

Disable extension in ACP.
Delete the extensions files.
Upload new ones.
Enable extension.
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

Re: [Alpha] Activity Buttons - Quick Links into Header

Post by Volksdevil »

Can anybody suggest if this would be suitable for submitting to the CDB? I've done so much reading (Especially after a DDOS attack on my own board!) that my eyes/head are killing me.
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
Locked

Return to “Extensions in Development”