Ciao a tutti,..ho 1 problemi :P
Ho installato la phpneogallery tragli script di http://php.html.it!Ora ho 1 problema...i div non sono centrati e io vorrei centrarli..x qui o modifikato il codice ma..non si centrano:
Codice PHP:
<?php
/************************************************/
/* script name: PhpNeoGallery */
/* author: CubaLibre <Andrea Cardone> */
/* contact: info(at)area82.it */
/* website: http://phpneogallery.area82.it */
/* */
/************************************************/
if(!defined('IN_GALLERY'))
die('<h1>Access Error</h1>');
class skin_neo06
{
var $transparent_thumb = "F9F9F9"; // background-color of your thumbnail view page, for resolve problem with transparent gif
var $transparent_pics = "F9F9F9"; // background-color of your pics view page, for resolve problem with transparent gif
function testata()
{
global $config;
return "
<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">
<html>
<head>
<title>PhpNeoGallery</title>
<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\">
<link rel=\"SHORTCUT ICON\" href=\"favicon.ico\">
<link rel=\"stylesheet\" href=\"lightbox/css/lightbox.css\" type=\"text/css\" media=\"screen\" />
<style type=\"text/css\">
@import url(skin/neo06/style.css);
</style>
<script type=\"text/javascript\" src=\"lightbox/js/prototype.js\"></script>
<script type=\"text/javascript\" src=\"lightbox/js/scriptaculous.js?load=effects\"></script>
<script type=\"text/javascript\" src=\"lightbox/js/lightbox.js\"></script>
<script type=\"text/javascript\">
function setCookie(c_name,value,expiredays)
{
var exdate=new Date()
exdate.setDate(expiredays)
document.cookie=c_name+ \"=\" +escape(value)+
((expiredays==null) ? \"\" : \";expires=\"+exdate)
document.location=document.location
}
function blank() {
for (var i=0; i<document.links.length; i++)
if (document.links[i].className==\"blank\")
{
document.links[i].target=\"_blank\";
}
}
window.onload = blank;
function addsmile(smile) {
if (document.add_comment.num_smile.value==\"0\")
{
alert('{$lang->lg[max_emo]}');
document.add_comment.num_smile.value=0;
return false;
}
document.add_comment.num_smile.value--;
document.add_comment.commento.value+=smile;
}
function ctext() {
rest = document.add_comment.commento.value.length;
document.add_comment.caratteri.value = 100-rest;
if (document.add_comment.caratteri.value < 0)
{
alert('{$lang->lg[max_char]}');
document.add_comment.caratteri.value = 0;
document.add_comment.commento.value = document.add_comment.commento.value.substring(0, 100);
return false;
}
}
</script>
</head>
<body>
<!-- Start main container -->
<div id=\"wrapper\">
<div id=\"logo\"></div>
";
}
function navigazione($nav)
{
return "
<!-- Start Navigation -->
<div id=\"navigation\" align=\"center\">
{$nav}
</div>
";
}
function album_view_folder($result)
{
return "
<!-- Start Gallery View Folder -->
<center><div id=\"gallery_folder\" align=\"center\">
{$result}
<!-- End Gallery View Folder -->
<div class=\"clear\" align=\"center\"> </div>
</div></center>
";
}
function album_view_pics($result)
{
return "
<!-- Start Gallery View Pics -->
<center><div id=\"gallery_pics\" align=\"center\">
{$result}
<!-- End Gallery View Pics -->
<div class=\"clear\" align=\"center\"> </div>
</div></center>
";
}
function pics_view($real_name, $picture, $before, $after)
{
return "
<!-- Start Picture View -->
<div id=\"pics_view\">
<p class=\"light\">{$before} {$real_name} {$after}</p>
{$picture}
";
}
function comment($class, $autore, $data, $comment)
{
return "
<div class=\"commento_{$class}\">
<strong>{$autore}</strong>@{$data}<br /><br />
{$comment}<br />
<br />
</div>
";
}
function comment_list($commento)
{
global $lang;
return "
<!-- Start Lista Commenti -->
<p class=\"bg\">{$lang->lg[comments]}</p>
<a id=\"comment\"></a>
{$commento}
";
}
function form_comment($smile)
{
global $lang, $config;
return "
<!-- Start Form Comment -->
<div id=\"comment_form\">
<p class=\"bg\">{$lang->lg[insert_comment]}</p>
<form name=\"add_comment\" method=\"POST\" action=\"?act=add_comment\">
<div id=\"form_left\">
{$lang->lg[nickname]}<br />
<input type=\"text\" name=\"nome\" class=\"text\"><br />
{$lang->lg[url]}<br />
<input type=\"text\" name=\"sito\" class=\"text\"><br />
{$lang->lg[comment]}
<br /><textarea name=\"commento\" rows=\"6\" cols=\"25\" onkeyup=\"javascript:ctext()\" class=\"text\"></textarea>
<br /><br />
<input type=\"hidden\" name=\"file\" value=\"{$_GET[pics]}\">
<input type=\"Submit\" name=\"submit\" value=\"{$lang->lg[send]}\" class=\"button\"> <input type=\"Reset\" value=\"{$lang->lg[reset]}\" class=\"button\">
</div>
<div id=\"form_right\">
{$lang->lg[smiles]}<br /><br />
{$smile}
<br />{$lang->lg[rest_chr]}: <input type=\"text\" name=\"caratteri\" class=\"hidden_text\" value=\"100\" size=\"3\" disabled>
<br />{$lang->lg[smile]}: <input type=\"text\" name=\"num_smile\" class=\"hidden_text\" value=\"5\" size=\"1\" disabled>
</div>
<div class=\"clear\"> </div>
</form>
<!-- End Form Comment -->
</div>
";
}
function end_pics()
{
return "
<!-- End Picture View -->
</div>
";
}
function last($autore, $data, $comment, $link)
{
global $lang;
return "<div class=\"latest_com\"><strong>{$data}</strong> {$autore}: {$comment} [<a href=\"index.php?pics={$link}#comment\" title=\"{$lang->lg['read_comment']}\">{$lang->lg['read']}</a>]</div>";
}
function latest_list($commento)
{
global $lang;
return "
<!-- Start Lista Ultimi Commenti -->
<div id=\"latest\">{$lang->lg['latest_comments']}</div>
{$commento}
";
}
function coda($copyright, $lang_option)
{
global $lang;
return "
<!-- Select Language -->
<div id=\"language\"></div>
<!-- End main container -->
</div>
</body>
</html>
";
}
}
?>
lo script è qui: http://davide.ilbello.com/site/gallery
non vedrete niente xkè ho modifikato il css in un modo parikolare per vederlo dovete andare qui http://davide.ilbello.com/site/home.php !..
---
Il secondo problema è un pò più complicato!!Vorrei fare 1 include() nella mia home.php ma ho messo:
Codice PHP:
<html>
<head>
<meta http-equiv="Content-Language" content="it">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Nuova pagina 2</title>
</head>
<body bgcolor="#000000">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="832" height="539">
<!-- MSTableType="layout" -->
<tr>
<td height="90" background="logo.jpg">
</td>
</tr>
<tr>
<td valign="top" height="405" background="sfondocontainer.jpg">
<p align="center"><font color="#FFFFFF">Davide Design</font></p>
<p align="center">
<?php include('../site/gallery/index.php') ?></td>
</tr>
<tr>
<td height="44" width="832"> </td>
</tr>
</table></center>
</body>
</html>
e mi da questo errore:
Codice:
Warning: language::include(config.php) [function.language-include]: failed to open stream: No such file or directory in /home/hosting/davide/site/gallery/lib/language.php on line 22
Warning: language::include() [function.include]: Failed opening 'config.php' for inclusion (include_path='.:') in /home/hosting/davide/site/gallery/lib/language.php on line 22
Error:
language/.php not found
.Qual'è il problema??^_^.Grazie.Ciao Davide.