We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Clickable images
Topic Started: Jun 30 2013, 03:48 AM (508 Views)
RichardInTN
Member Avatar
I believe in I.D.I.C.
[ *  *  * ]
Board Address: Great Escape
Board Software: ZetaBoards
Description: Clickable images button.

This one might be a challenge. Is it possible to create a button for use in the "Full Reply Screen" That would combine the functions of the [URL] and the [IMG] command buttons... thus making a "URL / IMG" button.

Example: For my board, the favicon is: Posted Image. Suppose I'd like to reference a different board (or whatever link... where the link goes is NOT tied to the image) and make it a clickable link, like so (using my board's favicon as an example): Posted Image. As it is now, it's doable (obviously, because I just did it), but it takes several steps.
Edited by RichardInTN, Jul 2 2013, 08:53 AM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
//<![CDATA[
$('button[onclick="ZetaImage()"]').after(' <button type="button" id="iURL">Linked Image</button>');

$('#iURL').click(function () {
var href = window.prompt('Enter the complete URL for the hyperlink', 'http://');
var src = window.prompt('Enter the complete URL for the image', 'http://');
ZetaInsert('[url=' + href + '][img]' + src + '[/img][/url]');
});
//]]>
</script>
Offline Profile Goto Top
 
RichardInTN
Member Avatar
I believe in I.D.I.C.
[ *  *  * ]
Looks perfect Cory.

Thanks!
Offline Profile Goto Top
 
Roby
Member Avatar
#27

Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic