TinyPortal

Development => International => French => Topic started by: john013 on July 01, 2011, 09:49:16 PM

Title: avoir un bloc sur page d'acceuille 'sondage'
Post by: john013 on July 01, 2011, 09:49:16 PM
pourriez vous me dire  comment inclure un bloc sondage à tp qui sera lier au forum.
ex:
quel heure est t'il ?
16H00?
15H00?
18H00?
(réaliser un raccourcis du sondage du forum)
Title: Re: avoir un bloc sur page d'acceuille 'sondage'
Post by: john013 on July 03, 2011, 02:42:52 PM
Help?
Title: Re: avoir un bloc sur page d'acceuille 'sondage'
Post by: ZarPrime on July 03, 2011, 03:25:48 PM
john013,

Je ne suis pas sûr de ce type de bloc dont vous parlez. Parlez-vous d'un bloc sondage? Un bloc qui montrera un sondage à partir d'un sujet dans votre forum? Pouvez-vous s'il vous plaît nous donner un screenshot de ce que vous essayez de faire?

Quelles versions de SMF et TinyPortal utilisez-vous?

In English ...
I'm not sure what kind of block you are talking about.  Are you talking about a poll block?  A block that will show a poll from a topic in your Forum?  Can you please give us a screenshot of what you are trying to do?

What versions of SMF and TinyPortal are you using?

ZarPrime
Title: Re: avoir un bloc sur page d'acceuille 'sondage'
Post by: john013 on July 05, 2011, 10:20:37 AM
Bonjour voilà ce que je recherche
et oui je veut qui ce réfère a un forum
Title: Re: avoir un bloc sur page d'acceuille 'sondage'
Post by: ZarPrime on July 05, 2011, 02:13:03 PM
En français ...
OK, bien, vous ne m'avez pas encore dit ce que des versions de SMF et TinyPortal que vous utilisez. En tout cas, WillyP et Freddy ont juste fini le code pour le "Enhanced ShowPoll" bloc. Vous pouvez trouver la rubrique contenant ce code en suivant ce lien --> http://www.tinyportal.net/index.php?topic=34205.0

In English ...
OK, well, you still haven't told me what versions of SMF and TinyPortal you are using.  In any case, WillyP and Freddy have just finished the code for the "Enhanced ShowPoll" block.  You can find the topic containing that code at this link --> http://www.tinyportal.net/index.php?topic=34205.0

ZarPrime
Title: Re: avoir un bloc sur page d'acceuille 'sondage'
Post by: john013 on July 06, 2011, 10:17:38 AM
Merci c se qu'il me faut . par contre serai t'il possible d'avoir l'explication de l'installation en Français ? ^^
Title: Re: avoir un bloc sur page d'acceuille 'sondage'
Post by: ZarPrime on July 06, 2011, 11:49:00 AM
1.  Utilisez le code, selon votre version de SMF, dans un bloc php.

// usage:
// - copy whole code to phpblock.
// - at the end of the code use function
// tp_showPoll(topic number or null, 'echo' or null, board number or null)
//
// examples:
// show the poll from topic 34
// tp_showPoll(34);                     
//
// show the most recent poll from the board number 5
// tp_showPoll(null,'echo',5);           
//
// keep in mind, that if board is specified, topic is ignored
// so it will display the same as above
// tp_showPoll(34,'echo',5)             

2.  De la dernière ligne dans le code ...

de montrer le plus récent sondage à partir du numéro 15 Conseil, l'utilisation ...
tp_showPoll(null,'echo',15);

ou

pour montrer le sondage de 134 numéro du sujet, l'utilisation ...
tp_showPoll(134);

ZarPrime