1
OzgurOz
slider via publisher module
  • 2011/5/6 9:09

  • OzgurOz

  • Just popping in

  • Posts: 70

  • Since: 2010/6/20


Hi ;

There are many sliders example , on the web.
Some of them really attractive.

I want to use it but I cant join slider with publisher modüle..

You know generally there are 3 steps to use this slider..

* jQuery
* Slider script
* Slider CSS

http://nivo.dev7studios.com/

Nivo slider have drupal module , joomla module but unfortunatelly no have a xoops module.

Is there a way to use it with xoops combine a different modules?

not :sorry for my bad english

2
Mamba
Re: slider via publisher module
  • 2011/5/6 10:24

  • Mamba

  • Moderator

  • Posts: 11381

  • Since: 2004/4/23


You probably have to modify the appropriate template in Publisher to show the slides.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
OzgurOz
Re: slider via publisher module
  • 2011/5/6 10:44

  • OzgurOz

  • Just popping in

  • Posts: 70

  • Since: 2010/6/20


I know , I have to modify the appropriate template in Publisher to show the slides.But unfotunatelly I'm a noob about coding

I hope that maybe I can take some little tricks about coding.But it's not easy as I see.

thanks for your interest Mamba.

Maybe in the future , they do something for xoops users :)

4
Mamba
Re: slider via publisher module
  • 2011/5/6 10:52

  • Mamba

  • Moderator

  • Posts: 11381

  • Since: 2004/4/23


You can also try the Slideshow module and use it in a block that would show only when using Publisher.

And maybe somebody can add the Slider to the Slideshow.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

5
reWARder
Re: slider via publisher module
  • 2014/9/26 10:21

  • reWARder

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/5/28


Quote:

Mamba wrote:
You can also try the Slideshow module and use it in a block that would show only when using Publisher.

And maybe somebody can add the Slider to the Slideshow.


I just tried this and I noticed, that the slideshow blocks are not working with the Publisher module. The only module the slidewhow blocks are working with in my case is APCal. And it only works as an acutal slideshow if I set the following option to yes: Use module style, if it set to no you must add all styles and java in your theme : Yes

6
heyula
Headline News Publisher
  • 2014/9/26 11:35

  • heyula

  • Theme Designer

  • Posts: 595

  • Since: 2008/4/24


Resized Image


theme.html Code :
<link href="<{xoImgUrl css/mansetx.css}>" type="text/css" rel="stylesheet" />  
<
script type="text/javascript" src="<{xoImgUrl js/mansetx.js}>">script>
<
script type="text/javascript" src="<{xoImgUrl js/jquery-1.11.1.js}>">script>


theme.html add :

<{includeq file="$theme_name/slidetpublisher.html"}>



slidetpublisher.html code :

<{php}>
include_once 
XOOPS_ROOT_PATH '/modules/publisher/include/common.php';
$publisher =& PublisherPublisher::getInstance();
$myts =& MyTextSanitizer::getInstance();
$itemsObj $publisher->getHandler('item')->getItems($limit 6$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="mansetx">
            <{
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}>
        <
div id="mansetx-img">
            <
a href="<{$xoops_url}>/modules/publisher/item.php?itemid=<{$itemid}>"><img width="720" height="315" src="<{$image}>">a>
        div>
         <{
php}>
        }
<{/
php}> 
        <
div id="mansetx-selector">
            <
ul>
            ul>
        div>
div>


Demo :

http://estetikameliyatmerkezi.com/xoopson/

Hasta Yatakları

7
Bleekk
Re: slider via publisher module
  • 2014/9/27 8:27

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


Thanks for the work with sliders. Looks amazing

8
reWARder
Re: slider via publisher module
  • 2014/10/2 16:11

  • reWARder

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/5/28


Tomorrow I'll have a look if I can get it working the way you mentioned :) Thanks for the reply heyula!

9
reWARder
Re: Headline News Publisher
  • 2014/10/3 9:10

  • reWARder

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/5/28


Ok ... I'm lost ...

I guess this I need to add to the header of my theme.thml file, correct?

theme.html Code :
<link href="<{xoImgUrl css/mansetx.css}>" type="text/css" rel="stylesheet" />  
<
script type="text/javascript" src="<{xoImgUrl js/mansetx.js}>">script>
<
script type="text/javascript" src="<{xoImgUrl js/jquery-1.11.1.js}>">script>




Does this also go into the header of the theme.html file?

theme.html add :

<{includeq file="$theme_name/slidetpublisher.html"}>




This file I can't find. Am I supposed to create a php file with this code inside? If so, where do I save it?

slidetpublisher.html code :

<{php}>
include_once 
XOOPS_ROOT_PATH '/modules/publisher/include/common.php';
$publisher =& PublisherPublisher::getInstance();
$myts =& MyTextSanitizer::getInstance();
$itemsObj $publisher->getHandler('item')->getItems($limit 6$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="mansetx">
            <{
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}>
        <
div id="mansetx-img">
            <
a href="<{$xoops_url}>/modules/publisher/item.php?itemid=<{$itemid}>"><img width="720" height="315" src="<{$image}>">a>
        div>
         <{
php}>
        }
<{/
php}> 
        <
div id="mansetx-selector">
            <
ul>
            ul>
        div>
div>




Thanks for your help!

10
danielreple
Re: slider via publisher module

very useful!!!

Login

Who's Online

209 user(s) are online (78 user(s) are browsing Support Forums)


Members: 0


Guests: 209


more...

Donat-O-Meter

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

Latest GitHub Commits