Forum www.forum.fora.pl Strona Główna

www.forum.fora.pl
Nieoficjalne forum pomocy serwisu fora.pl
 

Bardzo bym prosil o pomoc

 
Napisz nowy temat   Odpowiedz do tematu    Forum www.forum.fora.pl Strona Główna -> Pomoc i pytania
Zobacz poprzedni temat :: Zobacz następny temat  
Autor Wiadomość
flclflcl
Nowicjusz
Nowicjusz



Dołączył: 26 Maj 2006
Posty: 21
Przeczytał: 0 tematów

Ostrzeżeń: 0/5

PostWysłany: Pią 12:42, 26 Maj 2006    Temat postu: Bardzo bym prosil o pomoc

Znalazlem skrypt (chyba to jest skrypt?) ktory pozwala na taka rzecz ze linki w tematach sa zastrzezone dla kazdego zeby zobaczyc link zeby z niego skorzystac trzeba napisac post.
Bardzo bym prosil o pomoc jak to zainstalowac a moze jest tez jakis inny sposob.
Za kazda pomoc dziekuje.


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
Majca
Amator postów
Amator postów



Dołączył: 03 Maj 2006
Posty: 53
Przeczytał: 0 tematów

Ostrzeżeń: 5/5
Skąd: EW

PostWysłany: Pią 12:49, 26 Maj 2006    Temat postu:

Ale to jest Skrypt czy moduł?? Wtapie zebys mogl cos takiego wprowadzic...Raczej sie nieda....

Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
flclflcl
Nowicjusz
Nowicjusz



Dołączył: 26 Maj 2006
Posty: 21
Przeczytał: 0 tematów

Ostrzeżeń: 0/5

PostWysłany: Pią 12:52, 26 Maj 2006    Temat postu:

Ale widziałem takie forum gdzie trzeba napisac posta zeby zobaczyc link
Tylko ze ja tez bym chcial tak ale nie umie Crying or Very sad
I to jest mod


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
flclflcl
Nowicjusz
Nowicjusz



Dołączył: 26 Maj 2006
Posty: 21
Przeczytał: 0 tematów

Ostrzeżeń: 0/5

PostWysłany: Pią 14:07, 26 Maj 2006    Temat postu:

Bardzo przepraszam ze pisze post pod postem ale dlamnie to wazne.
Mogl mi ktos pomoc bo ja nie rozumie angielskiego a mam rozwiazanie mojego problemu.
Jeszcze raz prosze o pomoc.

The first thing to do before all, is to backup your files and your database.


First download the MOD. Then open the install file of the MOD (usually a .txt or .mod file) and follow its instructions.

1) The "COPY" action :

If in a MOD, you see something like that :


Kod:

#
#-----[ COPY ]------------------------------------------
#
copy file.php to file.php
copy file.tpl to templates/subSilver/file.tpl



This just mean that you have to upload the file "file.php" into the phpBB root dir, and the file "file.tpl" into the template directory, directly without editing them.


2) The "OPEN" action :

This is the first basic action to do :



Kod:
#
#-----[ OPEN ]------------------------------------------
#
common.php



Not hard to do : open the specify file into a text editor (notepad, wordpad, editplus, etc.)


3) The "FIND" action :

After the "OPEN" action, this is the most commonly used because you have to find something before you can do anything in the file.



Kod:
#
#-----[ FIND ]------------------------------------------
# around line 184
//
// Show 'Board is disabled' message if needed.
//


After you have opened a file in your text edit editor, search for what the MOD say to search then do any actions on or around that line that come after it.


4) The "BEFORE ADD" action :

In the install file, you should see :



Kod:
#
#-----[ BEFORE, ADD ]--------------------------------------
#
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);


so, after you hav find the code in a previous action, you add before what the MOD says to add. In my example, the result will be :



Kod:
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx); // -> Test to add before

//
// Show 'Board is disabled' message if needed. -> Text to search
//




5) The "AFTER ADD" action :




Kod:
#
#-----[ AFTER, ADD ]------------------------------------------
#
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx);


It's the same thing of the "BEFORE" action, but instead of adding your code before the text you have to find, you have to add it after

Example :



Kod:

include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx); // -> Text to search
include($phpbb_root_path . 'attach_mod/attachment_mod.'.$phpEx); // -> Test to add after




6) The "REPLACE WITH" action :



Kod:

#
#-----[ REPLACE WITH ]------------------------------------------
#
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)" {S_FORM_ENCTYPE}>


This action is always used with the "FIND" action. You have to find a section of code to replace it with.
But you have to be careful with this action if you have others MOD's installed on your forum.

