How to install and configure an economic game script? How to install a script on the designer page

Welcome to the site site!

Today I will write an article about how to set up a script using the Joomla engine and the CPanel control panel as an example.

Often on the Internet you can find various scripts that are sold for money or are made for free. Typically these scripts look like a .zip or .rar archive containing folders and files, as well as a .sql database file.

We will talk about scripts that have already worked on some other hosting and domain and you just downloaded it from the network.

This article will also be useful for those who want to transfer their website or blog to a new domain or hosting. Including resources made on Joomla.

In order to install the script on your hosting, you need an FTP client program (I recommend free FileZilla), connection data that the hoster sent you after your registration, as well as access to phpMyAdmin hosting on which the script will run.

You can also use the tools provided by the control panel Cpanel, IspManager or another, rather than using a program for FTP access. In Cpanel, this tool is called a “file manager”.

Well, let's get started!

First you need to register a domain if you don’t have one, or create a subdomain on your work site. When creating it, you must come up with a password and indicate the name of the registered domain or subdomain. You also need to create a database, a user for it and set a user password. Don't forget to save all data
created domain and database to yourself, somewhere in a safe place. If this is your first website on your hosting, then there is no need to invent and register anything; when you register for hosting, you are given a domain and all the other data necessary for work. If
this is true, just “upload” the script to the public_html folder on your server.

If, after registering with hosting, you still registered a second second-level domain, you need to wait until it is activated - this usually happens within one or two days. If you created a subdomain on a working domain, it will be activated immediately, and you don’t have to wait two days.

Next, open the FTP client, enter the data to connect to the server, connect and upload the script itself, that is, all the folders and files as they are, to the public_html folder or to the folder of your domain that you created.

Files can be uploaded in two modes, either binary or text. This is very important, because if you download binary file V text mode, then the file encoding will be broken, and subsequently the information on the site will be displayed incorrectly. And no matter what you suffer, set it in the settings FTP programs autodetection. Then all files will be downloaded in the formats they need. If you upload files through the control panel, you don’t have to worry, the system itself will understand which file, in what format, needs to be uploaded.

Once the download is complete, open it for editing. config file uration.php, and specify the database name, username, user password and localhost.

It looks something like this:

public $host = "localhost";
public $user = "username";
public $password = "user password";
public $db = "database name";

Also replace, if necessary, the database prefix with a new one.

It looks something like this:

public $dbprefix = "A5ht42S_";

Also replace the path to the logs and temporary folder of the script:

public $log_path = "/home/your nickname /public_html/your site.ru /logs";
public $tmp_path = "/home/your nickname /public_html/your site.ru /tmp";

Now take the database file and open it with notepad, or even better with notepad++. We find the line where someone else's or old address site on which the database previously worked, and replace this line with the site address that you registered. To do this, right-click on the .sql file and in context menu select notepad++, if of course you have it installed, or just notepad, it is in every version of Windows.

Next, click on “search” - “find…” - “replace” and in the “find:” field we enter the address of the site on which the script previously worked, i.e. what needs to be replaced. And in the “replace with:” field you need to enter the address of the site on which you are installing the script and to which you want to replace it. Next, click the “replace all” button and the program replaces the old data with new ones in a second. You will also need to replace the user name and database name in the database, as well as the path to the site folder, if necessary. After that, save and close the file. Don't forget to rename the .sql file to the name of the database you created. In this case, the file extension must remain .sql. After that, go to phpMyAdmin, select the one we need on our computer
edited database and click “import”.

You also need to make changes to the .htaccess file, for example, if it specifies redirecting the site address from www to non-www, that is, you need to substitute the new address of your site in the file instead of the old one.

After that, open our website in the browser at the new address and enjoy its work on your domain.

PS: In general, the whole point comes down to the fact that you need to replace old data with new ones everywhere, in all files. Typically these are two files - a configuration file and a database file.

If you have any questions or want to add anything to the article, write everything to

The script is very useful feature when you want to make your website original and different from others. Most web pages are created using the same template, so they are similar to each other, like twin brothers, especially if made through a website builder. If you want to create something of your own, more original, then you need to learn how to install scripts on your website. This is done quite easily, and anyone who more or less knows how to work in a browser can cope with this task. To do this, you only need a computer and the Smart FTP Client program or some equivalent.

