Category Archives: cPanel/Linux Hosting

Fatal Error Cannot Redeclare Class

In the previous article, we used code like this to prevent collisions between function names: [code language=”php”] include MODX_CORE_PATH . ‘components/mycomponent/model/mymathfunctions.class.php’; $math = new MyMathFunctions(); echo $math->addIntegers(2,3); /* Displays 5 …

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

Drupal7: Amend View Header when no View Results present

I have more than a few websites out in the wild (live). And occasionally all have some minor touch-ups they require from time to time for odd bugs or improvements …

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

SocialEngine 4: Prevent Right Clicks on Website

Some webmasters like to protect their sites and its users content. One method of doing this is disabling the right click of the mouse button. The script below is a cross browser …

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