It is recommended that you try not to use this action. Use In-line actions intead.

Example :




Kod:
#
#-----[ FIND ]---------------------------------------------
# around line 225
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)">

#
#-----[ REPLACE WITH ]---------------------------------------
#
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)" {S_FORM_ENCTYPE}>




In this example, I have to search for (This is in my original file) :


Kod:

<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)">



and replace it with (This will be in my modded file) :



Kod:
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)" {S_FORM_ENCTYPE}>


so, in my modded file, I will have :



Kod:
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)" {S_FORM_ENCTYPE}>




7) The "IN-LINE FIND" action :

This is, with the "IN-LINE AFTER, ADD", "IN-LINE BEFORE, ADD", and the "IN-LINE REPLACE WITH" actions These are explained later on), the best action to use by the MOD's authors (i think that but it's just my opinion Rolling Eyes ).
This action is, again, always used with the "FIND" action Wink




Kod:
#
#-----[ IN LINE FIND ]------------------------------------------
#
t.topic_title,



It's a little hard to understand like this, I'll give you an example.




Kod:
#
#-----[ FIND ]------------------------------------------
#
$select_sql = ( !$submit ) ? ", t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig" : '';
#
#-----[ IN-LINE FIND ]------------------------------------------
#
t.topic_title,



You look for the section that is in the FIND action and then you find the code in the IN-LINE section within the piece of code you found earlier.

8 ) The "IN-LINE AFTER, ADD" action :

Looks like this :



Kod:
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
t.topic_desc,


In fact, it's a better way to use the "REPLACE" action (in the case that you have others MOD's installed)
This action is used with the "FIND" action and the "IN-LINE FIND" action.

Example :




Kod:
#
#-----[ FIND ]------------------------------------------
#
$select_sql = ( !$submit ) ? ", t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig" : '';
#
#-----[ IN-LINE FIND ]------------------------------------------
#
t.topic_title,
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
t.topic_desc,



Here, you have to search for an entire line (original line) :



Kod:
$select_sql = ( !$submit ) ? ", t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig" : '';


in this line, you have to search for some code :



Kod:
t.topic_title,



and to add directly after :



Kod:
t.topic_desc,



so your line will become (modded line) :



Kod:
$select_sql = ( !$submit ) ? ", t.topic_title, t.topic_desc, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig" : '';




9) The "IN-LINE BEFORE, ADD" action :

It's the same thing that the "IN-LINE AFTER, ADD" action but you have to add the code before what you have to search instead of after.



Kod:
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
, $topic_desc


Example :



Kod:
#
#-----[ FIND ]------------------------------------------
#
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$poll_length)
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
$topic_desc,



You have to search for an entire line (original line) :



Kod:
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);



in this line, you have to find :



Kod:
$poll_length)



and to add directly before :



Kod:
$topic_desc,



so your line will become (modded line) :



Kod:
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $topic_desc, $poll_length);




10 ) The "SQL" action :

This is the action to do for altering the database (adding a fields, adding tables, altering tables, etc).




Kod:
#
#-----[ SQL ]------------------------------------------
#
ALTER TABLE phpbb_topics ADD topic_desc varchar(255) DEFAULT '' AFTER topic_title



This means you execute the queries that are in this action. The easiest way to execute these is using a program like phpMyAdmin.


11) The "SAVE/CLOSE ALL FILES" action :

This is the last action Very Happy. Once you have done all your modifications, save and close your files, then upload them to your site. Check your forum to make sure you have made the Modifications correctly. If you have made a mistake double check to make sure you have installed it correctly.


But don't forget : before all, backup your files and your database.


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
Łebmaster
Taki se gostek
Taki se gostek



Dołączył: 26 Maj 2006
Posty: 12
Przeczytał: 0 tematów

Ostrzeżeń: 0/5
Skąd: Radomsko

PostWysłany: Pią 22:17, 26 Maj 2006    Temat postu:

No, to jest uczciwy i kulturalny forumowicz - brawo, dobra wzorowa postawa i prawdziwa kulura D:
Niestety nie umiem pomóc


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
Wyświetl posty z ostatnich:   
Napisz nowy temat   Odpowiedz do tematu    Forum www.forum.fora.pl Strona Główna -> Pomoc i pytania Wszystkie czasy w strefie EET (Europa)
Strona 1 z 1

 
Skocz do:  
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


fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001, 2005 phpBB Group
deoxGreen v1.2 // Theme created by Sopel stylerbb.net & programosy.pl

Regulamin