2011
xd9527
can i newbb multi attachment file upload?
  • 2019/6/28 4:45

  • xd9527

  • Just popping in

  • Posts: 8

  • Since: 2016/1/13


newbb attachment file upload one at a time
how can I multi uploads ?
I remember old version can multi attachment files.

thanks.

xoops 2.5.9
module 
newbb 4.34 Final



2012
heyula
Re: Wfdownloads 3.30 Beta-1 for XOOPS 2.5.9 and PHP 5.6+
  • 2019/6/27 5:01

  • heyula

  • Theme Designer

  • Posts: 594

  • Since: 2008/4/24


@Zyspec
Thanks.



2013
zyspec
Re: Wfdownloads 3.30 Beta-1 for XOOPS 2.5.9 and PHP 5.6+
  • 2019/6/26 22:09

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


looks like this forum "ate" the '\' in the previous post...

replace line 5:
$utility = new XoopsModulesWfdownloadsUtility();

with:
$utility = new XoopsModules\Wfdownloads\Utility();



2014
heyula
Re: Wfdownloads 3.30 Beta-1 for XOOPS 2.5.9 and PHP 5.6+
  • 2019/6/26 17:35

  • heyula

  • Theme Designer

  • Posts: 594

  • Since: 2008/4/24


Quote:

zyspec wrote:
Unfortunately it looks like Mamba forgot to rewrite part of the install function in the ./include/oninstall.php file. You might try replacing lines 41-64 (the xoops_module_pre_install_wfdownloads function) with:
function xoops_module_pre_install_wfdownloads(XoopsModule $module)
{
    include 
__DIR__ '/common.php';
    
/** @var XoopsModulesWfdownloadsUtility $utility */
    
$utility = new XoopsModulesWfdownloadsUtility();
    
//check for minimum XOOPS version
    
$xoopsSuccess $utility::checkVerXoops($module);
    
// check for minimum PHP version
    
$phpSuccess   $utility::checkVerPhp($module);
    if (
false !== $xoopsSuccess && false !==  $phpSuccess) {
        
$moduleTables =& $module->getInfo('tables');
        foreach (
$moduleTables as $table) {
            
$GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS ' $GLOBALS['xoopsDB']->prefix($table) . ';');
        }
    }
    return 
$xoopsSuccess && $phpSuccess;
}


That should at least get you past the pre-install check for PHP and XOOPs versions.

I get an error in setup
Error: Class 'WfdownloadsUtility' not found



2015
zyspec
Re: newbb on xoops.org
  • 2019/6/26 16:58

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Ok - I'd recommend you turn on debug and look at the MySQL queries in debug to see if that leads you in the right direction.

The other thing to try is to look a the value of $types in the Smarty template debug information.

Hopefully one of these will lead you in the right direction. I don't use newbb on any of my sites (including my debug site) right now so I found the bug above by code inspection. There's probably something else that assumes $status is a string... looks like allowing "multiple" types was added somewhere along the way and by irmtfan after initial development.



2016
heyula
Re: hack newbb rate & quickreply to facebook style
  • 2019/6/26 16:09

  • heyula

  • Theme Designer

  • Posts: 594

  • Since: 2008/4/24


thanks for sharing.



2017
xd9527
hack newbb rate & quickreply to facebook UI style
  • 2019/6/26 16:05

  • xd9527

  • Just popping in

  • Posts: 8

  • Since: 2016/1/13


Resized Image

newbb topic rate is less useful features
I think it is a problem with the UI
so i try hack it to facebook style

result
Resized Image

Quote:
xoops : 2.5.9
module : newbb 4.34 Final
template : newbb_viewtopic.tpl
css framework: Bootstrap3
icon : Font Awesome 4.7.0




<{if $viewer_level gt 0}>


<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';"><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';"><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';"><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';"><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';"><class="fa fa-thumbs-o-down fa-2x" aria-hidden="true">i><br><{$smarty.const._MD_RATE1}>button>
div>
div>
div>


<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">&times;span>button>
<{
$quickreply.form}>
div>
div>
div>


<div class="navbar-fixed-bottom container" id="postnav" style="bottom:12px;">


<{if $rating_enable}>
<
class="btn btn-default btn-lg" style="box-shadow: 0 0 15px 0 grey" data-toggle="modal" data-target="#replyrate"><class="fa fa-thumbs-o-up" aria-hidden="true">i><{$smarty.const.THEME_LIKE}>a>&nbsp;
<{/if}>


<{if $quickreply.show}>
<
class="btn btn-default btn-lg" style="box-shadow: 0 0 15px 0 grey" data-toggle="modal" data-target="#replyquick"><class="fa fa-comment-o" aria-hidden="true">i><{$smarty.const.THEME_FORUM_REPLY}>a>&nbsp;
<{/if}>

​​​​​​​
<style>.btn-bottom {positionabsolute;bottom:48px;z-index:9999;} style>


<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}>


done.

my blog https://3q.9527.tw/125



2018
goffy
Re: newbb on xoops.org
  • 2019/6/24 18:43

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi zyspec

I have already seen this. if I change as suggested I get Quote:
Fatal error: Maximum execution time of 120 seconds exceeded in C:\Homepages\wamp\www\myxoops\html\class\database\mysqldatabase.php on line 277


I try to find out the problem



2019
zyspec
Re: newbb on xoops.org
  • 2019/6/24 16:18

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


@goffy,

It looks to me like there's a minor bug in the logic. $status is defined as a string variable, but later it is accessed as an array.

The code in ./class/TopicRenderer.php (line 730) is:
$status '';


Should be changed to:
$status = [];



2020
goffy
Re: newbb on xoops.org
  • 2019/6/24 12:12

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


so we use the same :-| but I get an error

I tried with php 7.2 and 7.3

any idea?




TopTop
« 1 ... 199 200 201 (202) 203 204 205 ... 29425 »



Login

Who's Online

519 user(s) are online (362 user(s) are browsing Support Forums)


Members: 0


Guests: 519


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits