Mamba wrote:
I would need to know the exact version, if possible...
I found it , [CBB 4.33 RC7]
I just tested from this site
https://waterlily-lsl.com/modules/newbb
download
https://waterlily-lsl.com/modules/newbb/viewtopic.php?topic_id=195
Mamba wrote:
I would need to know the exact version, if possible...
xoops : 2.5.9
module : newbb 4.34 Final
xoops : 2.5.9
module : newbb 4.34 Final
template : newbb_viewtopic.tpl
css framework: Bootstrap3
icon : Font Awesome 4.7.0
<!-- only for login user //-->
<{if $viewer_level gt 0}>
<!-- modal for rate //-->
<div class="modal fade bs-example-modal-sm container" id="replyrate" tabindex="-1" role="dialog" aria-labelledby="replyrate">
<div class="modal-dialog btn-bottom" role="document">
<div class="modal-content btn-group" role="group">
<button type="button" class="btn btn-default" onclick="location.href='/modules/<{$xoops_dirname}>/ratethread.php?topic_id=<{$topic_id}>&forum=<{$forum_id}>&rate=5';"><i class="fa fa-thumbs-o-up fa-2x" aria-hidden="true"></i><br><{$smarty.const._MD_RATE5}></button>
<button type="button" class="btn btn-default" onclick="location.href='/modules/<{$xoops_dirname}>/ratethread.php?topic_id=<{$topic_id}>&forum=<{$forum_id}>&rate=4';"><i class="fa fa-smile-o fa-2x" aria-hidden="true"></i><br><{$smarty.const._MD_RATE4}></button>
<button type="button" class="btn btn-default" onclick="location.href='/modules/<{$xoops_dirname}>/ratethread.php?topic_id=<{$topic_id}>&forum=<{$forum_id}>&rate=3';"><i class="fa fa-meh-o fa-2x" aria-hidden="true"></i><br><{$smarty.const._MD_RATE3}></button>
<button type="button" class="btn btn-default" onclick="location.href='/modules/<{$xoops_dirname}>/ratethread.php?topic_id=<{$topic_id}>&forum=<{$forum_id}>&rate=2';"><i class="fa fa-frown-o fa-2x" aria-hidden="true"></i><br><{$smarty.const._MD_RATE2}></button>
<button type="button" class="btn btn-default" onclick="location.href='/modules/<{$xoops_dirname}>/ratethread.php?topic_id=<{$topic_id}>&forum=<{$forum_id}>&rate=1';"><i class="fa fa-thumbs-o-down fa-2x" aria-hidden="true"></i><br><{$smarty.const._MD_RATE1}></button>
</div>
</div>
</div>
<!-- modal for quickreply //-->
<div class="modal fade bs-example-modal-sm container" id="replyquick" tabindex="-1" role="dialog" aria-labelledby="replyquick">
<div class="modal-dialog btn-bottom" role="document">
<div class="modal-content modal-body"><button type="button btn-default" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<{$quickreply.form}>
</div>
</div>
</div>
<!-- fix bottom navbar //-->
<div class="navbar-fixed-bottom container" id="postnav" style="bottom:12px;">
<!-- rate button //-->
<{if $rating_enable}>
<a class="btn btn-default btn-lg" style="box-shadow: 0 0 15px 0 grey" data-toggle="modal" data-target="#replyrate"><i class="fa fa-thumbs-o-up" aria-hidden="true"></i><{$smarty.const.THEME_LIKE}></a>
<{/if}>
<!-- reply button //-->
<{if $quickreply.show}>
<a class="btn btn-default btn-lg" style="box-shadow: 0 0 15px 0 grey" data-toggle="modal" data-target="#replyquick"><i class="fa fa-comment-o" aria-hidden="true"></i><{$smarty.const.THEME_FORUM_REPLY}></a>
<{/if}>
<!-- modal-dialog move to bottom //-->
<style>.btn-bottom {position: absolute;bottom:48px;z-index:9999;} </style>
<!-- scroll hide bottom navbar //-->
<script>
$(window).scroll(function(){
var scrollBottom = $("body").height()-$(window).height()-60;
if (scrollBottom > 120 )
{
if ($(this).scrollTop() > 60 && $(this).scrollTop() < scrollBottom)
{ $('#postnav').fadeIn(); }
else { $('#postnav').fadeOut(); }
}
else
{
$('#postnav').fadeIn();
}
});
</script>
</div>
<{/if}>
<script async src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_UAID"></script>
<{if $xoops_isuser}>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'GA_TRACKING_UAID', { 'user_id': '<{$xoops_name}>' });
</script>
<{else}>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'GA_TRACKING_UAID', { 'user_id': '<{$smarty.const._GUESTS}>' });
</script><{/if}>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'GA_TRACKING_UAID', 'YOUR_DOMAIN_NAME');
<{if $xoops_isuser}>
var xoopsuser_name = "<{$xoops_name}>";
ga('set', 'userId', xoopsuser_name );
<{/if}>
ga('send', 'pageview');
</script>
$src = "http://www.youtube.com/embed/" . $matches[2];
$src = "http://www.youtube.com/embed/" . $matches[2];
if (empty($width) || empty($height))
{$width = 16;$height = 9;}
if (($width) > 16 ||($width) > 9)
{if (($width / $height) > 1.5)
{$width = 16;$height = 9;}
else {$width = 4;$height = 3;} }
var text2 = prompt(enterFlashWidthPhrase, "425");
var text3 = prompt(enterFlashHeightPhrase, "350");
var text2 = prompt(enterFlashWidthPhrase, "16");
var text3 = prompt(enterFlashHeightPhrase, "9");
if (!preg_match("/^http://(www.)?youtube.com/watch?v=(.*)/i", $url, $matches)) {
trigger_error("Not matched: {$url} {$width} {$height}", E_USER_WARNING);
return "";
}
$src = "http://www.youtube.com/v/" . $matches[2];
if (preg_match("/^http[s]?://(www.)?youtu.be/(.*)/i", $url, $matches) ) { }
elseif (preg_match("/^http[s]?://(www.)?youtube.com/watch?v=(.*)/i", $url, $matches)) { }
else{
trigger_error("Not matched: {$url} {$width} {$height}", E_USER_WARNING);
return "";
}
$src = "http://www.youtube.com/embed/" . $matches[2];
$code = "<object width='{$width}' height='{$height}'><param name='movie' value='{$src}'></param>" .
"<param name='wmode' value='transparent'></param>" .
"<embed src='{$src}' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed>" .
"</object>";
$code = "<div class='embed-responsive embed-responsive-{$width}by{$height}'>" .
"<iframe frameborder='0' class='embed-responsive-item' src='{$src}?controls=1&showinfo=0&rel=0&disablekb=1' allowfullscreen></iframe></div>";
define('_XOOPS_FORM_ALT_ENTERHEIGHT','(Video 16:9 or 4:3) input Height 9 or 3 :');
define('_XOOPS_FORM_ALT_ENTERWIDTH','(Video 16:9 or 4:3) input Width 16 or 4 :');