2021
goffy
Re: Publisher SliderProblem
  • 2019/6/20 11:56

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi

btw you should try to split php and html code - create a tpl-file and assign with smarty vars is the better way



2022
goffy
Re: Publisher SliderProblem
  • 2019/6/20 11:48

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi

1) I do not know which file you mean? want do you want to achieve?
2) did you try the code? try and error is the best teacher I learned php also myself most with try and error but ofcourse I am always willy to help

kind regards
goffy



2023
heyula
Publisher SliderProblem
  • 2019/6/19 16:36

  • heyula

  • Theme Designer

  • Posts: 594

  • Since: 2008/4/24


Working on older versions of the publisher


<{php}>

include_once 
XOOPS_ROOT_PATH '/modules/publisher/include/common.php';

$publisher =& PublisherPublisher::getInstance();

$myts =& MyTextSanitizer::getInstance();

$itemsObj $publisher->getHandler('item')->getItems($limit 10$start 0, array(_PUBLISHER_STATUS_PUBLISHED), -1$sort 'datesub'$order='DESC'''true$criteria nulltrue);

$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>

    




Can we run this code for the current publisher



2024
Mamba
Re: eCommerce Oledrion MyShop 2.35 RC1 for PHP 7.3.5
  • 2019/6/18 8:36

  • Mamba

  • Moderator

  • Posts: 11377

  • Since: 2004/4/23


Quote:
Hi Mamba glad you found the options :0

Well, these are the problems when you're trying to maintain a module that you didn't develop. There are sometimes features that you were not aware of, so it's always helpful to provide screenshot of "before" and "after" pointing to the difference.

The less time I spend on trying to figure out what the issue is, the more time I can spend on fixing the problem itself

Remember that I'm doing it in my free time, i.e. there are limited number of hours that I have spend on it, so I need to be very efficient and avoid unnecessary things ...

I'll look into the new issues that you have posted...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



2025
Yurdal
Re: eCommerce Oledrion MyShop 2.35 RC1 for PHP 7.3.5
  • 2019/6/17 18:35

  • Yurdal

  • Friend of XOOPS

  • Posts: 386

  • Since: 2005/3/27


Hi Mamba glad you found the options :0

I have download and installed the new version and now i see the options and made a small test:

Tried with a new installed without sample data:
Cant add more then 2 options end its not possible to change the title of the options:
options 1 Array
options 2 : replace me
dont matter what i do titles keep the default



2026
Mamba
Re: eCommerce Oledrion MyShop 2.35 RC1 for PHP 7.3.5
  • 2019/6/16 23:22

  • Mamba

  • Moderator

  • Posts: 11377

  • Since: 2004/4/23


I finally got to it.

Next time, it would be helpful to attach a screenshot of the differences, because I couldn't figure out what you meant with the options.
I had to find the old version, install it, to finally see the difference

There are still some issues with cache, and and some weird behavior with moving the options up and down, but at least I know now what we're looking at.

You can test it from here: https://github.com/mambax7/oledrion
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



2027
Mamba
Re: New Download Theme
  • 2019/6/15 6:56

  • Mamba

  • Moderator

  • Posts: 11377

  • Since: 2004/4/23


Great theme! Congratulations!

When and where could we download it?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



2028
heyula
New Download Theme
  • 2019/6/14 13:55

  • heyula

  • Theme Designer

  • Posts: 594

  • Since: 2008/4/24


Hi guys;

I made a new download theme.
Bootstrap 4.3

Home:
Resized Image


Content:
Resized Image


Category:
Resized Image


Demo:
https://demo.erenyumak.com/



2029
Zap_English
Re: Rotating Images

I decided to just use a gif



2030
Mamba
MastopGo2 1.10 Beta 2 (XOOPS 2.5.10, PHP 5.6 - 7.3.6)
  • 2019/6/9 12:04

  • Mamba

  • Moderator

  • Posts: 11377

  • Since: 2004/4/23


Resized Image
Updated version of MastopGo2 module is available for testing
https://github.com/mambax7/mastopgo2

Originally developed by Fernando Santos fromBrazil - see the original description: http://www.mastop.com.br/conteudo/open-source/mastop-go2-english.mstp

New in this version: namespaces, autoloading, testdata, compatibility with PHP 7.3.6 and XOOPS 2.5.10!

MastopGo2 is a new concept in Spotlights Management for XOOPS sites, following the standards of OO development, facilitating the inclusion of new resources. Even being simple, Mastop Go2 module came to meet the basic needs for any Xoops site: Let the site more beautiful and speed up the publication of any information, may it be written or graphical.

Features/Benefits:

- Creation and edition of sections and spotlights in a professional way
- Free
- Open source
- Easy to use
- Unlimited blocks
- Many configuration options for blocks
- You can put yours Spotlights anywhere
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs




TopTop
« 1 ... 200 201 202 (203) 204 205 206 ... 29425 »



Login

Who's Online

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


Members: 0


Guests: 155


more...

Donat-O-Meter

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

Latest GitHub Commits