gofigure
Forum Replies Created
-
Forum: Plugins
In reply to: [PHPINFO Print] Website crashedHi,
Filename is not the same:
require_once( ‘lib/phpinfo-class.php’ );
should be:
require_once( ‘lib/phpinfoClass.php’ );fix on the next release?
- This reply was modified 9 years, 6 months ago by gofigure.
Forum: Plugins
In reply to: [WP Store Locator] Store Listing not translatedYes it did, but eventually it will be overridden on the next update.
Would this be include then or is there a way to add this on a custom setting –
$locator_map_settings?Thanks so much for your support!
Forum: Plugins
In reply to: [WP Store Locator] Store Listing not translatedafter further searching, I came across with this possible solution:
According to WPML support discussions the issue was ajax-call are not translated. The call should be localized when switching language i.e. passing lang=fr argument to admin-ajax.php?lang=fr.
on the class-frontend.php, I tested this code, passing the ICL_LANGUAGE_CODE to the admin-ajax.php.
//’ajaxurl’ => admin_url( ‘admin-ajax.php’ ),
‘ajaxurl’=> admin_url( ‘admin-ajax.php?lang=’ . ICL_LANGUAGE_CODE ),links:
https://wpml.org/forums/topic/ajax-server-call-returned-ajax-messages-only-on-default-language/https://wpml.org/forums/topic/ajax-call-is-not-localized/
https://wpml.org/forums/topic/ajax-calls-not-translated/
https://wpml.org/forums/topic/translations-not-appearing-on-frontend/
Forum: Plugins
In reply to: [WP Store Locator] Store Listing not translatedI was testing the demo and did change the codes, I agree it might be cached somewhere, I’ll continue testing and will definitely let you know.
I just came across with this and will investigate further:
https://wpml.org/forums/topic/icl_language_code-constant-inside-of-other-plugins/
-the solution mentioned was to instantiate the plugin class after the wpml.
Forum: Plugins
In reply to: [WP Store Locator] Store Listing not translatedWe have the latest version 3.3.8 and all related plugins are up-to-date.
Forum: Plugins
In reply to: [WP Store Locator] Store Listing not translatedfurther testing:
on the class-frontend.php – I temporary commented out this line
//$store->ID = $wpsl->i18n->maybe_get_wpml_id( $store->ID );which returned $store->ID with the correct translation id when I switched to french language. WPML retrieved the correct store data in french.
link Demo
Same on the previous testing, I echoed the language code before the title then followed again on the first item on the custom listing template.
then append this on the ” $store_meta[‘store’] ” on get_store_meta_data() function,
‘ Lang code:’ .ICL_LANGUAGE_CODE . ‘ CURRENT ID:’ . $store->ID . ‘ TRANSLATED ID: ‘ . icl_object_id($store->ID, ‘wpsl_stores’, true, ICL_LANGUAGE_CODE) -(same as the function “maybe_get_wpml_id()” );
sample output:
fr Lang code:en CURRENT ID:4288 TRANSLATED ID: 4190 Filiale d’Ottawait shows that everything works outside the get_store_meta_data() but I don’t know why it retains the ICL_LANGUAGE_CODE – ‘en’ inside that function
language selector was derived from WPML code snippets.
thanks!
Forum: Plugins
In reply to: [WP Store Locator] Store Listing not translatedTijmen,
I echoed ICL_LANGUAGE_CODE, store_id and translated_id and it returned ‘en’ and same ID’s on the ajax data.
(on french translated page)
LANG en
STORE ID 4190
TRANS ID 4190most likely it only affects the listing (template) everything outside of it is okay..
I tested it again, inserted the code below to the class-frontend.php and it came out to display only the english language.
echo icl_object_id( $store->ID, ‘wpsl_stores’, true, ICL_LANGUAGE_CODE );
echo ICL_LANGUAGE_CODE;switching language does not affect ICL_LANGUAGE_CODE and always returns ‘en’
Thanks!
Forum: Plugins
In reply to: [WP Store Locator] Store Listing not translatedHi Tijmen,
Thanks again for the follow-up!
I manage to do the disabling the plugins and wpsl setup but still no luck
as I even regenerate the all the post with the right category for both translation.I tested and injected this line to let me know what it will display, trying to figure out how the listing was displayed in the frontend..
on the “public function get_store_meta_data( $stores )”
on this line, I try to display the store id and language code, once I switch to french language I’m still getting the english translation.
$store_meta[‘store’] = $store->ID. ‘ ‘ . ICL_LANGUAGE_CODE .’ ‘. get_the_title( $store->ID );
sample: 4190 en Ottawa Branch
Forum: Plugins
In reply to: [WP Store Locator] Store Listing not translatedThanks Tijmen,
I disabled most the plugins that does not break the theme.
I disabled the WPSL Cache.here’s the link:
demo siteIf I switch to french language everything works well except the listing that stays english.
on the French site, Clicking one of the store redirects to the english version were as it has a french version when you switch the language selector.
Regards-
Forum: Plugins
In reply to: [WP Store Locator] Store Listing not translatedI’m using WPML for the translation
Forum: Plugins
In reply to: [Better Font Awesome] Feature request: AccessibilityAWESOME!
Thanks Mickey!
Something like this?
function filter_bfa_icon( $output ) {
$replace = array(
‘<i’ => ‘<span’,
‘</i>’ => ‘</span>’
);
$new_output = str_replace(array_keys($replace), array_values($replace), $output);
return $new_output;
};add_filter( ‘bfa_icon’, ‘filter_bfa_icon’, 10, 1 );
Thank Angelo!
it worked!
<pubDate><?php echo date(‘r’, strtotime($EM_Event->event_date_created)); ?></pubDate>
need to be RFC822 formatted to display properly
first off, thanks for this great plugin….
the same issue I had, it works only on the events page with a search form but other than that page,- it reloads when you click on the ‘next’ or ‘previous’ month
thanks!