how to write this code?
terzier Offline
Member
***
Posts: 91
Joined: Feb 2012
Post: #4
RE: how to write this code?
terzier Wrote:I am a little familiar with your style of sharing. that is, every person you ask, you will not be directly responsible. but just to give a little feedback, so that "the questioner" can cultivate deeper.

I'll do all right. however, please help me if I have an impasse.

i look at inc/class_parser.php and I think, just this part that I saw was very interesting related to my posting this. Yes

Code:
1
2
3
4
5
6
7
8
9
		// Convert images when allowed.
		if($options['allow_imgcode'] != 0)
		{
			$message = preg_replace_callback("#\[img\](\r\n?|\n?)(https?://([^<>\"']+?))\[/img\]#is", array($this, 'mycode_parse_img_callback1'), $message);
			$message = preg_replace_callback("#\[img=([0-9]{1,3})x([0-9]{1,3})\](\r\n?|\n?)(https?://([^<>\"']+?))\[/img\]#is", array($this, 'mycode_parse_img_callback2'), $message);
			$message = preg_replace_callback("#\[img align=([a-z]+)\](\r\n?|\n?)(https?://([^<>\"']+?))\[/img\]#is", array($this, 'mycode_parse_img_callback3'), $message);
			$message = preg_replace_callback("#\[img=([0-9]{1,3})x([0-9]{1,3}) align=([a-z]+)\](\r\n?|\n?)(https?://([^<>\"']+?))\[/img\]#is", array($this, 'mycode_parse_img_callback4'), $message);
		}
		


if true in any part of the code should be added?
and, please correct the code in the first post.

Me Wrote:implore your help. I'm not a genius PHP master like you. Ouch

Un-Official MyBB from Indonesia| Facebook Page|Twitter
GARUDA DIDADA KU
11-13-2013 01:24 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
how to write this code? - terzier - 11-08-2013, 04:11 PM
RE: how to write this code? - terzier - 11-10-2013, 02:41 PM
RE: how to write this code? - ZiNgA BuRgA - 11-10-2013, 05:22 PM
RE: how to write this code? - terzier - 11-13-2013 01:24 AM
RE: how to write this code? - terzier - 11-14-2013, 07:43 PM
RE: how to write this code? - terzier - 11-17-2013, 05:39 PM
RE: how to write this code? - ZiNgA BuRgA - 11-22-2013, 04:36 PM
RE: how to write this code? - terzier - 11-23-2013, 01:22 AM

 Standard Tools
Forum Jump: