xoops forums

Forum Index


Board index » All Posts




Yurdal

Friend of XOOPS
Posted on: 6/29 19:29
Yurdal
Yurdal (Show more)
Friend of XOOPS
Posts: 367
Since: 2005/3/27
#1

Re: Publisher SliderProblem

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


heyula

Theme Designer
Posted on: 6/28 10:57
heyula
heyula (Show more)
Theme Designer
Posts: 486
Since: 2008/4/24
#2

Re: Publisher SliderProblem

Hi iHackCode

yes this code worked very thanks


iHackCode

Module Developer
Posted on: 6/28 4:15
iHackCode
iHackCode (Show more)
Module Developer
Posts: 1037
Since: 2004/6/29
#3

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}>
<!-- 
Slider -->
    <
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>
    <!-- 
End Slider -->


Mamba

Moderator
Posted on: 6/25 18:15
Mamba
Mamba (Show more)
Moderator
Posts: 10944
Since: 2004/4/23
#4

Re: Service Module

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


Cesagonchu

Moderator
Posted on: 6/25 18:14
Cesagonchu
Cesagonchu (Show more)
Moderator
Posts: 877
Since: 2010/2/1 2
#5

Re: Service Module

Good initiative! Thank you for sharing


heyula

Theme Designer
Posted on: 6/25 12:28
heyula
heyula (Show more)
Theme Designer
Posts: 486
Since: 2008/4/24
#6

Service Module

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


goffy

Just can't stay away
Posted on: 6/24 14:23
goffy
goffy (Show more)
Just can't stay away
Posts: 414
Since: 2010/12/27
#7

Re: XOOPS ModuleBuilder 3.03 Alpha-2 Released for Testing

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"


heyula

Theme Designer
Posted on: 6/24 13:00
heyula
heyula (Show more)
Theme Designer
Posts: 486
Since: 2008/4/24
#8

Re: XOOPS ModuleBuilder 3.03 Alpha-2 Released for Testing

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)


Lupin

Just popping in
Posted on: 6/24 8:10
Lupin
Lupin (Show more)
Just popping in
Posts: 92
Since: 2007/6/1 2
#9

Re: wgTransifex for Translations of XOOPS Modules

Agreed !


alain01

Quite a regular
Posted on: 6/21 16:32
alain01
alain01 (Show more)
Quite a regular
Posts: 388
Since: 2003/6/20
#10

Re: wgTransifex for Translations of XOOPS Modules

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) 2 3 4 ... 29303 »