MyBB Hacks

Full Version: URL field to a picture with link (button)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I'm newbie and i don't speak english very well, sorry for this.

When a member complete the form, I would like the link appears as a clickable button ... it seems stupid but I can not do it, sorry. Biggrin

This button is not an image upload by the member at the thread posting , it's just a "participate" button link (for a forum dedicated to referencing  contests..to win price)

I have try this and lot other things in "display format" but without success:
<a href="{VALUE}"><img src="images/image-perso/participer.png"</a>

See pictures if it was not understandable Tongue


Thank you for this wonderful tool, it's very useful.
(03-18-2014 09:05 AM)cakissimo Wrote: [ -> ]I have try this and lot other things in "display format" but without success:
<a href="{VALUE}"><img src="images/image-perso/participer.png"</a>
Your HTML is not valid.
See if you can spot your mistake.
Thank for you quick reply, can you give a HTML code examples who work or a solution please or a little thing to help me?
I'm lost and i'm looking for that few hours and i don't find a way...i'm bored:/ i don't understand...

I have try <a href="{VALUE}"><img src="images/image-perso/participer.png"/></a> and few others things, i have try directly code in modified templates but nothing work too.

This trick is really possible with Xthreads ? Erf
(03-18-2014 09:51 AM)cakissimo Wrote: [ -> ]I have try <a href="{VALUE}"><img src="images/image-perso/participer.png"/></a>
Well, that's valid HTML at least.
So what's the problem with it?

(03-18-2014 09:51 AM)cakissimo Wrote: [ -> ]and few others things
What other things?
With
Quote:<a href="{VALUE}"><img src="images/image-perso/participer.png"/></a>
in "display format" the link appears before the button and begin by my "website url" but it's a external website link :
[Image: 1395130352-sans-titre-2.png]

For example, with only {VALUE} in "display format" and :

Code:
[url={$GLOBALS['threadfields']['wwwurl']}][img]http://pro-concours.fr/images/image-perso/participer.png[/img][/url]

Just before

Code:
{$post['message']}

in "postbit_first_classic"
Result is:

[Image: 1395130351-sans-titre-1.png]

Fixed...just a "display parsing" option, success with "Mybb Parser" and IMG Mycode check only.
Reference URL's