121
Mamba
Re: cancel button
  • 2024/11/13 3:05

  • Mamba

  • Moderator

  • Posts: 11455

  • Since: 2004/4/23


A better solution seems to be to use
button type="button"
like this:
<button type="button" class="btn btn-danger me-1" name="cancel" id="cancel" onClick="history.go(-1);return true;">' . _CANCEL . 'button>
- Clarity: Each button's purpose is explicitly defined by its type attribute (submit, reset, button), making the form's behavior clear at a glance. - Uniformity: Using the same element type for all buttons enhances uniformity, making styling and scripting more predictable. - Ease of Updates: If you decide to add features like tooltips, loading indicators, or other interactive elements, "button" elements offer more flexibility. - "button" elements are also more flexible for styling
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs



122
Runeher2
Paid membership/subscription module
  • 2024/11/11 15:50

  • Runeher2

  • Just popping in

  • Posts: 17

  • Since: 2020/2/1 1


Is there a module for paid membership/subscription? I know Wishcraft had something going some years ago, but it's all gone now.



123
goffy
cancel button
  • 2024/11/11 11:21

  • goffy

  • Just can't stay away

  • Posts: 547

  • Since: 2010/12/27


hi

it seems that there is a problem with cancel button in bootstrap5
currently we are using
button class="btn btn-danger me-1" onClick="history.go(-1);return true;"  _CANCEL . /button

but this cause that it is treated like clicking on confirm button, as the submit event takes place

my solution is to replace by
input type="button" class="btn btn-danger me-1" name="cancel" id="cancel" onClick="history.go(-1);return true;" value=". _CANCEL . "


I created a PR https://github.com/XOOPS/XoopsCore25/pull/1481

or is there a better solution?



124
Mamba
XOOPS MyMenus 1.54.0 Beta 7
  • 2024/11/11 5:29

  • Mamba

  • Moderator

  • Posts: 11455

  • Since: 2004/4/23


MyMenus 1.54 Beta 7 released for testing.

We'll need some help from designers to do some magic with the skins.
Some of the skins seem to be outdated, so we need a refresh:

a) fix those skins that are fixable
b) remove the skins that are totally outdated
c) add couple of new and attractive skins

Who could help us with it?
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs



125
Mamba
Re: Mymenus Module with XOOPS 2.5.11-Stable
  • 2024/11/9 21:06

  • Mamba

  • Moderator

  • Posts: 11455

  • Since: 2004/4/23


I just uploaded 1.54 Beta 7

Pease check if it works for you

Also, could you do some magic with the skins?

Some of the skins seem to be outdated, so we need a refresh:
a) fix those skins that are fixable
b) remove the skins that are totally outdated
c) add couple of new and attractive skins

Could you help with it?
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs



126
liomj
Re: Mymenus Module with XOOPS 2.5.11-Stable
  • 2024/11/7 0:05

  • liomj

  • Just popping in

  • Posts: 96

  • Since: 2012/4/10


in my last post the block saving working fine it was related to my local language

right now in blocks the menu is not displaying using the assign to template display method
as example if my unique id is themenu

<{if $xoops_menu_themenu|default:false}>
                <{
$xoops_menu_themenu}>
            <{/if}>



127
Mamba
Re: Mymenus Module with XOOPS 2.5.11-Stable
  • 2024/11/4 12:03

  • Mamba

  • Moderator

  • Posts: 11455

  • Since: 2004/4/23


I tested it again, but I didn't have problems with saving the block options.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs



128
Mamba
Re: Mymenus Module with XOOPS 2.5.11-Stable
  • 2024/11/3 9:35

  • Mamba

  • Moderator

  • Posts: 11455

  • Since: 2004/4/23


Thank for the update regarding the language issues.

Regarding the block saving, can you share an example what you want to do, so I can try to replicate it here on my computer?
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs



129
Mamba
Re: PodTalk Theme (PUBLISHER)
  • 2024/11/3 9:27

  • Mamba

  • Moderator

  • Posts: 11455

  • Since: 2004/4/23


Awesome work, thank you so much for making our themes better and better!

