2061
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: 595

  • 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



2062
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.



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

  • heyula

  • Theme Designer

  • Posts: 595

  • Since: 2008/4/24


thanks for sharing.



2064
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



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

  • goffy

  • Just can't stay away

  • Posts: 542

  • 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



2066
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 = [];



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

  • goffy

  • Just can't stay away

  • Posts: 542

  • 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?



2068
Mamba
Re: newbb on xoops.org
  • 2019/6/24 11:10

  • Mamba

  • Moderator

  • Posts: 11391

  • Since: 2004/4/23


NewBB 5.0 and XOOPS 2.5.10
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



2069
goffy
newbb on xoops.org
  • 2019/6/24 9:40

  • goffy

  • Just can't stay away

  • Posts: 542

  • Since: 2010/12/27


Hi

which version of newbb is used on xoops.org?

with latest version from https://github.com/XoopsModules25x/newbb I get an error when I want to have the list with recent topics (like it is possible on xoops.org)
Quote:
Error: Cannot use string offset as an array in Datei /modules/newbb/class/TopicRenderer.php Zeile 745


I use:
Xoops 2.5.10
Latest Version of NewBB from github



2070
Mamba
Re: YAXS: indir.top
  • 2019/6/22 17:36

  • Mamba

  • Moderator

  • Posts: 11391

  • Since: 2004/4/23


Great design!!!!

Thank you for sharing!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs




TopTop
« 1 ... 204 205 206 (207) 208 209 210 ... 29430 »



Login

Who's Online

553 user(s) are online (124 user(s) are browsing Support Forums)


Members: 0


Guests: 553


more...

Donat-O-Meter

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

Latest GitHub Commits