PHP Classes

Up Previous Contents ASCOOS CMS Related Articles: Suggest related articles in a content site

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (19)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-03-09 (2 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 19 All time: 11,230 This week: 84Up
Version License PHP version Categories
up_prev_contents 1.0.1Custom (specified...5PHP 5, Content management
Description 

Author

This package can suggest related articles on a content site.

It provides a block module for the ASCOOS CMS to suggest related articles already published in the current content site.

This block module can display the suggested articles in the current article page so the user can visit the suggested article pages to read those articles.

Innovation Award
PHP Programming Innovation award nominee
February 2024
Number 2
One way to make website article pages more useful is to add links to pages on the current page where users can read more about topics related to the current page article.

This package provides a block extension for the ASCOOS CMS to display links to pages related to the current article topic.

Manuel Lemos
Picture of ASCOOS CMS
  Performance   Level  
Name: ASCOOS CMS <contact>
Classes: 11 packages by
Country: Greece Greece
Age: ???
All time rank: 409825 in Greece Greece
Week rank: 305 Up4 in Greece Greece Up
Innovation award
Innovation award
Nominee: 7x

Instructions

With this extension, it is possible for the visitor of your page, implemented with Ascoos Cms, while reading an article, to be shown reading suggestions of a series of previous articles.

This is achieved via a pop-up box at the edge of the screen and can be customized according to the page owner's preferences.

For example, articles can be displayed based on the article type, such as article, tutorial, news, etc.

The view can also be easily configured as all Ascoos Cms Blocks can extend themes.

Example

<?php
/**
 * __ _ ___ ___ ___ ___ ___ ____ _ __ ___ ___
 * / _` |/ / / __/ _ \ / _ \ / / / __/| '_ ` _ \ / /
 * | (_| |\ \| (_| (_) | (_) |\ \ | (__ | | | | | |\ \
 * \__,_|/__/ \___\___/ \___/ /__/ \___\|_| |_| |_|/__/
 *
 *
 ************************************************************************************
 * @ASCOOS-NAME : ASCOOS CMS 24' *
 * @ASCOOS-VERSION : 24.0.0 *
 * @ASCOOS-CATEGORY : Block (Frontend and Administrator Side) *
 * @ASCOOS-CREATOR : Drogidis Christos *
 * @ASCOOS-SITE : www.ascoos.com *
 * @ASCOOS-LICENSE : [Commercial] http://docs.ascoos.com/lics/ascoos/AGL.html *
 * @ASCOOS-COPYRIGHT : Copyright (c) 2007 - 2024, AlexSoft Software. *
 ************************************************************************************
 *
 * @package : Up Previous Contents
 * @subpackage : installation file
 * @source : /[BLOCKS PATH]/up_prev_contents/install.php
 * @fileNo : 1
 * @version : 1.0.1
 * @created : 2012-08-06 20:00:00 UTC+3
 * @updated : 2024-02-25 12:00:00 UTC+3
 * @author : Drogidis Christos
 * @authorSite : www.alexsoft.gr
 * @license : Freeware
 * @since : 24.0.0
 */


defined ("ALEXSOFT_RUN_CMS") or die("Prohibition of Access.");

global
$objInstaller;

// Adjust the installer to work at BLOCK and give the block that will handle
$objInstaller->setExtension('up_prev_contents', INS_BLOCK);

// We adjust the installer so that after installation, to take us or not part of the Block configuration.
$objInstaller->afterSetParams(false);

// If the block is not installed then run the installation.
if (!$objInstaller->isInstalled()) {
   
// We create the path of the Block.
   
$objInstaller->createPath();
   
   
// If the installation files on the Server is successful
   
if ( $objInstaller->extractPackage() )
    {
       
// We export themes in internal path "fronts". !!!! Not Change for Blocks. !!!!
       
$objInstaller->extractThemes('fronts');
       
       
// We take the position id, show called "NOTHING".
       
$block_pos = $objInstaller->getPosition('NOTHING');

       
// We take the sort that will apply to the position.
       
$block_order = $objInstaller->getOrderPosition('NOTHING');
   
       
// Place the Block in the database.
       
$objInstaller->addSQL("INSERT INTO #__blocks VALUES(NULL, '".$objInstaller->name."', '".$objInstaller->name."', '0', '0', '{\"en\":\"Up Previous Contents\",\"el\":\"??????? ????????? ???????????? ??????\"}', '', '', '', '', ".$block_pos.", ".$block_order.", '', '0', '0', '0', '0', '{\"count\":1,\"str_length\":250,\"promote\":0,\"theme\":\"default\",\"type\":\"\",\"cat_ids\":\"\",\"except_cat_ids\":\"\",\"animation\":\"fade\",\"corner\":\"right\",\"element\":\"\",\"percent\":75,\"width\":460,\"side\":10,\"target\":0,\"show_btn_close\":0}');");
       
       
// pour the settings from the installer.
       
$objInstaller->clear();
       
    } else {
       
// else otherwise cancel the installation and pour the settings from the installer.
       
$objInstaller->cancelInstallation();
    }
} else {
// else pour the settings from the installer.
   
$objInstaller->clear();
}
?>


Screenshots  
  • help/screenshot.png
  • help/screenshot1.png
  • help/screenshot2.png
  • help/screenshot3.png
  • help/screenshot4.png
  • themes/cleargray/screenshot.png
  • themes/cleargray/screenshot2.png
  • themes/default/screenshot.png
  • themes/default/screenshot2.png
  Files folder image Files  
File Role Description
Files folder imagehelp (1 file)
Files folder imagelanguages (4 files)
Files folder imagethemes (2 files, 2 directories)
Accessible without login Plain text file index.html Data Empty page
Accessible without login Plain text file index.php Aux. Auxiliary script
Accessible without login Plain text file install.php Example Example script
Accessible without login Plain text file LICENSE_AGL-F.md Lic. License text
Accessible without login Plain text file params.json Data Auxiliary data
Accessible without login Plain text file params.php Conf. Auxiliary script

  Files folder image Files  /  help  
File Role Description
  Accessible without login Plain text file index.html Data Empty page

  Files folder image Files  /  languages  
File Role Description
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Plain text file el-gr.php Class Class source
  Plain text file en.php Class Class source
  Accessible without login Plain text file index.html Data Empty page

  Files folder image Files  /  themes  
File Role Description
Files folder imagecleargray (3 files)
Files folder imagedefault (3 files)
  Accessible without login Plain text file index.html Data Auxiliary data
  Accessible without login Plain text file script.js Data Auxiliary data

  Files folder image Files  /  themes  /  cleargray  
File Role Description
  Accessible without login Image file close.png Icon Icon image
  Accessible without login Plain text file index.html Data Auxiliary data
  Accessible without login Plain text file theme.css Data Auxiliary data

  Files folder image Files  /  themes  /  default  
File Role Description
  Accessible without login Image file close.png Icon Icon image
  Accessible without login Plain text file index.html Data Auxiliary data
  Accessible without login Plain text file theme.css Data Auxiliary data

Downloadup_prev_contents-2024-03-09.zip 226KB
Downloadup_prev_contents-2024-03-09.tar.gz
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
PHP Backwards Compatibility Library Download .zip .tar.gz This library included on kernel of Ascoos Cms Optional
 Version Control Unique User Downloads Download Rankings  
 100%
Total:19
This week:0
All time:11,230
This week:84Up