phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

02: Order! Order!

This is a temporary forum setup for the purpose of discussing the EMC standards

Re: 02: Order! Order!

Postby ant » Tue Sep 02, 2003 7:07 pm

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. Razz ) Confused:
ant
Registered User
 
Posts: 4
Joined: Wed Jun 11, 2003 6:45 pm

Re: 02: Order! Order!

Postby Nuttzy99 » Tue Sep 02, 2003 7:14 pm

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 Wink 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 Cool
SpellingCow.com - Free spell check service for your forums or any web form!
My Other Site
Nuttzy99
Registered User
 
Posts: 927
Joined: Fri Aug 03, 2001 7:09 am

Re: 02: Order! Order!

Postby -=ET=- » Thu Sep 04, 2003 8:46 pm

Ptirhiik wrote:hum.. Are you sure this is correctly parsed by the actual version of easymod ? Smile

Yes, I can confirm too.
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'
User avatar
-=ET=-
Registered User
 
Posts: 211
Joined: Mon May 26, 2003 1:35 pm
Location: France

Re: 02: Order! Order!

Postby Throckmorton » Tue Aug 23, 2005 6:58 pm

Never mind...

(Trying to delete this message gave me an error.)
This space for rent.
User avatar
Throckmorton
Registered User
 
Posts: 21
Joined: Tue Aug 16, 2005 9:23 pm
Location: Naperville, IL

Re: 02: Order! Order!

Postby Nux » Tue Aug 23, 2005 8:07 pm

I would say you ought to have a different FIND for the IN-LINE

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

Though I don't know if the first find here is uniqe.
User avatar
Nux
Registered User
 
Posts: 943
Joined: Tue Jun 14, 2005 5:09 pm
Location: 3cities, Poland

Previous

Return to EMC Discussion

Who is online

Users browsing this forum: No registered users and 2 guests