MyBB Hacks

Full Version: Thread Rating, Code Tag URLS & MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I cannot comprehend what you're saying.

Images work perfectly fine here.
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
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.
now, i removed the (.*)

\[info\]$

where it is directly displaying the mycode text as [info] directly when we post [info]
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?
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
...so what about it?
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="" />
all fixed. thanks
Pages: 1 2 3
Reference URL's