Facebook chat for phpbb3

Con l'avvento della versione phpBB 3.1 Beta 2 e successive abbiamo rimosso tutte le MOD per sperimentare le estensioni.
Avatar utente
systemcrack
V.I.P.
V.I.P.
Messaggi: 293
Iscritto il: maggio 21, 2010, 11:38 am
Contatta:

Re: Facebook chat for phpbb3

Messaggio da systemcrack »

Intanto posto subito la nuova release.. che mi sembra sia cosa buona e giusta!

Poi il piano per aggirare il problema delle tabelle in sql sarebbe fare dei fogli sql (che si possono prendere anche dalla mod del portale) e caricarli come fossero un backup, ma per ora non ho avuto delle vere proprie conferme... devo guardarci, ma al solito ho problemi a casa ed in ufficio.
Ma ce la farò ormai mi sono intestardito con questa cosa!
Very Ignorant People
Avatar utente
Darkman
Amministratore
Amministratore
Messaggi: 1204
Iscritto il: marzo 28, 2009, 11:04 pm

Re: Facebook chat for phpbb3

Messaggio da Darkman »

Mamma mia che maratona sarebbe per una semplice CHAY...
Avatar utente
systemcrack
V.I.P.
V.I.P.
Messaggi: 293
Iscritto il: maggio 21, 2010, 11:38 am
Contatta:

Re: Facebook chat for phpbb3

Messaggio da systemcrack »

Ok ho capito come si caricano le queries su phpmyadmin è meno difficile di quello che si creda...
come fare
1 entrare in phpmyadmin
2 nella colonna di sinistra dove sono elencate tutte le tabelle, subito sotto alla scritta colorata phpmyadmin ci sono 5 tastini:
3 la casetta, exit, sql (finestra delle query).. ecc clicchiamo sulla terza.
4 si aprirà un pop up con una tabellina dove sarà possibile inserire il "codice sql" fornito dalla mod.
5 unavolta incollato il codice cliccare in basso a destra esegui e se tutto va bene ok altrimenti verrà segnalato un'errore di scrittura

Detto questo.. il mio problema adesso è che il "codice sql" non è scritto per funzionare su altervista perciò quando lo si va ad inserire non viene segnalato l'errore, ma quando si prova la mod.. da errore sql
Per intenderci:

Codice: Seleziona tutto

