Pastebox - Text Sharing & Text Hosting Script

Server Requirements

  • PHP 7.2.5+
  • MySQL 5.6+
  • Intl PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension

Installing PasteBox

Step 1: Extract and Upload

Unzip the downloaded archive package. Rename the pastebox directory to your desired directory name and upload the directory to your web server through FTP or Control Panel.

Step 2: Creating Database

Create a database for Pastes through your server control panel. If your server has phpMyAdmin, then you can also create a database using phpMyAdmin.

Step 3: Run Installation Wizard

Go to your website address, then you'll see an installation wizard.

Welcome

Requirements

Requirements page checks if your server meets the requirements and has the correct directory permissions to Application.

Directories within the storage and the bootstrap/cache directories should be writable by your web server or Application will not run.

Configuration

You need to fill the database connection details, admin user details, and site details, then click the Install button to install Application.

Complete

You'll see a success message after successfully installing Application.

Admin Panel

Admin panel is the place where you can manage Pastes, Syntax, pages, and much more. You can also customize the look of your site from the admin panel.

Login

To access the admin panel add /admin after your website address. For example if your website address is "www.example.com", then your admin panel is located at "www.example.com/admin".

Now you have to enter your email and password that you've provided during the installation process. After pressing the Sign In button, then you'll redirect to the dashboard.

Dashboard

From the dashboard you'll see an quick overview of your site

you'll see Total Pastes, Total Reported Pastes, Total Users, Latest Pastes, Latest Review and Latest Reported Pastes

Files

All upload Files are listed under the Files menu.

Uploading Files

You can drag & drop files in the area or click on this section to upload files as many files as you want

In order to delete any file select the file and press the Delete button.

Syntax

All Syntax are listed under the Syntax menu.

In order to edit a Syntax click the Syntax row in the table.

Create Syntax:-

Navigate to Syntax > Create Syntax to create a new Syntax.

Information

  • Name The name of the syntax.
  • Extension: Enter file extension for syntax.
  • Popular : Popular the Syntax by checking this checkbox.
  • Active: Enable the Syntax by checking this checkbox. User will only see the enabled Syntax.

Syntax Icon

  • Syntax Icon: User can upload syntax icon.

Pastes

All Pastes are listed under the Pastes menu.

In order to edit a Pastes click the Pastes row in the table.

Create pastes:-

Navigate to Pastes > Create pastes to create a new pastes.

Information

  • Syntax Select Syntax for paste.
  • New paste: Upload your code in new-paste field.
  • Paste title (translatable): The name of the Pastes.
  • Pastes Status: Select status for pastes from available list(public,unlisted,private)
  • Pastes Expiration: User can make paste expire time (today,week,month,year,never)
  • Deserption: The Descrption of the pastes.
  • User: Select the name of the user who uploaded this Pastes..
  • Password Protected: If you want to create password protected pastes then enter password.
  • Featured: Featured the pastes by checking this checkbox.
  • Active: Enable the pastes by checking this checkbox. User will only see the enabled pastes.

SEO

  • Meta Title (translatable)
  • Meta Keywords (translatable)
  • Meta Description (translatable)

Reviews

  • Reviews: Admin can see who user's submitted review in pastes

Reported Pastes

All Reported Pastes are listed under the Reported Pastes menu.

Users

All users are listed under the Users menu.

In order to edit a user click the row in the table.

Create User:-

Navigate to Users > Create User to create a new user

General

Profile

Permissions

You can manage what a user can do in your system by creating roles or choosing permissions for the specific user. By default, user permissions are inherited from the roles

Role permissions and user-specific permissions are merged together to determine the user's ability. When permissions are merged together user-specific permissions will always have more priority than role permissions. So, if you want to give a user all permissions from a role except one, then choose the role for the user, and Deny the specific permission.

Roles

All users roles are listed under the Roles menu.

In order to edit a role click the row in the table.

Create Role:-

Navigate to Roles > Create Role to create a new role

General

Permissions

Role-specific permissions are a good way to give permissions to multiple users at once. You can override role permissions from the user-specific permissions for any user.

Comment

All Comment of Pastes are listed under the Comment Table.

Admin can see any who user's submitted comment.

Reviews

All review of Pastes are listed under the Review menu.

You can also see pastes specific reviews from the pastes edit page under the Reviews tab.

Admin can edit any user's submitted review. In order to edit a user's review click the row in the table.

Pages

You can create as many custom page as you want. You can create an About us page or a Privacy Policy page to give your user a better knowledge of your site.

You can also add a link of your custom page to the navigation menu. You'll learn how to customize the navigation menu later in this guide

In order to edit a page click the row in the table.

Create Page:-

Navigate to Pages > Create Page to create a new page.

General

  • Name (translatable): The name of the page.
  • Body (translatable): The content of the page.
  • Status: Enable the page by checking this checkbox.

SEO

  • Meta Title (translatable)
  • Meta Keywords (translatable)
  • Meta Description (translatable)

Sliders

You can create multiple sliders for your site, then switch between them anytime you like.

Navigate to Theme Settings > General Settings > General to switch home page slider

In order to edit a Sliders click the row in the table.

Create Slider:-

Navigate to Sliders > Create Slider to create a new Slider

Slides

Slides Options

Settings

Settings

General

  • Site Name: Site Name.
  • Site Email: Site Email.
  • Supported Locales: Supported locales of your site.
  • Default Locale: The default locale of your site.
  • Default Timezone: The default timezone of your site .
  • New User Role: Role of the user when they register from front-end.
  • Enable Registrations: Allow new user registrations.
  • Send Welcome Email: Send an welcome email to the user when they register from front-end.
  • Auto Approve New Member: Approve Member automatically When they register from front-end
  • Cookie Bar: enable/disable Cookie bar

