[3.3][DEV] UCP Sidebar

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!
Ideas Centre
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)
Bruce Banner
Registered User
Posts: 1372
Joined: Thu Sep 25, 2014 10:36 am

Re: [3.3][DEV] UCP Sidebar

Post by Bruce Banner »

Sniper_E wrote: Fri Nov 24, 2023 2:15 amYou can figure out how to add those in by using the first two I gave you as an example.
I can't, though, because I can't understand the code, or how to find the correct code. It's easy enough for me to know what changes to make in the lang file but I can't understand any of the rest of it.
User avatar
Sniper_E
Registered User
Posts: 1147
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.3][DEV] UCP Sidebar

Post by Sniper_E »

When you go in ucp/board preferences and click on Auto Drafts the link to use is in the top of your browser. Do you see it?

And in the autodrafts.php lang file copy the 'PCGF_AUTO_DRAFT' => 'Auto draft', line and put it in this ext lang file.
Then use the {{ lang('PCGF_AUTO_DRAFT') }} in the line. Do the same with the other one.

One more example for you:

Code: Select all

{% if S_USER_LOGGED_IN %}
<div><a href="{U_PROFILE}?i=-pcgf-autodrafts-ucp-autodrafts_module&mode=settings"><i class="icon fa-share-square-o fa-fw" aria-hidden="true"></i>{{ lang('PCGF_AUTO_DRAFT') }}</a></div>
{% endif %}
See if you can do the other one using these directions.
Study how this is done and learn how to add them. Then you can add as many abandoned extensions you want in your copy.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
Bruce Banner
Registered User
Posts: 1372
Joined: Thu Sep 25, 2014 10:36 am

Re: [3.3][DEV] UCP Sidebar

Post by Bruce Banner »

Thanks. I had no idea that the main code I need is all in the URL of a sublink. Just figured that out now. Makes everything much easier.
Bruce Banner
Registered User
Posts: 1372
Joined: Thu Sep 25, 2014 10:36 am

Re: [3.3][DEV] UCP Sidebar

Post by Bruce Banner »

Just discovered a weird problem with Linked Accounts. When I'm logged in to my admin account, I can see both the "Account management" and "Account linking" sublinks on the sidebar. But if I'm logged in to an ordinary test user account, I can see only the "Account management" sublink on the sidebar, not the "Account linking" one.
User avatar
Sniper_E
Registered User
Posts: 1147
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.3][DEV] UCP Sidebar

Post by Sniper_E »

I put a if u_acp statement around that link so admin would see it. I'm sure admin has permission to account linking so that was safe.
If a user does not have permission to account linking then that module would not exist in ucp for them.
They would get a white page saying General Error, Module not accessible.
There is no if U_CAN_LINK_ACCOUNTS statement in that extension for that link in the header so I just assigned it to the admin.
I did the same thing in dmzx's linked accounts extension links years ago for the same reason.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
Bruce Banner
Registered User
Posts: 1372
Joined: Thu Sep 25, 2014 10:36 am

Re: [3.3][DEV] UCP Sidebar

Post by Bruce Banner »

Oh, OK then. If it's a permissions thing, fair enough.
User avatar
Sniper_E
Registered User
Posts: 1147
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.3][DEV] UCP Sidebar

Post by Sniper_E »

Your welcome. And thank you for pointing out that typo in one of the links.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
Bruce Banner
Registered User
Posts: 1372
Joined: Thu Sep 25, 2014 10:36 am

Re: [3.3][DEV] UCP Sidebar

Post by Bruce Banner »

deleted

Return to “Extensions in Development”