Bug fix: correct artviper for identification [Config modified]

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@152 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
mensonge 2008-11-13 14:38:04 +00:00
parent e44a7e37b6
commit 3a1d435978
5 changed files with 319 additions and 220 deletions

View file

@ -28,7 +28,7 @@ $tableprefix = 'sc_'; # table prefix used for this installation. Do not use '-'
### Users ### ### Users ###
$adminemail = 'admin@example.org'; # Contact address for the site administrator. Used as the FROM address in password retrieval e-mails. $adminemail = 'admin@example.org'; # Contact address for the site administrator. Used as the FROM address in password retrieval e-mails.
$admin_users = array('admin'); # admin users = array('adminnickname', 'user1nick', 'user2nick'); $admin_users = array(''); # admin users = array('adminnickname', 'user1nick', 'user2nick');
$reservedusers = array('all', 'watchlist'); # array of usernames that cannot be registered $reservedusers = array('all', 'watchlist'); # array of usernames that cannot be registered
# Antispam # Antispam
$antispamQuestion = 'name of this application (no Caps)'; # antispamQuestion: A question to avoid spam $antispamQuestion = 'name of this application (no Caps)'; # antispamQuestion: A question to avoid spam
@ -66,8 +66,13 @@ $filetypes = array(
'video' => array('avi', 'mov', 'mp4', 'mpeg', 'mpg', 'wmv') 'video' => array('avi', 'mov', 'mp4', 'mpeg', 'mpg', 'wmv')
); );
$enableCommonBookmarkDescription = true; # enableCommonBookmarkDescription {true,false} $enableCommonBookmarkDescription = true; # enableCommonBookmarkDescription {true,false}
$enableWebsiteThumbnails = true; # enableWebsiteThumbnails {true|false}
### Website Thumbnails ###
$enableWebsiteThumbnails = false; # enableWebsiteThumbnails {true|false}
# According to artviper.net license, buy a license if you gain profit with your pages. (see http://www.websitethumbnail.de/) # According to artviper.net license, buy a license if you gain profit with your pages. (see http://www.websitethumbnail.de/)
$thumbnailsUserId = ''; #you need to register on http://www.artviper.net/registerAPI.php in order to register your domain
$thumbnailsKey = ''; #then artviper.net send you a UserId and a secretKey
### Tags ### ### Tags ###

View file

