Ver Mensaje Individual
  #30 (permalink)  
Antiguo 18/12/2003, 05:18
xema
 
Fecha de Ingreso: febrero-2002
Ubicación: Valencia - España
Mensajes: 488
Antigüedad: 23 años, 1 mes
Puntos: 0
TRankilo que la instalación la hice en un par de minutos, poco a poco iré ajustando el theme, y viendo como está la cosa....
ahora estoy probando a ajustarlo al index, lo podeis ver aki:
http://www.xematuning.com/index6.php
aunq aún no está acabado, ya que sigo probando cosillas, y modificando, y ajustando a lo que necesite.
para lo de tu carpeta no tienes problema, debes de ajustar esto:
(está en examples/portal)

Código PHP:
<?php
#######################################################################
##                                                                   ##
## phpBB Fetch All - displays phpBB on any page                      ##
## ----------------------------------------------------------------- ##
## A portal example file.                                            ##
##                                                                   ##
#######################################################################
##                                                                   ##
## Authors: Volker 'Ca5ey' Rattel <[email protected]>              ##
##          [url]http://clanunity.net/portal.php[/url]                          ##
##                                                                   ##
## This file is free software; you can redistribute it and/or modify ##
## it under the terms of the GNU General Public License as published ##
## by the Free Software Foundation; either version 2, or (at your    ##
## option) any later version.                                        ##
##                                                                   ##
## This file is distributed in the hope that it will be useful,      ##
## but WITHOUT ANY WARRANTY; without even the implied warranty of    ##
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the      ##
## GNU General Public License for more details.                      ##
##                                                                   ##
#######################################################################

//
// This path points to the directory where phpBB is installed. Do
// not enter an URL here. The path must end with a trailing
// slash.
//
// Examples:
// forum in /aaa/bbb/ccc/ and script in /aaa/bbb/ccc/
// --> $phpbb_root_path = './';
// forum in /aaa/bbb/ccc/ and script in /aaa/bbb/
// --> $phpbb_root_path = './ccc/';
// forum in /aaa/bbb/ccc/ and script in /aaa/bbb/ddd/
// --> $phpbb_root_path = '../ccc/';
//

$phpbb_root_path './phpBB2/';

//
// this setting is for the clanunity site - ignore it
//
// $phpbb_root_path = './forum/';

define ('IN_PHPBB'true);

if (!
file_exists($phpbb_root_path 'extension.inc'))
{
    die (
'<tt><b>phpBB Fetch All:</b>
          $phpbb_root_path is wrong and does not point to your forum.</tt>'
);
}

//
// phpBB related files
//

include_once ($phpbb_root_path 'extension.inc');
include_once (
$phpbb_root_path 'common.' $phpEx);
include_once (
$phpbb_root_path 'includes/bbcode.' $phpEx);

//
// Fetch All related files - we do need all these because the portal is a
// huge example
//

include_once ($phpbb_root_path 'mods/phpbb_fetch_all/common.' $phpEx);
include_once (
$phpbb_root_path 'mods/phpbb_fetch_all/stats.' $phpEx);
include_once (
$phpbb_root_path 'mods/phpbb_fetch_all/users.' $phpEx);
include_once (
$phpbb_root_path 'mods/phpbb_fetch_all/polls.' $phpEx);
include_once (
$phpbb_root_path 'mods/phpbb_fetch_all/posts.' $phpEx);
include_once (
$phpbb_root_path 'mods/phpbb_fetch_all/forums.' $phpEx);

//
// start session management
//

$userdata session_pagestart($user_ipPAGE_INDEX$session_length);
init_userprefs($userdata);

//
// since we are demonstrating span pages we need to set the page offset
//

if (isset($HTTP_GET_VARS['start']) or isset($HTTP_POST_VARS['start'])) {
    
$CFG['posts_span_pages_offset'] = isset($HTTP_GET_VARS['start']) ? $HTTP_GET_VARS['start'] : $HTTP_POST_VARS['start'];
}

// fetch new posts since last visit
$new_posts phpbb_fetch_new_posts();

// fetch user online, total posts, etc
$stats       phpbb_fetch_stats();

// fetch five users by total posts
$top_poster  phpbb_fetch_top_poster();

// fetch a random user
$random_user phpbb_fetch_random_user();

// fetch forum structure
$forums      phpbb_fetch_forums();

// fetch user of a specific group
// this function is disabled because fetching without a specific
// user group can produces a lot of results (all registered users)
// and this may result in an internal server error. If you want to
// use this feature please specify the group id.
# $member      = phpbb_fetch_users();

// fetch a poll
$poll        phpbb_fetch_poll(21);

// fetch a single topic by topic id
$download    phpbb_fetch_topics(1);

// fetch latest postings
$CFG['posts_trim_topic_number'] = 15;
$recent      phpbb_fetch_posts(nullPOSTS_FETCH_LAST);

// fetch postings
$CFG['posts_trim_topic_number'] = 0;
$CFG['posts_span_pages']        = true;
$news        phpbb_fetch_posts(21);

//
// these settings are for the clanunity site - ignore them
//
// $forums      = phpbb_fetch_forums(5);
// $member      = phpbb_fetch_users(83);
// $poll        = phpbb_fetch_poll(12);
// $download    = phpbb_fetch_topics(623);
// $CFG['posts_trim_topic_number'] = 25;
// $recent      = phpbb_fetch_posts(12, POSTS_FETCH_LAST);
// $CFG['posts_trim_topic_number'] = 0;
// $CFG['posts_span_pages'] = true;
// $news        = phpbb_fetch_posts(11);

//
// disconnect from the database
//

phpbb_disconnect();

?>
entonces lo principal es cambiar esto:
Código PHP:
$phpbb_root_path './phpBB2/'
si vas a poner el archivo en la ruta principal, y el foro en la subcarpeta forum lo haces por
Código PHP:
$phpbb_root_path './forum/'
de todas formas lee, los ejemplos q pone aki al principio, q son muy claros y sencillos
si necesitamos algo más dimelo
__________________
webmaster de xematuning el mejor tuning español con más de 25000 fotos sobre el mundo del tuning, videos, salvapantallas, fondos y mucho más no lo dudes más y visítala!!!