| Re: use smartys in theme |
| by Mamba on 2021/11/27 9:19:44 that code will not work, because it is outdated. For example, the line: le="color: #000000"><?php $publisher =& PublisherPublisher::getInstance(); won't work because "PublisherPublisher" doesn't exist anymore, it has been replaced by "Helper" and namespaces. |
| Re: use smartys in theme |
| by heyula on 2021/11/27 8:48:21 Quote: function.xoMemberInfo.php le="color: #000000"><?php defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined"); include_once XOOPS_ROOT_PATH . '/modules/publisher/include/common.php'; $publisher =& PublisherPublisher::getInstance(); $myts =& MyTextSanitizer::getInstance(); $itemsObj = $publisher->getHandler('item')->getItems($limit = 1, $start = 0, '', -1, $sort = 'datesub', $order='DESC', '', true, $criteria = null, true);
|
| Re: use smartys in theme |
| by Mamba on 2014/1/9 9:33:44 Quote: I would suggest you to use publisher instead of the xnews module +1 |
| Re: use smartys in theme |
| by Bleekk on 2014/1/9 9:29:14 difference between publisher and xnews is following <{publisher_latest ret='title'}> returns le="color: #000000"><?php This is my title <{xnews_latest ret='title'}> returns le="color: #000000"><?php <a href="http://linkToArticle">This is my title</a> If you want it to work like publisher then you need to edit the xnews code. I would suggest you to use publisher instead of the xnews module |
| Re: use smartys in theme |
| by sova on 2014/1/9 8:44:45 Hi Quote:
Explain more precisely? ---------------------------- This work is being done? For example, le="color: #000000"><?php <div id="latest-news"> <{xnews_latest topic='2'}> <{xnews_latest ret='image' width='80'px height='80'px}> <{xnews_latest ret='title' ch='85'}> <{xnews_latest ret='text' ch='220'}> </div> ch => Characters |