Admin Theme

Pastes

  • Enable Front-end pastes upload: Allow user to upload new an pastes from front-end.
  • Auto Approve pastes: Auto Approve pastes after upload.
  • Auto Approve pastes Reviews: User reviews will be approved automatically.
  • Daily Upload pastes limited: The daily limit for Upload paste by users .
  • Enable pastes Report button: Display Report button in pastes detail page.
  • Enable pastes Download button: Display Download button in pastes detail page.
  • Enable pastes Copy button: Display Copy button in pastes detail page.
  • Enable pastes Share button: Display Share button in pastes detail page.
  • Enable pastes Raw button: Display Raw button in pastes detail page.
  • Enable pastes Clone button: Display Clone button in pastes detail page.
  • Enable pastes Embed button: Display Embed button in pastes detail page.
  • Enable pastes Copy link button: Display Copy link button in pastes detail page.
  • Enable pastes Embed button: Display Embed button in pastes detail page.
  • Reading pastes by members only: User must be login into their account to read the pastes.
  • Enable Comment: Allow user to comment on pastes.
  • pastes Listing View Mode: change default view(grid/list) for pastes listing page.

Pastes Editor

  • Default Paste syntax: This default syntax for new created paste.
  • Paste Editor: Paste editor for code enter(default, Codemirror,Ace Editor).
  • Syntax Theme: Syntax highlighting theme for paste editor(Codemirror,Ace Editor, Prismjs).
  • Prismjs : Syntax highlighting themes for Prismjs.
  • Ace Theme: Syntax highlighting themes for ace editor
  • Codemirror Theme: Syntax highlighting themes for codemirror editor.

E-Mail

  • E-Mail From Address: This mail from address is used for all kind of emails.
  • E-Mail From Name: This mail from name is used for all kind of emails.
  • E-Mail Host: The host of your SMTP server.
  • E-Mail Port: The Port of your SMTP server.
  • E-Mail Username: The Username of your SMTP server.
  • E-Mail Password: The Password of your SMTP server.

Newsletter

Custom CSS/JS

Maintenance

  • Google Analytics Code:.
  • Custom JS: Custom js code. This custom JS added to the Footer.
  • Custom CSS: Custom CSS. This custom CSS added to the header

Social Logins - Facebook

Social Logins - Google

Theme Settings - Pastes

Navigate to Theme Settings for theme setting

General

  • Theme: Select theme color for frontend.
  • Mail Theme: Select mail theme color.
  • Layout: Select front end layout.There are two option - Slider Layout and Banner Image .
  • Slider: Select Slider for display on the home page. This slider only display if the Layout is Slide.
  • Privacy Policy Page: Select the privacy policy page for your site.
  • Footer Section One: Footer Summary, short description of your site.
  • Footer Section Two Title: Title text for the second footer section.
  • Footer Section Two:Put your custom HTML for the second footer section.
  • Footer Copyright Text: You can use site_name, site_url, and year variable in copyright text. Wrap the variable inside mustache like below.
    {{ site_name }}

Logo

  • Favicon: Set favicon for your site.
  • Header Logo: Set header logo for your site.
  • Footer Logo: Set footer logo for your site .
  • Mail Logo: Set mail logo for your site .

Menus

  • Primary Menu: Primary menu of the site.
  • Syntax Menu Title (translatable)
  • Syntax Menu:Syntax menu of the site
  • Footer Menu 1 Title (translatable)
  • Footer Menu 1: Footer menu 1 of the site .
  • Footer Menu 2 Title (translatable)
  • Footer Menu 2: Footer menu 2 of the site .

Social Links

Social links are shown in the footer of the website.

Contact Page Info

Contact page right side information

Advertisement

Home AD section

Home Upload Pastes

Featured Pastes

  • Section Status: Enable this section.
  • Section Title (translatable): Title for the section.
  • Total Pastes: Set limit for showing feature Pastes.

Recent Pastes

  • Section Status: Enable this section.
  • Section Title (translatable): Title for the section.
  • Total Pastes: Set limit for showing recent Pastes.

Banner Section 1

Syntax Section

  • Section Status: Enable this section.
  • Section Title (translatable): Title for the section.
  • Total Syntax: Set limit for showing recent Syntax.

Popular Syntax

  • Section Status: Enable this section.
  • Section Title (translatable): Title for the section.
  • Tab Title: Tab Title.
  • Tab Syntax:Selected Syntax pastes are displayed in this tab.
  • Total Syntax: Set limit for showing Pastes.

Trending

  • Section Status: Enable this section.
  • Section Title (translatable): Title for the section.
  • Tab Title: Tab Title.
  • Tab Trending:Selected Trending pastes are displayed in this tab.
  • Total Pastes: Set limit for showing Pastes.

Home AD section 2

Banner Section 2

Home AD section 3

Users Section

  • Section Status: Enable this section.
  • Order By: Display Order of users. There are 3 options available "Latest", "Oldest", "Top users by Pastes count"
  • Section Title (translatable): Title for the section.
  • Total Users: Set limit for showing users.

Inspired By Your Browsing History

Translations

You can translate your application's strings from the built-in translation editor for all supported locales. You can also use the translation editor for editing the default strings.

Update Guide

  • Extract the new downloaded file.
  • Open pastebox directory.
  • Upload and replace all files except for the .env file in your server.

Change Logs

Version 1.0.0 - 21 June 2022

Initial release

Demo