Call   0208 3131682   Mon-Fri 9am-6pm
Category

Wordpress

How to engage your staff using your Intranet

By | Buddypress, Intranet, PHP, Web Design, Wordpress | No Comments

In this article, we’ll look at some ideas for useful things to have on your intranet and how to use these to help engage your Employees, members or Volunteers.

intranet employee engagement features

What are the benefits of engaged staff ?

  • Happy workforce ( productive workforce, helps business be more profitable)
  • Low Staff turnover ( saves money in recruitment and training)

Useful Intranet features  for employee engagement

Employee Recognition Section

Make your staff feel engaged by recognising them and their achievements ( both personal and professional ). A section on your homepage for this would really make people feel valued, and a good way for other employees to spark up a conversation with the recognised individual ( or team) Some ideas of the kind of thing to recognise:

  • An employee has a work anniversary
  • An employee is doing a Marathon for charity
  • A employee or team have delivered a great project that will help company save money
  • The works Football team are doing well

“Our Intranet features a news feed with stories of employee honors and work anniversaries, volunteering, company sponsorships and other news with links to more details. It can be a challenge sharing our culture across four states in a regulated industry. But people love reading about and seeing images of colleagues they know as well as those they’ve never met. By far we’ve gotten the most engagement posting photos of employees in Halloween costumes and celebrating Ugly Sweater Day. In a regulated industry, the simple, silly things unite us and we laugh together. ” – An Intranet Manager I interviewed that wishes to remain anonymous.

 

New Employees Section

Welcome your new employees, with a section on the homepage, linking to their staff profiles.

Suggestions

Have somewhere, that employees can easily post suggestions, to save money, to make staff more engaged, to make money and so on. Your staff are your businesses greatest asset ( often the ones on the shop floor close to certain areas of the business can deliver great insights – that might otherwise never come to light). You could incentivise with a monthly prize for the best suggestion.

Personalisation

Display relevant content to the Intranet visitor based on one or a number of criteria ( or even let users pick what they want to see).

Displaying content based on a Persona 

E.g. one type of persona could be ‘New Starter’ , are there any important documents they need to read, are their specific forms they might need to fill ( eg bank details so they can get paid on time).

If your a large organisation (with multiple locations across the globe) you might want display things based on the location, or the team ( maybe HR need to see something different to IT and so on).

Allowing Users to pick content they are interested in

You can let users pick some of the content they are interested in and have it displayed prominently for them.

 

Are you looking to have an intranet developed or would like to upgrade / improve your existing Intranet ? Get in touch we’re experts in this area.

 

Disclaimer: All content on this site, is use at your own risk (Always backup before changing anything in your software/database/servers etc). Techs change, go out of date etc...
I/we accept no liability if anything you use on this site adversely affects you.

Buddypress how to remove tabs from groups sub tabs ( eg remove Delete group)

By | Buddypress, Membership sites, PHP, Wordpress | No Comments

This code is based on a post from the buddypress forums tested on Buddypress 2.9.2  ( forum states its compatible from BP 2.6+).

In this example we remove the Delete tab and also permission so that user can’t try and goto the url to access it.

Note there are numerous other examples / versions of this code  scattered about the bp forums that dont work as function bp_core_remove_subnav_item now requires the extra param (see code below).

important: Navigation API has lots of good up to date examples

 

See this post also on hiding the delete tab on the groups from the buddypress forums

 

 

Disclaimer: All content on this site, is use at your own risk (Always backup before changing anything in your software/database/servers etc). Techs change, go out of date etc...
I/we accept no liability if anything you use on this site adversely affects you.

WordPress SQL snippets

By | PHP, SQL, Wordpress | No Comments

A place to keep snippets of useful WordPress SQL.

Do a select based on some meta field of a post ( i.e. search for a post that has a particular metafield  )
In the example above I’m searching for posts with a value for id_vim_node. This is based on this code from stackexchange

Output WP_Query sql code (very useful for debugging WP_Query )

if in the loop

outside of loop

based on this post on stackexchange

Disclaimer: All content on this site, is use at your own risk (Always backup before changing anything in your software/database/servers etc). Techs change, go out of date etc...
I/we accept no liability if anything you use on this site adversely affects you.

Using WordPress as a Company Intranet

By | Intranet, PHP, Web Design, Wordpress | No Comments

planning a WordPress Intranet

WordPress can be a great choice as a company / staff Intranet, but it’s important to first define what features you need. Then to either code the features or choose plugins to use / customise.

Being a programmer, I think WordPress is an excellent intranet choice, the WordPress API allows you to customise things to how you want.

In this article I’ll later discuss some useful plugins for some of the main features.

Common features of a staff intranet

There are many possible features an Intranet website can have, these are probably the ones that nearly all Intranets will need.

  • Company news
  • Knowledge base / Document management System
  • Staff Directory and Profiles

