Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Code Snippets – Revolved Media https://revolvedmedia.com WordPress Experts London Ontario Wed, 14 Jul 2021 17:16:05 +0000 en-CA hourly 1 Canada Provinces & Territories CSV & Drop Down https://revolvedmedia.com/canada-provinces-territories-csv-drop/ https://revolvedmedia.com/canada-provinces-territories-csv-drop/#respond Tue, 18 Nov 2014 03:53:38 +0000 http://revolvedmedia.com/?p=6396 Are you looking for a csv of all the provinces in Canada. Copy and paste...

The post Canada Provinces & Territories CSV & Drop Down appeared first on Revolved Media.

]]>
Are you looking for a csv of all the provinces in Canada. Copy and paste away:

 

Alberta, British Columbia, Manitoba, New Brunswick, Newfoundland and Labrador, Nova Scotia, Ontario, Prince Edward Island, Quebec, Saskatchewan, Northwest Territories, Nunavut, Yukon

 

Here is the source code for a drop down/select menu.

<select>
	<option value="AB">Alberta</option>
	<option value="BC">British Columbia</option>
	<option value="MB">Manitoba</option>
	<option value="NB">New Brunswick</option>
	<option value="NL">Newfoundland and Labrador</option>
	<option value="NS">Nova Scotia</option>
	<option value="ON">Ontario</option>
	<option value="PE">Prince Edward Island</option>
	<option value="QC">Quebec</option>
	<option value="SK">Saskatchewan</option>
	<option value="NT">Northwest Territories</option>
	<option value="NU">Nunavut</option>
	<option value="YT">Yukon</option>
</select>

Quick little snippet of code I end up typing or using frequently. Hope I can save you a little time.

The post Canada Provinces & Territories CSV & Drop Down appeared first on Revolved Media.

]]>
https://revolvedmedia.com/canada-provinces-territories-csv-drop/feed/ 0
Optimize All MySQL Tables Command https://revolvedmedia.com/optimize-mysql-tables-command/ https://revolvedmedia.com/optimize-mysql-tables-command/#respond Sat, 22 Mar 2014 02:11:30 +0000 http://revolvedmedia.com/?p=7412 Need to defragment tables and optimize MySQL for better performance? A quick and easy command...

The post Optimize All MySQL Tables Command appeared first on Revolved Media.

]]>
Need to defragment tables and optimize MySQL for better performance? A quick and easy command to perform the task from shell.

——– Recommendations —————————————————–
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance

Run:

mysqlcheck -Ao

Defragmenting and optimizing your sql tables is easy. You now have a slightly faster database.

 

The post Optimize All MySQL Tables Command appeared first on Revolved Media.

]]>
https://revolvedmedia.com/optimize-mysql-tables-command/feed/ 0
Backup & Restore cPanel / WHM accounts via SSH https://revolvedmedia.com/backup-restore-cpanel-whm-accounts-via-ssh/ https://revolvedmedia.com/backup-restore-cpanel-whm-accounts-via-ssh/#respond Tue, 11 Mar 2014 21:38:58 +0000 http://revolvedmedia.com/?p=7393 I found this excellent post here and don’t want to loose it: http://drewsymo.com/2013/11/backup-restore-cpanel-whm-accounts-via-ssh/ cPanel /...

The post Backup & Restore cPanel / WHM accounts via SSH appeared first on Revolved Media.

]]>
I found this excellent post here and don’t want to loose it: http://drewsymo.com/2013/11/backup-restore-cpanel-whm-accounts-via-ssh/

cPanel / WHM comes with a powerful backup and restore feature. Let’s learn how to use this feature via command-line / SSH.

Aside: cPanel / WHM has a wide variety of [scripts][1] that can achieve your end goal. These scripts are located in /scripts/.

Backing up singular accounts with cPanel via SSH

Backing up a singular account is easy. Simply issue the following command to backup a cPanel account named ‘drewsymo’:

/scripts/pkgacct drewsymo

This particular script, ‘pkgacct‘ generates a ‘cpmove‘ .tar.gz file. This file will be stored in the home directory of your server, i.e:

/home/cpmove-drewsymo.tar.gz

Restoring an account with cPanel via SSH

Restoring an account from a ‘cpmove’ or auto-generated cPanel backup file is just as easy as backing one up.

To restore a ‘cpmove’ file, you will firstly need to make sure that the account is terminated:

/scripts/killacct drewsymo

Now, you can initiate a complete account restoration via the ‘restorepkg’ command:

/scripts/restorepkg drewsymo

Note: the ‘cpmove’ file will need to be moved to the /home/ directory in order to initiate the above command successfully.

The latter command can be used to restore a generic auto-generated cPanel backup file (this will overwrite existing files if the account already exists and is generally not recommended)

Backing up all accounts on a cPanel Server via SSH

If you would like to backup all accounts on a cPanel / WHM server, simply issue the following command:

/scripts/cpbackup

The post Backup & Restore cPanel / WHM accounts via SSH appeared first on Revolved Media.

]]>
https://revolvedmedia.com/backup-restore-cpanel-whm-accounts-via-ssh/feed/ 0
Bad URI or cross-site access not allowed https://revolvedmedia.com/bad-uri-cross-site-access-allowed/ https://revolvedmedia.com/bad-uri-cross-site-access-allowed/#comments Fri, 13 Dec 2013 06:38:50 +0000 http://revolvedmedia.com/?p=6534 I was working with the awesome theme Salient today and noticed that in FireFox and...

The post Bad URI or cross-site access not allowed appeared first on Revolved Media.

]]>
I was working with the awesome theme Salient today and noticed that in FireFox and Internet Explorer that some of the icon short codes had stopped working. Strange enough they are all working in Chrome. I noticed that firebug was reporting the error: bad URI or cross-site access not allowed. Salient uses Font Awesome to generate icons and fonts.

After a quick Google search I was able to find a solution that solved my issue. Hope this can help someone else.

Add the following to your .htaccess

<FilesMatch ".(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>

Happy WordPress Blogging!

The post Bad URI or cross-site access not allowed appeared first on Revolved Media.

]]>
https://revolvedmedia.com/bad-uri-cross-site-access-allowed/feed/ 1