Posts by sNniffer • 1,009 points
131 posts
-
0
votes1
answer60
viewsQ: Simple query Mysql
Have the consultation: SELECT * FROM cliente, categoria_cliente, categoria WHERE categoria_cliente_cliente_id = cliente_id and categoria_id = categoria_cliente_categoria_id and…
-
1
votes3
answers630
viewsA: Check if there is tag within site
Solved as follows: // pega o codigo fonte do site $codigofonte=file_get_contents('http://www.google.com'); //sua tag $tag='<a href="http://www.site.com.br" id="authority"></a>'; //…
-
2
votes3
answers630
viewsQ: Check if there is tag within site
I generate a specific tag from my system, my customers need to add this tag within the bodyof their index, my problem is: How to identify if this tag is inside the site, only by its url, without…
-
2
votes1
answer192
viewsQ: Datatablet JS Export with Multiline
Opa, In the same cell of the datatable there can be several lines, and the function buttonsto export from datatable does not recognize tag <Br>, I’m trying to use the columns and the render…
-
2
votes2
answers3572
viewsA: installment value Invalid Pagseguro
Solved Correct XML for transparent Pagseguro checkout <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> <payment> <mode>default</mode>…
-
3
votes2
answers3572
viewsQ: installment value Invalid Pagseguro
Opa, I’m using the transparent checkout of Pagseguro, but, if I report an amount of installments greater than 1, in a sale with credit card, I get the error: installment value invalid value: My…
-
1
votes2
answers660
viewsQ: Return getInstallments Pagseguro
The getInstallments Pagseguro serves to return the amount of installments and the value of each installment, when informing a card and the value of the sale. The return I get is this: In this return…
-
1
votes1
answer85
viewsA: Space between jquery mask
I resolved: /// Mascara Telfone function mascara(o,f){ v_obj=o v_fun=f setTimeout("execmascara()",1) } function execmascara(){ v_obj.value=v_fun(v_obj.value) } function mtel(v){…
-
0
votes1
answer85
viewsQ: Space between jquery mask
I’m using a jquery mask: /// Mascara Telfone function mascara(o,f){ v_obj=o v_fun=f setTimeout("execmascara()",1) } function execmascara(){ v_obj.value=v_fun(v_obj.value) } function mtel(v){…
-
0
votes1
answer33
viewsA: Author name in meta Property
I decided a while ago, I remembered to post the solution now: <meta property="article:author" content="URL do Facebook do Autor">
-
0
votes1
answer538
viewsA: Capture Data Google Analytics PHP
Follow full code for query the API of the Analytcs and return of total visits per url specifies: function getService() { // Creates and returns the Analytics service object. // Load the Google API…
-
1
votes1
answer538
viewsQ: Capture Data Google Analytics PHP
Opa, I need to access the google API and import information like visits and origin of visits, per page. I’m accessing the Analytics API like this ,but, always get the total of visits 0: My code: `…
-
0
votes1
answer33
viewsQ: Author name in meta Property
Opa, I need to add the name of an author of the article, like this image: My codes are: <meta xmlns="" property="og:url"…
-
0
votes0
answers125
viewsQ: Phpmailer error while sending
Opa, I am using a function to send mail with phpmailer, follows function function SendMail($acessa_arquivo, $email_destinatario, $nome_destinatario, $assunto, $mensagem, $link) {…
-
2
votes2
answers1829
viewsA: Generate Secure API Subscription
Resolvi, follows full functional code to generate signature via API with Pagseguro: $url =…
-
0
votes1
answer224
viewsA: Incoporar iframe social networks in wysiwyg - Tinymce
I solved it as follows: <!DOCTYPE html> <html> <head> <script src="http://cdn.tinymce.com/4/tinymce.min.js"></script> <script async…
-
-1
votes1
answer224
viewsQ: Incoporar iframe social networks in wysiwyg - Tinymce
Whoops, anyone knows how to add option to add or in ckeditor or tinymce, options similar to this: Adding the iframe of a social network, the embed block goes directly to the body of the editor. I…
-
1
votes1
answer1277
viewsQ: How to correctly position Font Awesome icons in div?
I have some Windows that should display some Font Awesome icons by my css: .listing-item .listing-meta-cat a { font-size:14px; width:30px; text-align:center; margin-right:5px; border-radius:10%;…
-
0
votes2
answers1207
viewsA: Consultation of Secured Transaction
Solution for Code Transaction Query. $email_pagseguro = '[email protected]'; $token_pagseguro = '*******************'; $url =…
-
1
votes2
answers1207
viewsQ: Consultation of Secured Transaction
Opa I am generating the payment via pagseguro and storing your transaction code for later consultation. In the transaction query, by the transaction code I am doing so: $email_pagseguro =…
-
2
votes1
answer89
viewsQ: Navigate specific value in PHP Array
I have a connection via api with a third party system, I am receiving the values in this format: Array ( [code] => 200 [data] => Array ( [subscription_id] => 2752 [status] => new…
-
0
votes1
answer82
viewsQ: Autocomplete with text from div
Opa, next, I have a list of links, what I need is that when typing in a textbox this list is filtered by text, it is possible? It would be a kind of autocomplete without database.
javascriptasked sNniffer 1,009 -
2
votes1
answer1203
viewsQ: Treat Post return in Javascript
Opa, I have a page that runs a Setinterval of seconds in javascript, this page captures the data of Divs and sends via post, and this data sent is not fixed, sometimes, can be sent 1 or more of a.…
-
0
votes1
answer130
viewsQ: Explode lines from a textarea and separate them by commas
Opa, I need to capture the text of the textarea, separate it by lines and then explode and separate it by commas. $lines = explode("\n", $respostas); $i = 0; if ( !empty($lines) ) { foreach ($lines…
-
1
votes1
answer607
viewsQ: Add text at a given input text position
I have an input text, I need to click a button to add a specific word in the place where the cursor is positioned, I mean, I have to take the position of the cursor in the input and add a word.…
javascriptasked sNniffer 1,009 -
4
votes2
answers1829
viewsQ: Generate Secure API Subscription
Well, I need to generate subscription via pagseguro API, user should be redirected to the pagseguro page and when finished return to my page, this should be via API. I tried through XML, with the…
-
1
votes2
answers80
viewsQ: Query Between Mysql does not return correct!
I have a simple consultation in a field Datetime, I must make the consultation stating two dates, of course recovering the values between them. select financ_conta_id, financ_conta_cadastro from…
-
1
votes2
answers671
viewsQ: Search javascript input value
Opa, I believe it should be simple, but, I did not get a perfect functioning. I have a function that when clicked should check the value contained in an input text, the values are separated by a /…
javascriptasked sNniffer 1,009 -
2
votes0
answers1202
viewsQ: Lightbox via API
I have a Lightbox working perfectly well, using: <!-- INICIO FORMULARIO BOTAO PAGSEGURO --> <form action="https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add" method="post"…
javascriptasked sNniffer 1,009 -
1
votes2
answers306
viewsA: IF condition between Mysql PHP tables
Solved, thanks to the idea of @Marcelo de Andrade SELECT forma_pagamento_id, forma_pagamento_nome, forma_pagamento_selecionado_id, IF(forma_pagamento_selecionado_id IS NULL, 'NULL', '1') AS…
-
1
votes2
answers306
viewsQ: IF condition between Mysql PHP tables
Opa, I have two tables: forma_pagamento and forma_pagamento_selecionada. I have a while where should be listed all forms of payment, so in this while should have a condition IFwhere will return me a…
-
0
votes2
answers146
viewsA: Fixed Div with Fadein Effect
I did the following: #sidebar_bottom { position:fixed; top:60%; z-index:999; width:100%; left:0; overflow:scroll; height:300px; } var jElement_right = $('#sidebar_right'); var jElement_bottom =…
-
1
votes2
answers146
viewsQ: Fixed Div with Fadein Effect
Opa, I got a div on the side sidebar_right, when scrolling the page it should go to the footer fixed, I am using so: $(function () { var jElement = $('#sidebar_right'); $(window).scroll(function(){…
-
0
votes1
answer173
viewsQ: Transactions by PHP Pagseguro date
Hello, I need to check the transactions made in a pagseguro account, I’m using: $initialDate = '2016-05-10'; $finalDate = '2016-06-10'; $email_pagseguro = '[email protected]'; $token_pagseguro =…
-
0
votes5
answers1479
viewsQ: Input javascript text only
Opa, Very simple thing that I did not find something similar, I decided to create, I did: function bloqueiaNumero(texto) { var tecla = new String(); if (window.event) { tecla = texto.keyCode; } else…
javascriptasked sNniffer 1,009 -
0
votes1
answer113
viewsQ: Datareport Landscape VB6
I am using the vb6 Datareport with landscape mode orientation, so: RptFPagamentoDetalhe.Orientation = rptOrientLandscape RptFPagamentoDetalhe.Show vbModal It works normally on the development pc,…
visual-basic-6asked sNniffer 1,009 -
1
votes1
answer203
viewsQ: Publish Facebook page SDK php
How to post to a facebook page through PHP? I’m trying to: require 'facebook_php_sdk/Facebook.php'; // ATENCAO, configurar os parametros abaixo $APP_ID = "12345678"; // id da app $SECRET =…
-
0
votes0
answers81
viewsQ: Fill Select by creating by append Javascript
Opa, I have a button to create some inputs, I need to fill a select when creating it with data from the bd, I did so, I played in a variable javascript the values of the sql query. foreach…
javascriptasked sNniffer 1,009 -
0
votes2
answers1208
viewsQ: Foreach in Post PHP return
Opa, I have a form in which post the form data and capture via a forech. In the form I have a button where I create new inputs by the jquery append, inputs with same name. The problem I have is that…
-
0
votes0
answers251
viewsQ: INTL PHP 5.6 extension in Magento
Opa, I couldn’t install Gento on localhost, I’m using Easyphp with php 5.6.19. I have already checked in the dll folder, the file 'php_intl.dll' is there, already decoded in php.ini to…
-
0
votes1
answer51
viewsQ: Boot does not work in Setinterval
Opa, I have a set interval: $(document).ready(function(){ setInterval(function() { $("#loading_questions").load("include/question.php?id_question=1"); }, 8000); }); Inside the file Question.php I…
javascriptasked sNniffer 1,009 -
0
votes0
answers232
viewsQ: Mysql Query Same Column Different Parameters
Opa, simple thing, I have a test table, orgao and state tables teste = 'teste_estado_id_1' 'teste_estado_id_2' 'orgao_id' orgao = 'orgao_id' estado = 'estado_id' In a query you need to relate the…
-
1
votes1
answer145
viewsA: Error Data Report Group Footer VB6
Try to adapt for use of SHAPE APPEND like this: If RSTest Is Nothing Then Set RSTest = New ADODB.Recordset End If If RSTest.State = adStateOpen Then RSTest.Close End If 'Two tables SQL = "SHAPE…
-
1
votes1
answer145
viewsQ: Error Data Report Group Footer VB6
Opa! I need to add an extra field in a vb6 data report as in the image Connection to the database is done via ODBC Driver 5.1 with Mysql database. Use this SQL for report generation: SELECT *,…
-
1
votes1
answer910
viewsQ: Update div with PHP return after Ajax request
Opa, I have the following function for an ajax login function show_login_client_enter(id) { var url = 'store/content/validate_user_client_action.php'; var method = 'POST'; var params =…
-
3
votes1
answer2212
viewsQ: Display thumbnails of files
Does anyone know of a plugin that allows previewing TXT, PDF, DOC, and XLS files to display on a web page? In the example image, a PDF and an image are displayed…
-
2
votes1
answer123
viewsQ: Rename multiple files with VB6 Database data
I have a table with the following columns ID, Cod and Nome, I have a folder with hundreds of images, these images are with the beginning of the name equal to column Cod table, that is to say: Cod…
-
1
votes2
answers14689
viewsA: Error 403 in Localhost XAMPP
Solved using the hiccup found in Power-pixel At httpd-xampp.conf, I switched the lines: <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">…
-
0
votes2
answers14689
viewsQ: Error 403 in Localhost XAMPP
Well, always running everything normally in XAMPP on localhost, suddenly when starting XAMPP it returns me error 403, with this message: Acesso Proibido! Você não tem permissão para acessar o…
-
0
votes1
answer1119
viewsQ: Write Mil e Milhoes in PHP number
Good, I have the numbers for example: 10 1.000 10.000 1.000.000 10.000.000 I need him to return to me in an echo: 10 1 mil 10 mil 1 milhão 10 milhões I found and am trying to adapt a function.…