
i uploaded it here on what im trying to do..so far what i did
https://github.com/liomj/mobile/
it is working fine if the site is opened but not if it is close
<{if $xoops_dirname == "publisher"}>
<meta property="og:type" content="website" />
<meta property="og:title" content="<{$item.title}>" />
<meta property="og:description" content="<{$item.summary}>" />
<link rel="image_src" href="<{$item.image_path}>" />
<meta property="og:image" content="<{$item.image_path}>"/>
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="628" />
<meta property="og:url" content="<{$item.itemurl}>"/>
<meta itemprop="image" content="<{$item.image_path}>"/>
<link rel="canonical" href="<{$item.itemurl}>"/>
<{/if}>
Mamba wrote:
You can try and test these two versions:
Version 1: the original version, updated for XOOPS 2.5.9 and PHP 7.2, but the the calendar button doesn't work, i.e. you have to enter the date manually
Version 2: Quick & dirty rewrite of the Version 1, incl. a Vue countdown component.
Please note: I don't have time to do anything more with these modules, but it will be a good start for you to improve it further. Or somebody else could help you. Just fork it on GitHub
RewriteRule ^publisher.([a-z]+).([0-9.]+)/ modules/publisher/index.php?seoOp=$1&seoArg=$2
RewriteRule ^publisher/?$ /modules/publisher/index.php
RewriteRule ^DRAAITIJD/?$ /publisher.item.24/DRAAITIJD.html
sabahan wrote:
ok i think got it..add featured image for random article
in items_random_item.php$mainImage = $itemsObj->getMainImage();
// check to see if GD function exist
if (!function_exists('imagecreatetruecolor')) {
$block['item_image'] = $mainImage['image_path'];
} else {
$block['item_image'] = PUBLISHER_URL . '/thumb.php?src=' . $mainImage['image_path'] . '&w=' . $imgwidth; // No $imgheight for autoheight option
}
template publisher_items_random_item.html<img src="<{$block.item_image}>" alt="" width="100" height="100" align="left" style="padding:5px;"/>
at first i got blank page because of this warning
//CAREFUL!! with many items this will exhaust memory
remove $block['lang_fullitem'] = _MB_PUBLISHER_FULLITEM;
notw its ok