XPath: A small tutorial

David G - DrupalRecently I was migrating a set of pages from an old site to a new site. To be flexible I wanted to scrape the pages of content. Having trivially used XPath and CSS Selectors before I decided to try my hand at using XPath from within PHP for a more cumbersome task. I will not be providing a full tutorial on all aspects of XPath but rather describe my current problem and describe my solution. There are many basic XPath tutorials on the internet and like any language it’s simply good to immerse yourself and learn it slowly over time. Learn More

Tags: , , , | Posted under Drupal | Leave a comment

Imploding an Associative Array

In the previous article, I said that implode() only works on simMODX logople, numeric arrays, but what if you want to do something similar with an associative array of keys and values. You can create a new array that implode() will like and run impolde() on that array. In this article we’ll see how. Learn More

Tags: , , , | Posted under MODX, MODX | Leave a comment

SocialEngine 4: How To Remove Powered By

Andrew - SocialEngine

Many users like to remove the ‘Powered by’ line in the footer as it can hide the fact your website is powered by a 3rd party software. It is also a great way to increase security as you won’t appear in search engine results for ‘Powered by SocialEngine’ (something which hackers do look for). Learn More

Tags: , , , | Posted under SocialEngine | Leave a comment