Posts by Sérgio Machado • 547 points
42 posts
-
0
votes2
answers79
viewsQ: Convert date from yyyyymmdd to dd/mm/yyyy
I have a string with the following value: 20191219 this is a date in the format month and day, I wanted to know how to transform it to the format day/month/year, using the value I mentioned, would…
javascriptasked Sérgio Machado 547 -
-1
votes1
answer42
viewsQ: Get difference in hours with specific interval
I would like to get the difference in hours between two dates with times, this is simple, however in my example should only be considered the hours of 08:00 until 16:00, this is possible? I will…
-
0
votes1
answer38
viewsQ: Wrapping Ivs with a class inside a repeat loop
I have the following php code for ($i = 0; $i <6; $i++){ echo '<div class="item">'; echo $i; echo '</div>'; } ?> I would like class until position 3 to be involved by a div, and…
-
-2
votes1
answer311
viewsQ: Calculate difference in days between two dates excluding weekends
I would like to know how to calculate the difference in days between two dates, excluding Saturday and Sunday. I have a field in my form where picks the date acts, and another where the user selects…
-
-2
votes2
answers65
viewsQ: Function that prints indexes of an array incrementally
I’m trying to implement a function that can be in PHP or Js that takes the values of an array and displays them, only skipping indexes incrementally. For example, I have the following array numeros…
-
0
votes1
answer39
viewsQ: Running a function after selecting an item in the duallistbox double check box
I’m using a double check box, bootstrap4-duallistbox where the user will move to the right which fruits he wishes. My intention is to perform a function after the user selects a fruit, to display…
-
0
votes0
answers37
viewsQ: Jquery Validate renaming complex (square brackets)
I am validating some fields of an application form that was made in Ruby on Rails. In this application has some query endpoint, where it returns a json, if CNPJ exists it returns this data: {…
-
1
votes2
answers664
viewsQ: Check if CPF already exists with Jquery Validate
I am validating some fields of an application form that was made in Ruby on Rails. In this application has some query endpoint, where it returns a json, if the CPF exists it returns this data: {…
-
1
votes1
answer139
viewsQ: Bug when validating a word limitation field using Jquery validate
I have a form where the user needs to inform the full name of it, so I used the plugin jQuery Validate to make these validations, and also added the additional methods, where there is a function…
-
0
votes1
answer351
viewsQ: Browse existing classes in a form and remove
I am creating a form with validation using the plugin jQuery Validation, the form already has a structure ready, and so I needed, to make sure that the successful error classes were added together…
-
3
votes1
answer99
viewsQ: Similar shadow effect on gmail login screen
How to do for the same shadow effect when clicking on the show/hide equal password button has on the screen login google. Already tried to do with the pseudo-element :before using :phocus but I was…
-
1
votes1
answer72
viewsQ: Accordion menu with option open by default
I’m creating a Menu Accordion, based on a example that I found on the internet, however, I’m struggling to try to make it an open option by default, equally in this example here. Could someone help…
-
0
votes1
answer45
viewsQ: Printing items from an associative array randomly
I’m creating a carousel, where there will be 3 sliders containing 15 images inside each, totaling 45 images. I created a array associative to display these images randomly, so far so good, however,…
-
0
votes0
answers45
viewsQ: Finding search results in custom fields
How does Wordpress search in custom fields? I researched and saw that his search works using the title and content of the content. I created a project that uses custom fields, such as: address and…
-
0
votes0
answers17
viewsQ: Automatically generate post titles based on custom fields
all right? I am creating a website, unde will be registered several units of this company, in several cities in Brazil. I created a post type called drive and among the custom fields I created using…
-
0
votes1
answer41
viewsQ: Counter that every 20 images he prints a block
I’m making a page where there will be a slide, and each slide of this will have 20 photos, I found a code on the internet, where you just specify the folder where ta images and it generates all the…
phpasked Sérgio Machado 547 -
0
votes2
answers199
viewsQ: Capture URL that is inside a div with Jquery
I have a project where there are several boxes, with an image, and a link. I would like it when I click on the class . single-project captures the value of href, but I’m not getting it.…
-
0
votes1
answer294
viewsQ: Sending attachment using email as file name with Phpmailer
I am using Phpmailer to send a form and I would like the attached files when they arrived in the email destination, had the file name the email of the person from whom I send, and not the file name,…
-
0
votes1
answer229
viewsQ: Adding effects to text in Owl Carousel using Animate css
I’ve been trying to add animations from the library Animate.css at the Owl Carousel, to make the sliders more beautiful and elegant, however I can’t, only work the first slider once you load the…
-
1
votes2
answers349
viewsQ: Invert id sequence in a table
I had to migrate a site that was made in pure PHP for Wordpress, searched the internet and managed to copy the data from the table of the old site to the structure of Wordpress, which happened one…
-
1
votes1
answer641
viewsQ: Hide and show div after a certain time
I am creating the screen of a system that will show some graphics and will be displayed on a TV. There are two class one . screen-01 and another call . screen-02 this with display:None. I would like…
-
1
votes1
answer359
viewsQ: Image gallery with scrolling
I created a gallery and I would like it to only appear the first two lines, and the rest to remain hidden, so when the person rolls the scroll mouse, were appearing the others, until the end, only…
-
0
votes1
answer169
viewsQ: Displaying wordpress posts with Curl
has some sites where the wordpress installation is in a subfolder called news and need to display a list of posts on the index, searching the internet saw that wordpress generated a JSON of the…
-
0
votes1
answer225
viewsQ: Select date from the current date using pickadate.js
I am working on a simple project for a hostel, on the website has a small form of stable request. It has two fields to select the input date and another to select the output date. I’m using the…
-
0
votes2
answers1396
viewsQ: Select with States and Cities Search
I am here creating a form where the person should choose the state and after selected the list of corresponding cities is loaded in the other select, I am using a ready library city-states-js, so…
-
1
votes0
answers357
viewsQ: Login screen equal to Gmail
I’ve been watching the login screen of Gmail has the imput field and a text that stands as a placeholder, but when the mouse stroke is called from the field, this text goes up and stands as a label,…
-
1
votes1
answer56
viewsQ: Update price within a box with jquery
I have a page with several boxes containing some information and the price of the product, a URL and a select, when the person select a different option in select the price of the product will be…
-
1
votes1
answer755
viewsQ: Display featured posts and image using Wordpress REST API
I want to display the last two Wordpress posts using API Rest, after many searches and test manage to do this gambit there, but after I put this foreach inside the other one got a little slow, it…
-
0
votes1
answer119
viewsQ: View wordpress posts with SQL
I’m making a static site, where all the files are in PHP, however this site has a blog that should be manageable by Wordpress, then you ask me and pro what not to do everything by Wordpress? because…
-
0
votes0
answers451
viewsQ: Creating custom map with multiple points, manageable by Wordpress
You know how to generate a json file in wordpress?. I’m trying to create a map where custom points are manageable by Wordpress, I’m using the plugin ACF Advanced Custom Fields, where you create a…
-
0
votes1
answer648
viewsQ: Trace destination from address or zip code using Google Maps API
Does anyone know how to make a map like this http://yuejermano.com/#location/ceremony where the person enters the address or the zip code and he traces the route to the intended destination? I…
-
1
votes2
answers1514
viewsQ: Fixed menu appearing when scrolling page
I have this container there that will have a menu inside and it is fixed at the top, I would like to know how to make it appear only when you are rolling the page down, and disappear when you are…
jqueryasked Sérgio Machado 547 -
2
votes2
answers674
viewsQ: Validating input file with ajax request
Whenever I give a Submit in the form appears an error in the line in which this variable $file, I disabled the ajax and did not appear the error, so I guess it is not php problem…
-
3
votes1
answer212
viewsQ: Showing validation errors in the contact form
I have this contact form and I would like to be shown all validation errors when you have, for example, if you leave the field name and email without filling, when you gave Ubmit return these two…
phpasked Sérgio Machado 547 -
4
votes3
answers4316
viewsQ: Validating select with jquery.validate
I am creating an application form where there are some selects, as course choice and date of birth, I would like to know how to make mandatory the user select something using this library…
-
2
votes1
answer143
viewsQ: How to use Session to prevent a modal from opening again?
I have a website in HTML, in the index I put a modal to open as soon as the person enters, this modal is to collect the email of the person, however every time the person updates the site the modal…
-
1
votes3
answers1167
viewsQ: How to make language selector
I have a website and need to put a language selector on it, when the user selects the flag corresponding to the desired language to be redirected to a specific url. <select>…
-
0
votes1
answer256
viewsQ: Sending image with phpmailer
I have a website that the fomulário needs to be authenticated,I’m using the phpmailer library, so far so good I got, however this form has a photo that should be sent together and I’m not able to…
-
4
votes1
answer969
viewsQ: Is it safe to use Timthumb?
I’m making a website and I started making use of the library Timthumb.php to resize the images in the exact size I want. However came to me two questions Is it safe to use? hear that past versions…
-
0
votes0
answers222
viewsQ: Page-blog.php pagination in Wordpress
I’m creating a theme Wordpress and created a page called Blog that is using the file page-blog.php as a model and the Slug of the page is also blog, where the same will list all the posts of a CPT…
-
4
votes1
answer862
viewsQ: Redirect user to Google Maps app
I’m developing a responsive website and using the Google Maps API to generate the company location map. I would like when the usurer was accessing the site by a mobile device and the same clicked on…
-
7
votes3
answers633
viewsQ: Add class to a datatable
I’m making changes in a pagina.aspx of a system, however many things are generated through language functions. Since I can’t add a class via code, I’m trying to add via jQuery, but I’m not getting…