Página 1 de 1

No consigo cambiar el estilo a ezportal

Publicado: 26 Mar 2005, 17:47
por cleo
Hola, lo he instalado hace poco, he seguido el mod que trae la misma descarga para cambiar el stilo, y aunque los cambios estí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?¡n bien hechos y en el portal sale el desplegable con los estilos que tengo despues al elegir uno u otro siempre regresa el subsilver.

este es el mod

Código: Seleccionar todo

#################################################################
## Title: Change Style for Smartor's ezPortal
## Author: Tom Cioffe Jr 
## Integrated by: Smartor  - http://smartor.is-root.com
## Description: This file explains you how to change style on ezPortal
##		Required "Change style on Index" Mod of Tom Cioffe Jr 
##
## Files To Edit: 2
##	portal.php
##	templates/subSilver/portal_body.tpl
##
## Included Files: N/A
##
#################################################################

#
#-----[ OPEN ]---------------------------------------------
#
portal.php

#
#-----[ FIND ]----------------------------------------
#
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'fetchposts.'.$phpEx);

#
#-----[ AFTER ADD ]-----------------------------------
#
// Change Style
include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);


#
#-----[ FIND ]----------------------------------------
#
$template->assign_vars(array(
	'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
	'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),

#
#-----[ BEFORE ADD ]-----------------------------------
#
// Change Style
$fpage_style = $userdata['user_style'];
if(isset($HTTP_POST_VARS['fpage_theme']))
{
	$fpage_theme = intval($HTTP_POST_VARS['fpage_theme']);
	$fpuser_id = $userdata['user_id'];
	$fp_sql = "UPDATE " . USERS_TABLE . " SET user_style = '$fpage_theme' WHERE user_id = $fpuser_id";
	if ( !($fp_result = $db->sql_query($fp_sql)) )
	{
		message_die(GENERAL_ERROR, 'Could not update users table ' . "$user_id $fpage_theme", '', __LINE__, __FILE__, $sql);
	}
	else
	{
		$fp_message = $lang['Profile_updated'] . '

' . sprintf($lang['Click_return_index'],  '', '');
		message_die(GENERAL_MESSAGE, $fp_message);
	}
}

#
#-----[ FIND ]----------------------------------------
#
	'L_VOTE_BUTTON' => $lang['Vote'],

#
#-----[ AFTER ADD ]-----------------------------------
#
	// Change Style
	'TEMPLATE_SELECT' => style_select($board_config['default_style'], 'template'),
	'L_SELECT_STYLE' => $lang['Change_style'],
	'L_CHANGE_NOW' => $lang['Go'],
	'FPAGE_STYLE' => style_select($fpage_style, 'fpage_theme'),


#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/portal_body.tpl

#
#-----[ FIND ]----------------------------------------
#
				
				
{AVATAR_IMG}
				
{LAST_VISIT_DATE}

				
				
{CURRENT_TIME}

{S_TIMEZONE}


#
#-----[ AFTER ADD ]-----------------------------------
#
				{L_SELECT_STYLE}:


				
				{TEMPLATE_SELECT} 
				
				
				{FPAGE_STYLE} 
				
				

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoF

Publicado: 26 Mar 2005, 20:56
por ThE KuKa
Revisa el codigo del MOD, algo pasas por alto.

S@lu2

Re: No consigo cambiar el estilo a ezportal

Publicado: 27 Mar 2005, 03:18
por ces@r
tenes razon the kuta hay un errorcito y pos eso ta jodida la cosa


salu2

Publicado: 27 Mar 2005, 03:19
por ces@r
oyeme the kuta algo ta pasando al publicar las respuestas en este foro fijate bien ok