Welcome Anonymous Please Register or Login  
revoltservers.com/

hey hey
hey hey

Forum Modification Commands

Description: When you download a forums modification the code might be a little of putting at first here is a very brief list of the commands you may come across in a forums modification you download.
Version: 1
Added on: 01 January 2008
Author: Ped
Difficulty Level: Very Easy
Views: 82
Detailed Profile

Remember to back up any file you are instructed to alter before doing anything to that file.





Here is an example of an action header, as it may appear in a file of instructions you have downloaded.

# #-----[ ACTION NAME ]------------------------------------------ #

The actual name of each action will replace the text ACTIONNAME. There are many kinds of actions, each of which has a different meaning. When used in a set of instructions, action names are usually typed entirely in capital letters. to view all of the action names now, please see the table at the bottom of the instructions.




Example of The Copy Action

This action is purely an example , labeled Copy, is an instruction to place files into certain new locations. Typically, the files to be copied are part of the modification and must be uploaded to your forum. Sometimes they already exist in the forum and just need to be moved, but special cases like that should be noted in the modifications instructions.

# #-----[ COPY ]------------------------------------------ # db_update.php to db_update.php functions_new.php to includes/functions_new.php templates/*.* to templates/subSilver/*.*


Above is an example of a typical Copy action. Each line lists a file to copy on the left and the destination of the copy on the right. Unless otherwise noted, the destination path will be relative to your forum''''s main directory. With the example, you would place db_update.php in the main directory, alongside viewtopic.php and profile.php, functions_new.php inside the includes/ directory, and all the files in the modifications templates/ directory inside the forum''''s templates/subSilver/ directory.

The special notation *.* is a quick way of saying all files within this directory.




List of names and definitions of the commands

Copy = Copies one or more files from one location to another.


SQL = Runs one or more SQL queries on your forum''s database. These should usually be completed before installing the remainder of the modification.


Open = Opens the file in preparation for editing. Every action following this until the last action, or another Open action, should be performed on this file. It is followed by a single filename.


Find = This locates the code in the file and is followed by code.


After, Add = Places the following code on a new line after the code in the preceding Find action. It always follows a Find action.


Before, Add = Places the following code on a new line before the code in the preceding Find action. It always follows a Find action.


Replace With = Deletes the code found in the preceding Find action and puts the following code in its place. It always follows a Find action.


In-Line Find = Usually follows a Find action. Locates the following code inside a longer line of code.


In-Line After, Add = Places the following code after the code in the preceding In-Line Find, on the same line of code. It always follows an In-Line Find action.


In-Line Before, Add = Places the following code before the code in the preceding In-Line Find, on the same line of code. It always follows an In-Line Find action.



In-Line Replace With = Deletes the code in the preceding In-Line Find and put this code in its place on the same line of code. It always follows an In-Line Find action.


Save/Close All Files = Signals the end of file changes and reminds you to save your changes. It is always the last action of a modification.


Add SQL = This is an older form of the SQL action, with the same meaning as that action.


hey
PageRankSmarty Templates
Cascading Style Sheets
Valid Robots.txtLobo Links Web Directoryharmonious
Clan Themes is based on Raven Nuke Distribution
PhpNuke Clan Themes Advertising

All content © 2007 - 2008 Clan Themes Home | Contact Us | Shop | Lobo Links | Clan Database | Forums | Account | Downloads | Links | Site Map | About | Back To Top