1 0 Tag Archives: how to
post icon

How to get string from the last occurrence of the space in the string?

$string = substr($row[vodtitle],0,40);
$string = str_replace("-","",$string);
echo substr($string, 0, strrpos( $string, ' ') ); //Hello World
Leave a Comment
post icon

How to remove “Clearbox is ready” popup messages that appear?

Clearbox is a lightbox script based on the jQuery framework. When user loads the page, it shows message “clearbox is ready”,

To disable it go to /clearbox/config/default/cb_config.js

The new code has to be this with “OFF” :
CB_OSD=’off’, // turns on OSD
CB_OSDShowReady=’off’, // when clearbox is loaded and ready, it shows an OSD message

Leave a Comment