#21 FedericoBiccheddu Giovedì, 14 Agosto 2008, 12:16
Cavolo è vero però quando vado a veder eil blocco mi viene restituito:
Warning: opendir(http://www.makingart.org/linkaci/120x60/) [function.opendir]: failed to open dir: not implemented in /web/htdocs/www.makingart.org/home/blocks/blocks_imp_banners_120x60.php on line 32
E questo è il codice:
<?php
/***************************************************************************
* blocks_imp_banners_120x60.php
* -------------------
* begin : 2007/02/06
* copyright : Mighty Gorgon
* website : http://www.mightygorgon.com
* email : mightygorgon@mightygorgon.com
*
***************************************************************************/
/***************************************************************************
*
* This program 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 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die('Hacking attempt');
}
if(!function_exists(imp_banners_120x60_func))
{
function imp_banners_120x60_func()
{
global $lang, $template, $board_config;
$path = 'http://www.makingart.org/';
$dir = 'http://www.makingart.org/linkaci/120x60/';
if ($handle = opendir("$dir")) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$dimensione = filesize( $dir . $file );
$data = date("d-m-Y", filectime( $dir . $file ));
$orario = date("H:i", filectime( $dir . $file));
$immagine = '<img src="' . $dir . $file . '" alt="Making Art.org" />';
$url_bbcode = '[url=' . $path . '][img]' . $dir . $file . '[/img][/url]';
$url_html = '<a href="' . $path . '" title="Making Art.org">' . $immagine . '" alt="Making Art.org" /></a>';
$url_diretto = '' . $dir . $file . '';
$template->assign_vars(array(
'DIMENSIONE' => $dimensione,
'DATA' => $data,
'ORARIO' => $orario,
'IMMAGINE' => $immagine,
'BBCODE' => $url_bbcode,
'HTML' => $url_html,
'URL' => $url_diretto,
)
);
}
}
closedir($handle);
}
}
}
imp_banners_120x60_func();
?>
Scusate se continuo ma non riesco a cavarne piede
Versione di IP: 1.3.15 (αlphα)
Server: Linux
____________ Per favore inserisci nel tuo Profilo la versione di Icy Phoenix e il Server utilizzato.
-

FedericoBiccheddu
-
Veterano

-
- Età: 20
- Registrato: Dicembre 2007
- Residenza: Sant'Antioco
- Messaggi: 2593
-
#22 HaoAsakura Lunedì, 12 Ottobre 2009, 07:20
Il codice nel primo post non sarebbe da aggiornare, vista la nuova versione di IP, così?:
- <?php
- /***************************************************************************
- * blocks_imp_NOMEBLOCCO.php
- * -------------------
- * begin : 2007/02/06
- * copyright : Mighty Gorgon
- * website : http://www.mightygorgon.com
- * email : mightygorgon@mightygorgon.com
- *
- ***************************************************************************/
-
- /***************************************************************************
- *
- * This program 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 of the License, or
- * (at your option) any later version.
- *
- ***************************************************************************/
-
- if (!defined('IN_ICYPHOENIX'))
- {
- die('Hacking attempt');
- }
- if(!function_exists(imp_NOMEBLOCCO_func))
- {
- function imp_NOMEBLOCCO_func()
- {
- global $lang, $template, $board_config;
-
- $template->assign_vars(array(
- )
- );
- }
- }
-
- imp_NOMEBLOCCO_func();
-
- ?>
Con
if (!defined('IN_ICYPHOENIX'))
Al posto di
if ( !defined('IN_PHPBB') )
Versione di IP: 1.3.0.53a
Server: Linux
____________
Ultima modifica di HaoAsakura il Lunedì, 12 Ottobre 2009, 07:21, modificato 1 volta in totale
-

HaoAsakura
-
Appassionato

-
- Età: 30
- Registrato: Giugno 2008
- Messaggi: 512
-
#23 fucile Lunedì, 12 Ottobre 2009, 16:01
Il codice nel primo post non sarebbe da aggiornare, vista la nuova versione di IP, così?:
- <?php
- /***************************************************************************
- * blocks_imp_NOMEBLOCCO.php
- * -------------------
- * begin : 2007/02/06
- * copyright : Mighty Gorgon
- * website : http://www.mightygorgon.com
- * email : mightygorgon@mightygorgon.com
- *
- ***************************************************************************/
-
- /***************************************************************************
- *
- * This program 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 of the License, or
- * (at your option) any later version.
- *
- ***************************************************************************/
-
- if (!defined('IN_ICYPHOENIX'))
- {
- die('Hacking attempt');
- }
- if(!function_exists(imp_NOMEBLOCCO_func))
- {
- function imp_NOMEBLOCCO_func()
- {
- global $lang, $template, $board_config;
-
- $template->assign_vars(array(
- )
- );
- }
- }
-
- imp_NOMEBLOCCO_func();
-
- ?>
Con
if (!defined('IN_ICYPHOENIX'))
Al posto di
if ( !defined('IN_PHPBB') )
Per un blocco da creare semplicemente con un tpl classico il codice è questo
<?php
/**
*
* @package Icy Phoenix
* @version $Id: blocks_imp_top_nav.php 61 2008-10-30 09:25:26Z Mighty Gorgon $
* @copyright (c) 2008 Icy Phoenix
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
*
* @Extra credits for this file
* masterdavid - Ronald John David
*
*/
if (!defined('IN_ICYPHOENIX'))
{
die('Hacking attempt');
}
?>
Ciao Fucile
Versione di IP: Versione 2.0 beta1
Server: Linux
____________ Nun c'è peggior sordo de chi nun vò sentì
-

fucile
-
Staff
 Attenzione! Sono carico!
-
- Età: 47
- Registrato: Maggio 2007
- Residenza: Roma
- Messaggi: 1443
-
Questo argomento è stato utile?
Questo argomento è stato utile?
| Condividi Argomento |
|
 | | Inserisci un link per questo argomento |
| URL |
|
| BBCode |
|
| HTML |
|
Argomenti Simili
Argomenti Simili
| Argomento |
Autore |
Forum |
Risposte |
Ultimo Messaggio |
 |
Come creare una pagina nuova con il CMS?
|
FedericoBiccheddu |
Archivio 'Supporto Generale' |
7 |
Martedì, 26 Febbraio 2008, 10:52  hpl |
 |
Problema Nell'aggiungere Nuove Voci Nel Menù
|
fyde90 |
Archivio 'Supporto Generale' |
5 |
Martedì, 10 Giugno 2008, 10:01  dNow |
 |
Come aggiungere un suono al vostro Portale
|
fucile |
Documentazioni e Guide |
16 |
Lunedì, 19 Ottobre 2009, 21:16  fucile |
 |
Come aggiungere un nuovo Blocco Nella pagi...
|
alexanderlich |
Temi e Grafica |
2 |
Sabato, 20 Novembre 2010, 02:53  alexanderlich |
 |
Aggiungere un blocco con "Social Book...
|
Skytrotter |
Temi e Grafica |
8 |
Venerdì, 04 Maggio 2012, 22:21  Skytrotter |
Lista Permessi
|
Non puoi inserire nuovi Argomenti Non puoi rispondere ai Messaggi Non puoi modificare i tuoi Messaggi Non puoi cancellare i tuoi Messaggi Non puoi votare nei Sondaggi Non puoi allegare files Non puoi scaricare gli allegati Non puoi inserire eventi calendario
|
|
|
|
|