11
slider84
Re: Pagenav in block
  • 2014/6/14 21:57

  • slider84

  • Just popping in

  • Posts: 21

  • Since: 2013/8/16


Solved:
$xoopsModuleConfig['maxreg'] for $limit variable was greater than the number of records returned by my query



12
slider84
Pagenav in block
  • 2014/6/14 18:14

  • slider84

  • Just popping in

  • Posts: 21

  • Since: 2013/8/16


Hello,

Is there a special way to integrate a navigation page (pagenav) in a block?
I regularly integrates seamlessly but this is the first time I try to integrate it into a block and it does not work: The corresponding variable {$ smarty} pagenav is desperately empty (empty). Other smarty variable {$ limit} and {$ start} are good.
I turned my code in all directions with no results.

<?php

if (!defined('XOOPS_ROOT_PATH')) { exit(); }

function 
b_xxx_lastregister_show($options) {
include_once 
XOOPS_ROOT_PATH '/modules/xxx/class/main.php';
include_once 
XOOPS_ROOT_PATH '/class/pagenav.php';
global 
$xoopsDB;

$start = isset($_GET['start']) ? intval($_GET['start']) : 0;
$block = array();
$criteria='';
$modhandler = &xoops_gethandler('module');
$xoopsModule = &$modhandler->getByDirname("xxx");
$config_handler = &xoops_gethandler('config');
$xoopsModuleConfig = &$config_handler->getConfigsByCat(0,$xoopsModule->getVar('mid'));
$module_dirname $xoopsModule->getVar('dirname');
$xxx_main_handler = & xoops_gethandler('xxx_main');

// pagenav
$limit $xoopsModuleConfig['maxreg'];
$criteria=new Criteria('validate',1);   
$criteria->setLimit($limit);
$criteria->setStart($start);
$count $xdm_main_handler->getCount($criteria);
$query_entry 'limit=' $limit ;

// pagenav to template
$pagenav = new XoopsPageNav($count$limit$start'start'$query_entry );
$GLOBALS['xoopsTpl']->assign('pagenav', !empty($pagenav) ? $pagenav->renderNav() : '');
$GLOBALS['xoopsTpl']->assign('start'$start);
$GLOBALS['xoopsTpl']->assign('limit'$limit);

// code, code, and more code ...

return $block;
}
?>

I am on xoops 2.5.7 RC2 (for final tests)
Ubuntu 12.04 server-Apache 2.2.22-MySQL 5.5.31-Php 5.3.10



13
slider84
Re: spam registrations
  • 2014/6/4 20:05

  • slider84

  • Just popping in

  • Posts: 21

  • Since: 2013/8/16


