The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How can I embed picture in forum description?

View previous topic View next topic Go down

Solved How can I embed picture in forum description?

Post by Sinistra on October 17th 2016, 11:03 am

Okay, my problem is not exactly this, but to make something like a button, which is lead toward to a link. So I already have the
Code:
<img src=img link/>
thing for the image, but how can it turn to a button, so it could lead us to a link? Smile

Sinistra
Forumember

Posts : 35
Reputation : 1
Language : magyar

http://remnant.hungarianforum.com/

Back to top Go down

Solved Re: How can I embed picture in forum description?

Post by Ch@lo Valdez on October 17th 2016, 4:36 pm

can you explain better?

maybe this?





Code:
img_description = function () {
    var
        desc = document.getElementById('site-title'),
        img = desc && desc.nextElementSibling.innerHTML.match(/(((http:\/\/www)|(http:\/\/)|(www))[-a-zA-Z0-9@:%_\+.~#?&//=]+)\.(jpg|jpeg|gif|png|bmp|tiff|tga|svg)/g)[0];
    img && (desc.nextElementSibling.innerHTML = '<img id="button_img" src="' + img + '">');
};

$(document).ready(function ($) {
    img_description()
});

Ch@lo Valdez
Forumember

Male Posts : 100
Reputation : 31
Language : spanish

Back to top Go down

Solved Re: How can I embed picture in forum description?

Post by Valoish on October 17th 2016, 5:41 pm

Code:
<a href="link url here"><img src="image url here"></a>
That code will create a hyperlinked image that will open the link in the same page. If you want the link to open in a new tab use this code:
Code:
<a href="link url here" target="_blank"><img src="image url here"></a>

Valoish
Forumember

Female Posts : 116
Reputation : 25
Language : English
Location : NYC

http://www.canvasforums.com

Back to top Go down

Solved Re: How can I embed picture in forum description?

Post by Sinistra on October 17th 2016, 6:26 pm

Valoish, you've solved my problems again Smile feels like I have my design guardian angel. ^^ If you don't mind, I might PM you (for real this time xD), cuz I have some problems which I can't solve.

Solved!

Sinistra
Forumember

Posts : 35
Reputation : 1
Language : magyar

http://remnant.hungarianforum.com/

Back to top Go down

Solved Re: How can I embed picture in forum description?

Post by Valoish on October 17th 2016, 6:32 pm

Glad I could help c: And sure thing, just send them over and I'll try to help as much as I can c:

Valoish
Forumember

Female Posts : 116
Reputation : 25
Language : English
Location : NYC

http://www.canvasforums.com

Back to top Go down

Solved Re: How can I embed picture in forum description?

Post by APE on October 17th 2016, 6:46 pm

Problem solved & topic archived.
Please read our forum rules: ESF General Rules





APE
Manager
Manager

Male Posts : 8648
Reputation : 762
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum