Bywalec
Postów: 399 Pomógł: 64
v7.02.05 Data rejestracji: 28.06.2009 19:38
|
Witam,
pobrałem sobie skrypt Cu3er i mam problem z zainstalowaniem go. Opis instalacji jest tutaj: http://www.progre...u3er/docs/ (należy kliknąć na Quick Start). Plik demo.htm wygląda tak: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CU3ER - demo!</title>
<!-- STEP ONE: insert path to SWFObject JavaScript -->
<script type="text/javascript" src="js/swfobject/swfobject.js"></script>
<!-- STEP TWO: configure SWFObject JavaScript and embed CU3ER slider -->
<script type="text/javascript">
var flashvars = {};
flashvars.xml = "config.xml";
flashvars.font = "font.swf";
var attributes = {};
attributes.wmode = "transparent";
attributes.id = "slider";
swfobject.embedSWF("cu3er.swf", "cu3er-container", "600", "300", "9", "expressInstall.swf", flashvars, attributes);
</script>
<style type="text/css">
<!--
body { margin: 5% auto; text-align:center;}
#cu3er-container {width:600px; outline:0;}
-->
</style>
</head>
<body>
<!-- STEP THREE: insert CU3ER div container -->
<div id="cu3er-container">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
</div>
</body>
</html>
Kliknij i zaczekaj na załadowanie kodu ...
Jeszcze podrzucam plik theme.php mojej skórki, bo zapewne się przyda.<?php
/*-------------------------------------------------------+
| Design by Free CSS Templates
| http://www.freecs...plates.org
| Released for free under a Creative Commons Attribution 2.5 License
+--------------------------------------------------------+
| Title : Puzzled
| Version : 1.0
| Released : 20080706
| Description: A wide two-column design suitable for blogs and small websites.
+--------------------------------------------------------+
| Ported to PHP-Fusion 7 by Starefossen
| http://version.st...
+--------------------------------------------------------*/
define("THEME_BULLET", "");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style, $locale;
$puzzled['link']['privacy'] = "#";
$puzzled['link']['terms'] = "#";
//Header
echo "<div id='header'>\n";
echo "<div id='logo'>\n";
echo "</div>\n";
echo "<div id='menu'>\n";
echo showsublinks($sep = "", $class = "");
echo "</div>\n";
echo "</div>\n";
echo "<div id='headerbg'></div>\n";
//Content
echo "<div id='page'>\n";
echo "<!-- start content -->\n";
echo "<div id='page-content'>\n";
echo "<!-- start recent-posts -->\n";
echo "<div id='recent-posts'>".LEFT."</div>\n";
echo "<!-- end recent-posts -->\n";
echo "<!-- start latest-post -->\n";
echo "<div id='latest-post' class='post'>".U_CENTER.CONTENT.L_CENTER."</div>\n";
echo "<!-- end latest-post -->\n";
echo "</div>\n";
echo "<!-- end content -->\n";
echo "<!-- start sidebar -->\n";
echo "<div id='sidebar'>\n";
echo "<ul>\n";
echo "<li>\n";
echo "<h2><a href='".BASEDIR."weblinks.php?cat_id=1'>Ostatnie linki</a></h2>\n";
echo "<ul>\n";
$result = dbquery(
"SELECT tw.weblink_id, tw.weblink_name, twc.weblink_cat_id FROM ".DB_WEBLINKS." tw
INNER JOIN ".DB_WEBLINK_CATS." twc ON tw.weblink_cat=twc.weblink_cat_id
".(iSUPERADMIN ? "" : "WHERE ".groupaccess('weblink_cat_access'))." ORDER BY weblink_datestamp DESC LIMIT 0,7"
);
if (dbrows($result)) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['weblink_name'], 23);
echo "<li><a href='".BASEDIR."weblinks.php?cat_id=".$data['weblink_cat_id']."&weblink_id=".$data['weblink_id']."' title='".$data['weblink_name']."'>$itemsubject</a></li>\n";
}
} else {
echo "<li>Nie znaleziono.</li>\n";
}
echo "</ul>\n";
echo "</li>\n";
echo "<li>\n";
echo "<h2><a href='".BASEDIR."articles.php?cat_id=1'>Ostatnie Artykuły</a></h2>\n";
echo "<ul>\n";
$result = dbquery(
"SELECT ta.article_id, ta.article_subject, tac.article_cat_id FROM ".DB_ARTICLES." ta
INNER JOIN ".DB_ARTICLE_CATS." tac ON ta.article_cat=tac.article_cat_id
".(iSUPERADMIN ? "WHERE" : "WHERE ".groupaccess('article_cat_access')." AND")." article_draft='0' ORDER BY article_datestamp DESC LIMIT 0,7"
);
if (dbrows($result)) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 23);
echo "<li><a href='".BASEDIR."articles.php?article_id=".$data['article_id']."' title='".$data['article_subject']."'>$itemsubject</a></li>\n";
}
} else {
echo "<li>".$locale['global_031']."</li>\n";
}
echo "</ul>\n";
echo "</li>\n";
echo "<li>\n";
echo "<h2><a href='".BASEDIR."index.php'>Ostatnie Newsy</a></h2>\n";
echo "<ul>\n";
$result = dbquery(
"SELECT tn.news_id, tn.news_subject FROM ".DB_NEWS." tn
".(iSUPERADMIN ? "WHERE" : "WHERE ".groupaccess('news_visibility')." AND")." news_draft='0' ORDER BY news_datestamp DESC LIMIT 0,7"
);
if (dbrows($result)) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['news_subject'], 23);
echo "<li><a href='".BASEDIR."index.php?readmore=".$data['news_id']."' title='".$data['news_subject']."'>$itemsubject</a></li>\n";
}
} else {
echo "<li>Nie znaleziono.</li>\n";
}
echo "</ul>\n";
echo "</li>\n";
echo "<li>\n";
echo "<h2><a href='".BASEDIR."downloads.php'>Ostatnie Download</a></h2>\n";
echo "<ul>\n";
$result = dbquery(
"SELECT ta.download_id, ta.download_title, tac.download_cat_id FROM ".DB_DOWNLOADS." ta
INNER JOIN ".DB_DOWNLOAD_CATS." tac ON ta.download_cat=tac.download_cat_id
".(iSUPERADMIN ? "" : "WHERE ".groupaccess('download_cat_access'))." ORDER BY download_datestamp DESC LIMIT 0,7"
);
if (dbrows($result)) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<li><a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat_id']."&download_id=".$data['download_id']."' title='".$data['download_title']."'>$itemsubject</a></li>\n";
}
} else {
echo "<li>Nie znaleziono.</li>\n";
}
echo "</ul>\n";
echo "</li>\n";
echo "</ul>\n";
echo "<div style='clear: both;'> </div>\n";
echo "</div>\n";
echo "<!-- end sidebar -->\n";
echo "</div>\n";
//Footer
echo "<div id='footer'>\n<p id='legal'>\n";
echo "Puzzled Theme Designed by <a href='http://www.freecsstemplates.org/'>Free CSS Templates</a>,\n";
echo "ported by <a href='http://version.starefossen.com'>Starefossen</a>,\n";
echo "edited by Tomasz Borek.<br />\n";
echo "Powered by <a href='http://php-fusion.co.uk'>PHP-Fusion</a> copyright © Nick Jones.\n";
echo "Released without warranties under <a href='http://fsf.org/licensing/licenses/agpl-3.0.html'>AGPL v3</a>.\n";
echo "</p>\n<p id='links'>\n";
echo "<a href='".$puzzled['link']['privacy']."'>Privacy</a> | \n";
echo "<a href='".$puzzled['link']['terms']."'>Terms</a> | \n";
echo "<a href='http://validator.w3.org/check/referer' title='This page validates as XHTML 1.0 Transitional'>\n";
echo "<abbr title='eXtensible HyperText Markup Language'>XHTML</abbr></a> | \n";
echo "<a href='http://jigsaw.w3.org/css-validator/check/referer' title='This page validates as CSS'>\n";
echo "<abbr title='Cascading Style Sheets'>CSS</abbr></a><br />\n";
echo "".showcounter()."<br/>\n";
echo $settings['footer']."\n";
echo "</p>\n</div>\n";
}
function render_news($subject, $news, $info) {
echo "<h1 class='title'>$subject</h1>\n";
echo "<p class='meta'><small>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']).$info['cat_image'];
echo "</small></p>\n";
echo "<div class='entry'>".parseubb(parsesmileys($news))."</div>\n";
}
function render_article($subject, $article, $info) {
echo "<h1 class='title'>$subject</h1>\n";
echo "<p class='meta'><small>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</small></p>\n";
echo "<div class='entry'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
}
function opentable($title) {
echo "<h1 class='title'>$title</h1>\n";
echo "<div class='entry'>\n";
}
function closetable() {
echo "</div>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='post'>\n";
echo "<h2 class='title'>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
panelbutton($state, $boxname);
}
echo " $title</h2>\n";
echo "<div class='entry'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</div>\n";
echo "</div>\n";
}
?> Kliknij i zaczekaj na załadowanie kodu ...
PW od moderatora:
- Przeniesienie tematu - khaman 25.06 - 14:00
Edytowane przez Borek dnia 25.06.2011 10:15:17
|