Previous Thread
Next Thread
Print Thread
Rate Thread
restrict moderators from control panel completly
#323473 05/07/2020 3:32 PM
Joined: Jan 2000
Posts: 244
Likes: 4
Beta Tester
OP Offline
Beta Tester
Joined: Jan 2000
Posts: 244
Likes: 4
In ubb 7.7.4 even if I set cp access to 0 they still get a menu item that displays the control panel link.
How do I block them completely from the control panel.

Last edited by Ruben Rocha; 05/07/2020 4:12 PM.
Sponsored Links
Re: restrict moderators from control panel completly
Ruben Rocha #323475 05/07/2020 4:15 PM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
Moderators need access to the Control Panel in order to utilize the approve posts tool (and manage members if they have access); this is why they get a link to the Control Panel, otherwise you'd have to just edit it out.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Re: restrict moderators from control panel completly
Ruben Rocha #323478 05/07/2020 4:31 PM
Joined: Jan 2000
Posts: 244
Likes: 4
Beta Tester
OP Offline
Beta Tester
Joined: Jan 2000
Posts: 244
Likes: 4
Okay more details.
It is the dashboard part that needs to be turned off if not easy to block the control panel
The part that displays forum/server stats. The owner does not want any numbers showing for moderators.
I mean the open/close board area is gone for mods . Is there a way to stop the display of all the other stats.

Re: restrict moderators from control panel completly
Ruben Rocha #323479 05/07/2020 4:41 PM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
That is not a stock behavior or option; your client is welcome to modify the Control Panel to their hearts content, but modifications are not supported at UBBCentral and you may be asked to revert your changes when seeking official support.

The contents of the landing page in the Control Panel can be located in /admin/dashboard.php and /templates/default/admin/dashboard.tmpl


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Re: restrict moderators from control panel completly
Ruben Rocha #323483 05/10/2020 1:57 PM
Joined: Jan 2000
Posts: 244
Likes: 4
Beta Tester
OP Offline
Beta Tester
Joined: Jan 2000
Posts: 244
Likes: 4
Originally Posted by Gizmo
That is not a stock behavior or option; your client is welcome to modify the Control Panel to their hearts content, but modifications are not supported at UBBCentral and you may be asked to revert your changes when seeking official support.

The contents of the landing page in the Control Panel can be located in /admin/dashboard.php and /templates/default/admin/dashboard.tmpl

That is why I posted here.

Looking at this, the open/close board line is using UBBPRINT which does not show for mods.
What is the function of UBBPRINT in the scripts.
What does it do?

I assume it is just a placeholder like EOF in the islands.
But what is it purpose.
What type of coding can you post in between those tags.

Sponsored Links
Re: restrict moderators from control panel completly
Ruben Rocha #323484 05/10/2020 2:04 PM
Joined: Jul 2001
Posts: 1,072
Likes: 39
coffee and code
Online Happy
coffee and code
Joined: Jul 2001
Posts: 1,072
Likes: 39
Originally Posted by Ruben Rocha
I assume it is just a placeholder like EOF in the islands.
But what is it purpose.

It is a php "heredoc"
https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc

The heredoc syntax is a much cleaner way (useful) to work with multi-line strings and avoid quoting issues. They are a great alternative to quoted strings because of increased readability and maintainability. You don't have to escape quotes and (good) IDEs or text editors will use the proper syntax highlighting.

A very common example: echoing out HTML from within PHP:
Code
$html = <<<HTML
  <div class='something'>
    <ul class='mylist'>
      <li>$something</li>
      <li>$whatever</li>
      <li>$testing123</li>
    </ul>
  </div>
HTML;

// Sometime later
echo $html;

https://stackoverflow.com/questions/5673269/what-is-the-advantage-of-using-heredoc-in-php


