Skip to content

Instantly share code, notes, and snippets.

Matthew Philogene raramuridesign

Block or report user

Report or block raramuridesign

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
raramuridesign / wp-sql-replace-url
Created Oct 29, 2014
Wordpress replace old url with new url [mysql search and replace]
View wp-sql-replace-url
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl');
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl');
raramuridesign / timezones-simple
Created Jul 2, 2014
TIME ZONES (simple list for chronoforms)
View timezones-simple
Select=Please Select a Time Zone
(GMT) Casablanca=(GMT) Casablanca
(GMT) Coordinated Universal Time=(GMT) Coordinated Universal Time
(GMT) Dublin, Edinburgh, Lisbon, London=(GMT) Dublin, Edinburgh, Lisbon, London
(GMT) Monrovia, Reykjavik=(GMT) Monrovia, Reykjavik
(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna=(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague=(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague
(GMT+01:00) Brussels, Copenhagen, Madrid, Paris=(GMT+01:00) Brussels, Copenhagen, Madrid, Paris
(GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb=(GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb
(GMT+01:00) West Central Africa=(GMT+01:00) West Central Africa
raramuridesign / gist:8858597
Created Feb 7, 2014
Logout link for Joomla 1.5, 2.5 and 3.0
View gist:8858597
Joomla 1.5 Logout Link
$returnURL = base64_encode(JURI::root() . "");
$user =& JFactory::getUser();
echo 'Hi,'.$user->username;
<a href="index.php?option=com_user&task=logout&return=<?php echo $returnURL; ?>">
<input type="button" name="Submit" class="button" value="Logout"></a>
raramuridesign / gist:8644087
Created Jan 27, 2014
View gist:8644087
-- Use this to replace the session table if its locked
-- Table structure for table `jos_session`
`username` varchar(150) DEFAULT '',
`time` varchar(14) DEFAULT '',
`session_id` varchar(200) NOT NULL DEFAULT '0',
`guest` tinyint(4) DEFAULT '1',
`userid` int(11) DEFAULT '0',
raramuridesign / chronoforms-boostrap.js
Created Apr 8, 2013
Bootstrap with ChronoForms To use this add this code to a Load JS action in the On Load event of your form.
View chronoforms-boostrap.js
window.addEvent('domready', function(){
var frontforms_css, template_css, bootstrap_css;
// remove ChronoForms CSS
frontforms_css = $$('link[href$="frontforms.css"]')[0];
frontforms_css.setProperty('href', '');
// move bootstrap.css
template_css = $$('link[href$="template.css"]')[0];
bootstrap_css = new Element('link',
type: 'text/css',
raramuridesign / country-lists.php
Created Apr 8, 2013
Various Country Lists also view for updated list of more codes >>
View country-lists.php
$countrylist = array(
"Antigua and Barbuda"=>"Antigua and Barbuda",
raramuridesign / t3-logo-module
Created Feb 1, 2013
Snippet to change the option for adding a logo module into the T3 Framework. Extend the option by override the parameter logotype defined in plugins/system/t3/base/params/template.xml. Example, add following into part of templateDetails.xml
View t3-logo-module
<fieldset name="theme_params" label="T3_THEME_LABEL" description="T3_THEME_DESC">
<field name="logotype" type="list" default="text"
description="T3_THEME_LOGOTYPE_DESC" >
<option value="text">T3_THEME_LOGOTYPE_TEXT</option>
<option value="image">T3_THEME_LOGOTYPE_IMAGE</option>
<option value="image">T3_THEME_LOGOTYPE_MODULE</option>
raramuridesign / vcard_example.php
Created Jan 10, 2013
vcard_example.php by Troy Wolf
View vcard_example.php
* Filename.......: vcard_example.php
* Author.........: Troy Wolf []
* Last Modified..: 2005/07/14 13:30:00
* Description....: An example of using Troy Wolf's class_vcard.
Modify the path according to your system.
raramuridesign / class_vcard.php
Last active Dec 10, 2015
class_vcard.php by Try Wolf
View class_vcard.php
* Filename.......: class_vcard.php
* Author.........: Troy Wolf []
* Last Modified..: 2005/07/14 13:30:00
* Description....: A class to generate vCards for contact data.
class vcard {
var $log;
var $data; //array of this vcard's contact data
View ZA-Province-list
<select name="Provinces" id="Provinces">
<option selected="selected">Please select</option>
<option value="Eastern Cape" id="EasternCape">Eastern Cape</option>
<option value="Free State" id="FreeState">Free State</option>
<option value="Gauteng" id="Gauteng">Gauteng</option>
<option value="KwaZulu-Natal" id="KwaZulu-Natal">KwaZulu-Natal</option>
<option value="Limpopo" id="Limpopo">Limpopo</option>
<option value="Mpumalanga" id="Mpumalanga">Mpumalanga</option>
<option value="Northern Cape" id="NorthernCape">Northern Cape</option>
<option value="North West" id="NorthWest">North West</option>
You can’t perform that action at this time.