Difference between revisions of "Scuttle"

From SME Server
Jump to navigationJump to search
m (Reordered section)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{Warning box|The Scuttle project has abandoned. This how-to no longer applies. Please find an alternative and report back. If you still want to try this how-to, you are on your own including many security risks.}}
 
== Scuttle ==
 
== Scuttle ==
 +
{{Level|medium}}
 +
 +
{{Warning box|The information on this page was for SME Server 7 only!}}
  
 
=== Maintainer ===
 
=== Maintainer ===
 
http://www.dungog.net
 
http://www.dungog.net
 +
 +
===Version===
 +
 +
{{#smeversion: smeserver-scuttle }}
  
 
=== Description ===
 
=== Description ===
Line 50: Line 58:
 
=== Options ===
 
=== Options ===
  
* [http://scuttle.org/wiki/firefox_extension Firefox plugin]
+
* [http://scuttle.org/wiki/firefox_extension Firefox 2 plugin]
 +
* [http://www.kai-mai.com/node/11 Firefox 3 plugin]
  
 
* Restrict usage with PublicAccess db, (global-pw are default):
 
* Restrict usage with PublicAccess db, (global-pw are default):
Line 59: Line 68:
  
 
=== Patches ===
 
=== Patches ===
 +
====htpps====
 
http://sourceforge.net/tracker/?group_id=134378&atid=729862
 
http://sourceforge.net/tracker/?group_id=134378&atid=729862
  
Line 68: Line 78:
 
  +    $protocol = ($_SERVER["HTTPS"] == 'on') ? 'https://' : 'http://';
 
  +    $protocol = ($_SERVER["HTTPS"] == 'on') ? 'https://' : 'http://';
 
  +    $root = $protocol . $_SERVER['HTTP_HOST'] . $root;
 
  +    $root = $protocol . $_SERVER['HTTP_HOST'] . $root;
 +
 +
====404 error====
 +
In some cases the following occurs, this change is not usually needed
 +
 +
Use 'search all bookmarks' to return at least 3 pages of results.
 +
 +
Then click the 'Next' button. http://servername/scuttle/search.php/all//?page=2
 +
 +
if you click it again on page 2 and get a 404 error apply the following change
 +
 +
Fix this by editing /opt/scuttle/templates/bookmarks.tpl.php
 +
At line 151, ABOVE this line: (edited to remove html code)
 +
 +
echo class="paging $bfirst .span /span. $bprev .span /
 +
span. $bnext .span/ span>'. $blast .span> / span.
 +
sprintf(T_('Page %d of %d'), $page, $totalpages) .'/p';
 +
 +
Add this:
 +
 +
// page url bug on smeserver-scuttle contrib quick fix by MB 2010-12-01
 +
// remove double slashes
 +
$bfirst = str_replace ('//', '/', $bfirst);
 +
$bprev = str_replace ('//', '/', $bprev);
 +
$bnext = str_replace ('//', '/', $bnext);
 +
$blast = str_replace ('//', '/', $blast);
 +
// restore protocol slashes
 +
$bfirst = str_replace (':/', '://', $bfirst);
 +
$bprev = str_replace (':/', '://', $bprev);
 +
$bnext = str_replace (':/', '://', $bnext);
 +
$blast = str_replace (':/', '://', $blast);
 +
// end of fix
 +
 +
 +
===Bugs===
 +
Please raise bugs under the SME-Contribs section in [http://bugs.koozali.org/enter_bug.cgi bugzilla]
 +
and select the smeserver-scuttle component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-scuttle|title=this link}}
 +
 +
 +
{{#bugzilla:columns=id,product,version,status,summary |sort=id |order=desc |component=smeserver-scuttle|noresultsmessage="No open bugs found."}}
 +
===Changelog===
 +
Only versions released in smecontrib are listed here.
 +
 +
{{#smechangelog: smeserver-scuttle}}
 +
  
 
   
 
   
[[Category: Contrib]]
+
[[Category: Deprecated Contrib]]
 
[[Category: Dungog]]
 
[[Category: Dungog]]
 +
[[Category: Social Media Apps]]
 +
[[Category: Webapps]]

Latest revision as of 02:28, 18 April 2021

Warning.png Warning:
The Scuttle project has abandoned. This how-to no longer applies. Please find an alternative and report back. If you still want to try this how-to, you are on your own including many security risks.


Scuttle

PythonIcon.png Skill level: medium
The instructions on this page require a basic knowledge of linux.



Warning.png Warning:
The information on this page was for SME Server 7 only!


Maintainer

http://www.dungog.net

Version

smeserver-scuttle
The latest version of smeserver-scuttle is available in the SME repository, click on the version number(s) for more information.


Description

http://scuttle.org

Scuttle is a web-based social bookmarks manager that enables you to:

  • Store all your favourite links in one place, accessible from anywhere.
  • Share your bookmarks with everyone, with friends or just keep them private.
  • Tag your bookmarks with as many labels, instead of wrestling with folders.

Installation

This contrib can be found in the smecontribs repository.

Download and install scuttle and smeserver-scuttle

yum install --enablerepo=smecontribs smeserver-scuttle

No need to reboot.

Create database structure

/usr/bin/mysql scuttle < /opt/scuttle/tables.sql

Copy and rename the config file

cp /opt/scuttle/config.inc.php.example /opt/scuttle/config.inc.php

Find scuttle mysql password (DbPassword=) with

config show scuttle

Copy the string, it should be similar to this: 2zvEiYibIewQOsQ07KAtObnh5FcOhUhaq+dtSAdXBjuOBsbSoPt5Bty8PEPfjhfHmL0wejMAmUMO

and add the password and edit these line in the config file

nano -w /opt/scuttle/config.inc.php

$dbtype = 'mysql';             <----------
$dbhost = 'localhost';         <----------
$dbport = '3306';
$dbuser = 'scuttle';           <----------
$dbpass = 'your-new-password'; <----------
$dbname = 'scuttle';

Open http://yourserver/scuttle/ and register a user.

Uninstallation

To remove the package from your server issue the following command on the SME Server shell:

rpm -e scuttle smeserver-scuttle

To remove mysql database and user, both are scuttle, see MySQL#Remove a database and MySQL#Remove a user. There is no need to reboot.

Options

  • Restrict usage with PublicAccess db, (global-pw are default):
config setprop scuttle PublicAccess global-pw

Bugs

Please raise bugs under the SME-Contribs section in bugzilla and select the smeserver-scuttle component or use this link .

Patches

htpps

http://sourceforge.net/tracker/?group_id=134378&atid=729862

a simple one is to allow https usage (https fix)

nano -w /opt/scuttle/header.inc.php

-    $root = 'http://'. $_SERVER['HTTP_HOST'] . $root;
+
+    $protocol = ($_SERVER["HTTPS"] == 'on') ? 'https://' : 'http://';
+    $root = $protocol . $_SERVER['HTTP_HOST'] . $root;

404 error

In some cases the following occurs, this change is not usually needed

Use 'search all bookmarks' to return at least 3 pages of results.

Then click the 'Next' button. http://servername/scuttle/search.php/all//?page=2

if you click it again on page 2 and get a 404 error apply the following change

Fix this by editing /opt/scuttle/templates/bookmarks.tpl.php At line 151, ABOVE this line: (edited to remove html code)

echo class="paging $bfirst .span /span. $bprev .span /
span. $bnext .span/ span>'. $blast .span> / span.
sprintf(T_('Page %d of %d'), $page, $totalpages) .'/p';

Add this:

// page url bug on smeserver-scuttle contrib quick fix by MB 2010-12-01
// remove double slashes
$bfirst = str_replace ('//', '/', $bfirst);
$bprev = str_replace ('//', '/', $bprev);
$bnext = str_replace ('//', '/', $bnext);
$blast = str_replace ('//', '/', $blast);
// restore protocol slashes
$bfirst = str_replace (':/', '://', $bfirst);
$bprev = str_replace (':/', '://', $bprev);
$bnext = str_replace (':/', '://', $bnext);
$blast = str_replace (':/', '://', $blast);
// end of fix


Bugs

Please raise bugs under the SME-Contribs section in bugzilla and select the smeserver-scuttle component or use this link


"No open bugs found."

Changelog

Only versions released in smecontrib are listed here.