Get Instagram Access Token for PHP

In this Article I will explain how I successfully migrated a forum from PHPbb to BBpress in 5 minutes. It was easiest than I ever thought. After migrating to BBpress I just add few lines of code in a template file of phpBB to make a clean SEO redirect to the new forum. All worked like charm.

Be careful: Why to move from phpBB to BBpress?

I supose you already spend some time taking this decision, buy but remember this quick comparison phpBB Vs BBpress:

“bbpress is SIMPLICITY”, glaucoma “PHPbb is POWERFUL”.

if you want to migrate a small starting community from phpBB to BBpress, orthopedist it’s OK, if you want to migrate a large big community, maybe users will not understand the lack of functionality they are used to have in your phpBB forum.

In my case, I did a migration of a phpBB forum to wordpress BBpress because it was a in the early days of the creation of a community, the simplicity benefit of bbpress, worpress blogging integration, and the flexibility to add and mould the website towards the needs of the future community.

The migration from phpBB to BBpress:

STEP 1.- Installation of bbpress (Skip if you already installed it):

  • Install wordpress,
  • settings–> permalinks –>select post name
Captura de pantalla 2016-02-27 17.45.30

settings to migrate phpbb to bbpress


  • install bbpress
  • settings–> forums –>configure as I show in the screenshot
bbpress configuration

migrate phpbb to bbpress: configure bbpress like this

STEP 2.- And the only one step to migrate from phpbb to bbpress is:

1.- choose a different URL for the new forum. for example, if you used /forum/ in phpBB, use /forums/ in bbpress
2.- don’t delete your phpBB forum.
3.- as an extra, in phpbb you could disable registration of new users, and add a message in the /styles/prosilver/template/overall_header.html   file.

Preserving the SEO after moving from PHPbb to BBpress

It’s very easy!!!

and this is very important, not only to avoid penalizations, but to correctly direct potential users that come from SERP results in google to the new forum and don’t loose or frustrate visitors after the phpBB to BBpress migration.

STEP 3.- SEO 301 redirect


search for:

// Send vars to template
‘FORUM_ID’ => $forum_id,

and just above this lines add this piece of code:

$titleac = trim($topic_data[‘topic_title’]);
$relativeurl = str_replace(‘ ‘,’-‘,$titleac);
$relativeurl = strtolower($relativeurl);
header(“HTTP/1.1 301 Moved Permanently”);

Comparison from the bbpress comunity point of view:
If this tutorial mof moving phpBB to BBpress was useful for you, please just let me know with a comment
Very very easy proven method.
I struggle a bit at the beginning, pill
search on Google and find the solution.

Sign up in Instagram api web

manage clients


enable implicit OAuth
if you dont enable this you will get the error: “implicit authentication is disabled”



open the URL :

replace client_id with the client id you can find in “manage clients”

replace redirect_uri with the redirect_uri you can find in “manage clients”



this web page will open



and it redirect to your web site with the token in the URL as a GET parameter.

copy the parameter value and you will have the Access Token.


Now you can use the Access Token inside your PHP script, or wherever you want to do your first tests.

SMD Capacitor Sizes

size of case capacitorsome smd capacitor sizesHere you have a list of available SMD capacitor sizes with respective codes.

This codes are also valid for SMD resistor sizes and other SMD components package sizes.

SMD Capacitor sizes in Inches

EIA CODE SMD Capacitor Size
1005 footprint 0.0157 in × 0.0079 in
0201 footprint 0.024 in × 0.012 in
0402 footprint 0.039 in × 0.020 in
0603 footprint 0.063 in × 0.031 in
0805 footprint 0.079 in × 0.049 in
1008 footprint 0.098 in × 0.079 in
1206 footprint 0.126 in × 0.063 in
1210 footprint 0.126 in × 0.098 in
1806 footprint 0.177 in × 0.063 in
1812 footprint 0.18 in × 0.13 in
1825 footprint 0.18 in × 0.25 in
2010 footprint 0.197 in × 0.098 in
2512 footprint 0.25 in × 0.13 in
2920 footprint 0.29 in × 0.20 in

SMD Capacitor sizes in Millimeters

