This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Extracting more fields from Pad file?


avatar
cosmin 269
From: -
Extracting more fields from Pad file?

I have some fields that aren't being extracted from PAD files by the current files_submitfile page. Which files contain the PAD handling routine?

I'm interested in:
<Application_URLs>

<Application_URLs><Application_Order_URL> https://www.qwerks.com/cporder/buynow.asp?ProductID=5332</Application_Order_URL>
<Application_URLs><Application_Screenshot_URL> http://www.avantbrowser.com/images/sc.jpg</Application_Screenshot_URL>
<Application_URLs><Application_Icon_URL> http://www.avantbrowser.com/images/icon.gif</Application_Icon_URL>

</Application_URLs>

and

<Program_Info>

<Program_Type>Freeware</Program_Type>

</Program_Info>

I suppose that would entail changing the table structure as well?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Extracting more fields from Pad file?
avatar
Editor
0
From: -
This seems to do what I want. With two minor suggestions now: you may want to consider adding the option, to notify when running "check pad updates" if the PAD file is gone and some details about the error (file gone, redirect, etc). Also, a button to delete the file next to the "edit entry" button for files, to make it easier to delete a file from the same window.

I will look into it
1 Re: Extracting more fields from Pad file?
avatar
OP 269
From: -
This seems to do what I want. With two minor suggestions now: you may want to consider adding the option, to notify when running "check pad updates" if the PAD file is gone and some details about the error (file gone, redirect, etc). Also, a button to delete the file next to the "edit entry" button for files, to make it easier to delete a file from the same window. Thank you for your help. I can see now I wasn't very clear what I needed.
1 Re: Extracting more fields from Pad file?
avatar
Editor
0
From: -
Here the modified admindoaddnewpadsource.php for the "Add New PAD Source " page. Upload it to your /cadmin/files/ directory.
   admindoaddnewpadsource_mod.zip
1 Re: Extracting more fields from Pad file?
avatar
Editor
0
From: -
My modification is for the files_submitpad page and it works just fine. I will look later for the modification for Add New PAD Source.
1 Re: Extracting more fields from Pad file?
avatar
OP 269
From: -
It is for the pad submission page. Smiling Face I actually need the modification in question to work with both this

Add New PAD Source
cadmin/index.php?action=addnewpadsource

and this
Submit PAD (the one accessible by the public)
contentteller.php/files_submitpad
1 Re: Extracting more fields from Pad file?
avatar
Editor
0
From: -
Now I know what's wrong Hushed Face

I thought that this modification was for the PAD submission page. The file submission page will only write the data that the user entered into the database.
1 Re: Extracting more fields from Pad file?
avatar
Editor
0
From: -
That's odd. Please PM me your Contentteller admin login.
1 Re: Extracting more fields from Pad file?
avatar
OP 269
From: -
/modules/files/
1 Re: Extracting more fields from Pad file?
avatar
Editor
0
From: -
Works fine here Confused Face

Did you upload the file to the right directory?
Padmod
1 Re: Extracting more fields from Pad file?
avatar
OP 269
From: -
It doesn't seem to work. I added the fields, then tested the modified file with this PAD file
 http://www.aoamedia.com/xvideoconverter.xml
but the requested fields show up empty even though they are present in the PAD file.
<Application_Order_URL> http://www.aoamedia.com/order.htm</Application_Order_URL>
<Application_Screenshot_URL> http://www.aoamedia.com/images/xvideoconverter.gif</Application_Screenshot_URL>
<Application_Icon_URL> http://www.aoamedia.com/images/xvideoconvertericon.gif</Application_Icon_URL>


 http://www.file-portal.net/temp/rc2-mod-does-not-work.png
1 Re: Extracting more fields from Pad file?
avatar
Editor
0
From: -
First, you need to add the following fields with the Manage Extra Fields option in the files menu:

1) Order URL (text field)
2) Screenshot URL (text field)
3) Icon URL (text field)

Then replace modules/files/filesdosubmitpad.php with the modified version from the attached zip file below.
   filesdosubmitpad_mod.zip
1 Re: Extracting more fields from Pad file?
avatar
Editor
0
From: -
The extra fields can be used for the additional pad fields. I will look into it tomorrow.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.