Integration de forum

Résolu/Fermé
Utilisateur anonyme - 13 mars 2009 à 14:47
tapion76 Messages postés 3775 Date d'inscription dimanche 8 juillet 2007 Statut Membre Dernière intervention 12 janvier 2014 - 15 mars 2009 à 14:51
Bonjour,
Je suis actuellement entrain de développer mon site web et je rencontre de nombreux souci au développement du forum j'aimerais l'intégrer mes je m'y connais pas en php et oui je suis un noob quelqu'un aurait t'il une idé a comment procéder quelle serait le moyen le plus simple ?

Amicalement

20 réponses

tapion76 Messages postés 3775 Date d'inscription dimanche 8 juillet 2007 Statut Membre Dernière intervention 12 janvier 2014 870
13 mars 2009 à 17:10
les .css sont des fichiers de style qui te permetent d'agir sur les differents detais de ta page
grace a cela tu peux changer la couleur par defaut, la position des boutons etc...
Tiens un lien
https://ftp.phpbb-fr.com/cdd/phpbb2/charlie/
1
tapion76 Messages postés 3775 Date d'inscription dimanche 8 juillet 2007 Statut Membre Dernière intervention 12 janvier 2014 870
13 mars 2009 à 14:56
Salut,
t'as deja tester de integrer phpBB ?
0
Utilisateur anonyme
13 mars 2009 à 15:00
Oui j'ai déjà essayer enfaite j'ai copier le code de index.php du phpbb mes c'était pas trop sa :-) déjà le thèmes avec le header c'est génan pui sa déborder de partout tu veux que je te fasse une démo ?
0
tapion76 Messages postés 3775 Date d'inscription dimanche 8 juillet 2007 Statut Membre Dernière intervention 12 janvier 2014 870
13 mars 2009 à 15:08
LE theme ne te convient pas?
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
Utilisateur anonyme
13 mars 2009 à 15:09
Je vais te faire une démo tu comprendra :-)
0
tapion76 Messages postés 3775 Date d'inscription dimanche 8 juillet 2007 Statut Membre Dernière intervention 12 janvier 2014 870
13 mars 2009 à 15:12
ok
0
Utilisateur anonyme
13 mars 2009 à 16:20
Sa reste une démo :-) oui je suis un noob je t'envoi le lien par mp
0
tapion76 Messages postés 3775 Date d'inscription dimanche 8 juillet 2007 Statut Membre Dernière intervention 12 janvier 2014 870
13 mars 2009 à 16:22
Ah oui je vois
t'a modifier les fichier css?
0
Utilisateur anonyme
13 mars 2009 à 16:47
non du tou parcontre au meme endroit il y a un fichier style.php et un fichier style.css
0
Utilisateur anonyme
13 mars 2009 à 17:20
Oui mes vu que je n'est pas de fichier style.css dans le dossier de phpbb ? c'est normale ?
0
tapion76 Messages postés 3775 Date d'inscription dimanche 8 juillet 2007 Statut Membre Dernière intervention 12 janvier 2014 870
13 mars 2009 à 17:26
tu peux les créer
0
Utilisateur anonyme
13 mars 2009 à 17:29
Je m'explique j'ai un fichier Style.css mes c'est celui du kits graphique pas du forum mes dans le dossier phpbb j'ai par conte un fichier style.php
Style.css

/* ===========================================================
Elements de Page ========================================== */

* {
margin:0;
padding:0;
}

body {
background:#2ba5ff url(images/bg.png) repeat-x scroll 0 top;
font-family:Verdana, Arial, sans-serif;
font-weight:bold;
font-size:11px;
color:#cbcbcb;
}

img {
border:none;
}

a {
text-decoration:none;
cursor:pointer;
color:#e1e1e1;
}

a:hover {
text-decoration:underline;
}

label {
cursor:pointer;
}

ul, li {
list-style-type:none;
}

p {
margin-bottom:6px;
}
h1, h2 {
font-size:10px;
}

/* ===========================================================
Structure ================================================== */

#wrapper {
margin:8px auto 0 auto;
position:relatif;
height:100%;
width:960px;
}

#header {
background:transparent url(images/header.png) no-repeat scroll 0 0;
margin-left:16px;
height:137px;
width:944px;
}

/* ===========================================================
Speedbar =================================================== */