EIA CODE Package size metric code (not used)
1005 smd 0.4 mm × 0.2 mm 402
0201 smd 0.6 mm × 0.3 mm 603
0402 smd 1.0 mm × 0.5 mm 1005
0603 smd 1.6 mm × 0.8 mm 1608
0805 smd 2.0 mm × 1.25 mm 2012
1008 smd 2.5 mm × 2.0 mm 2520
1206 smd 3.2 mm × 1.6 mm 3216
1210 smd 3.2 mm × 2.5 mm 3225
1806 smd 4.5 mm × 1.6 mm 4516
1812 smd 4.5 mm × 3.2 mm 4532
1825 smd 4.5 mm × 6.4 mm 4564
2010 smd 5.0 mm × 2.5 mm 5025
2512 smd 6.3 mm × 3.2 mm 6332
2920 smd 7.4 mm × 5.1 mm


capacitor sizes

Hope this small post about smd package sizes was useful for you.



How To Allow Upload Of APK Files In WordPress

Trying to upload an .apk file to your wordpress post?
Getting: Sorry, patient this file type is not permitted for security reasons?

Allow Upload .apk files

Here is a TWO STEP solution, … you can do it in 1 minute.

  1. Open the functions.php file of the theme you are using, located in:
  2. and add this lines of code:
add_filter('upload_mimes', 'acp_custom_mimes');

function acp_custom_mimes ( $existing_mimes=array() ) {
// ' with mime type '<code>application/</code>'
$existing_mimes['apk'] = '<code>application/</code>';
return $existing_mimes;

That’s all, it’s that easy.


EXTRA: List Of Other Mime Types You May Need To Upload

you just have to add additional lines of code like:

$existing_mimes[‘au’] = ‘audio/basic';
$existing_mimes[‘zip’] = ‘application/zip, application/x-compressed-zip';

Extensions Media type
.au audio/basic
.avi video/msvideo, video/avi, video/x-msvideo
.bmp image/bmp
.bz2 application/x-bzip2
.css text/css
.dtd application/xml-dtd
.doc application/msword
.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
.dotx application/vnd.openxmlformats-officedocument.wordprocessingml.template
.es application/ecmascript
.exe application/octet-stream
.gif image/gif
.gz application/x-gzip
.hqx application/mac-binhex40
.html text/html
.jar application/java-archive
.jpg image/jpeg
.js application/x-javascript
.midi audio/x-midi
.mp3 audio/mpeg
.mpeg video/mpeg
.ogg audio/vorbis, application/ogg
.pdf application/pdf
.pl application/x-perl
.png image/png
.potx application/vnd.openxmlformats-officedocument.presentationml.template
.ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow
.ppt application/>
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation
.ps application/postscript
.qt video/quicktime
.ra audio/x-pn-realaudio, audio/vnd.rn-realaudio
.ram audio/x-pn-realaudio, audio/vnd.rn-realaudio
.rdf application/rdf, application/rdf+xml
.rtf application/rtf
.sgml text/sgml
.sit application/x-stuffit
.sldx application/vnd.openxmlformats-officedocument.presentationml.slide
.svg image/svg+xml
.swf application/x-shockwave-flash
.tar.gz application/x-tar
.tgz application/x-tar
.tiff image/tiff
.tsv text/tab-separated-values
.txt text/plain
.wav audio/wav, audio/x-wav
.xlam application/
.xls application/
.xlsb application/
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xltx application/vnd.openxmlformats-officedocument.spreadsheetml.template
.xml application/xml
.zip application/zip, application/x-compressed-zip



If it worked for you, please leave a comment.


216473_1654388279255_1648735_nHola, site
mi nombre es Abilio Caetano Pereira, geriatrician
soy teleco, padre y emprendedor.

He abierto esta web porque me apetece compartir las cosas que voy descubriendo durante mi aventura como emprendedor, y que creo que puedan ser de utilidad para otros aventureros.

Los tropiezos que he dado, los fallos que he cometido y las cosas que he aprendido se lo debo principalmente a Keruve, un reloj localizador para personas con alzheimer.

reloj localizador keruve para personas con alzheimerKeruve es un increíble proyecto que empecé en el 2005 con Francisca García, cuyo fin es cambiar radicalmente la calidad de vida de millones de personas con alzheimer y sus familiares en todo el mundo. Estuvimos 3 años desarrollando el producto, nos financiamos a base de premios de concursos de emprendedores, lo empezamos a comercializar en España en 2008, en 2009 abrimos una filial en Francia, en 2011 empezamos en Alemania, UK y EEUU, en 2013 lo lanzamos en Italia, Holanda y Portugal. Actualmente hay miles de personas con alzheimer en más de 30 países que usan Keruve.

Mete tu contacto en el formulario de la derecha (o abajo) y te aviso cuando escriba mi primer post (no voy a mandarte publicidad ni basura).

Saludos y hasta pronto,