Wiki Plume Community : IncludePunBB

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Intègrer un forum Pun BB dans Plume / Include a PunBB Forum into PLume


If you don't want to modify the Plume Cms core, there's a simple way to include a PunBB forum into Plume, thanks to Rickard Andersson who's created PunBB.

This method is called wrapping and everything is ready for that in the PunBB stylesheet.

Si vous ne souhaitez pas toucher au code de Plume, il y a une façon très simple d'intègrer un forum PunBB dans Plume, grâce à Rickard Andersson qui a créé PunBB.

Cette méthode se nomme wraping et tout est déjà prêt pour ça dans la feuille de style de PunBB.

Warning : This is just a design implementation. Il s'agit juste d'une intégration au niveau du design


First Step / Première étape


Repérez les fichiers /include/template/main.tpl du forum PunBB et manager/template/votre_theme/category_category.php de Plume / Look for this file in PunBB /include/template/main.tpl and this one in Plume manager/template/votre_theme/category_category.php

Everything's here ! / Tout est là !


Second Step / Deuxième étape


You are gonna include the div corresponding to the basic structure of your Plume template in the PunBB template file.

Vous allez inclure les div correspondantes à votre structure basique de template Plume dans le template de PunBB.

Open the file that contains the structure that should appear on your forum page, maybe it's this one category_category.php retrieve the divs corresponding to your header, footer, menu etc... Copy them and paste them in the main.tpl file of PunBB, adjust theme to your needs and you're done...

Ouvrez le fichier qui contient votre structure d'affichage basique dans Plume, par exmeple celui-ci category_category.php retrouvez les divs correspondantes à votre menu, votre header, votre footer etc . Puis copiez les et collez les dans le fichier main.tpl de PunBB. Faites quelques adjustements et voilà c'est fait.

These are the main things you have to conserve for the PunBB layout. Voici tous ce que vous devez conserver pour l'affichage du forum.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>

<link rel="stylesheet" type="text/css" href="/xmedia/theme/style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/forum/style/vershire.css" media="screen" />

</head>

<body>


 Votre header / Your header 



<div id="punwrap">
	
	<div id="pun<pun_page>" class="pun">
	
	<div id="brdheader" class="block">
	
			<div id="brdtitle" class="inbox">
			
			<pun_title>
			
			</div>
			
			<pun_navlinks>
			<pun_status>
		
		</div>
		
	<pun_announcement>
	
	<pun_main>
	
	<pun_footer>

 Votre Footer / You Footer 


</body>

</html>



Third Step / Troisième étape


You're gonna adjust the last details of the CSS, especially the width of your forum. Rickard 's done a good work beacause everything's in a class ;)

Vous allez ajuster les derniers détails du CSS, spécialement la largeur de votre forum et c'est là qu e Rickard a bien bossé car tout est dans une classe CSS ;)


Look at /style/yourpunbbstyle.css and searsh the .punwrap class, all you have to do is to adjust the width of your forum.

recherchez la classes .Punwrap dans /style/votresylepunbb.css, vous avez juste à ajuster la largeur de votre forum.


For sure, you may have many other things to adjust in the CSS. Bien-sûr vous allez sûrement devoir ajuster plein d'autres choses dans le css...


Last Step / Dernière étape


Add a link to the Plume stylesheet in main.tpl

<link rel="stylesheet" type="text/css" href="/xmedia/theme/style.css" media="screen" />


Ajoutez un lien vers votre feuille de style Plume dans le fichier Main.tpl


You can deal with every other template files of PunBB (.tpl) , it's really easy... delete the title, change the order of the layout etc... Good Luck

Vous pouvez modifier tous les fichiers template (.tpl) de Punbb, déplacer le titre ou le supprimer etc... Bonne chance
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.1
Page was generated in 0.4981 seconds