How to install scripts: instructions
  • First you need to run Smart program FTP Client on your computer. Next, enter your website address in address bar via ftp. This address should look like ftp.domen.zone, where the site domain and its location zone are indicated.
  • Next, you need to fill out the login and password fields that you received when you registered your domain. If your hoster does not provide additional conditions, then in “Port” you need to enter 21. After all the fields are filled in, you need to click on the icon with an arrow, which is next to the “Address” menu.
  • Now find the "Public html" folder on the left side and open it. At the same time, you need to open the folder with the script and drag all the elements of this folder into the central program window.
  • When copying is finished, you need to set the attributes. This is the most important thing about how to install a script on a website. To do this you need to find required file and select "CHMOD" in the properties. After the attributes are installed, you need to select all the rights you need in the dialog box. The same must be done with all other folders.
  • If your script contains any setup files, for example, install.php, then the script can be installed directly. To do this, you can enter http:⁄⁄the name of your site.install.php in the address bar of your browser and go through the installation.

There is another, much simpler way to install a script with a database. To install the script, you need to get into the database on the hosting server and create your own database there and come up with a password. To establish a database connection with the script, you need to set all the settings that are in the Readme file.

In the Login field, you need to enter the name of your database instead of Root. In this case, the login and password must match the data that you entered when registering your database. That's all you need to do to install the script.

Types of scripts

Before installing a script on a website, you need to understand the types and purposes of scripts. There are cyclic scripts, meta-scripts, switching scripts, scripts that perform some kind of cyclic actions, those that perform one action when you press a key, and another when you release the key. In addition, there is great amount additional scripts that are used in computer games, on complex flash sites, but this is a different type of script, and it is installed differently.

The article describes installing scripts in various browsers.
Removing or disabling them. Editing capabilities.
Tells you where to find the error console, script folder or script commands.

The code in my scripts is universal and they should work in different browsers.
And also on the mirrors heroeswm.ru and lordswm.com

Installing scripts in Google Chrome:
-
- Script commands
- Error console
- Chrome disables all user scripts installed as extensions
- Installing scripts in pure chrome (outdated)

Installing scripts in Yandex Browser:
- Installation of scripts

Installing scripts in Opera 18+:

- Script commands
- Error console

Installing scripts in Opera< 18:
-
- Script commands
- Error console

Installing scripts in Safari:
- Installation of scripts
- Script commands

Installing scripts on smartphones in the Dolphin browser.

Installing scripts in Opera Mobile- on tablets and phones:
- Installation of scripts

Installing scripts in Mozilla FirefoxInstalling scripts, editing, disabling, deletingFor scripts to work in Mozilla you need the Greasemonkey add-on: https://addons.mozilla.org/ru/firefox/addon/gre...


You can also drag the downloaded script (*.user.js) into the browser window.

Afterwards, the scripts can be found through the browser menu Tools - Add-ons. There are buttons: Settings, Disable, Delete. Through the settings it is possible to edit the script.

A pre-downloaded script can be edited in Notepad.

You will have a monkey face in the add-ons panel. When you click on it, all scripts will be disabled/enabled. The drop-down list will display active on open page scripts and checkboxes opposite them indicate whether the script is enabled (they can be removed by disabling the script).

Script commands

Script commands are available through the monkey's face or Tools - Greasemonkey - Script Commands. There you can also see a list of active scripts and disable them.