DROP TABLE IF EXISTS `phpbb_im`;
CREATE TABLE IF NOT EXISTS `phpbb_im` (
  `from` mediumint(8) NOT NULL,
  `to` mediumint(8) NOT NULL,
  `message` text collate utf8_bin NOT NULL,
  `sent` int(11) NOT NULL,
  `recd` tinyint(1) unsigned NOT NULL default '0',
  KEY `sent` (`sent`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

DROP TABLE IF EXISTS `phpbb_users_im`;
CREATE TABLE IF NOT EXISTS `phpbb_users_im` (
  `user_id` mediumint(9) NOT NULL,
  `user_status` varchar(1024) default NULL,
  `user_deny_im` tinyint(1) default '0',
  `user_sound_im` tinyint(1) NOT NULL default '1',
  PRIMARY KEY  (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

INSERT INTO `phpbb_config` (config_name, config_value, is_dynamic) VALUES ( 'im_disable', '0', 1);
INSERT INTO `phpbb_config` (config_name, config_value, is_dynamic) VALUES ( 'im_only_friends', '1', 1);
INSERT INTO `phpbb_config` (config_name, config_value, is_dynamic) VALUES ( 'im_allow_sound', '1', 1);
INSERT INTO `phpbb_config` (config_name, config_value, is_dynamic) VALUES ( 'im_override_cfg', '1', 1);
dovrà diventare

Codice: Seleziona tutto

DROP TABLE IF EXISTS `avphpbb_im`;
CREATE TABLE IF NOT EXISTS `avphpbb_im` (
  `from` mediumint(8) NOT NULL,
  `to` mediumint(8) NOT NULL,
  `message` text collate utf8_bin NOT NULL,
  `sent` int(11) NOT NULL,
  `recd` tinyint(1) unsigned NOT NULL default '0',
  KEY `sent` (`sent`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

DROP TABLE IF EXISTS `avphpbb_users_im`;
CREATE TABLE IF NOT EXISTS `avphpbb_users_im` (
  `user_id` mediumint(9) NOT NULL,
  `user_status` varchar(1024) default NULL,
  `user_deny_im` tinyint(1) default '0',
  `user_sound_im` tinyint(1) NOT NULL default '1',
  PRIMARY KEY  (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

INSERT INTO `avphpbb_config` (config_name, config_value, is_dynamic) VALUES ( 'im_disable', '0', 1);
INSERT INTO `avphpbb_config` (config_name, config_value, is_dynamic) VALUES ( 'im_only_friends', '1', 1);
INSERT INTO `avphpbb_config` (config_name, config_value, is_dynamic) VALUES ( 'im_allow_sound', '1', 1);
INSERT INTO `avphpbb_config` (config_name, config_value, is_dynamic) VALUES ( 'im_override_cfg', '1', 1);
Così dovrebbe andare bene, ma non ho ancora provato.
Very Ignorant People
Avatar utente
Darkman
Amministratore
Amministratore
Messaggi: 1204
Iscritto il: marzo 28, 2009, 11:04 pm

Re: Facebook chat for phpbb3

Messaggio da Darkman »

Ammazza....mi hai sorpassato e vai e vai
E per le righe? Non le rivhiede?

Silver scusa...ma è possibile che non sia possibile su altervista d_bbio d_bbio d_bbio
Avatar utente
systemcrack
V.I.P.
V.I.P.
Messaggi: 293
Iscritto il: maggio 21, 2010, 11:38 am
Contatta:

Re: Facebook chat for phpbb3

Messaggio da systemcrack »

Righe? Guarda avevo provato l'altro giorno a montarla su un forum su uno spazio che uso solo come "deposito" ma mi ha dato fatal error, ma avevo provato senza questa modifica, che mi è venuta in mente ieri sera... oggi provo ancora e ti so dire.

_____________________________________________________________________________________________________

Ok ho provato.. e ho fatto un passo avanti perchè ora non mi da più errore SQL, ma mi da sempre un errore cioè questo:

[phpBB Debug] PHP Notice: in file /common.php on line 226: main() [function.main]: Unable to access ./instant_messenger.php

[phpBB Debug] PHP Notice: in file /common.php on line 226: main(./instant_messenger.php) [function.main]: failed to open stream: Success

[phpBB Debug] PHP Notice: in file /common.php on line 226: main() [function.include]: Failed opening './instant_messenger.php' for inclusion (include_path='.:')


Ovviamente essendo un'ignorante in materia non so quale sia il problema.. ma lo posto qui in speranza che qualcuno possa illuminarmi.

E' possibile vedere direttamente il forum prova QUI

Inoltre l'errore si espande anche alla visualizzazione del pca vedi screenshot allegato:
[hsimg]http://incucinaconmarco.altervista.org/ ... magine.PNG[/hsimg]

Allego inoltre lo script del file citato dall'errore:

Codice: Seleziona tutto

<?php
/**
*
* @package phpBB3
* @version $Id: common.php 8760 2008-08-15 19:46:51Z aptx $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* Minimum Requirement: PHP 4.3.3
*/

/**
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

$starttime = explode(' ', microtime());
$starttime = $starttime[1] + $starttime[0];

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

/*
* Remove variables created by register_globals from the global scope
* Thanks to Matt Kavanagh
*/
function deregister_globals()
{
	$not_unset = array(
		'GLOBALS'	=> true,
		'_GET'		=> true,
		'_POST'		=> true,
		'_COOKIE'	=> true,
		'_REQUEST'	=> true,
		'_SERVER'	=> true,
		'_SESSION'	=> true,
		'_ENV'		=> true,
		'_FILES'	=> true,
		'phpEx'		=> true,
		'phpbb_root_path'	=> true
	);

	// Not only will array_merge and array_keys give a warning if
	// a parameter is not an array, array_merge will actually fail.
	// So we check if _SESSION has been initialised.
	if (!isset($_SESSION) || !is_array($_SESSION))
	{
		$_SESSION = array();
	}

	// Merge all into one extremely huge array; unset this later
	$input = array_merge(
		array_keys($_GET),
		array_keys($_POST),
		array_keys($_COOKIE),
		array_keys($_SERVER),
		array_keys($_SESSION),
		array_keys($_ENV),
		array_keys($_FILES)
	);

	foreach ($input as $varname)
	{
		if (isset($not_unset[$varname]))
		{
			// Hacking attempt. No point in continuing unless it's a COOKIE
			if ($varname !== 'GLOBALS' || isset($_GET['GLOBALS']) || isset($_POST['GLOBALS']) || isset($_SERVER['GLOBALS']) || isset($_SESSION['GLOBALS']) || isset($_ENV['GLOBALS']) || isset($_FILES['GLOBALS']))
			{
				exit;
			}
			else
			{
				$cookie = &$_COOKIE;
				while (isset($cookie['GLOBALS']))
				{
					foreach ($cookie['GLOBALS'] as $registered_var => $value)
					{
						if (!isset($not_unset[$registered_var]))
						{
							unset($GLOBALS[$registered_var]);
						}
					}
					$cookie = &$cookie['GLOBALS'];
				}
			}
		}

		unset($GLOBALS[$varname]);
	}

	unset($input);
}

// If we are on PHP >= 6.0.0 we do not need some code
if (version_compare(PHP_VERSION, '6.0.0-dev', '>='))
{
	/**
	* @ignore
	*/
	define('STRIP', false);
}
else
{
	@set_magic_quotes_runtime(0);

	// Be paranoid with passed vars
	if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on' || !function_exists('ini_get'))
	{
		deregister_globals();
	}

	define('STRIP', (get_magic_quotes_gpc()) ? true : false);
}

if (defined('IN_CRON'))
{
	$phpbb_root_path = dirname(__FILE__) . DIRECTORY_SEPARATOR;
}

if (!file_exists($phpbb_root_path . 'config.' . $phpEx))
{
	die("<p>The config.$phpEx file could not be found.</p><p><a href=\"{$phpbb_root_path}install/index.$phpEx\">Click here to install phpBB</a></p>");
}

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

if (!defined('PHPBB_INSTALLED'))
{
	// Redirect the user to the installer
	// We have to generate a full HTTP/1.1 header here since we can't guarantee to have any of the information
	// available as used by the redirect function
	$server_name = (!empty($_SERVER['HTTP_HOST'])) ? strtolower($_SERVER['HTTP_HOST']) : ((!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : getenv('SERVER_NAME'));
	$server_port = (!empty($_SERVER['SERVER_PORT'])) ? (int) $_SERVER['SERVER_PORT'] : (int) getenv('SERVER_PORT');
	$secure = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 1 : 0;

	$script_name = (!empty($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : getenv('PHP_SELF');
	if (!$script_name)
	{
		$script_name = (!empty($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : getenv('REQUEST_URI');
	}

	// Replace any number of consecutive backslashes and/or slashes with a single slash
	// (could happen on some proxy setups and/or Windows servers)
	$script_path = trim(dirname($script_name)) . '/install/index.' . $phpEx;
	$script_path = preg_replace('#[\\\\/]{2,}#', '/', $script_path);

	$url = (($secure) ? 'https://' : 'http://') . $server_name;

	if ($server_port && (($secure && $server_port <> 443) || (!$secure && $server_port <> 80)))
	{
		// HTTP HOST can carry a port number...
		if (strpos($server_name, ':') === false)
		{
			$url .= ':' . $server_port;
		}
	}

	$url .= $script_path;
	header('Location: ' . $url);
	exit;
}

if (defined('DEBUG_EXTRA'))
{
	$base_memory_usage = 0;
	if (function_exists('memory_get_usage'))
	{
		$base_memory_usage = memory_get_usage();
	}
}

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

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

// Include files
require($phpbb_root_path . 'includes/acm/acm_' . $acm_type . '.' . $phpEx);
require($phpbb_root_path . 'includes/cache.' . $phpEx);
require($phpbb_root_path . 'includes/template.' . $phpEx);
require($phpbb_root_path . 'includes/session.' . $phpEx);
require($phpbb_root_path . 'includes/auth.' . $phpEx);

require($phpbb_root_path . 'includes/functions.' . $phpEx);
require($phpbb_root_path . 'includes/functions_content.' . $phpEx);

require($phpbb_root_path . 'includes/constants.' . $phpEx);
require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);

// Set PHP error handler to ours
set_error_handler(defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handler');

// Instantiate some basic classes
$user		= new user();
$auth		= new auth();
$template	= new template();
$cache		= new cache();
$db			= new $sql_db();

// Connect to DB
$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, defined('PHPBB_DB_NEW_LINK') ? PHPBB_DB_NEW_LINK : false);

// We do not need this any longer, unset for safety purposes
unset($dbpasswd);

// Grab global variables, re-cache if necessary
$config = $cache->obtain_config();

// Add own hook handler
require($phpbb_root_path . 'includes/hooks/index.' . $phpEx);
$phpbb_hook = new phpbb_hook(array('exit_handler', 'phpbb_user_session_handler', 'append_sid', array('template', 'display')));

foreach ($cache->obtain_hooks() as $hook)
{
	@include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
}
include_once( $phpbb_root_path . 'instant_messenger.' . $phpEx);
?>
___________________________________________________________________________________________________

Ok trovato per entrambi gli errori avevo dimenticato d'inserire un file ed esattamente il instant_messenger.php

però ora da un'altro errore (la storia infinita!):

Fatal error: Cannot redeclare display_forums() (previously declared in /membri/incucinaconmarco/forum/includes/functions_display.php:22) in /membri/incucinaconmarco/forum/includes/functions_display.php on line 22

Risolverò pure questo... spero!
Very Ignorant People
Avatar utente
Darkman
Amministratore
Amministratore
Messaggi: 1204
Iscritto il: marzo 28, 2009, 11:04 pm

Re: Facebook chat for phpbb3

Messaggio da Darkman »

ma vi è il file install.php?
Avatar utente
systemcrack
V.I.P.
V.I.P.
Messaggi: 293
Iscritto il: maggio 21, 2010, 11:38 am
Contatta:

Re: Facebook chat for phpbb3

Messaggio da systemcrack »

no... ma in fatti aspetto ancora perchè non ce la faccio a montarla... mi sta facendo perdere troppo tempo!
Very Ignorant People
Avatar utente
systemcrack
V.I.P.
V.I.P.
Messaggi: 293
Iscritto il: maggio 21, 2010, 11:38 am
Contatta:

Re: Facebook chat for phpbb3

Messaggio da systemcrack »

Siccome non mi arrendo perchè LA VOGLIO QUESTA BENEDETTA CHAT ho visitato su consiglio di artikkmania (mi pare si chiami così su ciricadoforum), questo sito che popone una chat davvero similare a quella di facebook e con alcune varianti che si possono applicare a seconda delle necessità.. come ad esempio il fatto che chi non è iscritto non può vedere la chat, cambiare il colore della barra ed altre cosette.
La barra della chat inoltre non contiene una sola chat, ma due una per il privato e una per tutti gli iscritti.

Io non trovato molto esauriente il file install in quanto non nomina tutti i file da modificare.. ad ogni modo nella cartella che scaricate ci sarà la variante per prosilver e per subsilver.
dentro alla prosilver avrete root in cui vi saranno 2 cartelle (bowob - style) e un file (bowob.php)
La cartella bowob e il file bowob.php li mettete in root del forum (come consigliatomi da artikmania) e il file che risiede in style (bowob_body.html) ovviamente in style/template

Purtroppo io ancora non sono riuscito a capire cosa sbaglio, ma se va bene per domani dovrei farcela.

Ps
se nel frattempo qualcuno vuole provarci..
Very Ignorant People
Avatar utente
Darkman
Amministratore
Amministratore
Messaggi: 1204
Iscritto il: marzo 28, 2009, 11:04 pm

Re: Facebook chat for phpbb3

Messaggio da Darkman »

Mi dai il link diretto della MOD?
Avatar utente
systemcrack
V.I.P.
V.I.P.
Messaggi: 293
Iscritto il: maggio 21, 2010, 11:38 am
Contatta:

Re: Facebook chat for phpbb3

Messaggio da systemcrack »

Il link diretto della mod non ce l'ho la scarichi dal sito con le modifiche già attuate (es.colori settaggi e cose simili) la gestione della barra si attua dal sito..
Very Ignorant People
Rispondi