@ -1,82 +1,95 @@
/* BASE */ /* BASE */
* { * {
font-family: "trebuchet ms", tahoma, sans-serif; font-family: "trebuchet ms", tahoma, sans-serif;
} }
a { a {
color: #47A; color: #47A;
text-decoration: none; text-decoration: none;
} }
a:hover { a:hover {
color: #258; color: #258;
text-decoration: underline; text-decoration: underline;
} }
a img { a img {
border: 0; border: 0;
} }
img.thumbnail { /* Thank you Ricco * */
border: 1px solid #AAAAAA;
float: left;
margin-bottom: 4px;
margin-right: 6px;
padding: 1px;
}
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
input[type=text],
input[type=password], input[type=text],input[type=password],select,textarea {
select,
textarea {
border: 1px solid #AAA; border: 1px solid #AAA;
padding: 0.1em; padding: 0.1em;
} }
input[type=text],
input[type=password], input[type=text],input[type=password],textarea {
textarea {
padding: 0.2em; padding: 0.2em;
} }
input[type=text]:focus,
input[type=password]:focus, input[type=text]:focus,input[type=password]:focus,select:focus,textarea:focus
select:focus, {
textarea:focus {
border-color: #666; border-color: #666;
} }
p.error,
p.success { p.error,p.success {
border: 1px solid; border: 1px solid;
font-size: small; font-size: small;
margin: 0.5em; margin: 0.5em;
padding: 0.5em; padding: 0.5em;
width: 70%; width: 70%;
} }
p.error { p.error {
background: #FCC; background: #FCC;
border-color: #966; border-color: #966;
color: #633; color: #633;
} }
p.success { p.success {
background: #CFC; background: #CFC;
border-color: #696; border-color: #696;
color: #363; color: #363;
} }
td#availability { td#availability {
color: #285; color: #285;
font-weight: bold; font-weight: bold;
} }
td#availability.not-available { td#availability.not-available {
color: #F00; color: #F00;
} }
textarea { textarea {
font-size: small; font-size: small;
padding: 0.2em; padding: 0.2em;
} }
th { th {
padding-right: 1em; padding-right: 1em;
text-align: right; text-align: right;
} }
/* HEADER */ /* HEADER */
div#header { div#header {
background: #FFF url('bg_header.png') bottom repeat-x; background: #FFF url('bg_header.png') bottom repeat-x;
border-bottom: 3px solid #9CD; border-bottom: 3px solid #9CD;
clear: both; clear: both;
} }
div#header :after { div#header :after {
content: "."; content: ".";
display: block; display: block;
@ -84,9 +97,11 @@ div#header:after {
clear: both; clear: both;
visibility: hidden; visibility: hidden;
} }
* html div#header { * html div#header {
height: 1%; height: 1%;
} }
h1 { h1 {
float: left; float: left;
font-size: x-large; font-size: x-large;
@ -96,14 +111,17 @@ h1 {
padding: 1em; padding: 1em;
text-transform: lowercase; text-transform: lowercase;
} }
html>body h1 { html>body h1 {
background: url('logo.png') no-repeat 10px; background: url('logo.png') no-repeat 10px;
padding-left: 75px; padding-left: 75px;
} }
html>body div#header.popup h1 { html>body div#header.popup h1 {
background: url('logo_24.png') no-repeat 10px; background: url('logo_24.png') no-repeat 10px;
padding: 0.5em 0.5em 0.5em 50px; padding: 0.5em 0.5em 0.5em 50px;
} }
/*html > body div#header #welcome { /*html > body div#header #welcome {
position:absolute; position:absolute;
left:75px; left:75px;
@ -116,13 +134,20 @@ html > body div#header.popup h1 {
font-size: medium; font-size: medium;
} }
#bottom {
padding-top: 10px;
text-align: center;
font-size: xx-small;
}
h1 a { h1 a {
color: #000; color: #000;
} }
h1 a:hover { h1 a:hover {
color: #000; color: #000;
} }
h2 { h2 {
background: #666 url('bg_bar.png') center center repeat-x; background: #666 url('bg_bar.png') center center repeat-x;
border-bottom: 3px solid #DDD; border-bottom: 3px solid #DDD;
@ -136,7 +161,6 @@ h2 {
} }
/* NAVIGATION */ /* NAVIGATION */
ul#navigation { ul#navigation {
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;
@ -144,34 +168,39 @@ ul#navigation {
text-transform: lowercase; text-transform: lowercase;
width: auto; width: auto;
} }
ul#navigation a { ul#navigation a {
font-size: medium; font-size: medium;
font-weight: bold; font-weight: bold;
padding: 0.2em 0.5em; padding: 0.2em 0.5em;
} }
ul#navigation a:hover { ul#navigation a:hover {
background: #7AD; background: #7AD;
color: #FFF; color: #FFF;
} }
ul#navigation li { ul#navigation li {
float: left; float: left;
} }
ul#navigation li.access { ul#navigation li.access {
float: right; float: right;
} }
/* BOOKMARKS */ /* BOOKMARKS */
ol#bookmarks { ol#bookmarks {
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;
padding: 0 1em; padding: 0 1em;
width: 70%; width: 70%;
} }
html>body ol#bookmarks { html>body ol#bookmarks {
margin: 0 1em; margin: 0 1em;
padding: 0; padding: 0;
} }
img.thumbnail { img.thumbnail {
float: left; float: left;
padding: 1px; padding: 1px;
@ -179,45 +208,55 @@ img.thumbnail {
margin-bottom: 4px; margin-bottom: 4px;
border: 1px solid #AAA; border: 1px solid #AAA;
} }
div.link a { div.link a {
color: blue; color: blue;
font-size: medium; font-size: medium;
} }
div.link a:visited { div.link a:visited {
color: purple; color: purple;
} }
div.address { div.address {
color: #285; color: #285;
} }
div.meta { div.meta {
color: #285; color: #285;
} }
div.meta span { div.meta span {
color: #F00; color: #F00;
} }
li.xfolkentry { li.xfolkentry {
border-bottom: 1px solid #DDD; border-bottom: 1px solid #DDD;
margin-bottom: 0; margin-bottom: 0;
padding: 1em 0.5em; padding: 1em 0.5em;
} }
html>body li.xfolkentry { html>body li.xfolkentry {
border-bottom: 1px dotted #AAA; border-bottom: 1px dotted #AAA;
} }
li.xfolkentry div { li.xfolkentry div {
padding: 0.1em; padding: 0.1em;
} }
li.xfolkentry.deleted { li.xfolkentry.deleted {
opacity: 0.5; opacity: 0.5;
} }
li.xfolkentry.private { li.xfolkentry.private {
border-left: 3px solid #F00; border-left: 3px solid #F00;
} }
li.xfolkentry.shared { li.xfolkentry.shared {
border-left: 3px solid #FA0; border-left: 3px solid #FA0;
} }
/* SIDEBAR */ /* SIDEBAR */
div#sidebar { div#sidebar {
font-size: small; font-size: small;
position: absolute; position: absolute;
@ -225,18 +264,22 @@ div#sidebar {
top: 10em; top: 10em;
width: 25%; width: 25%;
} }
div#sidebar a { div#sidebar a {
color: #995; color: #995;
} }
div#sidebar a:hover { div#sidebar a:hover {
color: #773; color: #773;
} }
div#sidebar div { div#sidebar div {
background: #FFF url('bg_sidebar.png') bottom repeat-x; background: #FFF url('bg_sidebar.png') bottom repeat-x;
border: 1px solid #CC8; border: 1px solid #CC8;
color: #555; color: #555;
margin-bottom: 1em; margin-bottom: 1em;
} }
div#sidebar h2 { div#sidebar h2 {
background: transparent; background: transparent;
border: 0; border: 0;
@ -245,33 +288,39 @@ div#sidebar h2 {
margin: 0; margin: 0;
padding: 0.5em 0; padding: 0.5em 0;
} }
div#sidebar hr { div#sidebar hr {
display: none; display: none;
} }
div#sidebar p { div#sidebar p {
margin: 1em; margin: 1em;
} }
div#sidebar p.tags a { div#sidebar p.tags a {
margin: 0; margin: 0;
} }
div#sidebar table { div#sidebar table {
margin: 0.5em 0.5em 0 0.5em; margin: 0.5em 0.5em 0 0.5em;
} }
div#sidebar table td { div#sidebar table td {
padding-bottom: 0.25em; padding-bottom: 0.25em;
padding-right: 0.5em; padding-right: 0.5em;
} }
div#sidebar ul { div#sidebar ul {
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;
padding: 0.5em; padding: 0.5em;
} }
div#sidebar ul li { div#sidebar ul li {
margin: 0.5em 0; margin: 0.5em 0;
} }
/* TAGS */ /* TAGS */
p.commondescription { p.commondescription {
padding-left: 5px; padding-left: 5px;
color: #555; color: #555;
@ -287,36 +336,38 @@ p.tags {
vertical-align: middle; vertical-align: middle;
width: 70%; width: 70%;
} }
p.tags a,
p.tags span { p.tags a,p.tags span {
color: #47A; color: #47A;
margin-right: 0.5em; margin-right: 0.5em;
} }
p.tags span:hover { p.tags span:hover {
cursor: pointer; cursor: pointer;
text-decoration: underline; text-decoration: underline;
} }
p.tags span.selected { p.tags span.selected {
background: #CEC; background: #CEC;
} }
/* PROFILE */ /* PROFILE */
table.profile th { table.profile th {
width: 10em; width: 10em;
} }
/* OTHER GUFF */ /* OTHER GUFF */
dd { dd {
background: #CEC; background: #CEC;
border-right: 4px solid #ACA; border-right: 4px solid #ACA;
color: #464; color: #464;
padding: 6px; padding: 6px;
} }
dd a { dd a {
color: #464; color: #464;
} }
dd a:hover { dd a:hover {
color: #000 !important; color: #000 !important;
text-decoration: underline !important; text-decoration: underline !important;
@ -327,11 +378,13 @@ dl {
margin: 1em; margin: 1em;
width: 70%; width: 70%;
} }
dl#profile dd { dl#profile dd {
background: #CDE; background: #CDE;
border-color: #ABC; border-color: #ABC;
color: #247; color: #247;
} }
dl#profile dt { dl#profile dt {
background: #BCE; background: #BCE;
border-color: #9AC; border-color: #9AC;
@ -340,16 +393,20 @@ dl#profile dt {
font-weight: bold; font-weight: bold;
padding: 6px; padding: 6px;
} }
dl#profile a { dl#profile a {
color: #446; color: #446;
} }
dl#profile a:hover { dl#profile a:hover {
color: #000 !important; color: #000 !important;
text-decoration: underline !important; text-decoration: underline !important;
} }
dl#meta dd { dl#meta dd {
line-height: 1.5em; line-height: 1.5em;
} }
dl#meta dt { dl#meta dt {
background: #BDB; background: #BDB;
color: #353; color: #353;
@ -357,9 +414,11 @@ dl#meta dt {
font-weight: bold; font-weight: bold;
padding: 6px; padding: 6px;
} }
dt { dt {
border-right: 4px solid #9B9; border-right: 4px solid #9B9;
} }
dt a { dt a {
background: #BDB; background: #BDB;
color: #353; color: #353;
@ -367,13 +426,16 @@ dt a {
font-weight: bold; font-weight: bold;
padding: 6px; padding: 6px;
} }
dt a:hover { dt a:hover {
background: #ACA; background: #ACA;
border: 0; border: 0;
} }
form { form {
margin: 0; margin: 0;
} }
form#search { form#search {
margin-right: 0.75em; margin-right: 0.75em;
color: #CCC; color: #CCC;
@ -384,14 +446,15 @@ form#search {
right: 0; right: 0;
top: 6.4em; top: 6.4em;
} }
form label,
form td, form label,form td,form th {
form th {
font-size: small; font-size: small;
} }
form table { form table {
margin: 0 1em; margin: 0 1em;
} }
h3 { h3 {
background: #DDD; background: #DDD;
color: #555; color: #555;
@ -400,26 +463,28 @@ h3 {
margin: 2em 1em 1em 1em; margin: 2em 1em 1em 1em;
padding: 0.25em 0.75em; padding: 0.25em 0.75em;
} }
li { li {
font-size: small; font-size: small;
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
p { p {
font-size: small; font-size: small;
margin: 1em; margin: 1em;
} }
p#sort {
/*color: #CCC;*/ p#sort { /*color: #CCC;*/
font-size: small; font-size: small;
/*float: right;*/ /*float: right;*/ /*margin: 0;*/ /*position: absolute;*/
/*margin: 0;*/
/*position: absolute;*/
right: 0; right: 0;
top: 7em; top: 7em;
} }
html > body p#sort {
/*margin-right: 0.75em;*/ html>body p#sort { /*margin-right: 0.75em;*/
} }
p#sort a { p#sort a {
background: #AAA; background: #AAA;
color: #555; color: #555;
@ -427,56 +492,63 @@ p#sort a {
margin-right: 0.5em; margin-right: 0.5em;
padding: 0 1em; padding: 0 1em;
} }
html>body p#sort a { html>body p#sort a {
margin-right: 0; margin-right: 0;
} }
p#sort a:hover { p#sort a:hover {
background: #CCC; background: #CCC;
text-decoration: none !important; text-decoration: none !important;
} }
p#sort span { p#sort span {
display: none; display: none;
} }
p.paging { p.paging {
font-size: small; font-size: small;
margin-left: 1em; margin-left: 1em;
} }
p.paging a,
p.paging span.disable { p.paging a,p.paging span.disable {
background: #888; background: #888;
color: #FFF; color: #FFF;
display: inline; display: inline;
margin-right: 0.5em; margin-right: 0.5em;
padding: 0.25em 1em; padding: 0.25em 1em;
} }
p.paging a:hover { p.paging a:hover {
background: #666; background: #666;
} }
p.paging span { p.paging span {
display: none; display: none;
} }
p.paging span.disable { p.paging span.disable {
background: #DDD; background: #DDD;
color: #AAA; color: #AAA;
} }
div.collapsible p.tags { div.collapsible p.tags {
line-height: 2.25em; line-height: 2.25em;
margin: 1em 2em; margin: 1em 2em;
} }
th label { th label {
padding-right: 1em; padding-right: 1em;
} }
ul { ul {
margin-right: 1em; margin-right: 1em;
width: 75%; width: 75%;
} }
/* DOJO Style */ /* DOJO Style */
.scuttletheme .dijitInputField input,.scuttletheme .dijitTextBox,.scuttletheme .dijitComboBox,.scuttletheme .dijitSpinner
.scuttletheme .dijitInputField input, {
.scuttletheme .dijitTextBox,
.scuttletheme .dijitComboBox,
.scuttletheme .dijitSpinner {
width: 100%; width: 100%;
margin: 0 0 0 0; margin: 0 0 0 0;
} }

