a951a581
Forum Replies Created
-
Forum: Plugins
In reply to: [Comments - wpDiscuz] div clear:both prevents correct placementThanks ??
Forum: Plugins
In reply to: [Comments - wpDiscuz] div clear:both prevents correct placementJust go to https://wpdiscuz.com/wpdiscuz-3-0-0/ and look in page source.
The second occurrence of
<div style="clear:both"></div>
is what I’m talking about. This prevents me to float the comments container to the left, as I have a two columns layout.I’m fairly sure the
<div style="clear:both"></div>
is added by wpDiscuz because native comments and JetPack comments have no such issues.Best regards,
JipForum: Plugins
In reply to: [WP Product Review Lite] Cancel rating option and record ratings of 0Great! Thanks for the reply and looking forward to the next release ??
Thanks for your reply David!
I removed the underscores and it’s working out great. I had to change a few things in the plugin anyway to make it work in my theme, such as using a 2×3 pixel gif to change the aspect ratio of the thumbnails.
$html = sprintf( //'<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" ' . // use a 2x3 image to define the poster aspect ratio '<img src="data:image/gif;base64,R0lGODlhAgADAIAAAP///wAAACH5BAEAAAAALAAAAAACAAMAAAIChF8AOw==" ' . 'style="background:url(\'%s\') no-repeat center center;' . '-webkit-background-size:cover;' . '-moz-background-size:cover;' . '-o-background-size:cover;' . 'background-size:cover;' . '%s%s" class="%s wp-post-image nelioefi" '. 'alt="%s" />', //$image_url, $width, $height, $additional_classes, $alt ); // ignore the image width and height, the theme css will take care of that $image_url, 0, 0, $additional_classes, $alt );
These modifications can’t be done in the theme’s functions.php file I suppose, right? Anyway wouldn’t that just move the problem? If the plugin is updated, my modification would still be in the theme’s functions.php file. But if the theme is updated, then my modifications are still lost, right?
Reason for asking is that I’m modifying a lot of php files lately and I am sure I’m going to run into problems with updating! Just trying to figure out where would be the best place for my modifications.
Thanks again, really cool plugin.
Hi David thanks for the reply and explanation. I didn’t know that custom fields starting with an underscore are special. I think your right, these private custom fields are the reason the API doesn’t return them. I couldn’t find a good explanation on how to update these hidden custom fields through the XML-RPC API. The most promising post seems to be this one because he’s talking about “Using custom_fields with meta_id”. Does the explanation make sense to you?
The only option I can think of right now is to modify your plugin and remove the underscores. That should be fairly straight forward and solve my problem, don’t you think?
Thanks again ??