The Mozilla scripts folder stores scripts openly. For Win7 x64 this is the folder c:\Users\user\AppData\Roaming\Mozilla\Firefox\Profiles\d0fxdqju.default\gm_scripts\
AppData folder in windows hidden(need to display hidden folders). For other OSes the folder is located approximately in the same place.
This folder can be copied and transferred to another computer. No need to reinstall scripts. This must be done when closed browser. How to replace this folder (first completely delete it, then copy a new one).
Since version greasemonkey 1.13, the scripts folder also stores script settings in *.db files
The config.xml file stores all paths to scripts and other settings. Script names and folders cannot be renamed. Error Console When you change the pages that the script worked with or if the script was written incorrectly, errors may occur in it. In this case, the script execution is stopped by the browser. You can view errors in the error console: called by the keyboard shortcut Ctrl+Shift+J (or through Tools - Web Development). You should go to the Errors tab, clear the console and refresh the page. Errors that occurred on this page will be displayed. Installing scripts in Google Chrome Installing scripts, editing, disabling, deleting For many scripts to work in Chrome, the Tampermonkey add-on is required: https://chrome.google.com/webstore/detail/dhdgf...
The extension emulates the functions of greasemonkey, because... Chrome itself supports it javascript execution scripts.

To install the script on this site, just click Install on the script page, or on the link leading to the script.

An incomprehensible tampermonkey icon will appear in the browser panel. By clicking on it, you can go to the extension settings and edit the script. Cancel buttons last action No!

The trash can next to the name of the script means deleting it.

When you click on the tampermonkey icon in the drop-down list, you can disable the execution of scripts by clicking on the name of the script or play in the add-on settings with a traffic light (numbers to the left of the script name).

Sometimes the add-on cannot transmit some commands to the browser that a script in Chrome could execute without tampermonkey, but this is extremely rare and is more often replaced in scripts.

Script Commands Some scripts are accessible through Script Commands. This feature only works in Firefox and there is no alternative to it in other browsers. If the script uses the settings in this way, then you will not be able to access them. Error Console When you change the pages that the script worked with or the script is not written correctly, errors may occur in it. In this case, the script execution is stopped by the browser. You can view errors in the error console: called by the keyboard shortcut Ctrl+Shift+J (or through Menu - Tools - Javascript Console). The console is cleared for each page and displays errors that occurred on it. Chrome disables all user scripts installed as extensions. Since June 2014, Chrome has disabled all extensions installed not from the Chrome Web Store, including scripts installed by dragging and dropping into extensions.

Prohibition on installing third-party extensions (not from Chrome Web Store) applies only to the Windows version of Chrome and only for Stable and Beta channels. You can find ways to temporarily enable scripts, but all of them are eventually blocked by Chrome developers. Most optimal solution- changing the browser or switching to using Dev or Canary browser builds, where third-party extensions are not yet disabled.

Thus, you can either change the browser (build) to install scripts in pure chrome or install the tampermonkey extension.

Installing scripts in pure chrome (deprecated) My scripts will work in pure chrome, because they contain functions for emulating greasemonkey commands, but most other scripts will not work.

Instead of installation, the script is downloaded to the downloads folder. You can open it through Menu - Downloads (or by pressing Ctrl+J), and then click on the link on the right Open downloads folder. I recommend removing everything from it and clicking Install again so that the script version is the latest (if there are several of them).

Installing scripts in Yandex BrowserInstalling scriptsYandex is the same Chrome, only more old version(at the time of writing Chrome v26, Yandex v22).

For him, accordingly, everything that is written above about Chrome is true.

Installing scripts in Opera 18+ Installing scripts, editing, deleting For scripts to work in Opera 18+, you need the Violent monkey add-on: https://addons.opera.com/ru/extensions/details/... Script Commands Some scripts have access through Script Commands . This feature only works in Firefox and there is no alternative to it in other browsers. If the script uses the settings in this way, you will not be able to access them. Error console Called up by the keyboard shortcut Ctrl+Shift+J. Installing scripts in Opera< 18Установка скриптов, редактирование, удалениеДля установки скриптов в Opera нужно в настройках браузера указать папку из которой будут запускаться скрипты и установить галку Включить JavaScript.

Scripts need to be downloaded and copied to this folder.

If the script opens as text file Select from the Opera menu - Page - Save As.

If necessary, install the greasemonkey function emulation script.

If script data will not update when you refresh pages, disable web page caching in your browser.

Scripts can be edited in notepad.

If the script is not needed, delete it from the folder.

