41
heyula
Re: XOOPS in 2022
  • 2022/2/14 5:07

  • heyula

  • Theme Designer

  • Posts: 599

  • Since: 2008/4/24





42
heyula
Educenter Theme
  • 2022/1/20 20:29

  • heyula

  • Theme Designer

  • Posts: 599

  • Since: 2008/4/24


Resized Image


EDUCENTER theme for Xoops will be finished soon.

Modules adapted to the theme

* Publisher
* xmcontent
* countdown
* contact

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



43
heyula
Re: wg modules
  • 2022/1/5 15:15

  • heyula

  • Theme Designer

  • Posts: 599

  • Since: 2008/4/24


Thanks for all the great modules.



44
heyula
Re: Publisher New Theme
  • 2021/11/30 20:41

  • heyula

  • Theme Designer

  • Posts: 599

  • Since: 2008/4/24


Quote:

Yurdal wrote:
Really goods !, can't wait to download :).
Is it possible to have also an short how to to have the same design as the demo


After uploading the theme to ftp, it is enough to choose it as the default theme, everything will be as in the demo.

Things to pay attention:

Xoops 2.5.11
Publisher 1.08 - Alpha 5

Actually, the code can be modified for older versions.



45
heyula
Publisher New Theme
  • 2021/11/30 10:19

  • heyula

  • Theme Designer

  • Posts: 599

  • Since: 2008/4/24


A new theme created for the publisher.

theme works entirely with publisher external blockcode.

The forum section of the code :
https://xoops.org/modules/newbb/viewtopic.php?post_id=366304

Adapted to the Publisher module Demo:
https://demo.erenyumak.com/

I will adapt the theme with the xmnews module and share it.

Resized Image


Resized Image



46
heyula
Re: New Block for Publisher Module
  • 2021/11/28 10:36

  • heyula

  • Theme Designer

  • Posts: 599

  • Since: 2008/4/24


Quote:

liomj wrote:
nice

this somehow need to be integrate and merged to publisher module


+1

I asked zyspec
I asked if it would be possible to turn it into a Smarty plugin somehow.

class/smarty/xoops_plugins/function.publisher.block.php



In this way, we can make the blocks we want by using smart codes all over the theme.



47
heyula
Re: Modulos xForms dificultade de criar campo em branco (sem dados)
  • 2021/11/27 16:58

  • heyula

  • Theme Designer

  • Posts: 599

  • Since: 2008/4/24


@goffy fixed existing bugs. It works stably on my own site.

Demo:
https://www.togaysan.com.tr/insan-kaynaklari



48
heyula
Re: Modulos xForms dificultade de criar campo em branco (sem dados)
  • 2021/11/27 16:40

  • heyula

  • Theme Designer

  • Posts: 599

  • Since: 2008/4/24


Quote:

edipinho wrote:
Hi guys, I need help, the xForms module is not assimilating the "Required" field because I disable it and the module continues to check this field.


Portugues BR
Oi pessoal, preciso de ajuda, o módulo xForms não está assimilando o campo "Required" pois eu desabilito e o módulo continua a fazer a verificação deste campo.



XOOPS 2.5.10 - Module xForms 2.00 Alpha 3 (14-02-2021)


Hi:

https://github.com/XoopsModules25x/xforms/archive/refs/heads/master.zip

Can you update and try again?



49
heyula
Re: New Block for Publisher Module
  • 2021/11/27 11:19

  • heyula

  • Theme Designer

  • Posts: 599

  • Since: 2008/4/24





50
heyula
New Block for Publisher Module
  • 2021/11/27 11:11

  • heyula

  • Theme Designer

  • Posts: 599

  • Since: 2008/4/24


With this code, you can pull content added to the publisher module wherever you want in your theme. Add to your theme:
<{includeq file="$theme_name/random-news.tpl"}>
or 
<{
includeq file="$theme_name/date-news.tpl"}>
Code Content : Random News :
<{php}>
use 
XoopsModulesPublisher;
use 
XoopsModulesPublisherConstants;

$helper PublisherHelper::getInstance();
$myts =& MyTextSanitizer::getInstance();
$itemsObj $helper->getHandler('Item')->getItems($limit 3$start 0, [Constants::PUBLISHER_STATUS_PUBLISHED], -1$sort 'RAND()'$order=''''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}>

        
        
            <{
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 class="col-lg-4 col-md-12 col-xl-4">
<
div class="card">
                <
div class="img-fix-height cover-image">
                <
img src="<{$image}>">
                div>
                <
div class="card-body p-4">
                    <
a href="<{$xoops_url}>/modules/publisher/item.php?itemid=<{$itemid}>" class="text-dark"><h4 class="font-weight-semibold text-truncate mb-3"><{$title}>h4>a>
                    <
class="fix-max-height"><{$body|truncate:230}>p>
                    <
br>
                    <
class="btn btn-primary btn-teal" href="<{$xoops_url}>/modules/publisher/item.php?itemid=<{$itemid}>">Read morea>
                div>
div>
div>
        <{
php}>
        }
        <{/
php}>
Date News :
<{php}>
use 
XoopsModulesPublisher;
use 
XoopsModulesPublisherConstants;

$helper PublisherHelper::getInstance();
$myts =& MyTextSanitizer::getInstance();
$itemsObj $helper->getHandler('Item')->getItems($limit 3$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}>

        
        
            <{
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 class="col-lg-4 col-md-12 col-xl-4">
<
div class="card">
                <
div class="img-fix-height cover-image">
                <
img src="<{$image}>">
                div>
                <
div class="card-body p-4">
                    <
a href="<{$xoops_url}>/modules/publisher/item.php?itemid=<{$itemid}>" class="text-dark"><h4 class="font-weight-semibold text-truncate mb-3"><{$title}>h4>a>
                    <
class="fix-max-height"><{$body|truncate:230}>p>
                    <
br>
                    <
class="btn btn-primary btn-teal" href="<{$xoops_url}>/modules/publisher/item.php?itemid=<{$itemid}>">Read morea>
                div>
div>
div>
        <{
php}>
        }
        <{/
php}>
Definitions in Code : 7th in line of code
$limit 3  How many articles are published
$start 
0  From which category (for all categories)
Template:
<{$title}> = Article Title
<{$itemid}> = Article ID
<{$body|truncate:230}> = Article Content
<{$xoops_url}>/modules/publisher/item.php?itemid=<{$itemid}> = Article Link
<{$image}> = Article Image
<{$votes}> = Article Votes
Sample: Resized Image
Download: https://erenyumak.com/modules/TDMDownloads/singlefile.php?lid=12




TopTop
« 1 2 3 4 (5) 6 7 8 ... 25 »



Login

Who's Online

152 user(s) are online (128 user(s) are browsing Support Forums)


Members: 0


Guests: 152


more...

Donat-O-Meter

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

Latest GitHub Commits