Profile

All time reputation: 565

Achievement

first submission:submitting first snipplet

ginoplusio's Recent Snippets



« Prev 1 2 3
  1. FAV

    How to extract the tags shared between two different post types in Wordpress

    Extract all the tags (shared between two post types) used with a specific post type
    PHP 138 views posted 3 months ago ginoplusio
  2. FAV

    Generate all old PDF preview images in WordPress

    From WordPress 4.7 when you upload a PDF it generates jpg previews. All pdf will remain without previews, or you can use this script to generate previews.
    PHP 15 views posted 2 years ago ginoplusio
  3. FAV

    Add IE interenet explorer class name to body

    Use it to detect old browser, when your client still use an old browser!
    jQuery 15 views posted 2 years ago ginoplusio
  4. FAV

    How to reorder rows changinga position field

    This PHP function lets you reorder records on a table when you have a field used for save the position. If you have a field with position when you are editing records you probably want, for example, to move a record from position 5 to position 2, but...
    PHP 11 views posted 6 years ago ginoplusio
  5. FAV

    How to read Instagram images and users without api

    Sometimes using small code snippets is faster than implement the official api. Using mini bots class is faster to get Instagram data.
    PHP 11 views posted 6 years ago ginoplusio
  6. FAV

    Block temporary email account and email validation

    Sometimes fake users use temporary emails account. Block them within email validation function.
    PHP saved by 4 people 10 views posted 6 years ago ginoplusio
  7. FAV

    Better HTML 5 basic starter template

    This is a basic HTML5 starter template that I use when I start a new project. Scripts should go at the end.
    HTML saved by 288 people 369 views posted 6 years ago ginoplusio
  8. FAV

    Remap values inside a MYSQL query using CASE...WHEN syntax

    How to remap a value to another inside a mysql query select.
    MySQL 14 views posted 7 years ago ginoplusio
  9. FAV

    Counting how many times a web link has been shared on Twitter

    Here is a function that read the number of times a url is shared on twitter.
    PHP saved by 1 person 8 views posted 7 years ago ginoplusio
  10. FAV

    Facebook Connect Tutorial

    I will show you how to crate an app for facebook to handle the facebook connect process on your web site. Then I will show you the php code to perform the login on facebook and retrieve the informations you need for your site. The last suggestion w...
    PHP 20 views posted 7 years ago ginoplusio
  11. FAV

    How to read facebook like count for a url with PHP

    When you add facebook like button to your site, probably, you also want to save the number of likes of your pages to your database.These data are very useful and very important because they tell you which of your articles are better than others. More...
    PHP 24 views posted 7 years ago ginoplusio
  12. FAV

    How to use Instagram photos on your site

    Thanks to followgram.me you can read a public feed with your photos. Use this code to retrieve your Instagr.am photos and use them on your web.
    PHP 13 views posted 8 years ago ginoplusio
  13. FAV

    Php Function to resize video from YouTube and Vimeo

    I’ve made this function that receive the input $video string that contains the dirty embed code as it is from youtube. The second parameter $new_width (if specified) permits to resize the embed code proportionally to the width you need for your tem...
    PHP 11 views posted 9 years ago ginoplusio
  14. FAV

    How to change Twitter's status with php and Curl without oAuth

    Since the 31 of august 2010, twitter made its API more secure, stopping basic authentication calls. So, if you used basic authentication you have to change your code and implement oAuth authentication model or you can follow this link and found a mi...
    PHP saved by 9 people 17 views posted 9 years ago ginoplusio
  15. FAV

    PHP bot to get wikipedia definitions

    If you need to add some content to your pages without having that content in your database you can use Wikipedia API. You can, for example, need to add automatically a simple description to a city name, or to a band name. Or you could need to add the...
    PHP saved by 4 people 8 views posted 9 years ago ginoplusio
  16. FAV

    How to send push notification to iPhone with PHP and pushme.to

    Push service is a technology that allows you to send alerts/notifications to a mobile device. Blackberry has its own push service, iPhone has its own, and also Android devices has their own push services (you can learn more on Wikipedia page).\r\nPus...
    PHP saved by 9 people 12 views posted 9 years ago ginoplusio
  17. FAV

    Redirect every url to a page as querystring with .htaccess

    Other 8 views posted 9 years ago ginoplusio
  18. FAV

    Add and remove www to urls through .htaccess

    Add and remove www to urls through .htaccess with mod_rewrite
    Other saved by 1 person 10 views posted 9 years ago ginoplusio
  19. FAV

    Htaccess to redirect all calls to mp3 files to a PHP proxy

    Redirects all calls to mp3 files to a proxy (usefull fr example to track stats on db) the +FollowSymlinks should be already setted, but if it isnt' this setting with use it. FollowSymlinks must be on to use the rewrite engine.
    Other 10 views posted 9 years ago ginoplusio
  20. FAV

    Remove slashes from $_GET and $_POST arrays

    PHP 14 views posted 9 years ago ginoplusio
  21. FAV

    How to get images from Google images with PHP

    This simply php function will retrieve the links of the images from Google Images searched with a keyword. The function just calls images.google.it and parse the html to find the url of the images, in this case the urls are stored in the javascript,...
    PHP 21 views posted 9 years ago ginoplusio
  22. FAV

    PHP parse url, mailto, and also twitter’s usernames and arguments

    This small function receive a text as input and returns an html text with links if the source text contains urls (http://www… but also ftp://… and every other protocol), emails, twitter’s usernames (with @ at the beginning) and also twitter tag...
    PHP 6 views posted 9 years ago ginoplusio
  23. FAV

    How to change dynamically input type password to show description inside field

    Sometime designers put form labels and instrucions into html inputs. One of the common uses is for login boxes when there’s not much space. I wrote a small jQuery plugin which dynamically replaces selected <input> fields with <input> fields display...
    jQuery saved by 25 people 11 views posted 9 years ago ginoplusio
  24. FAV

    how to change facebook status with php

    Changing Facebook Status with PHP, download the Mini Bot PHP class from the blog http://www.barattalo.it
    PHP saved by 4 people 14 views posted 9 years ago ginoplusio
  25. FAV

    Retrieve Twitter info from php

    PHP function of mini bot class that lets you retrieve twitter infos from twitter nickname. ($this->attr method is part of the Mini Bot Class)
    PHP saved by 18 people 7 views posted 9 years ago ginoplusio
  26. FAV

    Call ping-o-matic service with PHP

    This function calls pingomatic rpc service to increase traffic to your site. More info and instructions on [Barattalo blog](http://www.barattalo.it/2010/02/24/ping-pingomatic-com-services-with-php/ "read this post"). .
    PHP saved by 4 people 10 views posted 10 years ago ginoplusio
  27. FAV

    Close unclosed tags

    PHP saved by 4 people 15 views posted 10 years ago ginoplusio
  28. FAV

    How to send a form by pressing ENTER key

    Suppose you have a login form and you want to send the form when user press enter on his keyboard and not only by clicking on the submit button. This can be achieved capturing a specific event when the user is typing. We have to capture the keypress...
    JavaScript saved by 4 people 9 views posted 10 years ago ginoplusio
  29. FAV

    PHP function to change collation on MySQL db

    Function to fix char set and collation on mysql tables, see [this link](http://www.barattalo.it/2010/02/11/php-function-to-fix-collation-on-database-fields-of-mysql/ "Fix encoding on db") for examples and more infos.
    PHP saved by 1 person 12 views posted 10 years ago ginoplusio
  30. FAV

    PHP how to calculate age from date of birth

    PHP saved by 2 people 9 views posted 10 years ago ginoplusio
« Prev 1 2 3