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 / [RESOLVED] rubrique "date de validation"

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

[RESOLVED] rubrique "date de validation"

More
10 years 10 months ago - 10 years 10 months ago #17448 by mimimike64
[RESOLVED] rubrique "date de validation" was created by mimimike64
Bonjour, Adsmanager 2.9.8 et Joomla! 2.5.28. site www.chiotlof.fr
Comment afficher en début d'annonce le champ " date de publication" généré par le système.
En effet, ce champ s'affiche en dernière ligne dans les annonces et est souvent oublié par les annonceurs. D'autre part, comment rendre ce champ obligatoire.
Merci pour la solution
Last edit: 10 years 10 months ago by loic.
The following user(s) said Thank You: adarr
More
10 years 10 months ago #17463 by loic
Replied by loic on topic rubrique "date de validation"
Bonjour,

Ce champs va bientôt être supprimé par nos développeur car il provoque souvent une confusion à l'ajout d'une annonce.

Mais vu que vous utilisez la version 2.9.8, vous n'aurez pas ce problème :).

Pour afficher ce champs dans votre annonce, vous devez utiliser cette ligne de code:
<?php echo $this->reorderDate($this->content->date_created) ?>

Cordialement.
The following user(s) said Thank You: adarr
More
10 years 10 months ago - 10 years 10 months ago #17479 by mimimike64
Replied by mimimike64 on topic rubrique "date de validation"
Merci pour votre réponse...qui ne répond pas à ma question.
Ma question est celle ci :
" Comment afficher en début d'annonce le champ " date de publication" généré par le système.
En effet, ce champ s'affiche en dernière ligne dans les annonces et est souvent oublié par les annonceurs. D'autre part, comment rendre ce champ obligatoire."

ET...comment supprimer " coût de l'annonce" les annonces sont gratuites
Merci...pour la bonne réponse B)


Attachments:
Last edit: 10 years 10 months ago by mimimike64.
The following user(s) said Thank You: adarr
More
10 years 10 months ago - 10 years 10 months ago #17504 by loic
Replied by loic on topic rubrique "date de validation"
Bonjour,

Au temps pour moi, j'ai cru que vous souhaitiez afficher le champs dans le détails de l'annonce.

Pour le déplacer, vous devez faire un override de la vue default.php situé ici 'components/com_adsmanager/views/edit/tmpl/default.php' ou vous pouvez aussi directement modifier le fichier (faite un bakcup car toute mise à jour de AdsManager supprimera vos modifications si vous n'utilisez pas d'override).

Ensuite, déplacez le bloc de code de la ligne 467 à 506 ou vous souhaitez afficher le champs :
<?php		    
            if($this->isUpdateMode == 0){
                if(isset($this->conf->publication_date) && $this->conf->publication_date == 1) {
        ?>
        	<h3>
        	<?php echo JText::_('ADSMANAGER_FORM_FIELDSET_PUBLICATION_DATE'); ?>
        	</h3>
        	<fieldset>
            <div class="row-fluid">
                <div class="span12">
        			<div class="control-group">
			            <label class="control-label" for="publication_date">
			                <?php echo JText::_('ADSMANAGER_PUBLICATION_DATE').JText::_('ADSMANAGER_REQUIRED'); ?>
			            </label>
		            <div class="controls">
		                <?php
		                    if (isset($this->content->publication_date) && $this->content->publication_date != '0000-00-00 00:00:00'){
		                        $publication_date = $this->content->publication_date;
		                    }else{
		                        $publication_date = "";
		                    }
 
		                    $options = array();
		                    $options['size'] = 25;
		                    $options['maxlength'] = 19;
		                    $options['required'] = 'required';
		                    $options['mosReq'] = '1';
		                    $options['mosLabel'] = htmlspecialchars(JText::_('ADSMANAGER_PUBLICATION_DATE'));
		                    $return = JHTML::_('behavior.calendar');
		                    $return .= JHTML::_('calendar', $publication_date, "publication_date", "publication_date", '%Y-%m-%d', $options);
 
		                    echo $return;
		                ?>
		            </div>
				</div>
                </div>
            </div>
            </fieldset>
        <?php
                }
            }
        ?>

Dans mon exemple, le champs est obligatoire par défaut.
Vous pouvez aussi ne pas afficher ce champs en paramétrant l'option correspondante dans l'onglet 'Général' de la configuration de AdsManager.

Pour caché le prix si celui ci est gratuit, il y a normalement une option dans la configuration de PaidSystem, en revanche, votre version est peut être trop vieille.

Cordialement.
Last edit: 10 years 10 months ago by loic.
The following user(s) said Thank You: mimimike64, adarr
More
10 years 10 months ago #17514 by mimimike64
Replied by mimimike64 on topic rubrique "date de validation"
Merci beaucoup, je vais opter pour la solution de ne plus afficher ce champ.
Cordialement
Michel
The following user(s) said Thank You: adarr
More
10 years 10 months ago #17527 by loic
Replied by loic on topic rubrique "date de validation"
Bonjour,

Je passe ce sujet en résolu :).

Cordialement.
The following user(s) said Thank You: adarr
Moderators: perry
Time to create page: 0.585 seconds
Powered by Kunena Forum