Same problems than Cesag on differents browsers.
Try adding:
Quote:
if ($GLOBALS['xoopsModuleConfig']['profileCaptchaAfterStep1'] == 1 && $current_step > 1) {
xoops_load('XoopsCaptcha');
$xoopsCaptcha2 = XoopsCaptcha::getInstance();
if (!$xoopsCaptcha2->verify()) {
$stop .= $xoopsCaptcha2->getMessage();
}
}
in /profile/register.php on line 204, just after
Quote:
if ($current_step > 0 && empty($stop) && (!empty($steps[$current_step - 1]['step_save']) || !isset($steps[$current_step]))) {

I'm not sure that is the best solution but it seems to work.




14
slider84
Re: XOOPS 2.5.7 Beta 1 Released for Testing
  • 2014/3/16 15:50

  • slider84

  • Just popping in

  • Posts: 21

  • Since: 2013/8/16


On fresh install, icons of installed sections in Admin/System configuration are always show "disable" state by default.
To see it: Change state of a section then refresh page.
Apache 2.2.22-MySQL 5.5.31-Php 5.3.10



15
slider84
Re: WeBlog 1.47 Beta 1 available for testing on XOOPS 2.5.6
  • 2013/8/26 20:28

  • slider84

  • Just popping in

  • Posts: 21

  • Since: 2013/8/16


Quote:
I get some errors:
A - /modules/weblog/admin/catmanager.php

Replace line 29 with:
include_once(sprintf('%s/modules/%s/class/class.weblogtree.php'XOOPS_ROOT_PATH$xoopsModule->dirname()));

Solve the 3 warnings for me.



16
slider84
Re: Newbb 4.33 RC7 (irmtfan version) and Xoops 2.5.7 beta 1
  • 2013/8/24 9:23

  • slider84

  • Just popping in

  • Posts: 21

  • Since: 2013/8/16


Thank you for your answer Irmtfan.

The error is triggered by a call to the PHP function is_writable() in newbb_admin_getPathStatus() function (not used by others modules).
She return "false" on my system and then PHP thinks the directory is not writable...



17
slider84
Re: Newbb 4.33 RC7 (irmtfan version) and Xoops 2.5.7 beta 1
  • 2013/8/23 16:34

  • slider84

  • Just popping in

  • Posts: 21

  • Since: 2013/8/16


Quote:
Le dossier "/data/www/xxx/uploads/newbb/ Protégé en écriture Définir l'autorisation" n'existe pas
Le dossier "/data/www/xxx/uploads/newbb/" doit avoir les permissions CHMOD "755" - il possède actuellement : "755" ).
Le dossier "/data/www/xxx/uploads/newbb/thumbs/ Protégé en écriture Définir l'autorisation" n'existe pas
Le dossier "/data/www/xxx/uploads/newbb/thumbs/" doit avoir les permissions CHMOD "755" - il possède actuellement : "755" ).
This problem occurs when you create directories manualy on Unix/Linux system.
In this case, group and users rights are those of user or root
drwxr-xr-x 2 slider84 slider84 4096 août 21 23:03 newbb for user
or
drwxr-xr-x 2 root root 4096 août 21 23:03 newbb for root
Newbb need apache user and group rights (www-data in my case) to work fine.
drwxr-xr-x 2 www-data www-data 4096 août 21 23:02 newbb

Others modules who use standard moduleclass 1.1 fonction to check directories and rights on them don't have this limitation.

Please see post here



18
slider84
Re: Newbb 4.33 RC7 (irmtfan version) and Xoops 2.5.7 beta 1
  • 2013/8/17 9:29

  • slider84

  • Just popping in

  • Posts: 21

  • Since: 2013/8/16


Edit: Sorry not bugs but caches problem.

Two more bugs on fresh install:
One in main page in last forum post link and one in bottom of post.
Please see post with screenshots here



19
slider84
Re: Newbb 4.33 RC7 (irmtfan version) and Xoops 2.5.7 beta 1
  • 2013/8/16 22:19

  • slider84

  • Just popping in

  • Posts: 21

  • Since: 2013/8/16


Little bug on uploads directory check in admin pannel
Directories and CHMOD are ok on my server

Le dossier "/data/www/xxx/uploads/newbb/ Protégé en écriture Définir l'autorisation" n'existe pas
Le dossier "/data/www/xxx/uploads/newbb/" doit avoir les permissions CHMOD "755" - il possède actuellement : "755" ).
Le dossier "/data/www/xxx/uploads/newbb/thumbs/ Protégé en écriture Définir l'autorisation" n'existe pas
Le dossier "/data/www/xxx/uploads/newbb/thumbs/" doit avoir les permissions CHMOD "755" - il possède actuellement : "755" ).

This problem arrives as well on upgrade from previous version or a fresh install.

Version de XOOPS XOOPS 2.5.6
Version de PHP 5.4.9-4ubuntu2.2
Version de MySql 5.5.32-0ubuntu0.13.04.1
Serveur API apache2handler
Système d'exploitation Linux
safe_mode Off
register_globals Off
magic_quotes_gpc Off
allow_url_fopen On
fsockopen On
post_max_size 8M
max_input_time 60
output_buffering 4096
max_execution_time 30
memory_limit 128M
file_uploads On
upload_max_filesize 2M





TopTop
« 1 (2)



Login

Who's Online

220 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 220


more...

Donat-O-Meter

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

Latest GitHub Commits