js2484
Forum Replies Created
-
Forum: Reviews
In reply to: [Equivalent Mobile Redirect] limitedThere are 18 redirects possible :). Example of full site is in description.
Forum: Plugins
In reply to: [Equivalent Mobile Redirect] No. of URLsInside the plugin folder you will see equivalent-mobile-redirect.php go on line 63 you will begin to see-
$page_array[] = trim(wpw_get_option('wpw_emr_t1')); $page_array[] = trim(wpw_get_option('wpw_emr_t2')); $page_array[] = trim(wpw_get_option('wpw_emr_t3')); $page_array[] = trim(wpw_get_option('wpw_emr_t4')); $page_array[] = trim(wpw_get_option('wpw_emr_t5')); $page_array[] = trim(wpw_get_option('wpw_emr_t6'));etc….
Just add more and change ‘wpw_emr_t6’ to the right number till you get to the amount you want…Then in admin/theme-options.php starting on line 69 you will begin to see pairs of title and url-
$options[] = array("name" => __("Page Title #1 - e.g. About ",'wpw'), "desc" => __("",'wpw'), "id" => "wpw_emr_t1", "desc" => "", "type" => "text"); $options[] = array("name" => __("Mobile Site URL #1 - http://m.sample.com/about ",'wpw'), "desc" => __("",'wpw'), "id" => "wpw_emr_murl1", "desc" => "", "type" => "text");Just add extra pairs after the last pair and change the “id”‘s to the right number. They will be numbered like “wpw_emr_t1” & “wpw_emr_murl1” so you will be able to tell when the last pair is. If you need help once you need more though just let me know and I can help.
Forum: Plugins
In reply to: [Equivalent Mobile Redirect] No. of URLsMarking as resolved
Forum: Plugins
In reply to: [Equivalent Mobile Redirect] No. of URLscleaned up a bit and added a checkbox to enable/disable the Homepage redirect
EM-RedirectForum: Plugins
In reply to: [Equivalent Mobile Redirect] No. of URLs@kerp77 here is an alternative version of the plugin for a homepage without a name and with 30 possible redirects… Make sure you fill in the Homepage URL box because it is required…
EM-RedirectForum: Plugins
In reply to: [Equivalent Mobile Redirect] No. of URLsI can email you a copy with more available redirects or tell you where to add them in the code?
And yeah the pages currently do need a title in order to redirect them, in the next few days I’ll add a option in the settings page for the homepage in case it doesn’t have a title.
If you are going to have a full blog on your main site and mobile site I would consider just making the main site responsive, this plugin was more made to redirect pages although it will redirect single posts too.
Forum: Plugins
In reply to: [Equivalent Mobile Redirect] No. of URLsHi @kerp777
10 URLs is what’s currently coded but it is possible to add more… about how many are you looking to have?Forum: Hacks
In reply to: is_page theme options not workingAfter much trial and error I wonder is it even possible to use multiple is_page in this manner? If so it seems my logic is off for the ‘function emr_single_page_only()’.
Forum: Hacks
In reply to: is_page theme options not workingThanks for the help @oz
Okay so I can get the first pagetitle_url to work but if I try to add additional ones like pagetitle_url22 they don’t work… I can confirm that the values are getting saved in the db… here’s an example of my code-
function emr_single_page_only(){ global $emr_options; if (is_page(get_option('pagetitle_url'))) { emr_mobile_redirect(); } elseif (is_page(get_option('pagetitle_url22'))) { emr_mobile_redirect2(); } } add_action('get_header','emr_single_page_only'); function emr_mobile_redirect(){ global $emr_options; if ($emr_options['enabled'] == true) { $detect = new Mobile_Detect(); if ($detect->isTablet() && $emr_options['tablet'] == true) { $detect = "false"; } elseif ($detect->isMobile()) { header('Location: ' . $emr_options['mobile_url']); exit; } } }Again, thanks in advance for any suggestions.