Other features a company Intranet may need:

  • Forms ( online / downloadable printable forms )
  • Staff Events Calendar
  • Blog/s
  • HR section (policies and the like )
  • Social network features (such as groups, group threads, user to user messaging )
  • WordPress integration with Microsoft Active Directory (if you choose WordPress and your on a windows network)

Look and feel and navigation

This is down to preference, but some things to consider are:

  • Company branding
  • A good homepage will have latest news prominently displayed.
  • Good navigation and Search feature to allow staff to navigate to the things that important to them.

 

How to achieve the main Intranet features with WordPress

 

Document Management

WordPress has basic document management built into it as standard through the media library, which for many organisations will do what you need.

For basic Document Management on an Intranet you need to ability to:

  • Upload a file and store it
  • Generate a link to the file that can be used anywhere on the Intranet (allowing easy access)

Once you have this functionality you can create pages and put the documents on the pages, eg you might have a HR (Human Resources) section that has a policy documents page (just add the links to the page). Go to the file in the media library and get the link like in the image below:

If you want to go further, an example might be wanting to have review dates for documents. So you can guarantee that policies and training documents etc are upto date, then a good starting point is the WP Document Revisions Plugin (you’ll need to customise it alittle for review date functionality):

https://wordpress.org/plugins/wp-document-revisions/

Company News

The blog feature of WordPress can be used for posting articles on any topic. If you want to create a company news section, a simple way is to create a category type of ‘company news’ and then add this to any post you want to have in the company news section.

E.g if I wanted a Javascript posts section on my website I could create ‘javascript’ category and then all the javascript posts are on this page: http://www.green-box.co.uk/category/javascript/ ( so long as i tag each post with that category ).

You probably want this also on your homepage, todo this alter the template for the homepage and drop in something like below or use a widget if you have widget areas and don’t want to touch any code https://en-gb.wordpress.org/plugins/category-posts/ .

Staff Directory and Profiles

There are many plugins for creating staff directories, this depends on your needs. A straightforward one is Ultimate member:

https://wordpress.org/plugins/ultimate-member/

Another good one (with lots of features), is Buddypress. This one might be overkill if you want basic staff directory. It has member features for creating a social network – such as groups, member to member messaging and so on.

https://en-gb.wordpress.org/plugins/buddypress/

Conclusion

I hope this gives you some insight in creating an Intranet with WordPress. Although I’ve only touched on some of the basic features here.

If you’re planning an Intranet or would just like to know more, enter your email below to receive my free pdf which goes into much more depth on creating some other features that you might find useful things like:

  • being able to easily create forms
  • integrating WordPress with Microsoft Active Directory

If you’d like my free PDF on Intranet Development with WordPress please enter your email below:

please email me on info@green-box.co.uk

 

Disclaimer: All content on this site, is use at your own risk (Always backup before changing anything in your software/database/servers etc). Techs change, go out of date etc...
I/we accept no liability if anything you use on this site adversely affects you.

How to add a form to a shortcode in WordPress (using PHP and Ajax)

By | Ajax, HTML, Javascript, online forms, Wordpress | No Comments

Recently I needed to develop a Shortcode that would display a form, this blog post details what I did. I used Ajax ( which seems the best way to add forms to shortcodes, but I’d welcome any input from other developers on your approach).

So without further ado lets get on with adding a form to a shortcode in WordPress.

We need javascript to handle submission of the form via ajax (this presumes you have jquery available), and handle the response from the server. green_form is the form id.

 

Next we need the php to handle everything else, you could put this in functions.php (or include from functions.php) or put it into a plugin. The shortcode to include the form in our page or post is [shortcode_with_form] 

The code handles:

  • the output of the shortcode
  • the server side processing of the form (I’ve just created a stub in this example ( function do_something_serverside )
  • and the including of javascript file required ( if you’d like to know abit depth on ajax forms in WordPress see my post on that )
 

Hope you find this interesting if you’re looking to add a form to a shortcode.

 

 

 

Disclaimer: All content on this site, is use at your own risk (Always backup before changing anything in your software/database/servers etc). Techs change, go out of date etc...
I/we accept no liability if anything you use on this site adversely affects you.

How to get a users Roles and how to list all WordPress roles in PHP

By | PHP, Programming, Wordpress | One Comment

This code is handy if you want to find out a users role/s. You could expand it and check if a user has a given role or similar.

This code is based on examples from:

https://codex.wordpress.org/Function_Reference/get_userdata

and

https://wordpress.stackexchange.com/questions/1665/getting-a-list-of-currently-available-roles-on-a-wordpress-site

If you did want to check if the user is in a certain group you could do something like this:

 

Disclaimer: All content on this site, is use at your own risk (Always backup before changing anything in your software/database/servers etc). Techs change, go out of date etc...
I/we accept no liability if anything you use on this site adversely affects you.