My Account Login Link

Permalink Browser Info Environment
Hi,

I am using the new Atomik theme for V9 and in the bottom right hand corner of the footer there is a login/logout link.

I want to include a Login/Logout option in the header of the mega menu so users can get to there account and also access the pages that require permission to see them, but am not sure how to include that link up there as I don't see the login/logout page or my account page listed in my sitemap.

Can you advise on how to achieve this?

Thank you

Type: Ticket
Status: In Progress
conc5fan
View Replies:
jb1 replied on at Permalink Reply
jb1
Hi,
Good question! Unfortunately, there isn't an easy checkbox to do this within Mega Menu. So there are 3 options (from easiest to hardest):

1) In the Mega Menu editable interface, look for the "Display" tab and click the "Add to end of menu" checkbox. There's an option displayed to show a Stack item at the end of the menu. This would need a block that can dynamically create a login/logout link. This particular add-on is designed for it:
https://marketplace.concretecms.com/marketplace/addons/loginlogout-l...
(1 review said it works with ConcreteCMS V9).
I had an old add-on in the marketplace designed for a previous version of Concrete (unfortunately I haven't had the time to update it):https://marketplace.concretecms.com/marketplace/addons/register-user...

2) Modify the HTML template so there's another editable area at the end of the navigation menu area. Then place a login block. It might take some custom coding to create the login link (or see point #1 above). I did this on a site:http://foreverbreak.com/
Since this site uses heavy caching I achieved the login menu item using Javascript so it wouldn't be affected by the PHP caching on the server.

3) Use some custom Javsacript in your theme to inject the login/logout link dynamically. Requires some Javascript/HTML/CSS knowledge.

I'd recommend option 1 if you can for maximum flexibility and future compatibility.

Hope this helps.

JB
conc5fan replied on at Permalink Reply
conc5fan
Thank you.

I can't use option 1, I tried it but it won't allow me to download it - it says it is not compatible with my version of concrete (v. 9.2.2).

So I'll have to try and learn how to do #2 I think, unless there is a way to override the download despite the version number.
jb1 replied on at Permalink Reply
jb1
You're probably getting that if you're downloading it from the marketplace integration (within the Concrete dashboard).

You'll need to manually download and install it.

Click "download archive" on the marketplace listing to manually download that add-on.
Here are the steps to follow:
https://legacy-documentation.concrete5.org/tutorials/download-manual...

That should do the trick.
conc5fan replied on at Permalink Reply 1 Attachment
conc5fan
I managed to install the login/logout add-on through the download archive process. It didn't appear under Stacks when I looked in the Display menu dropdown for Mega Menu. So, I realized I have to add it to the site as a Stack.

I created a new stack. Then when I add the Login/Logout block to the stack an error appears and doesn't let me add it. See attached screenshot.
jb1 replied on at Permalink Reply
jb1
I'm assuming that variable is related to PHP8 which requires all variables to be explicitly declared. It might require a little PHP knowledge to fix that add-on to make it compatible with Concrete V9 then. I haven't used it myself, but recommended based on the review of another Concrete users.

Fixing or customising a 3rd party add-on is beyond the scope of support provided for my marketplace add-on. But I'll take your feedback onboard and look at integrating a login/logout link within Mega Menu if a future version.

JB
conc5fan replied on at Permalink Reply
conc5fan
Hi JB,

I'm just checking back on if you are still considering adding login/logout my account feature in future version of mega menu. If so, do you know approx. when that would be available?

Thanks!
jb1 replied on at Permalink Reply
jb1
Your timing is impeccable! I just finished a large long-term project yesterday and was prioritising my list of tasks and projects. Updating Mega Menu is next on the list and I've got a couple new features (in addition to the login/logout link) so I'll hit all those at the same time. Once that's uploaded I'll update this ticket.

And now that I've got a bit more free time, I'll be jumping head-first back into revamping my own website and releasing some new add-ons/themes. If you also need any custom programming services, I'm available as well.
conc5fan replied on at Permalink Reply
conc5fan
That is AWESOME! Great to hear and congrats on finishing a big project, must feel nice.

Two other features (you may have already thought of this..) that would be sweet are the ability to add a logo so we don't have to customize templates, and the ability for a second top row,

For example, having a line to show a phone number or social links etc.. like this website has:
http://www.gwequipment.com/ (I'm not affiliated with them, it's just a random site with logo/menu/top row phone etc..).

Anyways, looking forward to seeing what you got cooking up for the mega menu!
jb1 replied on at Permalink Reply
jb1
Yep, I've got a logo addition alread on the cards for this next version. But I like the suggestion of a second row of info (phone number, social links, etc). Added that to the list. Thank you for the suggestion. :-)
jb1 replied on at Permalink Reply
jb1
I wanted to keep you in the loop. I've been working hard on the update to Mega Menu. In fact, it's turning out to be the biggest update I've done for any add-on, ever. It's even more work than creating the Mega Menu in the first place. Version 3.0 will have dozens of new features and improvements, with 70% reduction in page loads and also being far more search engine friendly, with cleaner, leaner code. It's taking longer than my original shortlist of new features - but I'm confident the wait will be worth it. Thanks for your patience, and I'll drop you an update as soon as it's live within the next couple weeks.

JB
conc5fan replied on at Permalink Reply
conc5fan
That is good news, great update - looking forward to it!

concrete5 Environment Information

# Concrete Version
Core Version - 9.2.1
Version Installed - 9.2.1
Database Version - 20230503095900

# Hostname
ip-172-26-2-191

# Environment
production

# Database Information
Version: 8.0.34
SQL Mode: NO_ENGINE_SUBSTITUTION

# Concrete Packages
Location Map (1.2.2), Magic Tabs (9.0.5), Mega Menu (2.0.4), Simple Gallery (2.1.0)

# Concrete Overrides
None

# Concrete Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
fpm-fcgi

# PHP Version
8.1.22

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, readline, Reflection, session, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
max_multipart_body_parts - -1
memory_limit - 128M
post_max_size - 40M
upload_max_filesize - 40M
zend.exception_string_param_max_len - 0
ldap.max_links - Unlimited
mbstring.regex_retry_limit - 1000000
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
unserialize_max_depth - 4096
opcache.jit_bisect_limit - 0
opcache.jit_max_exit_counters - 8192
opcache.jit_max_loop_unrolls - 8
opcache.jit_max_polymorphic_calls - 2
opcache.jit_max_recursive_calls - 2
opcache.jit_max_recursive_returns - 2
opcache.jit_max_root_traces - 1024
opcache.jit_max_side_traces - 128
opcache.max_accelerated_files - 4000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Safari/605.1.15

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.