Hi Guys,

to get Phoca Download Latest Additions working with Joomla 1.7 you need to do some modifications to the mod_phocadownloads_latest.xml. After installind the module you’ll find the file in the modules/mod_phocadownloads_latest folder.

Replace the content with this, and you can configure the module via the admin interface.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="utf-8"?>
<install type="module" version="1.5.0">
    <name>Phoca Downloads - Latest additions</name>
    <author>C. Lupu</author>
    <creationDate>December 2009</creationDate>
    <copyright>Copyright (C) 2005 - 2009 Open Source Matters. All rights
        reserved.</copyright>
    <license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
    <authorEmail>klupu@yahoo.com</authorEmail>
    <authorUrl>www.orangecreative.net</authorUrl>
    <version>1.0.0</version>
    <description>This module allows you to display the latest additions to
        your download directory made using Phoca Downloads.</description>
    <files>
        <filename module="mod_phocadownloads_latest">mod_phocadownloads_latest.php</filename>
        <filename>helper.php</filename>
        <filename>index.html</filename>
        <filename>tmpl/index.html</filename>
        <filename>tmpl/default.php</filename>
    </files>
    <config>
        <fields name="params">
            <fieldset name="basic">
                <field name="elements" type="text" default="2"
                    label="Displayed elements"
                    description="Number of displayed elements (default 2). Putting the value 0 in this box will disable the limits and display all downloadable products." />
                <field name="show_image" type="list" default="show" label="Show image"
                    description="Show or hide download image (if any). If the download has no associated image, the value defaults to 'Hide' no matter what the setting is.">
                    <option value="show">Show</option>
                    <option value="hide">Hide</option>
                </field>
                <field name="show_title" type="list" default="show" label="Show title"
                    description="Show or hide the download file title.">
                    <option value="show">Show</option>
                    <option value="hide">Hide</option>
                </field>
                <field name="show_description" type="list" default="show"
                    label="Show description" description="Show or hide the download file description.">
                    <option value="show">Show</option>
                    <option value="hide">Hide</option>
                </field>
                <field name="description_limit" type="text" default="100"
                    label="Description limit"
                    description="Maximum number of displayed characters in the file description." />
                <field name="show_link" type="list" default="show"
                    label="Show download link" description="Show or hide the download page link.">
                    <option value="show">Show</option>
                    <option value="hide">Hide</option>
                </field>
                <field name="link_text" type="text" default="Get it here"
                    label="Download link text" description="Text for the link leading to the download page." />
                <field name="moduleclass_sfx" type="text" default=""
                    label="Module Class Suffix" description="PARAMMODULECLASSSUFFIX" />
            </fieldset>
        </fields>
    </config>
</install>
<?xml version="1.0" encoding="utf-8"?>
<install type="module" version="1.5.0">
	<name>Phoca Downloads - Latest additions</name>
	<author>C. Lupu</author>
	<creationDate>December 2009</creationDate>
	<copyright>Copyright (C) 2005 - 2009 Open Source Matters. All rights
		reserved.</copyright>
	<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
	<authorEmail>klupu@yahoo.com</authorEmail>
	<authorUrl>www.orangecreative.net</authorUrl>
	<version>1.0.0</version>
	<description>This module allows you to display the latest additions to
		your download directory made using Phoca Downloads.</description>
	<files>
		<filename module="mod_phocadownloads_latest">mod_phocadownloads_latest.php</filename>
		<filename>helper.php</filename>
		<filename>index.html</filename>
		<filename>tmpl/index.html</filename>
		<filename>tmpl/default.php</filename>
	</files>
	<config>
		<fields name="params">
			<fieldset name="basic">
				<field name="elements" type="text" default="2"
					label="Displayed elements"
					description="Number of displayed elements (default 2). Putting the value 0 in this box will disable the limits and display all downloadable products." />
				<field name="show_image" type="list" default="show" label="Show image"
					description="Show or hide download image (if any). If the download has no associated image, the value defaults to 'Hide' no matter what the setting is.">
					<option value="show">Show</option>
					<option value="hide">Hide</option>
				</field>
				<field name="show_title" type="list" default="show" label="Show title"
					description="Show or hide the download file title.">
					<option value="show">Show</option>
					<option value="hide">Hide</option>
				</field>
				<field name="show_description" type="list" default="show"
					label="Show description" description="Show or hide the download file description.">
					<option value="show">Show</option>
					<option value="hide">Hide</option>
				</field>
				<field name="description_limit" type="text" default="100"
					label="Description limit"
					description="Maximum number of displayed characters in the file description." />
				<field name="show_link" type="list" default="show"
					label="Show download link" description="Show or hide the download page link.">
					<option value="show">Show</option>
					<option value="hide">Hide</option>
				</field>
				<field name="link_text" type="text" default="Get it here"
					label="Download link text" description="Text for the link leading to the download page." />
				<field name="moduleclass_sfx" type="text" default=""
					label="Module Class Suffix" description="PARAMMODULECLASSSUFFIX" />
			</fieldset>
		</fields>
	</config>
</install>

 

5 Responses to Prepare Phoca Download Latest Additions for Joomla 1.7

  1. Shan says:

    Works like it worked before!
    Thx for editing the code.

    Greetings Shan

  2. Shan says:

    It wasn’t linking to the document directly, so I had to edit the helper file: (..\modules\mod_phocadownloads_latest\helper.php)

    Instead:

    $items[$i]->link = ‘catid.'” class=”pd_get_it”>’.$params->get(‘link_text’).’‘;

    use:
    $items[$i]->link = ‘catid.’:&download=’.$row->id.'” class=”pd_get_it”>’.$params->get(‘link_text’).’‘;

    Clicking on the link leads you directly to the file!

    Greetings Shan

  3. Duffy says:

    Sorry, after searching for the module “Phoca Download Latest Additions” for about half an hour, I’m going to ask here where I will find the module “Phoca Download Latest Additions” for joomla 1.5 to download it.
    Thank’s for a reply!

  4. Carlos says:

    Where can i obtain the original module “Phoca Download Latest Additions”??. The link does not work anymore. Please….

Leave a Reply

Your email address will not be published. Required fields are marked *