Konstantin T
Forum Replies Created
-
Forum: Plugins
In reply to: [Strong Testimonials] Already Registered UsersWarning Google translator !!!
Hello!I made for myself that something like this:
<?php global $current_user; get_currentuserinfo(); if( is_user_logged_in() ){ // check authorization echo "" . '<script type="text/javascript">jQuery(document).ready(function(){ $("#wpmtst-submission-form").addClass("invizfeld"); }); </script>' . ""; } // add the class to hide form ?> <script type="text/javascript"> jQuery(document).ready(function(){ var n = "<?php echo $current_user->user_lastname; echo ' ' . $current_user->user_firstname; ?>", e = "<?php echo $current_user->user_email ?>"; // add variables to the data of the current user $("#wpmtst_client_name").val(n); // filling the user name field $("#wpmtst_email").val(e); // filling the fields email }); </script>
I inserted it in the file: strong-testimonials/includes/shortcode-form.php
between lines 416 and 417styles to hide the blocks:
.invizfeld p:nth-of-type(1) { display: none; } .invizfeld p:nth-of-type(2) { display: none; }
I wrote them a file of styles of the current theme.
It remains as something to add photos.
p/s: I almost did not understand all this, if someone will make it better, I’ll be glad.
and a link READ MORE leads to a last published post
Yes so it works. I understand that, if used directly in the code does not work!
I tried to insert into page.php styles do not work either.and on the page where I put through the usual editor works, and those and those styles reviews
You’re welcome!
Sorry but I could not understand you what you mean?to a page using the editor
I hurried and made a mistake in the default theme does not work
https://imgur.com/pq5THoASite still under development.
Yes, I put it in index.php
there is no problem in the standard theme.
I make this theme myself.Here is the post of the old date of publication 16.05.2014
All works well if you put a date yesterday 15.05.2015
https://imgur.com/TSABEme
And this is if the post with the new date of publication 05.16.2015
https://imgur.com/cJxAGlbI also really looking forward to if you make a star rating.
Thanks.