This is a project that took less than 2 hours to make with zero knowledge about sharex, and i will not be providing support as the installation process is really easy and problems only take place in the configuration of Apache2 or engine that's used to execute the php file.
To edit the discord embed preview that currently is in the PHP file, you mmust follow documentation of OpenGraph which has been used to create the embed, the tag <meta name='twitter:card' content='summary_large_image'>
is used to have a bigger image preview on discord.
- Clone this repository
- Extract the index.php file in an envoirment that can run PHP
- Generate a Secret Key
- Insert the Key in the array (
index.php:5
) - Run
buildSharexTemplate.bat
and follow the prompted instructions - Double click the file that has been generated in the same folder of the bat file
- Enjoy
The /var/www/html folder or the VirtualHost folder must have 777 permissions, and with it the index.php file.
The Secret Key must not be shared to un-trusted people, as it can lead to code execution as uploaded files are unchecked.
- How do i change the length of the URI ?
The length of the generated URI can be changed on line 4 of index.php
- Will it overwrite existent screenshots ?
Yes, there might be a chance that one screenshot may be overwritten