Current developer of UBB.threads PHP Forum Software // 7.7.4 released!
isaac @ id242.com // my forum @ CelicaHobby.com
1 member likes this: Gizmo
Re: restrict moderators from control panel completly
Ruben Rocha #323496 05/12/2020 2:55 PM
Joined: Jan 2000
Posts: 244
Likes: 4
Beta Tester
OP Offline
Beta Tester
Joined: Jan 2000
Posts: 244
Likes: 4
Thanks i thought it was a heredoc.
Just wanted to make sure
Made the change easy.
Just added the admin only statement for open/close forum to each item in the dashboard template required.
I hated doing that but that is what was requested.

1 member likes this: isaac
Re: restrict moderators from control panel completly
Ruben Rocha #323497 05/12/2020 2:57 PM
Joined: Jul 2001
Posts: 1,072
Likes: 39
coffee and code
Online Happy
coffee and code
Joined: Jul 2001
Posts: 1,072
Likes: 39
Originally Posted by Ruben Rocha
I hated doing that but that is what was requested.

"Breaking their forums since 2020" -Ruben

laugh


Current developer of UBB.threads PHP Forum Software // 7.7.4 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: restrict moderators from control panel completly
Ruben Rocha #323498 05/12/2020 3:06 PM
Joined: Jan 2000
Posts: 244
Likes: 4
Beta Tester
OP Offline
Beta Tester
Joined: Jan 2000
Posts: 244
Likes: 4
HA HA. That is why I posted here.
He will be sorry when he forgets things like allow mods to process pending members was hidden and then I will forget what I did but oh well that is what he wanted.

Or the story will be the next update when it raises it's head again and he wants it gone. Again I will need to find it.

But to his defense he has had the board since classic and he knows what he wants it to do.

1 member likes this: isaac
Re: restrict moderators from control panel completly
Ruben Rocha #323499 05/12/2020 3:14 PM
Joined: Jul 2001
Posts: 1,072
Likes: 39
coffee and code
Online Happy
coffee and code
Joined: Jul 2001
Posts: 1,072
Likes: 39
keep "customization notes" for each client, the same way we keep changelogs. it makes it easier to find what was changed and when. then review the notes when upgrading or troubleshooting for anything that your changes may break.

a good plan is to also submit these customization notes with your invoice to the client.


Current developer of UBB.threads PHP Forum Software // 7.7.4 released!
isaac @ id242.com // my forum @ CelicaHobby.com
1 member likes this: Gizmo
Sponsored Links
Re: restrict moderators from control panel completly
Ruben Rocha #323504 05/25/2020 3:00 AM
Joined: May 2020
Posts: 1
Lurker
Offline
Lurker
Joined: May 2020
Posts: 1
It is the dashboard part that needs to be turned off if not easy to block the control panel
The part that displays forum/server stats. The owner does not want any numbers showing for moderators.
I mean the open/close board area is gone for mods . Is there a way to stop the display of all the other stats.

Re: restrict moderators from control panel completly
Ruben Rocha #323505 05/25/2020 11:11 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
All of the information needed to modify the dashboard landing page is included in the above posts. Any changes to a stock system are not supported by any way by UBB systems.

Again there's no stock behavior to remove all of the data from the landing page and all of the data can be extrapolated from the main system just by looking at the total members and accounting of how many posts and topics are displayed on the category or form index pages.

Removing that block of links and data you may find your moderators unable to access the approved posts links as well as manage users that have the appropriate permission, this is especially true if one were to remove the links from the sidebar.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,543
Posts293,776
Members13,837
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 328
Topics Created 0
Posts Made 0
Users Online 2
Birthdays 5
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,805
Greg Hard 4,625
Top Posters(30 Days)
isaac 2
Top Likes Received
isaac 39
Gizmo 10
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.5
(Snapshot build 20200802.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.071s Queries: 43 (0.032s) Memory: 3.3518 MB (Peak: 3.5629 MB) Data Comp: Zlib Server Time: 2020-08-06 01:42:12 UTC
Valid HTML 5 and Valid CSS