#speedbar {
background:transparent url(images/speedbar.png) no-repeat scroll 0 0;
margin:8px 0 8px 16px;
height:31px;
width:944px;
}

#speedbar li {
background:transparent url(images/separator.png) no-repeat scroll right 0;
padding:3px 10px 0 10px;
height:27px;
float:left;
}

#speedbar a {
padding:4px 0 0 32px;
color:#cbcbcb;
height:20px;
float:left;
}

#speedbar a:hover {
text-decoration:none;
padding-left:30px;
margin-left:2px;
}

#speedbar .accueil {
background:transparent url(images/accueil.png) no-repeat scroll 0 0;
margin-top:2px;
}

#speedbar .upload {
background:transparent url(images/upload.png) no-repeat scroll 0 0;
padding-top:6px;
}

#speedbar .communautee {
background:transparent url(images/communautee.png) no-repeat scroll 0 0;
}

#speedbar .chat {
background:transparent url(images/chat.png) no-repeat scroll 0 0;
margin-top:1px;
}

#speedbar .administration {
background:transparent url(images/administration.png) no-repeat scroll 0 0;
margin-top:1px;
}

#speedbar .partenaires {
background:transparent url(images/partenaires.png) no-repeat scroll 0 0;
}

#speedbar form {
margin:4px 6px 0 0;
float:right;
}

#speedbar form .text {
margin-right:6px;
}

/* ===========================================================
Menu ====================================================== */

#menu {
padding:7px 0 0 16px;
float:left;
}

.box {
background:transparent url(images/box_bottom.png) no-repeat scroll 0 bottom;
padding-bottom:17px;
margin-bottom:15px;
width:169px;
}

.box h1 {
background:transparent url(images/box_top.png) no-repeat scroll 0 top;
padding:13px 0 0 38px;
font-size:11px;
height:23px;
}

.box ul, .box form {
background-color:#2f2f2f;
padding:0 10px 0 12px;
font-size:10px;
}

.box li {
border-bottom:1px dashed #515151;
padding:6px 0 6px 4px;
}

.box a {
background:transparent url(images/arrow.png) no-repeat scroll 0 8px;
padding:6px 0 6px 12px;
}

.box a:hover {
background:transparent url(images/arrow.png) no-repeat scroll 0 8px;
margin-left:3px;
}

.box .img {
border:none;
padding:6px 0 0 0;
}

.box .img a {
background:none;
padding:0 0 0 4px;
}

.box .img a:hover {
background:none;
margin:0;
}

.box form{
padding-bottom:6px;
padding-top:6px;
}

.box form p{
padding-top:2px;
}

.box form .border {
border-top:1px dashed #515151;
margin-top:2px;
}

.box form label{
background:transparent url(images/arrow.png) no-repeat scroll 0 8px;
padding:6px 0 6px 12px;
}

.box form input{
margin:4px 0 4px 8px;
}

.box form .submit{
background:transparent url(images/button.png) no-repeat scroll 0 0;
margin:4px 0 4px 24px;
padding-bottom:4px;
font-size:11px;
color:#ffffff;
height:18px;
width:92px;
}

.box form .submit:hover{
font-weight:bold;
}

.box .noborder {
border:none;
padding:4px 0 0 4px;
}

/* ===========================================================
Content ==================================================== */

#corp {
background:transparent url(images/content_bottom.png) no-repeat scroll 0 bottom;
padding-bottom:47px;
margin-left:199px;
width:760px;
}

#corp h1 {
background:transparent url(images/content_top.png) no-repeat scroll 0 top;
padding:22px 0 0 18px;
height:22px;
}

#corp h2 {
background:transparent url(images/bar.png) no-repeat scroll 0 top;
padding-top:13px;
padding-bottom:12px;
padding-left:40px;
height:22px;
}

#corp fieldset, legend {
border:1px;
border-style:solid;
border-color:#666666;
padding:5px;
}

#content {
background-color:#2f2f2f;
padding:18px;
}

#content .title {
margin:0 0 8px 100px;
width:531px;
height:43px;
}

#content .title h2 {
background:transparent url(images/bar.png) no-repeat scroll 0 4px;
padding:17px 0 0 38px;
width:493px;
height:28px;
}

#content .title .auteur {
font-size:9px;
float:right;
}

#content #pagination {
text-align:center;
clear:both;
}

