Skip to content
CodeBangers
  • Home
  • Store
  • Support
    • Get Support
    • FAQ
0

Your cart

CodeBangers
0

Your cart

  • Home
  • Store
  • Cart
  • My Account
  • Support

Category: How to

February 26, 2023February 26, 2023How to, PHP

How to Sort an Array with PHP

PHP Functions

Create the function sortArray() public function sortArray(&$array, $subkey=”id”, $sort_ascending=true) { if (count($array)) $temp_array[key($array)] = array_shift($array); foreach($array as $key => $val){ $offset = […]

February 26, 2020How to

How To Get Public IP Address from Command line

  curl http://ipecho.net/plain  

February 24, 2020February 24, 2020How to, Javascript

Speech Recognition With Javascript

  var grammar = ‘#JSGF V1.0; grammar colors; public <color> = aqua | azure | beige | bisque | black | blue […]

October 20, 2014February 24, 2020Google, How to

Google Maps V3 Map inside Div instead or Body Tag

Ok instead of this body onLoad=”” to this div id=”map” simply add this below your map load(); This makes it to that […]

September 8, 2014September 17, 2014How to

How to find a User WITHOUT Facebook on Spotify

  To find a particular user.  In the search bar type “spotify:user:replacethiswithusername”  without quotes. Done.

August 6, 2014February 24, 2020How to, Linux

Install phpmyadmin on nginx

Paste this code inside the server{} code in your etc/nginx/sites-available/example.com file. location /phpmyadmin { root /usr/share/; index index.php index.html index.htm; location ~ […]

April 21, 2014February 24, 2020How to, Wordpress

How to Add Custom Fields to User Profile – WordPress

Super easy way to add custom fields to the user profile on WordPress. This will take you 3 seconds to implement.   […]

January 20, 2014February 24, 2020How to, Linux

Cron Job to remove all Files older than a Specific Amount of days

In this example I’m using 90 days. But you can use whatever you would like in the place of it. It’s also […]

December 22, 2013August 5, 2014How to, Wordpress

Use WordPress Media Uploader in your Custom Plugin

This will make is Basicly what I did was adding this to my plugin: function test_admin_scripts() { wp_enqueue_script(‘media-upload’); wp_enqueue_script(‘thickbox’); wp_enqueue_script(‘jquery’); } function […]

December 22, 2013February 24, 2020How to

Make Div Appear and Reappear with javascript

Make a div with the same id as the select input and you should be good to go. $(window).load(function() { $(document).ready(function() { […]

Posts pagination

1 2 … 5 >

Cart

© 2025 CodeBangers. Proudly powered by Sydney