affichage du nombre de posts ou sujets avec pnforum
Auteur Sujet
Post 
Si vous chercher à afficher le nombre de sujets ou messages d'un pnforum avec smarty, c'est trés simple

  1.   
  2. <!-- sujet --> 
  3. <!--[ boardstats type="forumtopics" id=$forum.forum_id ]--> 
  4.  
  5. <!-- message --> 
  6. <!--[ boardstats type="forumposts" id=$forum.forum_id]--> 
  7.              


Citation :

* boardstats plugin
* reads some statistics by calling the pnForum_userapi_boardstats() function
*
*@params $params['type'] string see below
*@params $params['id'] int id, depending on $type
*@params $params['assign'] string (optional) assign the result instead of returning it
*
* Possible values of $type and $id and what they deliver
* ------------------------------------------------------
* 'all' (id not important): total number of postings in all categories and forums
* 'topic' (id = topic id) : total number of posts in the given topic
* 'forumposts' (id = forum id): total number of postings in the given forum
* 'forumtopics' (id= forum id): total number of topics in the given forum
* 'category' (id not important): total number of categories


pour pnforum, d'autres docs ici





modifié par : mumuri, 04 Mai 2008 - 12:22
Données personnelles Accueil