#content #pagination .actif {
text-decoration:underline;
color:#1d7acc;
}

#content #pagination a:hover {
text-decoration:underline;
color:#1d7acc;
}

/* ===========================================================
Footer ===================================================== */

#footer {
background:transparent url(images/footer.png) no-repeat scroll 0 0;
text-align:center;
padding-top:32px;
margin-right:8px;
width:960px;
height:86px;
}

#footer .mini {
font-size:10px;
padding-top:2px;
}

/* ===========================================================
Form ====================================================== */

.text {
background:transparent url(images/bg_input.png) no-repeat scroll 0 0;
padding:2px 3px 0 3px;
font-weight:bold;
color:#cbcbcb;
width:124px;
height:16px;
border:none;
}

.submit {
background:transparent url(images/loupe.png) no-repeat scroll 0 0;
cursor:pointer;
border:none;
height:20px;
width:22px;
}

.tableau
{
width:655px;
text-align:center;
border:1px solid #414141;
border-collapse:collapse;
}

.tableau th
{
background-color:#414141;
height:22px;
color:white;
text-align:center;
}

.tableau td
{
border:1px solid #414141;
padding:5px;
}






Style.php :

<?php
/**
*
* @package phpBB3
* @version $Id: style.php 8780 2008-08-22 12:52:48Z acydburn $
* @copyright (c) 2005 phpBB Group
* @license https://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);

// Report all errors, except notices
error_reporting(E_ALL ^ E_NOTICE);

require($phpbb_root_path . 'config.' . $phpEx);

if (!defined('PHPBB_INSTALLED') || empty($dbms) || empty($acm_type))
{
exit;
}

if (version_compare(PHP_VERSION, '6.0.0-dev', '<'))
{
@set_magic_quotes_runtime(0);
}

// Load Extensions
if (!empty($load_extensions))
{
$load_extensions = explode(',', $load_extensions);

foreach ($load_extensions as $extension)
{
@dl(trim($extension));
}
}


$sid = (isset($_GET['sid']) && !is_array($_GET['sid'])) ? htmlspecialchars($_GET['sid']) : '';
$id = (isset($_GET['id'])) ? intval($_GET['id']) : 0;

if (strspn($sid, 'abcdefABCDEF0123456789') !== strlen($sid))
{
$sid = '';
}

// This is a simple script to grab and output the requested CSS data stored in the DB
// We include a session_id check to try and limit 3rd party linking ... unless they
// happen to have a current session it will output nothing. We will also cache the
// resulting CSS data for five minutes ... anything to reduce the load on the SQL
// server a little
if ($id)
{
// Include files
require($phpbb_root_path . 'includes/acm/acm_' . $acm_type . '.' . $phpEx);
require($phpbb_root_path . 'includes/cache.' . $phpEx);
require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
require($phpbb_root_path . 'includes/constants.' . $phpEx);
require($phpbb_root_path . 'includes/functions.' . $phpEx);

$db = new $sql_db();
$cache = new cache();

// Connect to DB
if (!@$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, false))
{
exit;
}
unset($dbpasswd);

$config = $cache->obtain_config();
$user = false;

if ($sid)
{
$sql = 'SELECT u.user_id, u.user_lang
FROM ' . SESSIONS_TABLE . ' s, ' . USERS_TABLE . " u
WHERE s.session_id = '" . $db->sql_escape($sid) . "'
AND s.session_user_id = u.user_id";
$result = $db->sql_query($sql);
$user = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
}

$recompile = $config['load_tplcompile'];
if (!$user)
{
$id = $config['default_style'];
$recompile = false;
$user = array('user_id' => ANONYMOUS);
}

$sql = 'SELECT s.style_id, c.theme_id, c.theme_data, c.theme_path, c.theme_name, c.theme_mtime, i.*, t.template_path
FROM ' . STYLES_TABLE . ' s, ' . STYLES_TEMPLATE_TABLE . ' t, ' . STYLES_THEME_TABLE . ' c, ' . STYLES_IMAGESET_TABLE . ' i
WHERE s.style_id = ' . $id . '
AND t.template_id = s.template_id
AND c.theme_id = s.theme_id
AND i.imageset_id = s.imageset_id';
$result = $db->sql_query($sql, 300);
$theme = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

if (!$theme)
{
exit;
}

if ($user['user_id'] == ANONYMOUS)
{
$user['user_lang'] = $config['default_lang'];
}

$user_image_lang = (file_exists($phpbb_root_path . 'styles/' . $theme['imageset_path'] . '/imageset/' . $user['user_lang'])) ? $user['user_lang'] : $config['default_lang'];

$sql = 'SELECT *
FROM ' . STYLES_IMAGESET_DATA_TABLE . '
WHERE imageset_id = ' . $theme['imageset_id'] . "
AND image_filename <> ''
AND image_lang IN ('" . $db->sql_escape($user_image_lang) . "', '')";
$result = $db->sql_query($sql, 3600);

$img_array = array();
while ($row = $db->sql_fetchrow($result))
{
$img_array[$row['image_name']] = $row;
}
$db->sql_freeresult($result);

// gzip_compression
if ($config['gzip_compress'])
{
// IE6 is not able to compress the style (do not ask us why!)
$browser = (!empty($_SERVER['HTTP_USER_AGENT'])) ? strtolower(htmlspecialchars((string) $_SERVER['HTTP_USER_AGENT'])) : '';

if ($browser && strpos($browser, 'msie 6.0') === false && @extension_loaded('zlib') && !headers_sent())
{
ob_start('ob_gzhandler');
}
}

// Expire time of seven days if not recached
$expire_time = 7*86400;
$recache = false;

// Re-cache stylesheet data if necessary
if ($recompile || empty($theme['theme_data']))
{
$recache = (empty($theme['theme_data'])) ? true : false;
$update_time = time();

// We test for stylesheet.css because it is faster and most likely the only file changed on common themes
if (!$recache && $theme['theme_mtime'] < @filemtime("{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme/stylesheet.css'))
{
$recache = true;
$update_time = @filemtime("{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme/stylesheet.css');
}
else if (!$recache)
{
$last_change = $theme['theme_mtime'];
$dir = @opendir("{$phpbb_root_path}styles/{$theme['theme_path']}/theme");

if ($dir)
{
while (($entry = readdir($dir)) !== false)
{
if (substr(strrchr($entry, '.'), 1) == 'css' && $last_change < @filemtime("{$phpbb_root_path}styles/{$theme['theme_path']}/theme/{$entry}"))
{
$recache = true;
break;
}
}
closedir($dir);
}
}
}

if ($recache)
{
include_once($phpbb_root_path . 'includes/acp/acp_styles.' . $phpEx);

$theme['theme_data'] = acp_styles::db_theme_data($theme);
$theme['theme_mtime'] = $update_time;

// Save CSS contents
$sql_ary = array(
'theme_mtime' => $theme['theme_mtime'],
'theme_data' => $theme['theme_data']
);

$sql = 'UPDATE ' . STYLES_THEME_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . "
WHERE theme_id = {$theme['theme_id']}";
$db->sql_query($sql);

$cache->destroy('sql', STYLES_THEME_TABLE);
}

// Only set the expire time if the theme changed data is older than 30 minutes - to cope with changes from the ACP
if ($recache || $theme['theme_mtime'] > (time() - 1800))
{
header('Expires: 0');
}
else
{
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + $expire_time));
}

header('Content-type: text/css; charset=UTF-8');

// Parse Theme Data
$replace = array(
'{T_THEME_PATH}' => "{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme',
'{T_TEMPLATE_PATH}' => "{$phpbb_root_path}styles/" . $theme['template_path'] . '/template',
'{T_IMAGESET_PATH}' => "{$phpbb_root_path}styles/" . $theme['imageset_path'] . '/imageset',
'{T_IMAGESET_LANG_PATH}' => "{$phpbb_root_path}styles/" . $theme['imageset_path'] . '/imageset/' . $user_image_lang,
'{T_STYLESHEET_NAME}' => $theme['theme_name'],
'{S_USER_LANG}' => $user['user_lang']
);

$theme['theme_data'] = str_replace(array_keys($replace), array_values($replace), $theme['theme_data']);

$matches = array();
preg_match_all('#\{IMG_([A-Za-z0-9_]*?)_(WIDTH|HEIGHT|SRC)\}#', $theme['theme_data'], $matches);

$imgs = $find = $replace = array();
if (isset($matches[0]) && sizeof($matches[0]))
{
foreach ($matches[1] as $i => $img)
{
$img = strtolower($img);
$find[] = $matches[0][$i];

if (!isset($img_array[$img]))
{
$replace[] = '';
continue;
}

if (!isset($imgs[$img]))
{
$img_data = &$img_array[$img];
$imgsrc = ($img_data['image_lang'] ? $img_data['image_lang'] . '/' : '') . $img_data['image_filename'];
$imgs[$img] = array(
'src' => $phpbb_root_path . 'styles/' . $theme['imageset_path'] . '/imageset/' . $imgsrc,
'width' => $img_data['image_width'],
'height' => $img_data['image_height'],
);
}

switch ($matches[2][$i])
{
case 'SRC':
$replace[] = $imgs[$img]['src'];
break;

case 'WIDTH':
$replace[] = $imgs[$img]['width'];
break;

case 'HEIGHT':
$replace[] = $imgs[$img]['height'];
break;

default:
continue;
}
}

if (sizeof($find))
{
$theme['theme_data'] = str_replace($find, $replace, $theme['theme_data']);
}
}

echo $theme['theme_data'];

if (!empty($cache))
{
$cache->unload();
}
$db->sql_close();
}

exit;

?>
0
tapion76 Messages postés 3775 Date d'inscription dimanche 8 juillet 2007 Statut Membre Dernière intervention 12 janvier 2014 870
13 mars 2009 à 17:31
oui c'est ça
la dedans tu peux modifier la banniere etc
0
Utilisateur anonyme
13 mars 2009 à 17:36
sa va etre dur pour moi ^^
0
tapion76 Messages postés 3775 Date d'inscription dimanche 8 juillet 2007 Statut Membre Dernière intervention 12 janvier 2014 870
13 mars 2009 à 17:41
ba en fait par ex


/* ===========================================================
Form ====================================================== */

