Radiostationen
Internationale Suche
SBB|CFF|FFS

 Fahrplan

Datum:
Zeit:
 Abfahrt
 Ankunft
Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1

THEMA: Webslice Plugin by pcte.ch

Webslice Plugin by pcte.ch 2 Jahre, 10 Monate her #158

  • Marcel Wuersch
  • OFFLINE
  • Moderator
  • pctech Webservices
  • Beiträge: 124
  • Karma: 4
Sorry, my German is very very bad - I prefer to write in English. Im fan of your webslices component and blogged about it at hlrnet.com/technoblog/?p=2841 However: there is a problem. In the video youll see that I install the plugin and activate it. But the plugin breaks the layout of the interface. The site where I installed the plugin is gezondheids.org. You can see the before and after in the video. Kind regards Hans Le Roy
Man kann einen Menschen nichts lehren, man kann ihm nur helfen, es in sich selbst zu entdecken.. (Galileo Galilei)
Letzte Änderung: 2 Jahre, 7 Monate her von Marcel Wuersch.

Re:Webslice Plugin by pcte.ch 2 Jahre, 10 Monate her #159

  • Marcel Wuersch
  • OFFLINE
  • Moderator
  • pctech Webservices
  • Beiträge: 124
  • Karma: 4
Hello Hans
So this Plugin was a Pre Programming for the IE8 i did.
Make following Points sure:
The Plugin has to be on First Position from Plugins. Please reorder the Plugis in case it is not the first content Plugin in Row.

The Code of this Plugin is realy simple:
$mainframe->registerEvent( 'onBeforeDisplayContent', 'plgContentWebslice' );
$mainframe->registerEvent('onAfterDisplayContent' , 'plgContentWebslice_after');
    function plgContentWebslice( &$row, &$params, $page=0 )
    {
        $plugin = & JPluginHelper::getPlugin('content', 'webslice');
        
        // Load plugin params info from Plugin configuration in Joomla
        $pluginParams = new JParameter($plugin->params);
        $wslicesttlhorttlm = $pluginParams->def('wslicesttlhorttlm', 0);
        $wslicesttlh = $pluginParams->def('wslicesttlh', 1);
        $wslicesttlm = $pluginParams->def('wslicesttlm', 15);
        //params from Joomla Framework
        $uri = & JFactory::getURI();
        $id     = $row->id;
        $title     = $row->title;
        $publish_down = $row->publish_down;
        $state = $row->state;
        $created = $row->created;
        $modified = $row->modified;
        // handler for no enddate
        $wsispublish_down = $publish_down;

// output webslice        
        $html     = '';
        $html .= '<div class="clr"></div>';
        $html .= '<div id="jwebslicecontent_'. $id .'" class="hslice">';
// Choice in Backend if Updatefrequencies in Minutes or Hours
        if ($wslicesttlhorttlm == '0') {
        $html .= '<span class="ttl" style="font-size: 0px; display:none;">'.$wslicesttlm.'</span>';
        } else {
        $html .= '<abbr class="ttl" style="font-size: 0px; display:none;" title="'.$wslicesttlh.'">Stunden</abbr>';
        }
// If no enddate set for this content then do it also not set it in the endtimeclass
        if ($publish_down == '0000-00-00 00:00:00') {
        } else {
        $html .= '<abbr class="endtime" title="'.$wsispublish_down.'"></abbr>';
        }
        $html .= '<div class="entry-title" style="font-size: 0px; display:none;">'. $title .'</div>';
        $html .= '<div class="entry-content">';
        return $html;
    }

    function plgContentWebslice_after( &$row, &$params, $page=0 )
    {
        global $mainframe;
        $row->toc .= $html;
        $html .= '</div>';
        $html .= '</div>';
        $html .= '<div class="clr"></div>';
        return $html;
    }





So how it Looks, about lot of Sites use the Plugin, so i will make a remake on version 1.2 for fix layout bugs.
Man kann einen Menschen nichts lehren, man kann ihm nur helfen, es in sich selbst zu entdecken.. (Galileo Galilei)
Letzte Änderung: 2 Jahre, 7 Monate her von Marcel Wuersch.

Re:Webslice Plugin by pcte.ch 2 Jahre, 10 Monate her #160

  • Hans Le Roy
  • OFFLINE
  • Fresh Boarder
  • Beiträge: 1
  • Karma: 1
Hi, I did another try with the 1.2 version - no luck. So I tried another template on the website, and that did work out. It appears the template I was using (xplike.plesk.reloaded ) doesnt like your wonderful webslices component. Kind regards Hans
  • Seite:
  • 1
Ladezeit der Seite: 0.41 Sekunden

Demo Seiten