1241
Yurdal
Re: Publisher SliderProblem
  • 2020/6/29 19:29

  • Yurdal

  • Friend of XOOPS

  • Posts: 386

  • Since: 2005/3/27


Hi Eren, what is the filename you are altering ?
Please share with us , maybe it become handy for future use



1242
heyula
Re: Publisher SliderProblem
  • 2020/6/28 10:57

  • heyula

  • Theme Designer

  • Posts: 594

  • Since: 2008/4/24


Hi iHackCode

yes this code worked very thanks



1243
iHackCode
Re: Publisher SliderProblem

Try this.

<{php}>
use 
XoopsModules\Publisher;
use 
XoopsModules\Publisher\Constants;

$helper Publisher\Helper::getInstance();
$myts =& MyTextSanitizer::getInstance();
$itemsObj $helper->getHandler('Item')->getItems($limit 10$start 0, [Constants::PUBLISHER_STATUS_PUBLISHED], -1$sort 'datesub'$order='DESC'''true$criteria null);
$totalItems count($itemsObj);

global 
$items;
$items = array();
if (
$itemsObj) {
    for ( 
$i 0$i $totalItems$i++ ) {
        
$newItems['itemid']       = $itemsObj[$i]->itemid();
        
$newItems['title']        = $itemsObj[$i]->title();
        
$newItems['body']         = $itemsObj[$i]->body();
        
$newItems['votes']        = $itemsObj[$i]->votes();
        
$newItems['image']        = XOOPS_URL '/uploads/blank.gif';
        
$images $itemsObj[$i]->getImages();
        if (
is_object($images['main'])) {
            
$newItems['image'] = XOOPS_URL '/uploads/' $images['main']->getVar('image_name');
        }
    
$items[] = $newItems;
    }
}
<{/
php}>

    <
div id="slider">
        <
a href="#" id="prev" class="notext">a>
        <
a href="#" id="next" class="notext">a>
        
        <
div id="slider-content">
            <
ul>
            <{
php}>
        foreach ( 
$GLOBALS['items'] as $myrow )
        {
            
$GLOBALS['xoopsTpl']->assign('itemid'$myrow['itemid']);
            
$GLOBALS['xoopsTpl']->assign('title'$myrow['title']);
            
$GLOBALS['xoopsTpl']->assign('body'$myrow['body']);
            
$GLOBALS['xoopsTpl']->assign('votes'$myrow['votes']);
            
$GLOBALS['xoopsTpl']->assign('image'$myrow['image']);
        <{/
php}>
            <
li>
                <
div class="left-side">
                    <
a href="<{$xoops_url}>/modules/publisher/item.php?itemid=<{$itemid}>"><img src="<{$image}>" alt="<{$title}>" width="400px" height="200px"/>a>
                div>
                
                <
div class="right-side" >
                    <
h1><a  href="<{$xoops_url}>/modules/publisher/item.php?itemid=<{$itemid}>" title="<{$title}>"><{$title}>h1>
                    <
p><{$body|truncate:220}>p>
                    
                    <
class="readmore"><a style="color:#ff0000" href="<{$xoops_url}>/modules/publisher/item.php?itemid=<{$itemid}>">ÊÊãÉ &raquo;a>p>
                div>
                
                <
div class="cl">&nbsp;div>
            li>
        <{
php}>
        }
        <{/
php}> 
            ul>
        div>
    div>
    



1244
Mamba
Re: Service Module
  • 2020/6/25 18:15

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


That looks AWESOME!!!!

Thank you so much for creating it and sharing with us!!!

Can't wait to install and to test it!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



1245
Cesagonchu
Re: Service Module

Good initiative! Thank you for sharing



1246
heyula
Service Module
  • 2020/6/25 12:28

  • heyula

  • Theme Designer

  • Posts: 594

  • Since: 2008/4/24


Hi
Service module created with ModuleBuilder:
Modul Name: Service
Info: Our Service Area
Logo:
Resized Image

ModuleBuilder thanks a lot for
Mamba(Xoops), Timgno(Txmod Xoops), Goffy(German Xoops)

Sample Pictures
Resized Image

Resized Image

Resized Image


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

Download:
https://erenyumak.com/modules/TDMDownloads/singlefile.php?lid=11



1247
goffy
Re: XOOPS ModuleBuilder 3.03 Alpha-2 Released for Testing
  • 2020/6/24 14:23

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi

i found another bug in block creation, but this could not produce your error.

please download last version from github and try again.

please run "Run data check for errors/inconsistencies before building the module" on building tab before in order to see whether there are problems in your "settings"



1248
heyula
Re: XOOPS ModuleBuilder 3.03 Alpha-2 Released for Testing
  • 2020/6/24 13:00

  • heyula

  • Theme Designer

  • Posts: 594

  • Since: 2008/4/24


Hi goffy;
I tested the new version.
It works very well.
The only problem blocks are not working.

Error:
Error : ParseError: syntax error, unexpected '$options' (T_VARIABLE), expecting identifier (T_STRING)



1249
Lupin
Re: wgTransifex for Translations of XOOPS Modules
  • 2020/6/24 8:10

  • Lupin

  • Just popping in

  • Posts: 92

  • Since: 2007/6/1 2


Agreed !



1250
alain01
Re: wgTransifex for Translations of XOOPS Modules
  • 2020/6/21 16:32

  • alain01

  • Just can't stay away

  • Posts: 530

  • Since: 2003/6/20


Goffy ?
How to say ?
Thank you for this great initiative and this brilliant idea!

Sorry for not being longer in my message,
I rush to test it!

Well done !!!




TopTop
« 1 ... 122 123 124 (125) 126 127 128 ... 29425 »



Login

Who's Online

508 user(s) are online (367 user(s) are browsing Support Forums)


Members: 0


Guests: 508


more...

Donat-O-Meter

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

Latest GitHub Commits