Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / AdsManager: Delete Ads Cron: Restricted access

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

AdsManager: Delete Ads Cron: Restricted access

More
8 years 10 months ago #20438 by sergei956
Replied by sergei956 on topic AdsManager: Delete Ads Cron: Restricted access
I have exactly the same problem
More
8 years 10 months ago #20505 by juloaadmin
Replied by juloaadmin on topic AdsManager: Delete Ads Cron: Restricted access
replace cli/adsmanager_cron.php

by
<?php
/**
 * @package             Joomla.Cli
 *
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license             GNU General Public License version 2 or later; see LICENSE.txt
 */
 
// Make sure we're being called from the command line, not a web interface
if (array_key_exists('REQUEST_METHOD', $_SERVER)) die();
 
/**
 * This is a CRON script which should be called from the command-line, not the
 * web. For example something like:
 * /usr/bin/php /path/to/site/cli/update_cron.php
 */
 
// Set flag that this is a parent file.
define('_JEXEC', 1);
define('DS', DIRECTORY_SEPARATOR);
 
error_reporting(E_ALL | E_NOTICE);
ini_set('display_errors', 1);
 
// Load system defines
if (file_exists(dirname(dirname(__FILE__)) . '/defines.php'))
{
        require_once dirname(dirname(__FILE__)) . '/defines.php';
}
 
if (!defined('_JDEFINES'))
{
        define('JPATH_BASE', dirname(dirname(__FILE__)));
        require_once JPATH_BASE . '/includes/defines.php';
}
 
// Load the rest of the framework include files
if (file_exists(JPATH_LIBRARIES . '/import.legacy.php'))
{
        require_once JPATH_LIBRARIES . '/import.legacy.php';
}
else
{
        require_once JPATH_LIBRARIES . '/import.php';
}
require_once JPATH_LIBRARIES . '/cms.php';
 
// Force library to be in JError legacy mode
JError::$legacy = true;
 
require_once JPATH_CONFIGURATION . '/configuration.php';
 
/**
 * This script will fetch the update information for all extensions and store
 * them in the database, speeding up your administrator.
 *
 * @package  Joomla.CLI
 * @since    2.5
*/
class AdsManagerCron extends JApplicationCli
{
	/**
	 * Entry point for the script
	 *
	 * @return  void
	 *
	 * @since   2.5
	 */
	public function doExecute()
	{
		// Find all updates
		// Fool the system into thinking we are running as JSite with Smart Search as the active component.
		$config = JFactory::getConfig();
		$live_site = $config->get('live_site');
		if ($live_site == "") {
			echo "you must set live_site=http://www.mydomain.com in your configuration.ini";
		}
 
		$_SERVER['HTTP_HOST'] = str_replace(array('http://','https://'),'',$live_site);
		JFactory::getApplication('site');// Fool the system into thinking we are running as JSite
		require_once(JPATH_ROOT.'/components/com_adsmanager/lib/core.php');
		require_once(JPATH_ROOT.'/components/com_adsmanager/controller.php');
 
		$this->out('AdsManager cron start...');
		TCron::execute();
		$this->out('AdsManager cron finish');
	}
}
 
JApplicationCli::getInstance('AdsManagerCron')->execute();
More
7 years 8 months ago #26473 by Blueeyes
Replied by Blueeyes on topic AdsManager: Delete Ads Cron: Restricted access
Unfortunately when I run the script does not respect bring to top and I reset ads, how come?
Thank you for giving me a hand to where you are wrong ?
More
7 years 8 months ago #26487 by loic
Hello,

Only the bring to top feature doesn't work ?

Best regards.
More
7 years 7 months ago #26588 by Blueeyes
Replied by Blueeyes on topic AdsManager: Delete Ads Cron: Restricted access
Exécuter des scripts cron j'ai réussi

SQL : Modification manuelle, test

La chose est étrange si je configure clarg_adsmanager avec une date avant que les annonces cron effectuent les deux étapes et obtenez des annonces et vérifiez les options

AdsManager cron start...
Daily Action<br/>
Hourly Action<br/>
AdsManager cron finish

Sinon, le lendemain automatic n'atteindra qu'une seule étape

AdsManager cron start...
Daily Action<br/>
AdsManager cron finish

__________________________
Ne passe pas Hourly Action<br/> deuxième jour

Où est le script complet qui vous permet de monter et de vérifier vos options d'annonces?

Ainsi, les annonces qui doivent escalader ne changent pas à la date d'exécution du script pour la relancer bring to top Et d'autres options, comment est-il possible?

Merci de vérifier comment cette fonction de base pour adsmanager ne fonctionne pas

Merci à l'avance
Attachments:
More
7 years 7 months ago #26589 by Blueeyes
Replied by Blueeyes on topic AdsManager: Delete Ads Cron: Restricted access
Configurer le webcron et lancer manuellement une deuxième fois, j'ai passé ( Hourly Action )

index.php?option=com_adsmanager&task=cron

Hourly Action
Done

Comment devez-vous utiliser le script correctement pour le faire fonctionner?
Merci à l'avance
Moderators: perry
Time to create page: 0.183 seconds
Powered by Kunena Forum