Downloads page - how organize?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
mef
Regular
Posts: 13
Joined: Sat Jun 17, 2006 6:58 pm

Downloads page - how organize?

Post by mef »

Hello, how I can create a download's page by using serendipity?
It is necessary to have a simple list of hyperlinks to files in directory with short files description.
Like this page http://www.s9y.org/12.html.
Is it possible with some plugin or exists other ways?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Downloads page - how organize?

Post by garvinhicking »

Hi!

You could try the Downloadmanager plugin, available via Spartacus.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
mef
Regular
Posts: 13
Joined: Sat Jun 17, 2006 6:58 pm

Post by mef »

thank you!
mef
Regular
Posts: 13
Joined: Sat Jun 17, 2006 6:58 pm

Post by mef »

unfortunally, this plugin not work with PostgreSQL database...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Oh, that might be, because the developer only used MySQL.

Which errors does it create for pgsql? Maybe it's easy to adapt.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
mef
Regular
Posts: 13
Joined: Sat Jun 17, 2006 6:58 pm

Post by mef »

two types of troubles:
1. Any creations of tables use a datatypes, wich postgres does not support

CREATE TABLE {$serendipity['dbPrefix']}dma_downloadmanager_categories (
node_id {AUTOINCREMENT} {PRIMARY},
root_id int(10) NOT NULL default '0',

... etc.

It is not a problem - I create this manually.

2. At function GetAdminCats():
Error in sql
...
GROUP BY node1.lft, node1.rgt, node1.node_id, node1.root_id, node1.payload
...

must be

...
GROUP BY node1.lft, node1.rgt, node1.node_id, node1.root_id, node1.payload, node1.hidden
...

and same SQL has construction

((min(node2.rgt)-node1.rgt-(node1.lft>1))/2) > 0 AS lower,

in Postgres (it cannot cast boolean to integer itself) must be

((min(node2.rgt)-node1.rgt-(node1.lft>1)::int)/2) > 0 AS lower,


I cannot change body of php file - have no permissions :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

If you have no write permissions, did you try to use a script like fixperm.php mentioned in the FAQ on www.s9y.org? Files downloaded by spartacus, if not configured, are only writable for PHP - but with this fixperm.php you can make PHP give back the write permissions.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
mef
Regular
Posts: 13
Joined: Sat Jun 17, 2006 6:58 pm

Post by mef »

thank you. I change permissions by php script and downloadmanager work fine now.
Post Reply