Script Commands Some scripts are accessible through Script Commands. This feature only works in Firefox and there is no alternative to it in other browsers. If the script uses the settings in this way, then you will not be able to access them. Error Console When you change the pages that the script worked with or the script is not written correctly, errors may occur in it. In this case, the script execution is stopped by the browser. You can view errors in the error console: called by the keyboard shortcut Ctrl+Shift+O (or through Menu - Page - Development Tools - Error Console). Select from the drop-down JavaScript list, clear the console and refresh the page. Errors that occurred on this page will be displayed.Installing scripts in SafariInstalling scriptsFor scripts to work in Safari, the GreaseKit add-on is required: http://8-p.info/greasekit/

After installing it, the GreaseKit item appears in the Safari menu with a list of installed scripts and different functions. To add the script you need to GreaseKit, open it in your browser, or drag the previously saved script into the Safari window.

Script Commands Some scripts are accessible through Script Commands. This feature only works in Firefox and there is no alternative to it in other browsers. If the script uses the settings in this way, then you won’t be able to access them. Installing scripts on smartphones in the Dolphin browser Quote: “I installed an addon for the dolphin - Tampermonkey Dolphin with Play Market- scripts are installed and work perfectly. In general, now I fully play on the phone and can do everything."Installing scripts in Opera Mobile - on tablets and phonesInstalling scriptsUser scripts from phone browsers are supported in Opera Mobile. Method from World_is_Hell: http://www.heroeswm.ru/forum_messages.php ?tid=2... They are enabled as follows:

1) Type opera:config in the address bar -> the Preferences Editor window will open
2) Find the User Pref item. Click it and look for User javascript and check the box
3) In the User javascript File field write \...path to the folder in which Opera is installed...\OperaMobile\UserJS\
4) Scroll down and click Save
5) Restart the browser

After this, create a ..\UserJS folder in some file manager and put the necessary scripts in it.

The method works, I tested it on my phone and tablet.

Do you want to feel like an administrator? BUT! How to install a script (hype, bux or other)? In this article you will find all the answers.

Hello, dear readers of the blog site.

Do you want to have your own investment game? Do you want to feel like a project administrator? Don’t know how to install the script correctly? Don't worry... In this article I will tell you all about it in detail.

So, let's go...

First of all, I would like to say where you can download such scripts from. I have identified three projects for myself, which, in my opinion, are the best and without viruses. You can find out about them in my other article. Link .

We downloaded the finished script, which is in the archive. Open it and copy all files to separate folder. Next, we need to buy our own hosting and domain. I use Hostia. High quality, reliable and most importantly, very cheap. In one word, “I recommend.”

I won't dwell on this because not every hosting has the same control panel.

My hosting supports Direct Admin, but be aware that you may have a completely different management system (for example: ISPManager, ZPanel, WHM/CPanel). If you have one of them, then there is nothing to worry about. The entire process of installing the script is no different.

Script installation instructions ( investment game, hype, book) Step 1. Upload the script itself to the hosting

For this we need one program: FileZilla (I recommend), Total Commander or Notepad++. Download any one to your computer, launch it and create an FTP connection. I forgot to say that hosting control panels also have a “built-in” file uploader. You can use it. I chose FileZilla for myself. The program is stable and completely free.