I can't wait for the full new theme to test it out!
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs



130
heyula
PodTalk Theme (PUBLISHER)
  • 2024/11/2 12:20

  • heyula

  • Theme Designer

  • Posts: 599

  • Since: 2008/4/24


"Recently, thanks to an idea Michael came up with for the Publisher module, creating independent blocks has become much easier, and I wanted to test it with a nice theme. Very soon, I will release the PodTalk theme compatible with Publisher."

Resized Image


Demo: https://erenyumak.com/ato/

Code added by Michael to theme_autorun.php


/** @var XoopsTpl */
global $xoopsTpl;
if (!empty(
$xoopsTpl)) {
    
$xoopsTpl->addConfigDir(__DIR__);
}

require 
dirname(__DIR__,2) . '/modules/publisher/preloads/autoloader.php';

use 
XoopsModulesPublisher{
    
Constants,
    
Helper,
    
Item
};

// Initialize helper and text sanitizer
$myts MyTextSanitizer::getInstance();

/**
 * Function to fetch items
 */
function getPublisherItems($limit$sort 'RAND()'$order '')
{
    
$helper Helper::getInstance();
    
$itemsObj $helper->getHandler('Item')->getItems(
        
$limit,
        
$start 0,
        [
Constants::PUBLISHER_STATUS_PUBLISHED],
        -
1,
        
$sort,
        
$order,
        
'',
        
true,
        
$criteria null
    
);

    
$items = [];
    if (
$itemsObj) {
        foreach (
$itemsObj as $itemObj) {
            
$newItem = [
                
'itemid'   => $itemObj->itemid(),
                
'title'    => $itemObj->title(),
                
'body'     => $itemObj->body(),
                
'votes'    => $itemObj->votes(),
                
'counter'  => $itemObj->counter(),
                
'comments' => $itemObj->comments(),
                
'image'    => XOOPS_URL '/uploads/blank.gif',
            ];

            
$images $itemObj->getImages();
            if (isset(
$images['main']) && is_object($images['main'])) {
                
$newItem['image'] = XOOPS_URL '/uploads/' $images['main']->getVar('image_name');
            }

            
$items[] = $newItem;
        }
    }
    return 
$items;
}

// Fetch and assign items for each template
$xoopsTpl->assign('breakingItems'getPublisherItems(4));
$xoopsTpl->assign('featuredItems'getPublisherItems(3));
$xoopsTpl->assign('fourLastedRandomItems'getPublisherItems(4));
$xoopsTpl->assign('itemBreakingItems'getPublisherItems(10));
$xoopsTpl->assign('lastedRandomItems'getPublisherItems(4));
$xoopsTpl->assign('newsItems'getPublisherItems(4));
$xoopsTpl->assign('oneLastedRandomItem'getPublisherItems(1));
$xoopsTpl->assign('rightLastedRandomItems'getPublisherItems(8));
$xoopsTpl->assign('sliderItems'getPublisherItems(9));

// Assign XOOPS URL
$xoopsTpl->assign('xoops_url'XOOPS_URL);


Example block usage

<{foreach item=item from=$sliderItems}>    
    <
div class="owl-carousel-info-wrap item">
        <
img src="<{$item.image}>"
            
class="owl-carousel-image img-fluid" alt="<{$item.title}>">

        <
div class="owl-carousel-info">
            <
h4 class="mb-2">
                <
a href="<{$xoops_url}>/modules/publisher/item.php?itemid=<{$item.itemid}>">
                    <{
$item.title|truncate:15}>
                a>            
                <
img src="<{xoImgUrl}>images/verified.png" class="owl-carousel-verified-image img-fluid" alt="<{$item.title}>">
            h4>

            <
span class="badge">Reads: <{$item.counter}>span>

            <
span class="badge">Votes: <{$item.votes}>span>
        div>
    div>
<{/foreach}>




TopTop
« 1 ... 10 11 12 (13) 14 15 16 ... 29443 »



Login

Who's Online

155 user(s) are online (80 user(s) are browsing Support Forums)


Members: 0


Guests: 155


more...

Donat-O-Meter

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

Latest GitHub Commits