2013-09-08, 19:06
Share Topics |
This function will show you HTML, BBCODE and DIRECT URL for selected topics.
--> Tutorials, tips and tricks <--
Share Topics
Share Topics
1º - Code
In [ic]viewtopic_body[/ic] find following code:
- Code:
<a href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC} »
Replace it with:
- Code:
<div class="main">
<div class="avt_recent">
<div class="main-head clearfix">
<style type="text/css">
.avt-r {
float: left;
}
.avt-r img {
width: 36px;
height: 36px;
margin: 3px;
padding: 1px;
border: 1px solid #D5D5D5;
background: white;
-webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0px 2px 2px rgba(0,0,0,0.1);
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}
.avt-r img:hover {
border-color: #a1a1a1;
-webkit-box-shadow: 0px 2px 2px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 2px 2px rgba(0,0,0,0.2);
box-shadow: 0px 2px 2px rgba(0,0,0,0.2);
}</style>
<script type="text/javascript">
jQuery(document).on('ready', function() {
jQuery('.avt_recent').prepend('<div class="avt-r"><div>');
jQuery('.avt_recent .avt-r').each(function () {
var profileUserURL = jQuery(this).parent().children('.recent_space').children('a:last').attr('href');
jQuery(this).html('<a href="' + profileUserURL + '" class="avt-r-enlace"><img src="http://i78.servimg.com/u/f78/18/17/62/92/defaul10.png" alt="No Avatar" /></a>');
jQuery(this).children('a').load(profileUserURL + ' .module:eq(0) img:eq(0)')
});
});</script>
<p class="h2">Share this topic!</p>
</div>
<div class="main-content frm comp">
<table border="0">
<tr>
<td><strong>URL Direct</strong></td>
<td><input type="text" style="width:850px;" value="{FORUM_URL}{TOPIC_URL}" /></td>
</tr>
<tr>
<td><strong>BBcode</strong></td>
<td><input type="text" style="width:850px;" value="[url={FORUM_URL}{TOPIC_URL}] {TOPIC_TITLE} [/url]" /></td>
</tr>
<tr>
<td><strong>HTML</strong></td>
<td><input type="text" style="width:850px;" value="<a href='{FORUM_URL}{TOPIC_URL}'> {TOPIC_TITLE} </a>" /></td>
</tr>
</table>
</div>
</div>
</div>
https://i.imgur.com/n2BmRgl.png
© PunBB Design
If you have any questions related to this topic create a topic with the following title: Share Topics |