The Joomla! Forum ™



Forum rules


Règles du forum



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Jun 26, 2012 8:28 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Aug 29, 2011 3:07 pm
Posts: 4
Bonjour à tous!

J'utilise le composant seminar for joomla sur mon site qui tourne sous J1.5 qui permet de s'incrire à des évènements

Tout dans ce module me plait sauf une chose: je ne souhaite pas que les membres enregistrés puissent voir le bouton "booking" car je ne souhaite autoriser que les membres du groupe" spécial" à visualiser et utiliser ce bouton.

Je ne connais rien en droits sous joomla et je me demandait comment modifier/creer un attribut de visibilité à ce bouton pour le rendre invisible à tous SAUF membres du groupe "spécial".

Merci d'avance si vous pouver m'aider à m'aiguiller sur une piste car je plane complet!


Top
 Profile  
 
PostPosted: Wed Jun 27, 2012 10:37 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Aug 29, 2011 3:07 pm
Posts: 4
Donc pour ceux que cela intéresse, j'ai trouvé comment faire:

Dans le fichier seminar.html.php, à la ligne 467 on trouve

Code:
// Druckknopf anzeigen
    /*if($art!=2 AND $art!=4) {   
      $knopfoben .= sem_f037(2,$row->id,'','');
      $knopfunten .= " ".sem_f037(2,$row->id,'','b');
    }
    if((($buchopt[0]>2 AND $art==0) OR ($art==3 AND $usrid==0 AND ($nametemp!="" OR $config->get('sem_p026',0)==1))) AND $row->cancelled==0 AND $row->nrbooked>0) {
      $knopfoben .= "<a title=\"".JTEXT::_('SEM_0087')."\" href=\"javascript:auf('5','".$row->id."','');\"><img src=\"".sem_f006()."1132.png\" border=\"0\" align=\"absmiddle\"></a>";
      $knopfunten .= " <button class=\"button\" style=\"cursor:pointer;\" type=\"button\" onclick=\"auf('5','".$row->id."','');\"><img src=\"".sem_f006()."1116.png\" border=\"0\" align=\"absmiddle\">&nbsp;".JTEXT::_('SEM_0087')."</button>";
    }*/



il suffit de remplacer

Code:
if((($buchopt[0]>2 AND $art==0) OR ($art==3 AND $usrid==0 AND ($nametemp!="" OR $config->get('sem_p026',0)==1))) AND $row->cancelled==0 AND $row->nrbooked>0)


par
Code:
 if((($my->usertype == "Super Administrator" || $my->usertype == "Administrator" || $my->usertype == "Editor" || $my->usertype == "Author" || $my->usertype == "Publisher" || $my->usertype == "Manager") AND($buchopt[0]>2 AND $art==0) OR ($art==3 AND $usrid==0 )) AND $row->cancelled==0 AND $row->nrbooked>0)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 



Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group