So the order the commands are proceced is:
1) FIND
2) BEFORE, ADD
3) IN-LINE FIND
4) IN-LINE BEFORE, ADD
Would you put in REPLACE in after FIND but before BEFORE, ADD? (If you used it, which you really shouldn't. )
02: Order! Order!
Re: 02: Order! Order!
I would put a REPLACE after the BEFORE, ADD since the text involved with the REPLACE comes after the text involved with the BEFORE, ADD. It really doesn't matter though but it does make for a nice convention The only thing that *must* happen is that AFTER, ADD be the last command to be used on the FIND block. Also IN-LINE FIND commands should be in sequential order as well b/c of the way lines are committed to the file.
-Nuttzy
-Nuttzy
Re: 02: Order! Order!
Yes, I can confirm too.Ptirhiik wrote:hum.. Are you sure this is correctly parsed by the actual version of easymod ?
I've use this case many times and it works fine
P.S.: just an example...
Code: Select all
#
#-----[ FIND ]------------------------------------------------
#
$sql = "INSERT INTO " . USERS_TABLE . "
VALUES
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, user_style
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, user_gender
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, $user_style
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, '$gender'
- Throckmorton
- Registered User
- Posts: 21
- Joined: Tue Aug 16, 2005 9:23 pm
- Location: Naperville, IL
Re: 02: Order! Order!
Never mind...
(Trying to delete this message gave me an error.)
(Trying to delete this message gave me an error.)
This space for rent.
Re: 02: Order! Order!
I would say you ought to have a different FIND for the IN-LINE
Though I don't know if the first find here is uniqe.
Code: Select all
#
#-----[ FIND ]-----------------------------------------------------------------
#
else if ( $mode == 'smilies' )
{
#
#-----[ AFTER, ADD ]---------------------------------------------------------
#
//START MOD Smiley_management
$page_id = ( !empty($HTTP_GET_VARS['page']) ) ? intval($HTTP_GET_VARS['page']) : 0;
#
#-----[ FIND ]-----------------------------------------------------------------
#
generate_smilies('window', PAGE_POSTING);
#
#-----[ INLINE FIND ]---------------------------------------------------------
#
PAGE_POSTING
#
#-----[ INLINE AFTER, ADD ]---------------------------------------------------------
#
, $page_id
#
#-----[ AFTER, ADD ]---------------------------------------------------------
#
//END MOD Smiley_management
How To Ask Questions The Smart Way.
ReadMe ver. 0.0.4 for EasyMOD ver. 0.3.0 (on-line at sourceforge)
Recent problems that are not answered in the ReadMe.
My page: DOM, Javascript, SQL - tips&scripts (mostly in Polish, sorry )
ReadMe ver. 0.0.4 for EasyMOD ver. 0.3.0 (on-line at sourceforge)
Recent problems that are not answered in the ReadMe.
My page: DOM, Javascript, SQL - tips&scripts (mostly in Polish, sorry )