I noticed it here..
https://xoops.org/modules/repository/
https://xoops.org/modules/newbb/
Thanks
<{php}>
use XoopsModules\Publisher;
use XoopsModules\Publisher\Constants;
$helper = Publisher\Helper::getInstance();
$myts =& MyTextSanitizer::getInstance();
$itemsObj = $helper->getHandler('Item')->getItems($limit = 10, $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}>
<div id="slider">
<a href="#" id="prev" class="notext">a>
<a href="#" id="next" class="notext">a>
<div id="slider-content">
<ul>
<{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}>
<li>
<div class="left-side">
<a href="<{$xoops_url}>/modules/publisher/item.php?itemid=<{$itemid}>"><img src="<{$image}>" alt="<{$title}>" width="400px" height="200px"/>a>
div>
<div class="right-side" >
<h1><a href="<{$xoops_url}>/modules/publisher/item.php?itemid=<{$itemid}>" title="<{$title}>"><{$title}>h1>
<p><{$body|truncate:220}>p>
<p class="readmore"><a style="color:#ff0000" href="<{$xoops_url}>/modules/publisher/item.php?itemid=<{$itemid}>">ÊÊãÉ »a>p>
div>
<div class="cl"> div>
li>
<{php}>
}
<{/php}>
ul>
div>
div>
Files integrity check
-----------------------------------
The full XOOPS package is released with a script able to check if all the system files have been correctly uploaded to the server. To use it, follow these instructions:
1. Upload the checksum.php and checksum.md5 files located in the XOOPS package root to your XOOPS server folder (putting them next to mainfile.php).
2. Execute checksum.php with your browser
3. If necessary, re-upload the missing or corrupted system files
4. Remove checksum.php and checksum.md5 from your server
Moonrakre wrote:
Unfortunately all the editors were already set to dhtmltextarea. I tried all the other options to no avail.
The module throwing the error is a "content" module (of which there seem to be a number) by a Ben Brown of The Handcoders, Reinarz & Associates. These seem to have disappeared now.
I built the site for a charity in 2010 and it has just run lovely since then, but it was on an old PHP version which has had to be changed, so somehow I need to get it changed at least to the point of being able to edit the content. So yes is it old.