As for FTP, here we need some data, which you can easily find out from your hoster:

  • Login.
  • Password.
  • IP Address.
  • If you have problems logging into the admin area, write in the comments. I'll help!


    Waiting for the download to complete...

    Step 2. Create a database

    Go to the “Databases (MySQL)” section and click “Create new” or “Create database”. We enter a name and password. The fields: Database Name and Database User Name can be filled in the same way. Attention! Remember your login and password or write it down somewhere. We will need them when we change the config file. I’ll show you with an example what it looks like in Direct Admin. See:




    Step 3. Import SQL into our database

    Each script has a file in "SQL" format. It is possible that there may be exceptions and such a file simply does not exist. I don't know, I haven't encountered this before. But! If you are so lucky, then simply skip it (see Step 4).

    Now we need to find in our personal account"PhpMyAdmin". The utility is used to import or edit MySQL DBMS databases. We go into it, connect (if you don’t have an account, then be sure to go through a simple registration).

    We go in and on the left we see a list of databases we have created. Select the one you created in the second step. And then we do everything according to the screenshots:




    Step 4. Change the file config

    In the script folders we look for a file called config. In HYIPs, look for the file in the “classes” folder. Found it? Great! Let's open it. We see:

    public $HostDB = "localhost";
    public $UserDB = "DB User Name" ;
    public $PassDB = "password" ;
    public $BaseDB = "Database Name" ;

    We replace our data and save. This way we connected the script to our database.

    All friends! I congratulate you! The script is completely installed!

    And now a small addition...

    Free scripts from the Internet often have holes. Be careful! Check files for viruses. Also remove all additional links in the script files. They often look like this:


    But still, if you are unable to install the script, we can do all the work for you. For example, install a script of any complexity, connect additional payment systems, make the script unique, etc.

    Thank you very much for reading the article to the end. . There will be many more different treats ahead!

    Instructions

    You can embed the script as in already existing page, or download it separately - it all depends on what function it should perform. So, if the code displays the visitor's IP address, then the script should be inserted into the page that the user opens. If you want to create, for example, a form feedback then it will be standalone page with *.php extension.

    Before downloading the script, make sure that your hosting supports PHP. If it's JavaScript, you don't need to check anything. You should know that the vast majority of scripts are written in PHP language, many can be found online. The script usually comes with readme.txt or install.txt files, which tell you about the intricacies of its installation and configuration.

    Let's say you need to insert a script into your website that opens a feedback form; it can be called sendmail.php. In this case, everything is very simple: go to the control panel of the site on your hosting and upload the script page to the site in the folder you need. Then insert a link to this script on any page from which the user can open the feedback form. Check the script's functionality by following the created link.

    Be careful what scripts you install. Many of them have vulnerabilities that allow a hacker to steal confidential data or obtain full control over the resource. Be sure to set read permissions for the file; only you should have access to it. In many cases, a hacker can easily gain access to the text of the script and carefully study it. Then, having found vulnerabilities, it uses them to hack.

    If you need to embed a PHP script into an existing page, then a lot depends on its extension. With the *.php extension, the built-in script will work perfectly. If the extension of the page is *.html or *.htm, then the script will not run, since such pages will not be checked for the presence of PHP scripts without creating special instructions. The easiest way to get around this is to change the page extension to *.php. The page will work the same as before, and the script built into it will also work. Place the script itself on the page after the closing /body tag.

    Inserting JavaScript is even easier, just embed it in the page, enclosing it in the appropriate tags - script text. You can take out JavaScript in separate file and connect it by inserting the line . In this example, the script script1.js is located in the script folder. You can place it in any folder you want.

    Video on the topic

    Script files used in the operation of Internet sites almost always contain a set of instructions in the usual text format. These instructions, written in a programming language high level, are read and executed either software server, or are sent to the visitor’s browser and executed on the web surfer’s computer. Uploading files of this kind to the server is almost no different from the same operation for files with HTML code for website pages.

    Instructions

    If you have access to the site control panel, use one of its modules - the file manager - to upload any files, including scripts. There is no single standard for all systems, so you will have to clarify the sequence of actions in the help for your version of the control system. For example, in the file manager of the UCOZ system you need to go to the desired folder, sequentially clicking the links in the “Name” column, and then clicking the “Browse” button located under the table. In the dialog box that opens, find the script file and click the “Open” button, and then click the “Upload file” button.

    Another method can be used if the hosting company that hosts your site allows access to the server via the FTP protocol. For this you need special program- ftp client. After entering the ftp server address, login, password, and establishing a connection, you need to find the file with the script in the left panel - this is where the folder tree is usually placed local computer. And in the right panel, using the same directory tree, go to the desired folder on the server. Then drag or double-click the script and the application will move to the specified directory.

    You can not move the file from your local computer, but use the option to create a file on the server - do this, for example, using the same file manager from the site control panel. In this case, the browser will display a form for filling out with a set of fields, among which there will be a field for entering the contents of this file.

    Open original file script in your computer - this can be done by anyone text editor. Select all lines of code, copy them and paste them into the form field opened in the browser. Don't forget to enter the extension correctly in this form. created file, otherwise the script will not be recognized by the server software.