Group Subscription (PayPal)

Move Subscriptions link from quick menu to navbar menu - Group Subscription (PayPal)

Move Subscriptions link from quick menu to navbar menu

by jonhcarter » Wed Sep 04, 2019 3:50 pm

Hello,

First of all thank you very much for nice extension.

when i activate the extension it add link to quick menu & its find to hard. i want to move Subscription link from quick menu to navbar. how can i do this?

thanks
jonhcarter
Registered User
Posts: 36
Joined: Fri Aug 10, 2018 4:04 am
Contact:

Re: Move Subscriptions link from quick menu to navbar menu

by StevoTVR » Wed Sep 04, 2019 7:09 pm

Remember to disable the extension before changing any files and re-enable it after.

You can add a file called overall_header_navigation_append.html in ext/stevotvr/groupsub/styles/all/template/event containing:

Code: Select all

{% if U_GROUPSUB_SUBS %}
<li data-last-responsive="true">
    <a href="{{ U_GROUPSUB_SUBS }}" title="{{ lang('GROUPSUB_PACKAGE_LIST') }}" role="menuitem">
        <i class="icon fa-paypal fa-fw" aria-hidden="true"></i><span>{{ lang('GROUPSUB_PACKAGE_LIST') }}</span>
    </a>
</li>
{% endif %}
You can also delete navbar_header_quick_links_after.html if you want to remove it from the quick links.
User avatar
StevoTVR
Registered User
Posts: 271
Joined: Thu Jul 13, 2006 6:23 pm
Name: Steve Guidetti
Contact:

Re: Move Subscriptions link from quick menu to navbar menu

by jonhcarter » Thu Sep 05, 2019 2:08 am

thank you very much. it works

Please make this feature as default. as most of forums over the internet show Subscriptions link in navbar so user can navigate easily & they know easily website have premium Subscription also.
jonhcarter
Registered User
Posts: 36
Joined: Fri Aug 10, 2018 4:04 am
Contact:

Re: Move Subscriptions link from quick menu to navbar menu

by StevoTVR » Thu Sep 05, 2019 4:12 am

jonhcarter wrote:thank you very much. it works

Please make this feature as default. as most of forums over the internet show Subscriptions link in navbar so user can navigate easily & they know easily website have premium Subscription also.
Yeah that sounds like a good idea. Thanks for the suggestion! :)
User avatar
StevoTVR
Registered User
Posts: 271
Joined: Thu Jul 13, 2006 6:23 pm
Name: Steve Guidetti
Contact:

Re: Move Subscriptions link from quick menu to navbar menu

by Kajol » Tue Sep 10, 2019 8:10 pm

Great extension, thank you. Still testing it, but already in love with it.

One question...
I want to show the link (in Navbar and Quicklink) only to members when they logged in ... and as a second step, only to members who have a certain amount of posts. Is this possible and if yes, how.

Thank you
User avatar
Kajol
Registered User
Posts: 9
Joined: Tue May 26, 2009 2:00 pm
Contact:

Re: Move Subscriptions link from quick menu to navbar menu

by StevoTVR » Tue Sep 10, 2019 8:18 pm

There are no settings for that, but you can edit the logic in theuser_setup function in event/main_listener.php to change when the link is shown.
User avatar
StevoTVR
Registered User
Posts: 271
Joined: Thu Jul 13, 2006 6:23 pm
Name: Steve Guidetti
Contact:

Re: Move Subscriptions link from quick menu to navbar menu

by Thunderer » Thu Oct 17, 2019 2:56 am

StevoTVR wrote:Remember to disable the extension before changing any files and re-enable it after.

You can add a file called overall_header_navigation_append.html in ext/stevotvr/groupsub/styles/all/template/event containing:

Code: Select all

{% if U_GROUPSUB_SUBS %}
<li data-last-responsive="true">
    <a href="{{ U_GROUPSUB_SUBS }}" title="{{ lang('GROUPSUB_PACKAGE_LIST') }}" role="menuitem">
        <i class="icon fa-paypal fa-fw" aria-hidden="true"></i><span>{{ lang('GROUPSUB_PACKAGE_LIST') }}</span>
    </a>
</li>
{% endif %}
You can also delete navbar_header_quick_links_after.html if you want to remove it from the quick links.

Thanks for that, it answered a question I had and resolved the way to do it.
Thunderer
Registered User
Posts: 132
Joined: Mon Apr 20, 2009 1:49 am
Contact: