Posts by Diego Souza • 16,524 points
642 posts
-
2
votes2
answers2727
viewsA: Change table users Auth Laravel 5.1
Yes. In the archive app/auth.php you have to change those two lines: 'model' => 'App\User', 'table' => 'users', Switch to the table name you created. Remembering that the table name in the…
-
2
votes1
answer454
viewsA: Shortcut MAC/Linux terminal
Opa! That’s the way it is: On your Mac in the user folder open the file .bash_profile. It can be in the program in which you program. It is hidden. In case your Finder does not show the hidden files…
-
1
votes2
answers116
viewsA: How to add font to a select?
CSS select{ font-family: "Open Sans"; } Now using Inheritance from a Parent Element. HTML <div class="form-group"> <select> <option> Teste de Fonte em Select </option>…
-
0
votes3
answers1170
viewsA: Count Mysql records
Without looking at the structure of your table I thought of the query below. Makes a COUNT(ID) of Sales and groups using the GROUP BY per seller. This way you will have the amount of sales for each…
mysqlanswered Diego Souza 16,524 -
1
votes3
answers1452
viewsQ: URL problem with Toolbar /
In Laravel it is very common to use friendly URL and also very easy to use. The system is already ready for this. However, I have a problem that so far has not mattered. And now I want to know why.…
-
2
votes4
answers1603
viewsA: Doubt about "encrypted code" (obfuscated) in Javascript
It’s in Hexadecimal. I wondered why they do it. http://www.rapidtables.com/convert/number/hex-to-ascii.htm This site above decrypts. From what I saw are the names of the encrypted elements. Thus…
javascriptanswered Diego Souza 16,524 -
1
votes1
answer93
viewsA: Foreach remove duplicate images
array_unique($array) <?php $items = Mage::getSingleton('checkout/session')->getQuote()->getAllItems() ; $items = array_unique($items); foreach($items as…
-
1
votes1
answer133
viewsA: Route Error Accessing Site
Try to do it this way: Create a Controller from the command: $ php artisan make:controller HomeController. Then on the route erase everything and do: Route::controller('/', 'HomeController'); In…
-
1
votes1
answer63
viewsA: Avoid button click effect without affecting other links
In place of # you can put: <a href="javascript: void(0)"> Link 2 </a> Or put a class in it: <a href="#" class="none-link"> Link 2 </a> CSS a.none-link{ pointer-events: none;…
jqueryanswered Diego Souza 16,524 -
1
votes1
answer120
viewsQ: Load Page with Swipebox
I want you to open the page and open a Swipebox with an image. http://brutaldesign.github.io/swipebox/#Try I did so: jQuery if($('.swipebox')[0]){ $('.swipebox')[0].click(); } // Swipe Box…
-
0
votes3
answers441
viewsA: Use variable more times, click Event
Puts the IF within the function also var option = 0 function getData(val) { if (val.value === "option1"){ option = 1 alert("option deplacement!"); }else{ option = 2 alert("option ligne!"); }…
-
2
votes5
answers1552
viewsA: Restriction of words in comments
You can also use a table in the database. Create a table, for example: Words Columns ID | Wrong Word | Right Word Enter all the wrong words in the column Wrong Word and in the other column Right…
phpanswered Diego Souza 16,524 -
1
votes2
answers263
viewsA: Taking ID of the upper click div
An example below using the closest and a class as defined in div father. $(document).ready(function(){ $("#btn-1").on('click', function(){ var divId = $(this).closest('div.area').attr('id');…
-
3
votes1
answer385
viewsA: Broken image - Laravel 4
The right thing would be for you to use an Laravel method for images. Has two forms: {{ HTML::image('img/logo.png') }} Or <img src="{{ URL::to('img/logo.png') }} /> These ways work on any…
-
4
votes1
answer931
viewsA: Pass route variable to controller method
You use as parameter, slug of his method. Matriculascontroller.php public function busca($id){ dd($id); }
-
2
votes1
answer1823
viewsQ: Error Accessing Site in Earth Hosting
I transferred a website to network in an Earth hosting and when trying to access it displays the following error: Not Found [CFN #0005] I’m talking to the support - horrible, by the way (Neto) - and…
-
1
votes1
answer235
viewsA: Print Content that Has Multiple Canvas
I found the answer in Soen. $("#printImagem").on('click', function(e){ e.preventDefault(); var Can = new Array(); $('canvas').each(function(index, el){ Can[index] = $(el)[0].toDataURL('image/png');…
-
1
votes1
answer235
viewsQ: Print Content that Has Multiple Canvas
I’m making a site where you have a picture to color a drawing. After much research I managed to make a scheme to paint a certain area of the drawing of canvas. Now I want to do a function that…
-
1
votes1
answer1268
viewsQ: Coloring Canvas Drawing and Increasing Painting Area
I have a type of entertainment on a page where I choose a drawing that is placed inside a canvas coloring. I already have the brush and the colors. But I want something that does the function of the…
-
1
votes2
answers74
viewsA: Combobox Css Help
div.sidebar-right { display: table; float: left; } div.name-user { display: inline-block; margin-right: 15px; …
cssanswered Diego Souza 16,524 -
4
votes1
answer499
viewsQ: Pick up CSS Specific Element with Sign +
My question relates to this question: What the + sign in CSS means? I’m using the + sign to do an effect on a form I have. It works, but the point is that my form has validation. That is, when I…
-
21
votes1
answer487
viewsQ: How do I make Google understand my Links?
If we type Globe in Google the result appears as the image above. 1 - How can I make my site look like this too ? 2 - Google does this on its own ? I am in the tool of Google Webmaster Tools and…
seoasked Diego Souza 16,524 -
7
votes3
answers122074
viewsA: Place text next to image
I did it, I did it that way. I put this property in the image and it worked. img.face{ float: left; border: transparent thin solid; padding: 5px; margin: 0px 10px 10px 0; max-width: 186px; }…
-
2
votes3
answers122074
viewsQ: Place text next to image
I’m trying to put an image and a text on the side, but I’m not getting it. The text is under the photo or I can put the first sentence of the text on the same level as the top of the image on the…
-
5
votes6
answers992
viewsA: Like saving today at the bank?
In the database, go to the Default column and put current_timestamp() or now(). The field type should be timestamp, date or datetime. Depends on your circumstance.…
-
2
votes2
answers2611
viewsA: Is it possible to place a 'pre-image' in the youtube iframe?
Behold: var tag = document.createElement('script'); tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = document.getElementsByTagName('script')[0];…
-
2
votes1
answer1301
viewsA: What is the meta tag with itemprop="image" attribute for?
This refers to the schema.org site for processing microdata, Rich Snippets. Imageobject schema.org > Thing > Creativework > Mediaobject > Imageobject An image file. Usage: Over 1,000,000…
-
1
votes1
answer106
viewsA: Urlhashlistener picking up the wrong item (Owl Carousel)
I discovered the problem. It is a bug of Owl Carousel itself. You can return the loop. loop: true. You can take away those other options: URLhashListener:true, startPosition: 'URLHash' These top two…
-
28
votes2
answers1630
viewsQ: What does the + sign in CSS mean?
For example: .input__field--minoru:focus + .input__label--minoru::after { } I’m having an effect here, but I don’t understand this sign + you have in the framework. Final Result…
-
-4
votes1
answer222
viewsQ: Footer Fixed - Z Index
I’m making a fixed footer while scrolling on the screen. But I put z-index: -1 to be under all my contents. When I do this it overrides the Footer Links. But if I put z-index:0 it sits over some…
cssasked Diego Souza 16,524 -
3
votes2
answers155
viewsQ: How to do this effect with CSS
I need to do those corners on div footnote. I tried to scheme the triangles using pseudo-element, but I couldn’t. border-top: 30px solid @Laranja; border-right: 30px transparent @Laranja;…
cssasked Diego Souza 16,524 -
1
votes1
answer508
viewsA: How to catch Owl Carousel event
This method has in the documentation, see: http://www.owlcarousel.owlgraphic.com/demos/urlhashnav.html#seven URLhashListener:true startPosition: 'URLHash' Only implement.…
-
3
votes2
answers24
viewsA: Comparing Salary among Arrays()
SELECT * FROM folhapagamento_storages WHERE idFolhaParametro = 1 AND valor_min >= 1083.4 AND valor_max <= 1083.4 <= You have to put <= (equal) in the consultation of the valor_max. And…
sqlanswered Diego Souza 16,524 -
1
votes2
answers7273
viewsA: Responsive side menu with button
I usually do so. I create a class that hides the MENU, so to speak, the left of the screen using the transformX. Remember to put the -webkit, moz- and o- on that property. And a jQuery function to…
-
3
votes1
answer54
viewsA: Undefined variable PHP problem
echo '|'.$products[0][0].'|'.$products[0][1].'|'.$producs[0][2].'|<br>'; See where it is $producs[0][2]. Its variable is called $products - PRODUCTS and not PRODUCS (without the letter T)…
phpanswered Diego Souza 16,524 -
0
votes2
answers108
viewsA: PHP Ordination
shuffle($xml->offer) before the for. This function will randomize the object offerwithin the XML. See if it works like this.…
-
2
votes2
answers51084
viewsA: Sliding effect on anchor links
I do it using jQuery var top = $('#contato').offset.top(); $(window).animation({ scrollTop: top, // Separa condições. }, 300);
-
1
votes1
answer93
viewsA: Sort Birthdays by Day
You can do it like this: $condicoes['order'] = array('DAY(Funcionario.data_nascimento) => 'ASC')
-
5
votes2
answers122
viewsA: How to store form data in 2 different databases?
The only way I see it is like this: $insert = "INSERT INTO TABELA (CAMPO_1, CAMPO_2) VALUES (VALOR_1, VALOR_2)"; mysqli_query($con, $insert); mysqli_query($con2, $insert);…
-
1
votes2
answers34
viewsQ: Opacity in Pseudo-Element and Parent
I want to make a div with the left corner tilted, but it’s not working. This is the right way to do it ? In my case it even works because the div father has overflow, then the rest of the :before…
-
1
votes1
answer371
viewsQ: Recover Item json - Facebook API
I’m working with the Facebook API and I’m trying to retrieve a json item, but I’m not getting it. First that’s the json that’s returned to me from Graph Facebook API. { "data": [ { "message": "Boa…
-
3
votes1
answer1432
viewsA: Return ajax function with result of an sql search
json On the return of PHP, place: echo json_encode($s); In the JS place: $.ajax({ url: "carregarInfo.php", type: "POST", dataType: 'json', The important thing in the above JS code is the dataType:…
-
0
votes1
answer60
viewsA: CSS and JS do not render on mobile devices
<link rel="stylesheet" href="<?php echo BASE_CSS_SITE; ?>/bootstrap.min.css" media="all"/> <link rel="stylesheet" href="<?php echo BASE_CSS_SITE; ?>/index.css" media="all"/>…
-
2
votes1
answer3577
viewsQ: Is it possible to add a contact on the phone via code?
In a list of users on a mobile system it is possible to have a button that adds the contact on mobile ? Would be a button ADD that, when clicked, appeared that Android contact add screen, for…
-
1
votes2
answers412
viewsA: Problems to convert data mon dd yyyy hh:mm
You can use the function Convert. SELECT CONVERT(VARCHAR, GetDate(), 103) As Data_Hoje Will return: 24/09/2015 SELECT TOP 1 CONVERT(VARCHAR, ven.DATA, 103) as Data FROM tab_venda ven (nolock) INNER…
-
0
votes3
answers93
viewsA: Error "Class Swift_keycache_simplekeycacheinputstream does not exist"
Log in mail.php in app/config/. You filled in the email submission information in this file ? 'driver' => 'smtp', 'host' => 'smtp.one2up.com.br', 'port' => 587, 'from' => array('address'…
laravelanswered Diego Souza 16,524 -
1
votes1
answer62
viewsA: Can you add touch Events in jquery Cycle?
So here’s this tag: <div class="slideshow"> You do so: <div class="slideshow" data-cycle-swipe="true" data-cycle-swipe-fx="scrollHorz"> Add these other two attributes.…
jqueryanswered Diego Souza 16,524 -
1
votes1
answer3047
viewsA: Login with facebook in Facebook
I get it. At the end of } of FB.loginwho is in function Login(), place: ,{ scope: 'email, user_about_me, user_birthday, user_hometown' } Place user_about_me in the scope. Look at the way I did a…
-
0
votes2
answers564
viewsA: Call in function jQuery does not find file
Puts in your <body> the following property: <body data-base-url="http://www.seusite.com.br/"> Where your site is, you have to enter the absolute command until you reach the folder before…
-
0
votes1
answer1190
viewsA: Take the name of an image by Php or JS
If you are using ajax, file does not upload by ajax. But there are some methods you do that work. A few questions about that: https://stackoverflow.com/questions/19447435/ajax-upload-image Upload a…