Browsed by
Author: William Bargent

How many users are in your AD Group?

How many users are in your AD Group?

Simple command which will count how many users are in your Active Directory group. This will require administrative privileges. In PowerShell run: Import-Module ActiveDirectory (get-aduser -filter {memberof -recursivematch “CN=Staff,OU=Groups,DC=bargent,DC=com”}).count

Prevent # href Page Jumping

Prevent # href Page Jumping

Many JQuery toggles are controlled by ‘a’ links with ‘#’ href values however when clicked they can make the page jump. This simple code will lock the page position: //Prevent page jumping to top on # click $(“a.submenu-button”).click(function(e) { e.preventDefault(); });

Must Know Chomebook Keyboard Shortcuts

Must Know Chomebook Keyboard Shortcuts

Here are my 10 must know keyboard shortcuts to get the most out of your Chromebook. Ctrl + T – Open New Tab Ctrl + W – Close New Tab Ctrl + N – Open New Window Ctrl + F5 – Takes a screenshot Ctrl + Shift + F5 – Take a selected screenshot Search + L – Locks the Chromebook Alt + Search – Toggle Caps Lock Alt + Backspace – Delete Character Alt + 1 + Pinded Item…

Read More Read More

TWiki Sidebar With LDAP Authentication

TWiki Sidebar With LDAP Authentication

TWiki allows you to create personal sidebars so the user can pin pages however with Active Directory Apache Authentication the username is all lowercase when Twiki imports it. Personal Sidebar requires the page name to be a Wiki Word. When a user clicks to create their sidebar it creates a file called wbargentLeftBar.txt; as Perl is case sensitive it looks for a file called WbargentLeftBar. ln -s /srv/www/twiki/data/Main/wbargentLeftBar.txt /srv/www/twiki/data/Main/WbargentLeftBar.txt This command creates a symlink to the correct location.

Concrete5.7 Custom Login

Concrete5.7 Custom Login

In earlier versions of Concrete their was a file called site_theme_paths.php the config folder which defined whether single pages would use the default theme styling or a custom theme. In 5.7 this has been moved to the app.php file. Inside the return array place the following code. ‘theme_paths’ => array( ‘/login’ => ‘theme_name’, ),

Require and Provide Concrete5 Assets

Require and Provide Concrete5 Assets

When developing a new C5 theme the documentation on scripts and using core scripts is a bit vague for 5.7 installations. The following code allows you to tell C5 that your theme doesn’t include jQuery so load it: $this->requireAsset(‘javascript’, ‘jquery’); The following code tells C5 your theme includes jQuery so don’t load it again: $this->providesAsset(‘javascript’, ‘jquery’); This code must be placed inside the ‘registerAssets()’ function in the ‘page_theme.php’. To get the ‘page_theme.php’ file to work, the theme must be installed…

Read More Read More