Extracting more fields from Pad file?
cosmin 269
From: -
From: -
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?
Philipp Esselbach
From: -
Editor
0From: -
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?
cosmin
OP
269
From: -
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?
Philipp Esselbach
From: -
Editor
0From: -
Here the modified admindoaddnewpadsource.php for the "Add New PAD Source " page. Upload it to your /cadmin/files/ directory.
admindoaddnewpadsource_mod.zip
admindoaddnewpadsource_mod.zip
1 Re: Extracting more fields from Pad file?
Philipp Esselbach
From: -
Editor
0From: -
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?
cosmin
OP
269
From: -
From: -
It is for the pad submission page. 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
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?
Philipp Esselbach
From: -
Editor
0From: -
Now I know what's wrong
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.
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?
Philipp Esselbach
From: -
Editor
0From: -
That's odd. Please PM me your Contentteller admin login.
1 Re: Extracting more fields from Pad file?
cosmin
OP
269
From: -
From: -
/modules/files/
1 Re: Extracting more fields from Pad file?
Philipp Esselbach
From: -
Editor
0From: -
1 Re: Extracting more fields from Pad file?
cosmin
OP
269
From: -
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
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?
Philipp Esselbach
From: -
Editor
0From: -
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) 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?
Philipp Esselbach
From: -
Editor
0From: -
The extra fields can be used for the additional pad fields. I will look into it tomorrow.
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?