[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: 2413
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

[CDB] Activity Buttons - Quick Links into Header

Post by Volksdevil » Tue Jan 12, 2016 12:45 am

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 Image KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
My Volkswagen Corrado G60 | Opel Manta Owners Forum

User avatar
pierredu
Registered User
Posts: 800
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)
Name: Pierre Duhem

Re: [RC] Activity Buttons

Post by pierredu » Tue Jan 12, 2016 1:07 pm

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: 2413
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 » Tue Jan 12, 2016 1:25 pm

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 Image KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
My Volkswagen Corrado G60 | Opel Manta Owners Forum

User avatar
pierredu
Registered User
Posts: 800
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)
Name: Pierre Duhem

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

Post by pierredu » Tue Jan 12, 2016 2:26 pm

That is fine.
Are you sure you're not doing "lego strings" elsewhere? For instance with 'Unread'?

User avatar
posey
Registered User
Posts: 546
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

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

Post by posey » Tue Jan 12, 2016 2:28 pm

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.
Ultimate Extensions:
Image Ultimate Blog (coming soon)
Image Ultimate Teams

''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.''

User avatar
pierredu
Registered User
Posts: 800
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)
Name: Pierre Duhem

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

Post by pierredu » Tue Jan 12, 2016 2:36 pm

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 » Tue Jan 12, 2016 2:45 pm

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: 2413
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 » Tue Jan 12, 2016 2:47 pm

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 Image KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
My Volkswagen Corrado G60 | Opel Manta Owners Forum

User avatar
david63
Jr. Extension Validator
Posts: 13190
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

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

Post by david63 » Tue Jan 12, 2016 3:29 pm

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!
My CDB Contributions | How to install an extension
I 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

User avatar
pierredu
Registered User
Posts: 800
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)
Name: Pierre Duhem

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

Post by pierredu » Tue Jan 12, 2016 5:03 pm

Or at least add some comments in the basic language file.

User avatar
3Di
Registered User
Posts: 11879
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

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

Post by 3Di » Tue Jan 12, 2016 5:27 pm

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.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

User avatar
Volksdevil
Registered User
Posts: 2413
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 » Tue Jan 12, 2016 5:49 pm

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 Image KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
My Volkswagen Corrado G60 | Opel Manta Owners Forum

User avatar
Volksdevil
Registered User
Posts: 2413
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 » Tue Jan 12, 2016 8:38 pm

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 Image KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
My Volkswagen Corrado G60 | Opel Manta Owners Forum

User avatar
Volksdevil
Registered User
Posts: 2413
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 » Thu Jan 14, 2016 11:44 pm

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 Image KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
My Volkswagen Corrado G60 | Opel Manta Owners Forum

User avatar
Volksdevil
Registered User
Posts: 2413
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 » Tue Jan 19, 2016 9:08 pm

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 Image KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
My Volkswagen Corrado G60 | Opel Manta Owners Forum

Locked

Return to “Extensions in Development”

Who is online

Users browsing this forum: No registered users and 13 guests

cron