View file

@ -191,7 +191,8 @@ window.onload = playerLoad;
// Output // Output
echo '<li class="xfolkentry'. $access .'">'."\n"; echo '<li class="xfolkentry'. $access .'">'."\n";
if ($GLOBALS['enableWebsiteThumbnails']) { if ($GLOBALS['enableWebsiteThumbnails']) {
echo '<a href="'. $address .'"'. $rel .' ><img class="thumbnail" src="http://www.artviper.net/screenshots/screener.php?sdx=1024&sdy=768&w=90&h=68&url='.$address.'"></a>'; $thumbnailHash = md5($address.$GLOBALS['thumbnailsUserId'].$GLOBALS['thumbnailsKey']);
echo '<a href="'. $address .'"'. $rel .' ><img class="thumbnail" src="http://www.artviper.net/screenshots/screener.php?url='.$address.'&w=120&sdx=1280&userID='.$GLOBALS['thumbnailsUserId'].'&hash='.$thumbnailHash.'" /> ';
} }
echo '<div>'; echo '<div>';

View file

@ -1,5 +1,14 @@
<!--following code is generated by templates/bottom.inc.php--> <!--following code is generated by templates/bottom.inc.php-->
<div id="bottom"> <div id="bottom">
<?php
echo T_("Propulsed by ");
echo "<a href=\"https://sourceforge.net/projects/semanticscuttle/\">SemanticScuttle</a>";
if($GLOBALS['enableWebsiteThumbnails']) {
// Licence to the thumbnails provider (OBLIGATORY IF YOU USE ARTVIPER SERVICE)
echo " (<a href=\"http://www.artviper.net\" title=\"artViper designstudio\">thumbnails by artViper designstudio</a>)";
}
?>
</div> </div>

View file

@ -1,5 +1,17 @@
==== UPGRADE instructions ==== ==== UPGRADE instructions ====
=== From version 0.89 to 0.90 ===
- Backup you database
- Make a copy from your SemanticScuttle Web directory
- Upgrade your database by following instructions ONE after ONE (order is important) :
- Upgrade your current configuration file (config.inc.php) with respect to config.inc.php.example
# add these lines under $enableWebsiteThumbnails = false; # enableWebsiteThumbnails {true|false}:
$thumbnailsUserId = '';
$thumbnailsKey = '';
=== From version 0.88 to 0.89 === === From version 0.88 to 0.89 ===
- Backup you database - Backup you database
- Make a copy from your SemanticScuttle Web directory - Make a copy from your SemanticScuttle Web directory