12-16-2010, 10:44 AM
12-16-2010, 05:11 PM
can you please use these details while creating a mycode and use them in a post?
First mycode:
title: image1
regular expression: \[image1\](.*)$
replacement: <span style=”padding: 3px 0px 3px 0px;”><img src=”http://s3.tinypic.com/24nobqe_th.jpg“ alt="" /></span>
enabled: yes
-----------------
second mycode:
title: image2
regular expression: \[image2\](.*)$
replacement: <span style=”padding: 3px 0px 3px 0px;”><img src=”http://s3.tinypic.com/t6z6a1_th.jpg“ alt="" /></span>
enabled: yes
-------------------
now just post multiple instances of those mycodes in a post.
[image1]
[image2]
[image2]
[image1]
try it and check please
First mycode:
title: image1
regular expression: \[image1\](.*)$
replacement: <span style=”padding: 3px 0px 3px 0px;”><img src=”http://s3.tinypic.com/24nobqe_th.jpg“ alt="" /></span>
enabled: yes
-----------------
second mycode:
title: image2
regular expression: \[image2\](.*)$
replacement: <span style=”padding: 3px 0px 3px 0px;”><img src=”http://s3.tinypic.com/t6z6a1_th.jpg“ alt="" /></span>
enabled: yes
-------------------
now just post multiple instances of those mycodes in a post.
[image1]
[image2]
[image2]
[image1]
try it and check please
12-16-2010, 05:57 PM
Obviously it won't work cause your tags are eating up the whole post.
For one, you're not even using the matching pattern (.*) - you should remove that.
For one, you're not even using the matching pattern (.*) - you should remove that.
12-16-2010, 06:14 PM
now, i removed the (.*)
\[info\]$
where it is directly displaying the mycode text as [info] directly when we post [info]
\[info\]$
where it is directly displaying the mycode text as [info] directly when we post [info]
12-16-2010, 07:53 PM
Urgh, can you please stop trying to be confusing?
In a few posts back, you're talking about [image1], now you're on about [info]
What is it exactly?
In a few posts back, you're talking about [image1], now you're on about [info]
What is it exactly?
12-17-2010, 02:42 PM
i think its not the matter of info or image, you can see that when we place any regular expression it must replace it with the replacement in the post#22 which is a image.
i'm referring to it and you said to remove the (.*) in regular expression and i done it and tested.
title: image1
regular expression: \[image1\]$
replacement: <span style=”padding: 3px 0px 3px 0px;”><img src=”http://s3.tinypic.com/24nobqe_th.jpg“ alt="" /></span>
enabled: yes
i'm referring to it and you said to remove the (.*) in regular expression and i done it and tested.
title: image1
regular expression: \[image1\]$
replacement: <span style=”padding: 3px 0px 3px 0px;”><img src=”http://s3.tinypic.com/24nobqe_th.jpg“ alt="" /></span>
enabled: yes
12-17-2010, 02:48 PM
...so what about it?
12-17-2010, 03:49 PM
it is displaying the reg exp code directly without replacing it with the image.
[image] <--- Just [image], no replacement with the required image <img src=”http://s3.tinypic.com/24nobqe_th.jpg“ alt="" />
[image] <--- Just [image], no replacement with the required image <img src=”http://s3.tinypic.com/24nobqe_th.jpg“ alt="" />
12-23-2010, 10:35 PM
all fixed. thanks