Posts by Matheus Vitor • 505 points
51 posts
-
-1
votes1
answer38
viewsQ: Cannot use isset() in the output of a PHP expression
I want when my site is accessed with the reference? ref=app show a page, if it is not going to appear another. But just make that mistake: Fatal error: Cannot use isset() on the result of an…
-
0
votes2
answers41
viewsQ: php if does not work when you have nothing declared by url
I have this error in the variable put to show the code only when you have the reference. but the error when you have nothing declared. That is, when accessing the site with site.com/? ref=app…
-
3
votes2
answers176
viewsA: How to create a single search box for Google and Wikipedia?
OPTION 01 in his input change the name for search being like this: name="search" OPTION 02 (AS PHP) So you can use php for this. with a simple form! I used bootstrap, but then just add to your code.…
-
0
votes0
answers181
viewsQ: How to send notification with onesignal for android app via Firebase
So my app uses firebase, connected it with onesignal use a php function that sends notification to web browsers. I WANT TO SEND VIA PHP DIRECT TO FIREBASE, OR BY ONESGINAL MY APP ALREADY AND…
-
0
votes2
answers59
viewsA: How to create a height div with a prescribed value that decreases when redirecting the screen
Simple, in the image put the css <img src="img.jpg" alt="IMG" style="width: 100%;max-width: 300px;"> no. col-box-1 add a text-center .col-box-1{ background:tomato; border-bottom:3px solid…
-
2
votes2
answers334
viewsA: Authenticate user and password from another page
You can enter the login page of the other site in the form. <form method="POST" action="https://seusite.com/site02login.php"> <input type="email" name="email" id="email" placeholder="Email"…
-
1
votes1
answer139
viewsQ: Error setting cookies with expiry date with javascript "When browsing session ends"
I have the following code: function createCookie(name,value) { name = "testeeee"; value = "conteudo do teseeee"; var date = new Date(); date.setTime(date.getTime()+(720*60*60*1000)); var expires =…
-
1
votes1
answer198
viewsQ: Displaying date a cookie expires in php
Currently I serve my cookie like this: setcookie("visita","sim", time() + 172800, $path = "/"); // 86400 = 1 dia, 172800 = 2 dias (SEGUNDOS) But how can I show on a php page like this: Your "visit"…
-
3
votes1
answer123
viewsQ: How to know if the person has visited another site with cookies?
Example, I have 2 different domains, I would like to know with cookies if he has visited before, or if ever clicked on certain thing on my other site, ie if he has visited my site before, clicked on…
-
0
votes2
answers30
viewsA: Make categories appear in search results in Wordpress
I GOT IT WITH THAT CODE! $search_term = explode( ' ', get_search_query( false ) ); global $wpdb; $select = " SELECT DISTINCT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON…
-
0
votes2
answers30
viewsQ: Make categories appear in search results in Wordpress
For example, I search PAGODE in the search, above the results of the posts appears also the categories that has the name PAGODE. I tried that: include tag and category in wordpress search results…
-
0
votes1
answer97
viewsQ: How to send 2 GET with input
EXAMPLE: <form action="/" method="get"> <input class="form-control mr-md-4" type="search" placeholder="Digite aqui oque deseja..." aria-label="Search" name="s" id="search" value="<?php…
-
0
votes1
answer126
viewsQ: Make my website open in the app automatically when accessed by Browser
i have an Android app made in Android Studio, and a simple webview, what should I do in the app to recognize the site and open it in the app ?
-
0
votes1
answer28
viewsQ: Add parameter to all my internal Urls
Like, my site has several posts and such, I would like all links of my own site to be with ? ref=app at the end.. even if I changed the page he kept the parameter. Is there a code? a way to do this…
-
1
votes1
answer53
viewsQ: Grab an HTML color As per IMAGE
How to capture an HTML color but this color has to look like the image... EXAMPLE: (THE BACKGROUND IS SIMILAR TO THE IMAGE) EXAMPLE 02: (REPAIR THE BACKGROUND!) How can I do that to get the color on…
-
2
votes1
answer35
viewsQ: Create Numeric List with PHP by adding 0 from 1 to 99
$cont = 1; <?php echo $cont++ ?>: Generates a list as: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12... But how to leave her like this: 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12... But only when…
phpasked Matheus Vitor 505 -
2
votes2
answers571
viewsQ: How to make Bootstrap Grid stay with 2 rows in Mobile
I would like to leave the same as the print below.. I do not know if it has as this I saw in an application, I want to know if it is possible to do with bootstrap. because I tried to put the…
-
-2
votes1
answer210
viewsQ: List all data of an API in numerical list (Array)
I have this Array: [tracks] => Array ( [data] => Array ( [0] => Array ( [title] => Amiga Da Minha Mulher [artist] => Array ( [name] => Seu Jorge ) ) [1] => Array ( [title] =>…
-
7
votes1
answer207
viewsQ: jquery.iframetracker Does not work on Mozilla Firefox, can you fix it?
i have a script that records a cookie with ajax when you click on a Google ad (iframe), works in Google Chrome good.. but not firefox.. does anyone know why ? Or if you have another solution to do…
-
1
votes2
answers98
viewsQ: Make all external links open in a new tab except one!
Oops, I have a script that identifies all external links and force open in new tab... <script> jQuery(document).ready(function($){ $('a').not('[href*="'+document.domain+'"]').attr('target',…
-
0
votes0
answers124
viewsQ: Save cookie when you click inside a DIV
I have a DIV, in it goes ads.. and I want you to create a 2-day cookie.. That is, Before loading the page it checks if already clicked somewhere in the DIV in the last 2 days, if already clicked it…
-
0
votes2
answers267
viewsQ: How to know if a person has clicked on a DIV or not
I have an ad and I want to know if the person has already clicked on the ad in the last 2 days. If it has already clicked, it does not appear but, if it has not clicked, it still appears. Something…
-
2
votes2
answers434
viewsQ: How to know if a person has visited a page in the last 2 days
I have an idea, to show advertising only to those who have visited the site before, and another ad for those who have never visited before. (LAST 2 DAYS) SOMETHING LIKE THAT: <?php if ($visitou =…
-
0
votes1
answer78
viewsQ: When error 404 in header, and redirect to a specific page?
I have this page with link OFF: https://uploadbr.com/1j1w But it’s no use me doing it with .htaccess, because I’ve tried and it won’t, I want to do with php. I tried something like this:…
-
2
votes2
answers2601
viewsA: Link "Share on Whatsapp"
Friend, your mistake, and because this link will only work on mobile.. or will only open if you are accessing this link with a mobile, with Whatsapp installed to be able to work. I hope I’ve helped.…
-
0
votes2
answers216
viewsQ: How to know one HTTP_HOST and redirect to another
That is, when HTTP_HOST is equal to site1.com or site02.com it redirects to novosite.com I tried something like this below. but it didn’t work. <?php if ($_SERVER['HTTP_HOST'] == 'site1.com,…
-
-1
votes1
answer67
viewsQ: How to get information that is in 2 mysql tables
Table 01: $file Table 02: $users I want to do so, when a user is level ID = 30 display an msg EXAMPLE, File 01 ($file->userid = 20 that is, that user id is in table 02, $users->id) FILE TABLE…
-
0
votes1
answer33
viewsQ: Add + options in Wordpress post editor and display them in Theme
That is, the default Wordpress post editor and just that.. ] But how can I put option when posting, as inform the download link.. then we put it in the post time, and can display later on the theme.…
-
-1
votes1
answer135
viewsQ: Identify all links on a site and change it with java script
There is how to create a script, to identify all the links of a site and modify them later, ie add the code in footer.php and so it change the links. Would that be: ANCIENT LINK:…
-
1
votes1
answer85
viewsQ: How to make an input not accept the term "Brazilian Music"
That is, if you have written "Brazilian Music" inside the imput it gives an error and not accept. Example. When he has "Brazilian Music" he will not proceed.. HAS HOW TO DO THIS ? MY CODE:…
-
0
votes1
answer73
viewsQ: How to take a value inside an array with PP
I have an API with some information and I want to get the Genre: Samba/Pagode stdClass Object ( [id] => 46484422 [title] => Raça Negra e Amigos II (Ao Vivo) [upc] => 7891430177379 [link]…
-
0
votes1
answer924
viewsQ: How to make URL friendly with . htaccess with Variable in URL
Example I have link like this: https://meusite.com/linkdireto/? id=999 You can access it like this: https://meusite.com/linkdireto/999 So keep the URL but clean, I know you have how to do, but I…
htaccessasked Matheus Vitor 505 -
3
votes2
answers66
viewsQ: How to put + of a domain in this code, different references
Hello, I have a code that works as a reference. That is if the visit comes from domain 01.com, it displays: WITH REFERENCE if it does not display: UNREFERENCED Code: <?php if…
-
0
votes1
answer91
viewsQ: Extract the cover of an MP3, and other information with PHP
I have an MP3 file on my site, and I would like to show the cover of this MP3 on my site, has some way to get this cover with PHP, or other way ? Like this site: https://mixstep.co/i0t9oz20ycb8 The…
-
0
votes1
answer330
viewsA: How to synchronize mysql database (security backup)
I decided to, really download..
-
1
votes1
answer78
viewsQ: Compress everything by SSH except a folder in Centos7
I would like to compress everything into zip, or is all content of my public_html however, I need the files folder not to be added for compression.
-
0
votes1
answer330
viewsQ: How to synchronize mysql database (security backup)
I have a website hosting files, (file server), I synchronize the files with another server.. in case something happens I have a copy of all the files.. But is there any way to always save a copy of…
-
0
votes1
answer41
viewsQ: How to capture the URL of the first image of my Wordpress post?
I have a website on Wordpress, but it does not host image on the server itself, only on external servers, has some form in PHP, to capture this url, that is, capture the first image of the post,…
-
0
votes1
answer1654
viewsQ: Copy content button, and display a message right after you click it to copy
In my case, I want to make a button to copy the short link of a site, ie do not need to display the text, just have the fontawesome icon <i class="fas fa-copy"></i> that is, a button…
-
1
votes1
answer93
viewsQ: How to change the content of a DIV if you are using Adblock
Hey guys, on my site there’s a button inside a div: <div class="novolinkdedownload"> <a href="#" class="btn btn-primary" id="butdedownlaodnovo">BAIXAR AGORA</a> </div> has…
-
1
votes1
answer59
viewsQ: Is there any way to add Bootstrap’s "tooltip" to the force?
I have a button on my website Wordpress, or within the posting! Knob: <a href="#" class="btn btn-primary btn-lg btn-block" id="butdedownlaodnovo" data-toggle="tooltip" data-placement="top"…
-
2
votes1
answer79
viewsQ: How to have isset function using $queryString in php
I have a code in php that has the function of picking the parameter ?capa= with parse_str <?php $url = parse_url($_SERVER["HTTP_REFERER"]); parse_str($url["query"],$queryString);?> That and…
-
-1
votes1
answer755
viewsQ: PHP link protector to capture and encrypt and add a URL before
Ola would like to know how I can use Javascript or PHP to put this url https://protetor.com/?url= before the addresses of the download servers automatically I use these servers Skydrive, Clouddrive,…
-
1
votes1
answer766
viewsQ: How to delete all files and subfolders from a directory?
I have a file storage site, and with time it moves inactive files to a folder: www.site.com/files/_deleted/, when it moves the files it creates a subfolder for each of them... It has how I run a…
-
0
votes0
answers222
viewsQ: Get information from another page with PHP
Is there any way to get information from another page, like <title>, <link rel="icon" href="/favicon.ico" type="image/x-icon"/>, <meta name="description" content="DESCRIÇÃO DE OUTRO…
-
1
votes1
answer190
viewsQ: How can I change my homepage URL in Wordpress?
I have a site in Wordpress, when access it gets dominio.com, but I want only the index from it move to www.dominio.com/home. That is, when you access www.dominio.com, change to www.dominio.com/home…
-
1
votes1
answer96
viewsQ: Force a page title rewrite
Well, I have a page, but one of those pages wanted you to change the title. Example my page uses in Reader a code that defines the title of all pages, but I have a custom php page that also want to…
-
1
votes1
answer261
viewsQ: Make a DIV appear only at a certain time
For example, I have a certain div, but I want her to show up only from 6:00 to 00:00 every day, but I have no idea how to do that. <div class="conteudo"> <h1>aqui vai o conteudo da…
-
0
votes1
answer29
viewsQ: How to lynch a post categories on a Wordpress site
I have a website on Wordpress. I want to display the categories on post, I mean, my theme. I tried the code below, but only the name of the categories of the post appears, but only text, there is no…
-
-3
votes2
answers179
viewsA: Add code Analytics in Wordpress blog
Get in the header.php or in the footer.php of your THEME and add the code Provided by Google. Example of a Google code: <!-- Global site tag (gtag.js) - Google Analytics --> <script async…