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:
Add Reply
Convert URLs to Hyperlinks on Webpages
Topic Started: Aug 2 2012, 05:13 AM (1,143 Views)
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code Name: Convert URLs to Hyperlinks on Webpages

What the code does: When you simply insert a URL on a webpage it won't automatically be converted into a link like URLs are in posts, this code will automatically convert URLs into links on webpages. Preview #1, Preview #2

How to use the code: Install as instructed, no editing is required.

How to install the code:

Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
//<![CDATA[
$('div.site_wrapper').html($('div.site_wrapper').html().replace(/((http|https):\/\/[a-zA-Z0-9.-/]+(\n| ))/gi, '<a href="$1" target="_blank">$1</a>'));
//]]>
</script>
Edited by Cory, Oct 30 2016, 12:01 AM.
Online Profile Quote Post Goto Top
 
manga_service
Member
[ * ]
thanks :D
this was my request :D
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply