Oscar Estepa
Forum Replies Created
-
Forum: Plugins
In reply to: [Google Universal Analytics] UA code is displayed in headerHi again, I noticed that from v1.2 of the plugin you need to use the whole analytics.js snippet in the textarea Settings > Google Universal Analytics changing the UA- code inside the snippet. Thing is, if enter only the UA- code you will get the problem I was describing before.
I thought the whole purpose of the plugin was to wrap up this snippet so the user only needs to enter the UA- code 🙁
Anyway, since we need to enter the whole snippet do not apply the change I proposed above. Here is the snippet you need for the lazy ones:
I would recommend changing the piece of code I was on before with this one:
function google_universal_analytics() { $web_property_id = get_option('web_property_id'); if( strpos($web_property_id, 'UA-') != 0 ) echo $web_property_id; }This fixes showing the UA-XXXXX in the header if only this code is entered and displays the analytics snippet otherwise. Not a nice solution because I know, but works for now!
Forum: Plugins
In reply to: [WPNewsman Lite] Textarea input fieldHi @G-Lock Software I think @neocoder got it right, I was looking for a wide textarea, not a one-line textfield 😉
Thank you guys for your great plugin I’ll be looking forward to the next release!!!
Forum: Plugins
In reply to: [WebSub (FKA. PubSubHubbub)] Custom Post Types and custom feedsI missed it the first time round, but I realise now that for custom feeds you are better off using the filter hook enabled by the plugin guys:
$feed_urls = apply_filters('pshb_feed_urls', $feed_urls);Thanks for that guys!!!
Forum: Plugins
In reply to: [WPNewsman Lite] Character corruption in custom forms labels and buttonHi,
My php version:
PHP 5.3.10-1ubuntu3.6 with Suhosin-Patch (cli) (built: Mar 11 2013 14:31:48)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend TechnologiesCharset: UTF-8
The characters look like this:
Teléfono – should be -> Teléfono
SuscrÃbete – should be -> SuscríbeteAs for the database: utf8_general_ci
This is the same setup I always use with no encoding problems so far.
Hi I’m having the same problem in multiple sites, plugin version is 1.7.2 and 1.7.3, it would be great if you could look further into this problem.
If you need a hand testing/debugging please let me know.
Uncaught TypeError: Cannot read property 'value' of null CodeMirror.fromTextAreacodemirror.js:1890 aamObject.initConfigPressTabadmin-options.js:653 aamObject.initMainMetaboxadmin-options.js:1116 (anonymous function)admin-options.js:747 v.Callbacks.lload-scripts.php:2 v.Callbacks.c.fireWithload-scripts.php:2 Tload-scripts.php:2 v.support.ajax.v.ajaxTransport.send.rgreat! thanks a lot
Hi there,
I’m using official plugin version (1.1) and I’ve been applying the above mentioned fixes. I have created a patch to easily apply these changes to the plugin, you can download it here:In Linux, copy the downloaded file to your website root folder, e.g.
/var/www/mywebsiteChange directory:
cd /var/www/mywebsiteAnd run:
patch -p1 < wp-user-frontend_fix-media-insert-bug.patchIf all goes well you should see:
patching file wp-content/plugins/wp-user-frontend/wpuf-add-post.php
patching file wp-content/plugins/wp-user-frontend/wpuf-edit-post.php
patching file wp-content/plugins/wp-user-frontend/wpuf-functions.phpHope it helps
ok we’ll wait for the new Pro version
Thanks to agelonwl and Marcus for your answers!
Thanks agelonwl, I found a solution which seems to be working fine for me:
$EM_Person = new EM_Person($user_id); $EM_Event = new EM_Event($event_id); $EM_Tickets = $EM_Event->get_tickets(); $EM_Booking = new EM_Booking(); $EM_Tickets_Bookings = new EM_Tickets_Bookings($EM_Booking); $EM_Booking->event_id = $event_id; $EM_Booking->person_id = $user_id; $EM_Booking->booking_price = "0.00"; $EM_Booking->booking_spaces = "1"; $EM_Booking->booking_status = "0"; $EM_Booking->person = $EM_Person; foreach ($EM_Tickets->tickets as $key => $EM_Ticket) { $EM_Ticket_Booking = new EM_Ticket_Booking(); $EM_Ticket_Booking->ticket_id = $EM_Ticket->ticket_id; $EM_Ticket_Booking->ticket_booking_spaces = $EM_Booking->booking_spaces; $EM_Ticket_Booking->save(); $EM_Tickets_Bookings->tickets_bookings[$key] = $EM_Ticket_Booking; } $EM_Booking->tickets_bookings = $EM_Tickets_Bookings; $EM_Booking->save();Maybe it’s too much code just to save a booking, but in this way I’m making sure the $EM_Booking object has all the data required to be saved properly.
I have been playing with the Events Manager Pro demo for a while and I can add some info to questions 1 and 2:
1. it does allow a password field but not a confirm password field (could this be easily added, workaround available)
2. there is a date field type which is actually great as it is a jquery datepicker and can also be turned into a date range picker, however the displayed years fall a bit short (2003-2023), what if I need a birth date field? In my case I would have to go back as far as 1979 🙁The third question still stands as it was.
Many thanks!
Forum: Plugins
In reply to: [Events Manager and WPML Compatibility] Custom fields whitin event Post TypeHi Marcus, I’m actually talking about wordpress custom fields added to your EM custom post type, they are always displayed in the language selected by the user in his/her profile, not in the language set for the WordPress UI, i.e. if a user selects Spanish on his profile page, when he visits an event in English, the whole event is displayed in English except for custom fields which are displayed in Spanish.
Forum: Plugins
In reply to: [WP FullCalendar] How to translate days and months in the calendar ?that’s right @christian! sorry I didn’t read the thread carefully and thought that yours was a French only problem. It would have saved me quite a bit of time
All credit is yours!!! 😉
Forum: Plugins
In reply to: [WP FullCalendar] How to translate days and months in the calendar ?I think I got it right now, changing the line:
$calendar_languages = array_merge($calendar_languages, $wp_fullcalendar_languages);
to
$calendar_languages = array_merge_recursive($calendar_languages, $wp_fullcalendar_languages);seems to do the trick. The array is merged along with its child keys contents.
Forum: Plugins
In reply to: [WP FullCalendar] How to translate days and months in the calendar ?sorry the fixed I proposed does not work either, actually it works the other way around, the keys from the first array are maintained, those from the second discarded