Thread Like Summary
Gizmo, isaac
Total Likes: 4
Original Post (Thread Starter)
restrict moderators from control panel completly #323473 05/07/2020 10:32 PM
by Ruben Rocha
Ruben Rocha
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.
Liked Replies
Re: restrict moderators from control panel completly #323484 May 10th a 09:04 PM
by isaac
isaac
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
1 member likes this
Re: restrict moderators from control panel completly #323496 May 12th a 09:55 PM
by Ruben Rocha
Ruben Rocha
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
Re: restrict moderators from control panel completly #323498 May 12th a 10:06 PM
by Ruben Rocha
Ruben Rocha
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
Re: restrict moderators from control panel completly #323499 May 12th a 10:14 PM
by isaac
isaac
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.
1 member likes this
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
jgeoff
jgeoff
NJ
Posts: 96
Joined: April 2001
Forum Statistics
Forums63
Topics37,543
Posts293,776
Members13,837
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 160
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 8
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 40
Gizmo 10
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 1
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: 5.544s Queries: 8 (5.529s) Memory: 2.9139 MB (Peak: 2.9675 MB) Data Comp: Zlib Server Time: 2020-08-09 12:02:14 UTC
Valid HTML 5 and Valid CSS