phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

FAQFAQ - PIERWSZA POMOC!!  regulaminREGULAMIN  SzukajSZUKAJ  UżytkownicyUżytkownicy  GrupyGrupy  StatystykiStatystyki
RejestracjaRejestracja  ZalogujZaloguj  DownloadDownload  katalog Forów DyskusyjnychKatalog Forów   FAQ Video tutoriale

Poprzedni temat «» Następny temat
How to install modifications?
Autor Wiadomość
Matteo



Pomógł: 1932 razy
Posty: 5715
Wysłany: 09-09-2010, 22:33   How to install modifications?

Almost every modification requires changes in the files of our forums.
For Mods are attached new files which should upload to indicated place on server.

Remember - first create backup of database and files, which you will be edit!

Mod contains detailed installation instructions - usually this is a file install.txt or another with .txt or .mod enlargement.

Every file contain headline:
Kod:
##############################################################
## MOD Title:        Name of modification
## MOD Author:       Author < author@email > (Author name) www.authorwebpage.com
## MOD Description:  Short description of mod
## MOD Version:      x.y.z
##               
## Installation Level:  Level of installation (Easy/Intermediate/Advanced)
## Installation Time:   Installation time
## Files To Edit:       quantity and name of files, which need be modify
## Included Files:      Included files
## License:             Link to text and name of license, which mod will be (most GPL2)
##############################################################
## Author Notes:
## There are additional infos
##############################################################
## MOD History:
##
##   DATE - Version x.x.x
##      - info about version
##
##############################################################



Below the header is description of installation. It has a simple structure and it looks something like this:

Kod:
#
#-----[ COMMAND 1 ]------------------------------------------
#
CODE 1

#
#-----[ COMMAND 2 ]------------------------------------------
#
CODE 2

etc.



Command 1 refers to code 1 etc.

Possible commands:

1. SQL - execute SQL query ex. by phpMyAdmin
2. COPY - copy files
3. DIY INSTRUCTIONS - description of actions to perform the manual (Do It Yourself)
4. OPEN (nazwa pliku) - open (file)
5. FIND - find
6. REPLACE WITH - replace with
7. AFTER, ADD - after add
8. BEFORE, ADD - before add
9. INCREMENT, IN-LINE INCREMENT - increase/decrease the number
10. IN-LINE FIND - in line find
11. IN-LINE AFTER, ADD - in line after add
12. IN-LINE BEFORE, ADD - in line before add
13. IN-LINE REPLACE WITH - in line replace with
14. SAVE/CLOSE ALL FILES - end of desc, save and close all files

1. SQL


Kod:
#
#-----[ SQL ]------------------------------------------
#
CREATE TABLE `phpbb_config` (
  `config_name` varchar(255) NOT NULL default '',
  `config_value` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`config_name`)
) TYPE=MyISAM;


You can execute query by phpMyAdmin (support to phpMyAdmin you can find here) or by Administration Panel.

2. COPY


Kod:
#
#-----[ COPY ]------------------------------------------
#
copy file to destination_directory/file
ex.
copy foo_body.tpl to templates/subSilver/foo_body.tpl


There probably is everything clear.

3. DIY INSTRUCTIONS


Kod:
#
#-----[ DIY INSTRUCTIONS ]------------------------------------------
#
content of instruction
ex.
set file mod.php chmod to 666


Here's all clear, this action may be used in any way modified by the author to inform the additional operations that are required.

4. OPEN


Kod:
#
#-----[ OPEN ]------------------------------------------
#
catalog/name_of_file
ex.
includes/constants.php


Open file by ex. Notepad++.

5. FIND


Kod:
#
#-----[ FIND ]------------------------------------------
#
Code 1

ex.
{L_NEW_POSTS}



Find in opened file Code 1.

After FIND command can be following commands:

6. REPLACE WITH


Kod:
#
#-----[ REPLACE WITH ]------------------------------------------
#
Code 2

ex.

{L_YOUR_VARIABLE}


So change Code 1 to Code 2.
In this example change {L_NEW_POSTS} to {L_YOUR_VARIABLE}.

7. AFTER, ADD


Kod:
#
#-----[ AFTER, ADD ]------------------------------------------
#
Code 3

ex.
{L_NEW}


So add this AFTER what you find, so after Code 1, add Code 3
In this example after {L_NEW_POSTS} add {L_NEW}.

8. BEFORE, ADD


Kod:
#
#-----[ BEFORE, ADD ]------------------------------------------
#
Code 4

ex.
{L_INFO}


So add BEFORE what you find so before Code 1 add Code 4.
In this example before {L_NEW_POSTS} add {L_INFO}.

9. INCREMENT, IN-LINE INCREMENT


Kod:
#
#-----[ FIND ]------------------------------------------
#
Powered by <a href="http://www.phpbb.com/" target="_phpb" class="copyright">phpBB</a> &#169; 2001, {%:1} phpBB Group<br />{TRANSLATION_INFO}</span></div>
#
#-----[ INCREMENT ]-------------------------------------
#
%:1 +10


This action used to increase and decrease numbers. INCREMENT is always after the FIND or IN-LINE FIND in which number to change was replace by {%:1}. If there are more numbers, next are replacy by {%:2}, {%:3} etc.

In this example to number replaced by {%:1} should add 10.

Sometimes instead of INCREMENT you can meet with the action IN-LINE INCREMENT. Both work the same way.

10. IN-LINE FIND


Kod:
#
#-----[ IN-LINE FIND ]------------------------------------------
#
Code 5

ex.
{L_ANY_THING}


If after FIND is this command, that in command FIND (pkt. 5) should find a line. In this line (Code 1) should find Code 5.

After the IN-LINE FIND is IN-LINE INCREMENT or one of this commands:

11. IN-LINE AFTER, ADD


Kod:
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
Code 6

ex.
{TEXT}


So AFTER the Code 5 in this line, should add Code 6, in this example after {L_ANY_THING} add (in line) {TEXT}.

12. IN-LINE BEFORE, ADD


Kod:
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
Code 7

ex.
{TEXT2}


So BEFORE the Code 5 in this line, should add Code 7, in this example after {L_ANY_THING} add (in line) {TEXT2}.

13. IN-LINE REPLACE WITH


Kod:
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
Code 8

ex.
{TEXT3}


So Code 5 should replace with Code 8, in this example {L_ANY_THING} replace with {TEXT3}.

14. SAVE/CLOSE ALL FILES


Kod:
#
#-----[ SAVE/CLOSE ALL FILES ]----------------------------------
#
# EoM


Save and close all files.

(original content)
_________________
Fora, strony, sklepy internetowe i wiele więcej...
matteo.fcb(at)gmail.com
 
     
Gadatliwa Kasia 

   
Wyświetl posty z ostatnich:   
Odpowiedz do tematu
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Nie możesz załączać plików na tym forum
Możesz ściągać załączniki na tym forum
Dodaj temat do Ulubionych
Wersja do druku

Skocz do:  

Kopiowanie wszelkich treści zawartych na forum, modyfikacji oraz instrukcji bez zgody administracji i autorów tematów/postów zabronione!

Powered by phpBB modified by Przemo © 2003 phpBB
Strona wygenerowana w 0,07 sekundy. Zapytań do SQL: 11
Polecane serwisy



Najlepsze oprogramowanie do prowadzenia sklepu internetowegoNajlepszy program do sklepu firmowany przez Przem'a



phpbb

serwis laptopów

Design Cart

Sklep z gadżetami

https://pozycjonowanie.agency

• Zamów reklamę