.text {
background:transparent url(images/bg_input.png) no-repeat scroll 0 0;
padding:2px 3px 0 3px;
font-weight:bold;
color:#cbcbcb;
width:124px;
height:16px;
border:none;
}

.submit {
background:transparent url(images/loupe.png) no-repeat scroll 0 0;
cursor:pointer;
border:none;
height:20px;
width:22px;
}

.tableau
{
width:655px;
text-align:center;
border:1px solid #414141;
border-collapse:collapse;
}

.tableau th
{
background-color:#414141;
height:22px;
color:white;
text-align:center;
}

.tableau td
{
border:1px solid #414141;
padding:5px;
}

ça veut dire que pour le formulaire :
.text {
background:transparent url(images/bg_input.png) no-repeat scroll 0 0;
padding:2px 3px 0 3px;
font-weight:bold;
color:#cbcbcb;
width:124px;
height:16px;
border:none;
}
pour le text
fond transparent avec une image en fond
il place le formulaire padding ( c'est compté en pixel d'ou px )
color => done la couleur du text en hexadecimal
width => largeur
height => longueur
boreder none => pas de bordure

c'est aps si chaud que ça mais forme toi un petit peu en css
une fois que tu auras lu le fonctionnement tkt tu comprendra pas a pas par toi meme et tu pourra faire des trucs assez sympa
je vais essayer de te trouver des liens pour le .css
0
Utilisateur anonyme
13 mars 2009 à 17:45
donc en gros le fichier style.php poubelle ?
0
tapion76 Messages postés 3775 Date d'inscription dimanche 8 juillet 2007 Statut Membre Dernière intervention 12 janvier 2014 870
13 mars 2009 à 17:47
Ah non style.php doit faire appel au fichier style.css
en gros
Style.css => configure
Style.php => execute
c'est pas les bon termes mais bien resumé
0
tapion76 Messages postés 3775 Date d'inscription dimanche 8 juillet 2007 Statut Membre Dernière intervention 12 janvier 2014 870
13 mars 2009 à 17:48
t'a regarder mon lien ?
dans style css
en bas a droite il y a un lien ou il t explique bien en detail quel ligne sert a quoi
0
Utilisateur anonyme
13 mars 2009 à 20:37
oui mes je sui perdu :s
0
tapion76 Messages postés 3775 Date d'inscription dimanche 8 juillet 2007 Statut Membre Dernière intervention 12 janvier 2014 870
15 mars 2009 à 14:51
Oui ok
Ba la va falloir que tu vois
je v essayer de e trouver des tutos
0