191
Mamba
Re: sbadmin5 - Bootstrap 5 Theme
  • 2024/9/29 6:59

  • Mamba

  • Moderator

  • Posts: 11468

  • Since: 2004/4/23


Cool! Thank you!!
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs



192
goffy
Re: sbadmin5 - Bootstrap 5 Theme
  • 2024/9/27 8:00

  • goffy

  • Just can't stay away

  • Posts: 548

  • Since: 2010/12/27


the tutorial you can find in the readme



193
Mamba
Re: sbadmin5 - Bootstrap 5 Theme
  • 2024/9/26 0:57

  • Mamba

  • Moderator

  • Posts: 11468

  • Since: 2004/4/23


That's awesome!!!

Were you able to solve the issue with the menu block?

If yes, could you write a tutorial about it?
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs



194
goffy
sbadmin5 - Bootstrap 5 Theme
  • 2024/9/25 18:15

  • goffy

  • Just can't stay away

  • Posts: 548

  • Since: 2010/12/27


As I need a modern dashboard theme for my wgSimpleAcc and wgFilemanager I started to work on SbAdmin5 which is based on Bootstrap 5, with minimal custom styling, suitable theme in building intranet, web apps and dashboards

Features
--------
- Closed Site Template (For Intranet Website)
- Support for XOOPS myMenus Module
- SCSS based theme with built in scripts for compiling Pug and CSS
- A flexbox based layout with fixed and static navigation options
- Toggleable sidebar menu with intuitive toggled states
- Custom panel styling
- Customizable main menu

A detailed description you can find here: https://github.com/XoopsThemes/sbadmin5/blob/master/README.md

Currently I work on implementing my modules. If you want to have a specific other module in this theme then please create an issue on: https://github.com/XoopsThemes/sbadmin5/issues

Download: https://github.com/XoopsThemes/sbadmin5

Don't hesitate to fork and/or contribute in improving this theme



195
Mamba
Re: XoopsFaq for 2.5.10
  • 2024/9/18 18:21

  • Mamba

  • Moderator

  • Posts: 11468

  • Since: 2004/4/23


Can you give us more info about the bug? What kind of error are you getting and what exactly does it say?

Once I have the info I'll look into it.

You might also try the SmartFAQ module
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs



196
Skype-Fr
XoopsFaq for 2.5.10
  • 2024/9/16 16:22

  • Skype-Fr

  • Just popping in

  • Posts: 37

  • Since: 2006/4/27


Hi all,

I'm looking for a module FAQ full-compatible for Xoops 2.5.10 (& Php 7.33)
I've tried Xoopsfaq-master 2.1.0 beta but there's a bug during module installation !

Gerard



197
goffy
Re: activate block by default
  • 2024/9/3 16:09

  • goffy

  • Just can't stay away

  • Posts: 548

  • Since: 2010/12/27


hi, thank you I will test it and report back the solution :)



198
goffy
Re: wgFilemanager released for testing and contribution
  • 2024/8/30 7:29

  • goffy

  • Just can't stay away

  • Posts: 548

  • Since: 2010/12/27


hi, thank you, should be fixed meanwhile



199
liomj
Re: wgFilemanager released for testing and contribution
  • 2024/8/27 0:03

  • liomj

  • Just popping in

  • Posts: 96

  • Since: 2012/4/10


thank you for a new module for XOOPS

i got this error in modules/system/admin.php?fct=modulesadmin&op=installlist

Error: Error: Undefined constant '_MI_WGFILEMANAGER_NAME' in file /modules/wgfilemanager/xoops_version.php line 34

XOOPS Version XOOPS 2.5.11-Stable
PHP Version 7.4.33
MySQL Version 5.5.5-10.4.27-MariaDB



200
liomj
Re: activate block by default
  • 2024/8/26 23:56

  • liomj

  • Just popping in

  • Posts: 96

  • Since: 2012/4/10


Hi i tried asking ChatGPT AI, I got this answer below. I didnt test it, not sure if it will work.

Yes, in XOOPS CMS, it is possible to have a block automatically activated upon installation of a module. This involves modifying the installation script of the module so that the block is registered and set as active during the installation process. Here's how you can do it:

Step-by-Step Guide
1. Locate the xoops_version.php file in your module:

This file contains the configuration details for your module, including block definitions.

2. Define the Block:

Ensure that your block is defined in the xoops_version.php file under the $modversion['blocks'] array. For example:

$modversion['blocks'][1] = [
    
'file'        => 'block_file.php',
    
'name'        => 'Block Name',
    
'description' => 'Block Description',
    
'show_func'   => 'show_block_function',
    
'template'    => 'block_template.tpl',
    
'edit_func'   => 'edit_block_function',
    
'options'     => 'option1|option2',
];


3. Modify the Installation Script:

Typically, the block is registered during the module installation process. To activate it by default, you can add code to set the block as active in the xoops_version.php file.

Add the following to the module's xoops_version.php file:

// Add the block automatically upon installation
$modversion['onInstall'] = 'module_install_function';

// Custom installation function in your module's include/oninstall.php
function module_install_function(&$module) {
    
$moduleHandler xoops_getHandler('module');
    
$moduleObj $moduleHandler->getByDirname('your_module_name');
    
$blockHandler xoops_getHandler('block');

    
// Loop through the blocks defined in xoops_version.php
    
$blocks $blockHandler->getByModule($moduleObj->getVar('mid'));

    foreach (
$blocks as $block) {
        
// Activate the block
        
$block->setVar('isactive'1);
        
$blockHandler->insert($block);
    }

    return 
true;
}


Replace 'your_module_name' with the actual directory name of your module.

4. Create oninstall.php File:

If not already present, create an oninstall.php file in the include directory of your module and define the module_install_function as shown above.

5. Test the Installation:

Install your module through the XOOPS administration panel and verify that the block is automatically activated upon installation.

Summary
By customizing the installation process, you can ensure that blocks are automatically activated when the module is installed. The key is to modify the xoops_version.php file and create a custom installation function that activates the block.




TopTop
« 1 ... 17 18 19 (20) 21 22 23 ... 29446 »



Login

Who's Online

291 user(s) are online (207 user(s) are browsing Support Forums)


Members: 0


Guests: 291


more...

Donat-O-Meter

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

Latest GitHub Commits