Vai al contenuto

Come si fa con il layout e statistiche in IP Content?

Featured Replies

Inviato
  • Autore

io la vedo.....correttamente

Certo perchè ho riuppato il file initdata originale, ma quando inserisco quello modificato mi da quell'errore.

Inviato

prova ad upparlo in binary mode

Inviato
  • Autore

prova ad upparlo in binary mode

Non cambia niente.

Stesso errore ;)

Inviato

eppure scusa, io se mi collego qui http://www.biancoscudati.it/

vado diretto alla pagina dell'ip. content

perchè hai fatto il redirect giusto?

qual'è il vero link della pagina?

Inviato
  • Autore

eppure scusa, io se mi collego qui http://www.biancoscudati.it/

vado diretto alla pagina dell'ip. content

perchè hai fatto il redirect giusto?

qual'è il vero link della pagina?

ho utilizzato l'htaccess che mi ha creato l'admin panel dopo aver variato (ho inserito la directory del forum)l'index.php della cartella "tool" nel pacchetto ipcontent.

L'htaccess che ho uppato è questo :

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

ed il file index.php nella root è questo:

<?php

/**
* <pre>
* Invision Power Services
* Admin control panel gateway index.php file
* Last Updated: $Date: 2010-10-26 10:28:43 -0400 (Tue, 26 Oct 2010) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/community/board/license.html
* @package Invision Power Board
* @link http://www.invisionpower.com
* @version $Rev: 7043 $
*
*/

/**
* You must define the path to your IPB installation here, with a trailing slash.
* THIS IS A PATH, NOT A URL. So, for example if this file is located in the root
* of your site at /home/account/public_html and your forums are in a subfolder
* named forums, you would set this to /home/account/public_html/forums/
*/
$path_to_ipb = './invision/';


/**
* This is the flag in the URL for database friendly URLs. You must have a flag here
* (i.e. do not try to set this as an empty string). This also needs to be updated in
* admin/applications_addon/ips/ccs/app_class_ccs.php as well.
*/

define( 'DATABASE_FURL_MARKER', '_' );




/**
* ------------------------------------------------------------------------------------------
* No editing below this line
* ------------------------------------------------------------------------------------------
*/
define( 'CCS_GATEWAY_CALLED', true );
define( 'IPB_THIS_SCRIPT', 'public' );
define( 'IPS_PUBLIC_SCRIPT', 'index.php' );
require_once( $path_to_ipb . 'initdata.php' );

//-----------------------------------------
// Get request uri
//-----------------------------------------

$uri = $_SERVER['REQUEST_URI'] ? $_SERVER['REQUEST_URI'] : @getenv('REQUEST_URI');

//-----------------------------------------
// Does URI have /index.php/ in it?
//-----------------------------------------

if( strpos( $uri, basename(__FILE__) . '/' ) !== false )
{
$myUri = substr( $uri, ( strpos( $uri, basename(__FILE__) . '/' ) + ( strlen( basename(__FILE__) ) + 1 ) ) );
}
else
{
$myUri = $uri;
}

//-----------------------------------------
// Does URI have db marker in it
//-----------------------------------------

if( strpos( $myUri, '/' . DATABASE_FURL_MARKER . '/' ) !== false )
{
$myUri = substr( $myUri, 0, ( strpos( $myUri, '/' . DATABASE_FURL_MARKER . '/' ) ) );
}

//-----------------------------------------
// Trim off trailing slash, if present
//-----------------------------------------

$myUri = rtrim( $myUri, '/' );

//-----------------------------------------
// What about ?key=value?
// PHP already sets GET, but need to fix page name
//-----------------------------------------

if( strpos( $myUri, '?' ) !== false )
{
$parameters = substr( $myUri, strpos( $myUri, '?' ) );
$myUri = substr( $myUri, 0, ( strlen($myUri) - strlen($parameters) ) );
}

//-----------------------------------------
// Sort out folders
//-----------------------------------------

$uriBits = explode( '/', $myUri );
$myFolder = '';

if( count($uriBits) > 1 )
{
$myUri = array_pop($uriBits);
$myFolder = count($uriBits) ? '/' . implode( '/', $uriBits ) : '';
$myFolder = ( $myFolder == '/' ) ? '' : $myFolder;
}

//-----------------------------------------
// Set appropriate params for IPB
//-----------------------------------------

$_GET['app'] = $_POST['app'] = $_REQUEST['app'] = 'ccs';
$_GET['module'] = $_POST['module'] = $_REQUEST['module'] = 'pages';
$_GET['section'] = $_POST['section'] = $_REQUEST['section'] = 'pages';
$_GET['page'] = $_POST['page'] = $_REQUEST['page'] = $myUri;
$_GET['folder'] = $_POST['folder'] = $_REQUEST['folder'] = $myFolder;

//-----------------------------------------
// Include registry and controller, and off we go
//-----------------------------------------

require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );
require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );

ipsController::run();

exit();

Non mi sembra di scorgere alcun indirizzo preciso ad una pagina del ccs.

Inviato

ma l'htaccess l'hai messo nella cartella del forum o in root?

Inviato
  • Autore

ma l'htaccess l'hai messo nella cartella del forum o in root?

Root

Inviato

allora intanto dovrei aver trovato il tuo problema.

vai in ip.content

setting

efault home page

If no page is specified, which page should we try to load as the default?

qui ci devi inserire l'url completo alla pagina che vuoi che sia la tua home.

poi prova a mettere il famoso ccs nell'initdata

Inviato

per l'htaccess in teoria se il forum si trova nella cartella invision, e il file è in root, la riga dovrebbe essere:

RewriteBase /invision/

Inviato
  • Autore

Niente....

Ho fatto tutti i cambianebti che mi hai suggerito ma niente.

Ho aperto un ticket...vediamo cosa mi rispondono.

Inviato

mi fai poi sapere, thanks.... ;)

Inviato
  • Autore

Non si può fare :(

La board non è progettata per utilizzare le due funzioni insieme. ;)

Hello,

You really can't run BOTH the external index.php AND have the default forum page be content. They're designed to be one or the other. That's why you get the error when you enable both. Because it's expecting something to come in through the external index, and it's actually coming from the forum.

Jason

IPS Support

Ho risolto mettendo un redirect html nella root e modificando initdata.php

Modificato da gKronos

Inviato

bene perfetto. ;)

Per favore accedi per lasciare un commento

Potrai lasciare un commento dopo aver effettuato l'accesso

Accedi Ora

Chi sta navigando 0

  • Nessun utente registrato visualizza questa pagina.

Informazioni importanti

Abbiamo inserito dei cookies nel tuo dispositivo per aiutarti a migliorare la tua esperienza su questo sito. Puoi modificare le impostazioni dei cookie, altrimenti puoi accettarli cliccando su continua. to insert a cookie message.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.