Flyer29
Forum Replies Created
-
OK. Sorry if I was not clear but I’m pretty new to all this stuff. Unfortunately I can’t show you anything but I can try to be clearer. In my specific case (but I had to change a lot in the booking-form.js adding a listener due to my dynamically loaded page), the following happened:
– Dynamically loaded was OK (in this case the picker holder for the time picker and the date picker was in the body).
– On Refresh (pressing the button on the browser or after getting the page back with the error messages) the date picker holder was still in the body but the time picker was in the li of the time field messing up the theme.Looking within booking-form.js, I saw that you defined a container () for the date picker but not for the time picker. So adding the same container for the time picker solved the issue for me.
‘var date_input = jQuery( ‘#rtb-date’ ).pickadate({
format: rtb_pickadate.date_format,
formatSubmit: ‘yyyy/mm/dd’,
hiddenName: true,
min: true,
container: ‘body’,// Select the value when loaded if a value has been set
onStart: function() {
if ( jQuery( ‘#rtb-date’ ).val() !== ” ) {
var date = new Date( jQuery( ‘#rtb-date’ ).val() );
if ( Object.prototype.toString.call( date ) === “[object Date]” ) {
this.set( ‘select’, date );
}
}
}
});var time_input = jQuery( ‘#rtb-time’ ).pickatime({
format: rtb_pickadate.time_format,
container: ‘body’, formatSubmit: ‘h:i A’,
hiddenName: true,
interval: parseInt( rtb_pickadate.time_interval, 10 ),// Select the value when loaded if a value has been set
onStart: function() {
if ( jQuery( ‘#rtb-time’ ).val() !== ” ) {
var today = new Date();
var today_date = today.getFullYear() + ‘/’ + ( today.getMonth() + 1 ) + ‘/’ + today.getDate();
var time = new Date( today_date + ‘ ‘ + jQuery( ‘#rtb-time’ ).val() );
if ( Object.prototype.toString.call( time ) === “[object Date]” ) {
this.set( ‘select’, time );
}
}
}
});’Finally, I’ve got it after hours of coding. But it was fun ??
Btw Nate, you didn’t specify a container for the time picker (what you did perfectly for the date picker) what was causing me problem after sending the post and getting the page again to correct the date and time not specified, the time picker didn’t open in the body but in the li.
So long story short tell, in case you plan an update of the plugin, including a container for the time picker (like the date picker) would made it even better!
Regards
PierreThat’s cool, I have have something new to discover and try around! Thanks!
Won-der-ful !!!! Thanks a lot for the perfect help within less than 5 seconds!
jQuery hack…. Uuuuh I’m not sure if I’m that good. My next project being to make the Phone field mandatory (what will cost me about the day I think), I’ll go deep deep deep inside jQuery as soon as the weather start to be bad again. But thanks for the hints, you are wonderful Nate!
Got it. I selected de_DE in the admin panel for the language, but the “clear” is still popping up at the end of the time picker. I’ll have a look at this project ??
I solved in on my own. The problem was the ajax loader of the theme, so moving the css and the script call in the header of the theme did the job.
one small precision. I can see in Chrome that booking-form.js is loaded but I suppose the script is not running on the first visit on the page.
Forum: Plugins
In reply to: [WP RSS Multi Importer] Feeds not updating and other Problems – Read ThisI have it working like a charm now, changing excerpt_functions to strip off a little bit more out of the URL. Since I can’t post files, here what I did if somebody is interested.
In excerpt_functions.php (in the directory inc), I changed
‘function rssmi_facebook_fix($mediaImage){ ///this fixes the ever present facebook image problem
preg_match(‘@src=”([^”]+)”@’, $mediaImage, $match);
if (strpos($match[1],”fbcdn”)>0){
$fb_img=$match[1];
$fb_img = str_replace(‘/s130x130’, ”, $fb_img);
$fb_img = str_replace(‘_s.jpg’, ‘_n.jpg’, $fb_img);if (rssmi_remoteFileExists($fb_img)){
$mediaImage = str_replace($match[1], $fb_img, $mediaImage);
}
}return $mediaImage;
}
function rssmi_facebook_autopost($mediaImage){ ///this fixes the ever present facebook image problem
if (strpos($mediaImage,”fbcdn”)>0){
$fb_img = str_replace(‘/s130x130’, ”, $mediaImage);
$fb_img = str_replace(‘_s.jpg’, ‘_n.jpg’, $fb_img);if (rssmi_remoteFileExists($fb_img)){
$mediaImage = $fb_img;
}
}return $mediaImage;
}’
into
‘ function rssmi_facebook_fix($mediaImage){ ///this fixes the ever present facebook image problem
preg_match(‘@src=”([^”]+)”@’, $mediaImage, $match);
if (strpos($match[1],”fbcdn”)>0){
$fb_img=$match[1];
$fb_img = str_replace(‘v/t1.0-9/s130x130/’, ”, $fb_img);
$fb_img = str_replace(‘_n.jpg’, ‘_o.jpg’, $fb_img);if (rssmi_remoteFileExists($fb_img)){
$mediaImage = str_replace($match[1], $fb_img, $mediaImage);
}
}return $mediaImage;
}
function rssmi_facebook_autopost($mediaImage){ ///this fixes the ever present facebook image problem
if (strpos($mediaImage,”fbcdn”)>0){
$fb_img = str_replace(‘v/t1.0-9/s130x130/’, ”, $mediaImage);
$fb_img = str_replace(‘_n.jpg’, ‘_o.jpg’, $fb_img);if (rssmi_remoteFileExists($fb_img)){
$mediaImage = $fb_img;
}
}return $mediaImage;
}’
and voilà, I get all the pictures from the feed in the original size.
Forum: Plugins
In reply to: [WP RSS Multi Importer] Feeds not updating and other Problems – Read ThisI confirm, this would do the trick for Facebook . Playing with 10 different rss feed, I’m seeing that it’s always the same, the pictures included are always 130×130. Stripping off “v/t1.0-9/s130x130/” from the original address without touching the rest would work like a charm to get the original picture.
Forum: Plugins
In reply to: [WP RSS Multi Importer] Feeds not updating and other Problems – Read ThisSooo, I’m a step further on this one, without having a solution….
What I found out and could help is the following:
I have in my Facebook rss feed as img of a picture:
‘https://scontent-b-iad.xx.fbcdn.net/hphotos-xpa1/v/t1.0-9/s130x130/10645068_973158296034583_2957426152380120829_n.jpg?oh=203eb3dc396db7c8dfa6ad491f82e233&oe=548270D4’The same small picture can be found under:
‘https://scontent-b-iad.xx.fbcdn.net/hphotos-xpa1/s130x130/10645068_973158296034583_2957426152380120829_n.jpg’and finally the original picture we are interested in is under:
‘https://scontent-b-iad.xx.fbcdn.net/hphotos-xpa1/10645068_973158296034583_2957426152380120829_n.jpg’Could you please be so nice, dear Allen, to pimp up the Facebook check in the picture handling, so that based on the first URL the third one and original picture could be put in the post and featured picture of the post?
Forum: Plugins
In reply to: [WP RSS Multi Importer] Feeds not updating and other Problems – Read ThisAllen, amazing work, compliment for this! I’m playing around for a couple of hours in order to import a rss feed from Facebook and I’m facing exactly the same problem: The pictures are indeed imported but they are all somehow too small, thumbnail size.
I’m using the latest version of your plugin, but noticed in previous post you “handcrafted” two php data to solve the problem (I do believe for a previous version of the plug in, it was excerpt_functions.php and import_post.php). If I replace both data through your old handcrafted one in the actual plug-in, the fetching doesn’t work at all.
So could you please be so nice to make the solution for the problem of effieBZ public here so I could also profit from?
Forum: Plugins
In reply to: [BP Profile Search] problem with search in sub siteHi Andrea,
Finally got it!
The plugin is registering correctly on a multisite environment, but the options are saved locally. So you have no chance to get them on a subsite. For the plugin to work, you have to change the get_option and update_option to get_site_option and update_site_option then it works like a charm ??
Forum: Plugins
In reply to: [BP Profile Search] problem with search in sub siteYes (seems to have been defined as standard).
Commenting it in or out is having no effect on the problem. In both cases (so with and without the BP_ENABLE_MULTIBLOG) the form is only showing the criteria to search on the main site.
Forum: Plugins
In reply to: [BP Profile Search] problem with search in sub siteNope. As well Buddypress as FB Profile search are network activated. On the multisite admin level, I’m able under user->Profile search to tick the fields that should be searchable. The form then is working on the main site showing all the searchable criteria, on the subsite I only see a “search” button without any criteria to search for displayed.
I just deinstall, delete and reinstall the plugin and unfortunately it is still not working.