Wil
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Dashboard menu showing just 4 custom post types out of 6Have a look over your CPT identifiers and make sure they are unique.
You’re probably using the same ID for two of them.
Forum: Fixing WordPress
In reply to: overloadRun this on your site to get an overview of the resources being used:
http://wordpress.org/plugins/p3-profiler/Forum: Plugins
In reply to: [Contact Form 7] Mobile responsive problemHey Kategorgeous,
You can probably solve that with one line of code.
In your style.css file in your theme folder search for the line :
@media only screen and (max-width: 1023px)and then below that the line (around like 2314):
.sidebar .widgetIn this .sidebar .widget CSS clause set it to float:left;
Full CSS clause e.g.
.sidebar .widget { background-color: #393939; padding: 20px; float: left; }Wil.
Forum: Plugins
In reply to: [Plugin: Activity Tracking] Looking for suitable pluginHi Zilla,
This looks like a data collection issue.
Without any more requirements I would likely suggest using something like Gravity Forms which would allow you to build up specific forms and record the data in the database.
It wouldn’t take a developer much to extract the data for each form along with the category/subject/task and display that on the front end of the website.
Wil.
Forum: Fixing WordPress
In reply to: image stretch width of pageChange the width of the img to 100% instead of 2481.
e.g. width=”100%”
Forum: Plugins
In reply to: [SyntaxHighlighter Evolved] Serious flaw with HTML and syntax highlighter.I have the same issue.
http://screencast.com/t/y5FCxmJqsh
Only option for me is to edit the post in Text mode
Never mind – I found it in the advanced section of the plugin settings.
Cheerz,
Wil.Forum: Plugins
In reply to: [Gravity Forms Multi Currency] Plugin doesn't work with Gravity Forms v1.7.7Oooo – that’s a tricky one.
You could try to badger around with the init() function in GFMC.
Currently it’s set to detect if there is already an instance of itself and return the object if it is.
Try removing the test for self::$instance and see what happens.
Could lead to weird stuff though.
Let me know how you go.
Forum: Plugins
In reply to: [Gravity Forms Multi Currency] Plugin doesn't work with Gravity Forms v1.7.7Hey Zane,
As of v1.7 I get 13 occurrences.
Here’s my fixed file.
<?php /** * Plugin Name: Gravity Forms Multi Currency * Plugin URI: https://github.com/ilanco/gravity-forms-multi-currency * Description: Per form currency for Gravity Forms. * Version: 1.7 * Author: Ilan Cohen <ilanco@gmail.com> * Author URI: https://github.com/ilanco */ if (defined('WP_DEBUG') && (WP_DEBUG == true)) { error_reporting(E_ALL); } // don't load directly if (!defined('ABSPATH')) die(false); define('GF_MC_VERSION', '1.7'); define('GF_MC_MAINFILE', __FILE__); add_action('init', array('GFMultiCurrency', 'init'), 9); class GFMultiCurrency { private static $instance; private $currency; private function __construct() { if (!$this->is_gravityforms_supported()) { return false; } add_action('wp', array(&$this, 'form_process'), 8); add_filter('gform_currency', array(&$this, 'form_currency')); if (is_admin()) { add_action('gform_admin_pre_render', array(&$this, 'admin_pre_render')); add_filter('gform_form_settings', array(&$this, 'custom_form_settings'), 10, 2); add_filter('gform_pre_form_settings_save', array(&$this, 'save_custom_form_settings')); add_action('gform_editor_js', array(&$this, 'admin_editor_js')); add_action('gform_entry_detail_content_before', array(&$this, 'admin_entry_detail'), 10, 2); } else { add_filter('gform_pre_render', array(&$this, 'pre_render')); } } public static function init() { if (!self::$instance) { self::$instance = new GFMultiCurrency(); } return self::$instance; } public function form_process() { $form_id = isset($_POST["gform_submit"]) ? $_POST["gform_submit"] : 0; if ($form_id) { $form_info = RGFormsModel::get_form($form_id); $is_valid_form = $form_info && $form_info->is_active; if ($is_valid_form) { $form = RGFormsModel::get_form_meta($form_id); if (isset($form['custom_currency']) && $form['custom_currency']) { $this->currency = $form['custom_currency']; } } } } public function form_currency($currency) { if ($this->currency) { $currency = $this->currency; } return $currency; } public function admin_pre_render($form) { if (isset($form['custom_currency']) && $form['custom_currency']) { $this->currency = $form['custom_currency']; } return $form; } public function custom_form_settings($settings, $form) { ob_start(); include 'tpl/custom_form_settings.php'; $settings['Form Basics']['form_custom_currency_setting'] = ob_get_contents(); ob_end_clean(); return $settings; } public function save_custom_form_settings($form) { $form['custom_currency'] = rgpost('form_custom_currency'); return $form; } public function admin_editor_js() { ?> <script type='text/javascript'> jQuery(function($) { $("#form_custom_currency").change(function() { form.currency = this.value; }); $("#form_custom_currency").val(form.currency); }); </script> <?php } public function admin_entry_detail($form, $lead) { if (isset($form['custom_currency']) && $form['custom_currency']) { $this->currency = $form['custom_currency']; } return $form; } public function pre_render($form) { if (isset($form['custom_currency']) && $form['custom_currency']) { $this->currency = $form['custom_currency']; } return $form; } protected function gf_get_default_currency() { $currency = get_option("rg_gforms_currency"); $currency = empty($currency) ? "USD" : $currency; return $currency; } private function is_gravityforms_supported() { if (class_exists("GFCommon")) { return true; } return false; } private function set_currency($form_id, $currency) { $this->currency[$form_id] = $currency; } private function get_currency($form_id) { return $this->currency[$form_id]; } }Forum: Plugins
In reply to: [Shortcodes Ultimate - Content Elements] v4.0.3 doesn't work properlyOK – v3 not compatible with v4.x
It would have been nicer to fork the plugin as this is going to break a lot of sites on updating 🙁
Something to think about for future incompatible upgrades.
Wil.
Forum: Plugins
In reply to: [Shortcodes Ultimate - Content Elements] Version 4Bummer – but thanks for the update
Forum: Plugins
In reply to: [Shortcodes Ultimate - Content Elements] v4.0.3 doesn't work properlyAlso doesn’t work with 4.0.1. Couldn’t test with 4.0.0 as the file gives a 404 error from SVN respository.
Here’s the 3.9.5 version (working):
http://awesomescreenshot.com/0fc1pwol90Generates this button code:
<a href="#signup" class="su-button su-button-style-3 su-button-class" style="background-color:#e1750f;border:1px solid #b45e0c;border-radius:6px;-moz-border-radius:6px;-webkit-border-radius:6px;"><span style="color:#fcf1e7;padding:10px 22px;font-size:17px;height:17px;line-height:17px;border-top:1px solid #f6d6b7;border-radius:6px;text-shadow:-1px -1px 0 #b45e0c;-moz-border-radius:6px;-moz-text-shadow:-1px -1px 0 #b45e0c;-webkit-border-radius:6px;-webkit-text-shadow:-1px -1px 0 #b45e0c;">Sign Up Now</span></a>Here’s the 4.x version (not working):
http://awesomescreenshot.com/0651pwp850Generates this button code:
<a href="#signup" class="su-button su-button-style-3" style="color:#e1750f;background-color:#2D89EF;border-color:#246ebf;border-radius:6px;-moz-border-radius:6px;-webkit-border-radius:6px" target="_self"><span style="color:#e1750f;padding:0px 18px;font-size:14px;line-height:28px;border-color:#6cacf4;border-radius:6px;-moz-border-radius:6px;-webkit-border-radius:6px;text-shadow:0 0 1px #1b528f;-moz-text-shadow:0 0 1px #1b528f;-webkit-text-shadow:0 0 1px #1b528f"> Sign Up Now</span></a>Cache turned off.
Forum: Plugins
In reply to: [Shortcodes Ultimate - Content Elements] v4.0.3 doesn't work properlyBTW we don’t run it in compatibility mode.
Forum: Plugins
In reply to: [Gravity Forms Multi Currency] Plugin doesn't work with Gravity Forms v1.7.7While waiting for an official fix you can do the following:
Open up gravity-forms-multi-currency.php
Replace all references of:
$form[‘currency’]with
$form[‘custom_currency’]There are 13 references. Should work after that.
Wil.
Forum: Fixing WordPress
In reply to: Moving site to a different URLOK – the quickest way to do this is to do it in two batches; files and DB
I would zip/pack up your /blog folder just so that you have a backup in place.
I’ll assume you’re using cPanel.
Files:
Move all of your files and folders from /blog to /public_html/ using File Manager on cPanel.You now need to change one file:
.htaccess
remove the /blog reference and save or if in doubt just delete it – WordPress will likely recreate it for you if you go into General > Permalinks and save the settingswp-config.php
Remove any references to site relocation that you may have implemented from the codex link posted above.
i.e.
define(‘WP_SITEURL’,’http://yoursite.com’);
define(‘WP_HOME’,’http://yoursite.com’);
define(‘RELOCATE’,true);Files done!
Database:
There are two ways of doing this. Lets try the simple approach first and see if it works for you.1st make a backup from phpMyAdmin – export all tables and save as a SQL files on your local machine.
In phpMyAdmin, go to the wp_options table and browse the content.
On the first page you want to modify the siteurl option_name. It’s usually the first entry in the wp_options table.It will contain your site url along with the /blog/ reference. e.g. http://www.yoursite.com/blog/
Remove the /blog/ addition so it reads:
http://www.yoursite.com/Go to page 2 of the wp_options table and find the home option_name. (should be around option_id 37)
Do the same as the above step by removing /blog/ from the url.
OK – check the front end of your site. This is the quick way. Check to see if your images load in and the sidebars are there.
If you have images missing etc then lets do the second method.
Make a copy of the sql file you downloaded earlier.
Open it up in a text editor and do a search and replace for:
http://www.yoursite.com/blog
with
http://www.yoursite.comDon’t use a trailing slash on both search and replace fields.
Save the sql file.
Go into phpMyAdmin and drop all the tables.
Go to import and import the newly saved SQL file.
Check your front-end site – should be OK.
Now this method can make some of your widgets disappear from the site but they should be pretty easy to recreate.
If things go pear-shaped you can always restore back.
i.e.
remove the wordpress files in the /public_html/ folder
unzip the zip in the blog folder
drop all tables in phpmyadmin
reimport the original sql file back inI put together a slideshare for a WordPress meetup which contains most of this information:
http://www.slideshare.net/gravitationalfx/how-to-move-wordpress-to-another-serverIt’s about moving WordPress to another server but it mostly applies to moving from one folder to another too.
Let me know how you get on. Get in touch with me through the limecanvas.com website if you get stuck.
Wil.