Excellent Tutorial in Spanish: Adapting HTML and CSS Templates to XOOPS

Tue, 07 Oct 2014 06:00:00 -2300

Tony Rod has published an excellent video tutorial about "Adapting HTML and CSS Templates to XOOPS":



This is what he writes in his blog:

XOOPS has always been known for being a powerful and flexible CMS, however despite this, the creation of my own themes without relying on already available themes for XOOPS was always of interest to me, especially since the available themes were very similar with the same structure.

That's why a few years ago I challenged myself to learn how a template works in XOOPS and what is needed to develop a different theme that suits my needs and above all, has a unique design .

I finally found the answer and that is why now I share what I've learned over the years using XOOPS, and hopefully it will help all those who want a unique and different design without having to worry about whether they are doing it the right or wrong way when adapting the template to XOOPS.

Basically this tutorial is divided into four sections which are:

- Introduction and basics of templates in XOOPS
- Process of adapting a template in HTML to XOOPS
- Multiple templates on our site using Defacer
- Adding blocks manually by ID

The tutorial is designed in such a way that you can follow step by step the whole process from the adaptation of the template to the finished product. To make it easier for you, I am providing the course material so you can do the necessary tests. This material can be found on the download section of downloads or by clicking here.

I hope this tutorial is helpful to start designing your own templates and will inspire those who want to improve the content of their websites.

I will answer all your questions and / or comments in the comments section of this publication.

 

Headline News Publisher

Sat, 27 Sep 2014 14:23:41 -2300

Original 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ı

 

Facebook comments added to Publisher module version 1.02

Sat, 27 Sep 2014 14:23:32 -2300

Hi,
I did it, I added the fecebook comment in publisher module version 1.02

1. I Work with publisher version 1.02
2. and the theme xbootstrap version 1.02
3. I have to prepare a winzip if you want

If you want to see how it looks, takes a look here
CLICK HERE

Regards
DAVID

Original Image

 

Theme Sd-099-Theme-Surprice - for free

Sat, 30 Aug 2014 10:15:04 -2300

Sinnedesign is happy to present the new FREE XOOPS Theme with the name Free Design Sd-099-Theme-Surprice. The Free XOOPS - Theme was made with friendly help from Easyname .

Original Image

Here can you find the XOOPS 2.5 Theme Demo.

Xoops 2.5 Demo

FREE - Download Xoops Theme Sd-099-Theme-Surprice

Here is the direct Download - Link (without registration)

Nice Weekend and happy XOOPsing!

 

XOOPS is Project of the Week on SourceForge

Mon, 11 Aug 2014 22:29:29 -2300

We are happy to inform you that XOOPS Project is featured as Project of the Week and is listed on the front page of SourceForge Website.

This means that XOOPS Project may be included in this month's Community Project of the Month vote, depending on the number of downloads it gets. So if you haven't download XOOPS yet, please do so ASAP

And, here is the link to the blog post notifying the community of our accomplishment:

http://sourceforge.net/blog/projects-of-the-week-august-11-2014

Viva XOOPS!

 

Our Partners

The web performance and security company
Best Open-Source Web Application
Moneybookers is becoming Skrill
Pay with PayPal

Search