GHRake
05-20-2016, 02:23 PM
Hello friends, I've been learning PHP and creating my first plugin the past few days. I'm using Nexia's OpenGraph Protocol Inserts (https://vborg.vbsupport.ru/showthread.php?t=281290) as a basis for my project, so many thanks and credits for this great modification. I've shot him an email asking permission to perhaps update/release this project and am waiting to hear back.
The plugin accomplishes this so far:
Adds Open Graph and Twitter Card meta tags to pages for better sharing
Includes code linking Facebook Domain and app insights to your page
vbAdvanced Support (the main reason I started modifying this)
Picks an image from the content with priority being video, then hot linked image, then attached image.
Grabs thumbnail from youtube video and drives traffic from your social share to your page instead of youtube
Defaults to a vboptions defined image if no image is found, no more social shares without images or badly resized images
Tells twitter the aspect ratio of the image for better resizing
This is what is adds to the HTML:
<meta property="og:description" content="Long tutorial here, gonna upload it in 4 seperate parts! It is 1.5 hours long and will explain everything you need to know to get started using IDA Pro!
Requirements: Intermediate Knowledge of C++ and x86 Assembly"/>
<meta property="og:site_name" content="GuidedHacking How to Hack Games"/>
<meta property="og:title" content="How to Reverse Engineer with IDA Pro Disassembler"/>
<meta property="og:type" content="article"/>
<meta property="fb:app_id" content="1755543248015018"/>
<meta property="fb:admins" content="100009786466728"/>
<meta property="og:url" content="http://guidedhacking.com/showthread.php?7914-How-to-Reverse-Engineer-with-IDA-Pro-Disassembler"/>
<meta property="og:image" content="http://img.youtube.com/vi/fgMl0Uqiey8/maxresdefault.jpg"/>
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@guidedhacking"/>
<meta name="twitter:image:width" content="1280"/>
<meta name="twitter:image:height" content="720"/>
Now the share looks like this:
https://vborg.vbsupport.ru/external/2016/05/11.png (http://guidedhacking.com)
Instead of:
https://vborg.vbsupport.ru/external/2016/05/12.png (http://guidedhacking.com)
Combining this with some simple social share buttons makes my social marketing campaign 2easy
I was hoping to get some feedback on my code from the pros. Currently on vb4.2.3 and vbAdvanced 4.3.0
Please don't install if you don't know what you're doing, I've tested it thoroughly but am not an expert
The plugin accomplishes this so far:
Adds Open Graph and Twitter Card meta tags to pages for better sharing
Includes code linking Facebook Domain and app insights to your page
vbAdvanced Support (the main reason I started modifying this)
Picks an image from the content with priority being video, then hot linked image, then attached image.
Grabs thumbnail from youtube video and drives traffic from your social share to your page instead of youtube
Defaults to a vboptions defined image if no image is found, no more social shares without images or badly resized images
Tells twitter the aspect ratio of the image for better resizing
This is what is adds to the HTML:
<meta property="og:description" content="Long tutorial here, gonna upload it in 4 seperate parts! It is 1.5 hours long and will explain everything you need to know to get started using IDA Pro!
Requirements: Intermediate Knowledge of C++ and x86 Assembly"/>
<meta property="og:site_name" content="GuidedHacking How to Hack Games"/>
<meta property="og:title" content="How to Reverse Engineer with IDA Pro Disassembler"/>
<meta property="og:type" content="article"/>
<meta property="fb:app_id" content="1755543248015018"/>
<meta property="fb:admins" content="100009786466728"/>
<meta property="og:url" content="http://guidedhacking.com/showthread.php?7914-How-to-Reverse-Engineer-with-IDA-Pro-Disassembler"/>
<meta property="og:image" content="http://img.youtube.com/vi/fgMl0Uqiey8/maxresdefault.jpg"/>
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@guidedhacking"/>
<meta name="twitter:image:width" content="1280"/>
<meta name="twitter:image:height" content="720"/>
Now the share looks like this:
https://vborg.vbsupport.ru/external/2016/05/11.png (http://guidedhacking.com)
Instead of:
https://vborg.vbsupport.ru/external/2016/05/12.png (http://guidedhacking.com)
Combining this with some simple social share buttons makes my social marketing campaign 2easy
I was hoping to get some feedback on my code from the pros. Currently on vb4.2.3 and vbAdvanced 4.3.0
Please don't install if you don't know what you're doing, I've tested it thoroughly but am not an expert