Posts by Fernando • 171 points
23 posts
-
1
votes1
answer475
viewsA: Accent error when using Curl
Already managed to fix, follow the updated code: $codigoRastreio = urlencode($_GET['cod']); $post = array('Objetos' => $codigoRastreio); // iniciar CURL $ch = curl_init(); // informar URL e…
-
1
votes1
answer475
viewsQ: Accent error when using Curl
Good afternoon, all right? I’m trying to pull some information via Url of the post office site, however it is returning me but with accentuation error, would have some way to change the header that…
-
1
votes1
answer1155
viewsQ: Hack CSS to work only on Internet Edge
In other browsers is with the correct alignment, but I went to test in internet explorer windows 10 and is with a break in the layout, I’m trying to use the hack below, but does not want to work. /*…
-
4
votes3
answers5001
viewsQ: Hover effect on JS
I have a problem that is the following: I want that when the user hovers the mouse on a given image another location wins a class so that I can style it, they could help me? I’m trying this way: var…
-
1
votes3
answers735
viewsA: How to translate wordpress error message
I managed to solve my problem, follow the code in case someone needs this solution: add_filter('login_errors','login_error_message'); function login_error_message($error){ //check if that's the…
-
1
votes3
answers735
viewsQ: How to translate wordpress error message
Hello, good morning, good morning! I have a problem and I am not finding the variable to be able to solve, I have a site in WP and when you try to login and neither the password nor the email exist…
-
0
votes1
answer158
viewsQ: Remove wordpress password difficulty
I tried to remove the difficulty to write a password in wordpress, I use the plugin Ultimate Members to register, I used the code below to solve the problem, but I could not. function…
-
0
votes2
answers300
viewsA: How to check if there is a post in a certain category
Thank you for trying to help me, I’ve already solved, in case someone needs something like that, follow the code: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>…
-
0
votes2
answers300
viewsQ: How to check if there is a post in a certain category
I wonder if you can help me, I’m trying to check if there is any post in a certain category to do validation and if and esle, however without much success so far. <?php $paged =…
-
0
votes0
answers48
viewsQ: How to translate a plugin?
Hello, good afternoon! I have a problem and I can not find the solution, I am using the plugin Magic Members and I am trying to translate the plugin, because this in English, I used the plugin loco…
-
1
votes0
answers16
viewsQ: Counter using update in Wordpress
I’m trying to create an accountant, but the code is not increasing one more, could help me? $wpdb->update('QuantidadeTestes', array('QtdTeste' => QtdTeste+1), array('idUsuario' =>…
-
1
votes1
answer52
viewsQ: Error with loop for
I wanted this to display one by one the content of my form however it displays me all at once, the right would be it display the next only after clicking send and this data I will save in an array.…
-
0
votes0
answers55
viewsQ: Form works on desktop but no responsive!
I’m having a problem that is the following I have a page.php page, which has some includes php pulling files that contains the structure of my form, which then sends to a page with "success"…
-
0
votes1
answer215
viewsQ: Conflict when importing another Jquery in Wordpress
Hey, how you doing? I’m with a little problem that has already consumed me a lot of time, I’m trying to put a mask for time in an input field, the code is already ok and running the problem is when…
-
1
votes2
answers414
viewsQ: Problems with contact form 7 - obsolete on_sent_ok function
I have some forms using the plugin contact form 7 and each one redirecting to a specific success page, I used on_sent_ok, however it does not work I went to check and found that it is obsolete and…
-
0
votes1
answer148
viewsA: Manipulate cookie for Popup
I could not using Js, I did it with php. If someone needs follow the condigo: <?php $nome = "popupNews2"; $valor = "style=display:none;"; $expira = time() + 24*3600; setcookie($nome, $valor,…
-
0
votes1
answer148
viewsQ: Manipulate cookie for Popup
Hello, I’m trying to do a popup, I’ve already set up its structure, I just need to do the validation so it doesn’t keep opening every time I visit the page, I’m trying to use cookie, I don’t know if…
-
0
votes0
answers161
viewsQ: Include a point and comma to a variable
Hello, I have a small problem, I have a number coming from a sum and I need to assign a mask to that number. I did some tests until it worked however the mask was not correct to the number. var…
-
2
votes1
answer239
viewsQ: Create and query Wp
Is it possible to create a table in the Wp database to enter values and change them, or would it block me? I wanted to create a simple table only to validate, insert a number and if necessary to…
-
0
votes1
answer178
viewsA: Query the user data
If anyone needs follow the code: Just find the variable created in the form and change to return what you need. File inside the plugin edited templates/Members-grid.php <ul…
-
0
votes1
answer178
viewsQ: Query the user data
Hello, I wonder if there is possibility to query user attributes and display on screen. To register the user I am using the plugin final Member, which by default only displays the user’s photo and…
-
0
votes2
answers156
viewsA: Calculating between inputs and playing in a variable
<script> function validaErroBranco(campo, mensagem) { if (campo.value !== "") return true; alert(mensagem); campo.focus(); return false; } function valorDeRefPorTipoDeObra(TipoObra) { switch…
javascriptanswered Fernando 171 -
-1
votes2
answers156
viewsQ: Calculating between inputs and playing in a variable
I have this problem, because it is not returning anything and trying to find everywhere, but nothing solution so far I will post the codes of my tests. Follows: function calculo(){ if…
javascriptasked Fernando 171