Posts by Bruno Folle • 729 points
57 posts
-
0
votes1
answer133
viewsQ: Regex to validate document - Javascript
I’m having some problems validating the document. Previously I asked this question here: Regex to validate national document number The problem I’m having is that the user is typing sequential or…
-
1
votes1
answer41
viewsQ: Zig Zag Stripes with 3 or 4 colors - CSS3
Hello, I’m trying to make a zig-zag Stripe in css3 with 4 colors, would be gray, white, pink and white again. However I’m only able to do it with two colors. .zig { background:…
-
1
votes0
answers79
viewsQ: Error installing Gulp-imagemin via NPM
I am trying to install Gulp-imagemin for image optimization via NPM but errors are occurring. When I run the following command on the terminal, permission errors return. sudo npm install…
-
2
votes1
answer1913
viewsQ: Regex to validate national document number
I am trying to create a national document validator that accepts numbers and letters or only number with 11 characters limit in Javascript. The problem is in the creation of regex. Follows the code:…
-
2
votes3
answers582
viewsA: Triangular div with CSS3
I will also leave an answer in my own question about another solution I found in SCSS. Follows: SCSS: html, body { width: 100%; height: 100%; margin: 0; padding: 0; } .efeito { background: #f00;…
css3answered Bruno Folle 729 -
3
votes3
answers582
viewsQ: Triangular div with CSS3
I’m trying to create a triangular div effect to stay below a normal div as in the image below.. The problem is I’m not getting the values of border-left: and border-right: dynamically to fit into…
css3asked Bruno Folle 729 -
1
votes1
answer684
viewsQ: How to list all categories in wordpress menu automatically?
I’m trying to list all the wordpress categories to form a dropdown menu with them as the menu is created in the admin panel of the theme. I want where the category item is in the image menu below to…
-
0
votes0
answers86
viewsQ: How to take the bottom position a dynamic div
I’m trying to get the bottom position of a div dynamically via jQuery and I’m not getting it. What I need is to take this position to make a limit of how far the title of the page can go…
jqueryasked Bruno Folle 729 -
0
votes0
answers66
viewsQ: Parallax with two layers when scrolling mouse
I’m trying to do a two-layer Parallax and I’m not getting it. What I want to do is similar to the site https://willianjusten.com.br/exemplos-de-sites-com-parallax/. I want the background image and…
-
0
votes0
answers26
viewsQ: How to print the post Author in Jekyll
I’m trying to print the author of the post when I rotate the loop to list the posts on the index, but I can’t do it. Does anyone have any idea? Follows the code: {% for post in site.posts %} {%…
jekyllasked Bruno Folle 729 -
-1
votes1
answer25
viewsA: Website redirecting to url with / at the end
I have the impression that the problem is the moment you force the HTTPS Try it this way: RewriteCond %{HTTP_HOST} ^(www\.)(.+) [OR] RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^(www\.)?(.+)…
-
0
votes1
answer21
viewsA: Jekyll - Errors with paths
I will answer my question because I was able to solve... In case other people have the same problem, maybe this answer will help them. Well, in the {{ post.url | slugify}} I pulled the slugify,…
-
0
votes1
answer21
viewsQ: Jekyll - Errors with paths
I’m developing a blog in Jekyll and is making some mistakes with the URL’s. When I use {{ site.url }} and I don’t put the bar after this variable, the paths are as follows: localhost:4000assets,…
-
3
votes2
answers1127
viewsQ: Multiple downloads with PHP and mPDF
I am trying to perform a function in PHP that performs several downloads of the PDF file within a loop. The problem is that it only downloads once the file independent of the array size. Follows…
-
0
votes0
answers47
viewsQ: window.open is not working after running Ajax
I am developing a URL sharing system saving in database every time it is clicked on one of the social networks of the site. It turns out that the window.open what use to access the social network is…
-
0
votes1
answer445
viewsA: Chrome redirects localhost to production
I found the problem In my project’s header.php there was a condition that if the IP was not 127.0.0.1 it would redirect to production. It turns out that Chrome accesses the localhost on Ipv6 (::1)…
google-chromeanswered Bruno Folle 729 -
-1
votes1
answer445
viewsQ: Chrome redirects localhost to production
I don’t know if this is the right place to post this question, if I’m wrong please correct me. Anyway, I’m trying to access my localhost/passagem and it redirects me to the production site. I have…
google-chromeasked Bruno Folle 729 -
0
votes1
answer98
viewsA: Error when compiling Foundation 6 SASS/SCSS with Grunt
I managed to solve! I added the following code to my.scss app: @import 'foundation'; @include foundation-everything; and I ran Grunt css to compile the file which eventually generated the below…
-
0
votes1
answer98
viewsQ: Error when compiling Foundation 6 SASS/SCSS with Grunt
I’m trying to install and compile Foundation 6 via SASS. Well, the installation via NPM I managed to do correctly according to the instruction on the site:…
-
2
votes1
answer208
viewsA: Using require, where to use this tag?
Wpfan, You cannot call a require that results in two tags . In a weird example, it would be the same thing as two people trying to wear the same T-shirt. Imagine your HTML as a puzzle and require it…
-
4
votes1
answer305
viewsA: Handle PHP native error messages/alerts
In PHP version 7 and later PHP error handling was implemented in Try, recovering the error with Catch In this way: try { // seu código } catch (Error $e) { echo "Ocorreu um erro: " .…
phpanswered Bruno Folle 729 -
2
votes1
answer65
viewsA: Send print data to another page
From what I understand, you need PHP information sent to print. Instead of your.log console switch to the code below: var janela = window.open("","","width=200,height=100"); // abre janela…
-
4
votes0
answers82
viewsQ: How to optimize the site according to analysis response?
I recently blogged for my wife, https://danielafolle.com.br/ which I am now working to optimize the response time of the site. I’m using the Pagespeed Insights Google to base if I’m progressing on…
-
0
votes1
answer96
viewsA: How to pass, via AJAX, multiple forms with multiple files
Turns out you’re not picking up the files via Ajax to be uploaded. The right way to get them back is like this: var formCadEmp = $('#formCadEmp').prop('files')[0]; That is, you load all the files in…
-
1
votes1
answer428
viewsA: What is the best method to load JS files?
Anthraxisbr, I will leave here my suggestion here as an answer to get better to read, the comments is very limited Grunt makes use of JS and CSS files in addition to automatically minifying them.…
-
1
votes1
answer1256
viewsA: Run Mysql search after opening Modal
Rafael, You can use the function .Submit() jQuery to prevent redirection from being done. This way $('#id_do_seu_form').submit(function(e){ e.preventDefault(); return false; // nao ira para lugar…
-
1
votes1
answer180
viewsA: Wordpress - From the second page is giving error 404 - Not Found
According to Ricardo Moraleida’s tip, I answered my own question to leave cataloged and help other members, if they need. Solving my problem I managed to resolve removing the excerpt: $paged =…
-
0
votes1
answer1081
viewsA: Open Modal with Mysql output
From what I understand, you are using Bootstrap, following this side, add the following code in your HTML of the page where AJAX is loaded: <div class="modal fade" id="exampleModalLong"…
-
0
votes1
answer180
viewsQ: Wordpress - From the second page is giving error 404 - Not Found
I am creating a theme in Wordpress and the time has come to make the pagination. I managed to create the menus below indicating how many pages have and the next and previous. Only by clicking on…
-
1
votes1
answer396
viewsQ: Add custom image type Metabox in Wordpress
I am beginner in Wordpress and I am developing a theme for a blog in it and I need to create a presentation where there is a brief summary of the blogger plus her photo. Well, I created a kind of…
-
2
votes1
answer245
viewsA: Mysqli INSERT error
Concatenation of arrays inside double quotes is incorrect. PHP does not understand functions and arrays that are inside double quotes as variables. The correct way is to concatenate with keys:…
-
1
votes1
answer297
viewsQ: Add custom wordpress taxonomy field
I am giving maintenance on a Wordpress site on which there is a page called "Services" and so there is also the "Service Category", on a certain page of the site, these services are listed within…
-
2
votes1
answer956
viewsA: Zoom in and Zoom out CSS3 in the same animation
Since I managed to solve it, I will answer my question to help others. Follows the code: div{ width: 100px; height: 100px; background-color: #ff0; margin: 1em; -webkit-transition: transform .1s;…
-
1
votes1
answer956
viewsQ: Zoom in and Zoom out CSS3 in the same animation
I’m trying to make an animation in CSS3 with zoom in, zoom out and Transition in CSS3 + HTML. What I want is that by hovering the mouse over the div, it will scale down to 0.9 and then increase to…
-
1
votes0
answers932
viewsQ: PHP - Generating dynamic Qrcode customized with PHP
I am trying to generate Qrcode with dynamic information with the library Phpqrcode, Qrcode I’ve been able to generate in SVG, but I’m not being able to style it to have rounded edges and the company…
-
0
votes0
answers207
viewsQ: Wordpress - How to Get the Value of Custom Fields in the Theme
Personal talk! I am beginner in Wordpress and I came across a problem. I’m trying to get the value of a Custom Field that has in wp-admin called Client Link, there in the site plugin in the…
-
5
votes1
answer2869
viewsA: Calculate percentage of votes
Well, I believe that’s it: EDIT: As commented by Bacco, there is a risk of division by zero that can be inhibited with an IF. Thus: $like = 3; $dislike = 10; $total = $like + $dislike; if($total !=…
phpanswered Bruno Folle 729 -
0
votes1
answer17
viewsQ: Doubt: Google Analitycs JS runs on PHP file_get_contents?
I have a site where you have the JS from Google Analitycs, it happens that from time to time I run a function in file_get_contents in PHP to get information on this site. My question is: Google…
-
0
votes3
answers332
viewsA: Receive Jquery and PHP response from second to second
You can use the window.setInterval JS to call the function passing as parameter the function you want to call and the time in milliseconds. The Code would look like this: var intervalo =…
-
0
votes1
answer65
viewsQ: Problems in Pseudo Class Nth-Child(n) CSS3
I’m trying to do in CSS3 with Nth-Child() the famous "color yes, color no" in a list made in Foundation 5. It happens that in the middle of the list there will be a div in which will be a modal and…
-
-1
votes1
answer91
viewsA: Sort DIV’s by content thereof
Well, I will answer my own question because I found the desired solution and so I will leave here the answer to help other people. Follow an example on JSFIDDLE HTML: <input type="hidden"…
-
-1
votes1
answer91
viewsQ: Sort DIV’s by content thereof
I am making a kind of list in Foundation 5. In this list there is a head and the content, I need that when clicking on the field name in the head, the DIV is ordered according to the content in the…
-
0
votes1
answer62
viewsQ: Prevent Google Event sending when pressed F5 and access via GET
Personal talk! I need to do a prevention of sending event of analitycs in the following scenario: I have a form that when Submit is given, the post is processed in ajax and this ajax returns a URL…
-
0
votes1
answer45
viewsQ: Bring all necessary results in a query - Mariadb
I need to reformulate a small system, which today, works but opening multiple connections to the database, and when there are too many records, the database falls, or when that doesn’t happen, the…
-
1
votes2
answers763
viewsA: Get Json data from php
json_decode transforms json into a std_class object, that is, to retrieve the desired information use as follows: $dados->results->city_name; Follows here an example of Json in sandbox.…
-
-1
votes1
answer971
viewsA: reCAPTCHA failed file_get_contents
Some servers disable the use of file_get_contents, in other words, google blocked any access from file_get_contents. You can use PHP’s Curl to circumvent the lock. In this case, your code would look…
-
1
votes1
answer496
viewsA: How to include generated php file in mpdf
I suggest you do the searches outside of include and use str_replace to swap the file variables file_get_contents took. The file would look like this: // seu arquivo que o file get contents pega…
-
1
votes2
answers1579
viewsQ: Vertical alignment of columns
I’m making a code snippet where there are 3 "Columns" inside a "Row" of Foundation 5 as code below: .row{ background-color:yellow; } .align-vertical{ align-vertical:middle; } <div class="row…
-
2
votes2
answers394
viewsQ: Prevent multiple Ubmit via jQuery
I’m making a form with abide validations (Foundation 6) and I’m not managing to prevent several Ubmit’s. The following happens: When it is clicked on the Submit button of the form the following…
-
0
votes0
answers56
viewsQ: Enable the invalid Foundation 6 input via JS/jQuery
I’m developing a logins registration form. The login must be unique. Every time a login is typed in the field the onblur event makes a connection in ajax where it is checked if in the database there…