Url Shortener with monetization and multi language support
Thank you for purchasing ShortURL - Url Shortener. If you have any problems or questions that are beyond the scope of this help file, please feel free to contact me. Thanks so very much!
First of all you need to configure MySQL database credentials. To do this open ~/project_dir/engine/app/config/parameters.yml and set up database settings.
parameters: database_host: localhost database_port: 3306 database_name: shorturls database_user: my_db_user database_password: my_db_password mailer_transport: smtp mailer_host: 127.0.0.1 mailer_user: null mailer_password: null secret: AnySecretToken
You need to replace highlighted words with your own data:
|localhost||The host of the MySQL database. Usually it's localhost|
|3306||The database port. Usually it's 3306|
|shorturls||The database name|
|my_db_user||The database username|
|my_db_password||The password of database user|
The configuration process has been almost finished. Next you can use url shortener and log in to Admin panel. Admin has following default credentials:
Don't forget to change your password and timezone after first login.
To change password go to admin panel, click on Account settings and change your password or username.
For editing design files you need simple text editor(notepad, notepad++, TextEdit...).
All template files are located in ~/project_dir/engine/app/Resources/views/project/
Project style files are located in ~/project_dir/files/ and have .less extension
To clear project cache go to admin panel, click on Cache and than click Clear Cache button.
Also you can clear project cache manually, by removing these two folders:
To change timezone go to admin panel, click on Basic Configuration select your Timezone from list and Save settings.
You can change all texts and translations in admin panel. Go to admin panel and click Languages.
To add translation, write language prefix in Add tab and save it.
In Edit tab you can edit, set as default or delete your translations.
You can add Ads as much as you want. For example, if you want to show ads on redirect page, open ~/project_dir/engine/app/Resources/views/project/redirect.html.twig file and add your code in any place you want.
To edit links go to admin panel, click on Links Managment. There you will see all added links, you will be able to search, edit and delete links.