GoStock – Free Stock Photos Script v1.6

Updated: 28, November 2018

Changelog

  • Fixed
  • Downloads photos
  • Redirect url after login
  • Name of user in comments
  • Updating data, validation
  • Search with hashtag
  • Missing
  • File config / services.php
  • Added
  • Added Multilanguage
  • Instagram profile
  • Implemented GDPR
  • Changed
  • Show user name in page notifications

Affected files

  • app / Http
  • Kernel.php
  • app / Http / Controllers / Auth
  • LoginController.php
  • RegisterController.php
  • app / Http / Controllers
  • UpgradeController.php
  • LangController.php
  • PagesController.php
  • AdminController.php
  • 'link_terms' => 'required|url',
    'link_privacy' => 'required|url',
    $sql->link_terms = $request->link_terms;
    $sql->link_privacy  = $request->link_privacy;
  • CommentsController.php
  • if(Auth::user()->name != '') {
    			$nameUser = Auth::user()->name;
    		} else {
    			$nameUser = Auth::user()->username;
    		}
    <a class="text-decoration-none class-montserrat" href="'.url(Auth::user()->username).'">'.$nameUser.'</a>
  • ImagesController.php
  • if ($validator->fails()) {
           return redirect()->back()
              ->withErrors($validator)
              ->withInput();
            }
  • UserController.php
  • 'instagram' => 'url',
    if ($validator->fails()) {
             return redirect()->back()
                         ->withErrors($validator)
                         ->withInput();
         }
    $user->instagram  = trim(strtolower($input['instagram']));
    if ($validator->fails()) {
            return redirect()->back()
                        ->withErrors($validator)
                        ->withInput();
        }
  • AdminUserController.php
  • if ($validator->fails()) {
           return redirect()->back()
                       ->withErrors($validator)
                       ->withInput();
       }
  • app / Http / Middleware
  • Downloads.php NEW
  • Languages.php NEW
  • config
  • services.php
  • public / js
  • functions.js
  • resources / lang / en
  • admin.php
  • // Version 1.6
    'link_terms'              =>      'Link to Terms and Conditions',
    'link_privacy'            =>      'Link to Privacy Policy',
    'terms_conditions'         =>      'Terms and Conditions',
    'privacy_policy'            =>      'Privacy Policy',
    'i_agree_gdpr' => 'I agree with the processing of personal data',
  • validation.php
  • 'attributes' => [
      		'agree_gdpr' => 'box I agree with the processing of personal data',
      	],
  • resources / views
    • admin
    • layout.blade.php
    • settings.blade.php
    • add-languages.blade.php
    • edit-languages.blade.php
    • auth
    • register.blade.php
    • includes
    • navbar.blade.php
    • users
    • account.blade.php
    • profile.blade.php
  • routes
  • web.php

How to add a new language

  • Duplicate the folder resources / lang / en
  • Rename to your language for example es
  • Translate the strings
  • Duplicate the file public/ js / timeago / jqueryTimeago_en.js and rename ie: public/ js / timeago / jqueryTimeago_es.js
  • Translate the strings the new file
  • Go panel admin > languages and add you new lenguage

Any problem or doubt send me an email to miguelvasquez991@gmail.com
Do not forget to visit miguelvasquez.net


Donate Any donation will be well received 😉