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

  • Mamba

  • Moderator

  • Posts: 11442

  • 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



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

  • Mamba

  • Moderator

  • Posts: 11442

  • 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



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

  • liomj

  • Just popping in

  • Posts: 95

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



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

  • Mamba

  • Moderator

  • Posts: 11442

  • 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



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

  • Mamba

  • Moderator

  • Posts: 11442

  • 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



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

  • Mamba

  • Moderator

  • Posts: 11442

  • 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



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

  • heyula

  • Theme Designer

  • Posts: 596

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



88
liomj
Re: Mymenus Module with XOOPS 2.5.11-Stable
  • 2024/11/1 23:05

  • liomj

  • Just popping in

  • Posts: 95

  • Since: 2012/4/10


Quote:

Mamba wrote:
It seems like you might miss local translations, because both:

_MI_MYMENUS_HELP_OVERVIEW
_MI_MYMENUS_ADMMENU0

are defined in the language file: https://github.com/mambax7/mymenus/blob/master/language/english/modinfo.php

I'll look later at the block problem


Yes sorry, i fixed my local translation, all is working now, the block saving is working fine

but i still cant use the assign to template feature, right now only the display in block is working

i will made further testing. Thank you Mamba



89
Mamba
Re: Mymenus Module with XOOPS 2.5.11-Stable
  • 2024/11/1 10:00

  • Mamba

  • Moderator

  • Posts: 11442

  • Since: 2004/4/23


It seems like you might miss local translations, because both:

_MI_MYMENUS_HELP_OVERVIEW
_MI_MYMENUS_ADMMENU0

are defined in the language file: https://github.com/mambax7/mymenus/blob/master/language/english/modinfo.php

I'll look later at the block problem
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs



90
liomj
Re: Mymenus Module with XOOPS 2.5.11-Stable
  • 2024/11/1 5:21

  • liomj

  • Just popping in

  • Posts: 95

  • Since: 2012/4/10


Quote:

Mamba wrote:
Please check out the Beta 6 and see if it works better.


i made some testing with beta6

Error: Error: Undefined constant "_MI_MYMENUS_HELP_OVERVIEW" in file /modules/mymenus/xoops_version.php line 84
and multiple error in undefined constant in line 84-89 135-136, in xoops_version.php

and Error: Error: Undefined constant "_MI_MYMENUS_ADMMENU0" in file /modules/mymenus/admin/menu.php line 44

i uncomment it temporarily and now mymenu is loading and i can access the module admin interface but found another error i cant save the changes in mymenus block.. i would like to try the assign to template feature

Warning: Undefined array key 4 in file /modules/mymenus/blocks/mymenus_block.php line 237

my environment
XOOPS Version XOOPS 2.5.11-Stable
PHP Version 8.2.12
MySQL Version 10.4.32-MariaDB




TopTop
« 1 ... 6 7 8 (9) 10 11 12 ... 29439 »



Login

Who's Online

188 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 188


more...

Donat-O-Meter

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

Latest GitHub Commits