MyBB Community Forums

Full Version: Help with quote tag
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hm, okay next try - this time with MyCode Wink

[ACP > Configuration > MyCode > Add New MyCode]

Regular Expression
\[google\](.*?)\[/google\]

Replacement
<blockquote><cite><a href="http://www.google.com" target="_blank">Google:</a></cite>$1</blockquote>

Usage
[google]Lorem ipsum...[/google]

Looks like my first example, but now with the link to Google.
Thanks again but i can use this MyBB only with the address that is in the href, is possible to add the url tag so i can use it with all site ?
(2010-09-16, 08:14 PM)MaFeSa Wrote: [ -> ]Thanks again but i can use this MyBB only with the address that is in the href, is possible to add the url tag so i can use it with all site ?

Sorry, this isn't possible by default, I'm guessing you're looking for the ability to "cite" quote something? If so, try this MyCode (This could probably be improved, but as a basic version it works):

[ACP > Configuration > MyCode > Add New MyCode]

Regular Expression
\[cite name=\"(.*?)\" url=\"(.*?)\"\](.*?)\[/cite\]

Replacement
<blockquote><cite><a href="$2" target="_blank">$1</a></cite>$3</blockquote>

Usage
[cite name="Wikipeda" url="http://en.wikipedia.org/wiki/Wikipedia:Citing_Wikipedia"]I'm Citing Something From Wikipedia Here![/cite]
Thanks Dylan, it's perfect !
I am always amazed by the excellent support of this forum.
Thanks to all
Pages: 1 2