Posts by Gislef • 261 points
29 posts
-
1
votes4
answers554
viewsQ: Correct CSS Div > li > span
There is a part of my code that I am not able to change the css. <div class="AlterarCSS"> <ul> <li>Nome - <span>Endereço Site<span></li> <li>Nome -…
-
2
votes1
answer23
viewsQ: Append data-slb-group="slb"
I have several images and I’m trying to use the AppendTo jquery, but I’m not getting <a href="image1.jpg" data-slb-active="1" data-slb-asset="1947037253" data-slb-internal="0"…
-
2
votes1
answer256
viewsQ: How to call a class within a function
I have the following folder structure /THEME /vendor autoload.php /composer files of composer /jflight /gacookie /src /tests other files composer.json composer.lock function.php inside src, has the…
-
-1
votes1
answer57
viewsA: Origin - Visitor’s media
I found the solution on Github: Google Analytics Cookie Parser PHP Basically I must parse some Google Analytics cookies, for example utma and the umtz, and access the information I need For utma…
-
0
votes1
answer57
viewsQ: Origin - Visitor’s media
I know it’s possible to get the visitor’s previous url with $_SERVER['HTTP_REFERER']; but how do I take for example the source/media that the visitor was before accessing the site? For example, it…
-
1
votes2
answers80
viewsQ: Load code according to device
The excerpt below is similar to what I have on the website homepage: <div class="text-center"> <div id="minhaClass"> <a href="<?php echo get_site_url(); ?>/texto-1/">texto…
-
1
votes1
answer60
viewsQ: Options from select with Closest
How do I get all options tags (html and values) with jquery <select id="test" name"algumName"> <option value="1">1</option> <option value="2">2</option> <option…
-
1
votes1
answer44
viewsQ: Number of fields - PDO
I built some crud classes in PDO and almost all have 4 or 5 fields in DB, worked correctly. Now I’m trying to create a crud of 6 fields, but does not create the record in DB at all, I rewrote the…
-
0
votes2
answers551
viewsQ: Security Login - PDO
I’m studying how login/logout is using PHP PDO. That code I understood: https://github.com/setyongr/pdo-login-tutorial, I’m using it as a reference. But I have the following doubts: What I should…
-
0
votes1
answer199
viewsQ: Ajax data - Pagination
I’ve been studying jquery and ajax documentation. I’m trying to understand how ajax and php requests work. I’m trying to turn a normal pagination into ajax pagination. More specifically as I use…
-
0
votes1
answer812
viewsQ: How does GET work with AJAX?
I have a pageant AJAX that is working, actually without working better, I’m trying to understand how the AJAX works with the url for paging to work properly. What happens is that in normal…
-
0
votes1
answer1069
viewsQ: Paging with ajax
I have a normal paging code, it is working properly, but I am not able to insert ajax in paging. Actually as I’m using functions, I don’t know how to call the function "paginglink" in the AJAX url…
-
0
votes1
answer31
viewsA: Array - Grab Names: Url and Caption
With help in the Soen, in the question I asked there too, and help from @Isac here from Sopt I managed to solve: if (isset($_POST['url'])){ $url = $_POST['url']; $caption = $_POST['caption']; $data…
-
0
votes1
answer31
viewsQ: Array - Grab Names: Url and Caption
I have dynamic inputs with Names my_image[url] and my_image[caption] <input name="my_image[url]" type="hidden" value="<?php echo $imgurl['url'];?>"/> <input name="my_image[caption]"…
-
1
votes1
answer317
viewsQ: Populate input with array
Hello, In my code jquery has a part like this: $("#show").append("<img src=" +attachment.url+" alt="+attachment.alt+" title="+attachment.title+" description="+attachment.caption+"…
-
1
votes0
answers47
viewsQ: How to make Bootstrap work in Theme options - ADMIN
I can’t get Bootstrap to work on the Settings API options in my Wordpress theme. I added in the action admin_enqueue_scripts together with other JS and CSS Wp_register_style ('custom_wp_admin_css',…
-
0
votes2
answers399
viewsA: While on dynamic carousel
I managed to sort it out like this: <?php $this_post_id = get_the_ID(); $urls =get_post_meta($this_post_id,'my-image-for-post', true); $totalUrls = count($urls);//count urls in array $number = 0;…
-
0
votes2
answers399
viewsQ: While on dynamic carousel
I am trying to display the images in the Bootstrap Carrousel with while. I can access the array with all urls, but I’m not able to insert the img tag in while, I tried while with foreach to display…
-
0
votes0
answers175
viewsQ: How to loop inside the foreach
I’m having a hard time getting the code to run. I have the variable $posts_metas which may be empty or have an array, depending on what the user has already registered in DB. I also have the…
-
0
votes1
answer964
viewsA: Shortcodes do not work in my wordpress theme
I had forgotten to insert <?Php wp_footer(); ?> in the archive footer.php https://codex.wordpress.org/Function_Reference/wp_footer Examples In twentyten Theme…
-
0
votes1
answer964
viewsQ: Shortcodes do not work in my wordpress theme
I’m creating my theme and it’s okay, But I installed a plugin and it doesn’t work properly when added shortcodes to the theme. On the page it looks like in the console the html tags of the plugin,…
-
0
votes1
answer299
viewsQ: Wordpress Function Enqueue - I can’t add Jquery to the theme
I am trying to add jquery in the theme, all css and js I put in Function are added in the code normally, but jquery that is in the directory of my theme is not being added. The file exists in the…
-
2
votes3
answers619
viewsQ: Urls array - Next button
PHP $urls = Array('www.1.com.br','www.2.com.br', 'www.3.com.br'); HTML <iframe src="www.1.com.br" width='100%' height='100%'></iframe> <button>Proximo</button> How do I…
-
1
votes2
answers502
viewsQ: Iframe from external site
I have a page with iframe of external site, how can I do to be able to click automatically when loading the iframe on a button you have determined texto on the external website? Not exactly classe,…
-
0
votes2
answers475
viewsQ: Create arrays inside while
I have the following code: $urls = file_get_contents('https://www.google.com/#q=teste'); // teste é a palavra que vai pesquisar no google…
-
0
votes0
answers212
viewsQ: Load php file according to screen resolution
Hello, I know there are frameworks like bootstrap (which I use) but I really want to make a separate template for mobile devices. My doubt is how to call the php file according to screen resolution?…
-
-3
votes1
answer272
viewsQ: Multiple Inserts Inner Join PDO
Hello, I have in DB the tables categoria and imagens Currently Function (in PHP) to insert in the category table is similar to this (same title only): public function insere($ttitulo) { try { $stmt…
-
0
votes1
answer182
viewsQ: Div fixed hide when arriving in another div
Hello, I’m trying to implement this idea to my project: https://jsfiddle.net/dx2dsta9/ function removerSetas() { var topo = $(window).scrollTop(), alvo = $("#alvo").offset().top, setas = $(".left,…
-
2
votes1
answer1323
viewsQ: Change JSON file on server
I have the following form: <form method="POST"> Title <input type="text" onchange="Function()"> X <input type="text" onchange="Function()"> Y <input type="text"…