yst14
Forum Replies Created
-
Forum: Plugins
In reply to: [Admin Page Framework] Import Bug?Just tried it on another hosting (not VPS) and in firefox I am having an application/txt error as per above.
Is it possible to define these formats all together to prevent this?
Forum: Plugins
In reply to: [Admin Page Framework] Import Bug?I will try on another VPS that I have and come back to you.
Thanks
BenForum: Plugins
In reply to: [Admin Page Framework] Import Bug?I exported a .json file from my plugin. I am then trying to import the same file into my plugin.
Firefox: The uploaded file type is not supported: application/txt
Chrome: Works
Safari: WorksEarlier when i tried with the same export file I had the following:
Firefox: The uploaded file type is not supported: application/txt
Chrome: text/html
Safari: application/txtIt seems to be very intermitent but you can download the latest version of the plugin from this link and try it yourself. I am using a blank WP install.
Repo:
https://bitbucket.org/ben_noou/noouswatches/Download:
https://bhwd.me/noouswatches.zipInstall Plugin
Go to swatches
Add colour & save
Go to options
export settings
import the exported file.Thanks
BenAhh I’m so silly! yes i didn’t think about calling my current array rather than the default values! Got it working now. Thank you very much!
Hi Again,
Something I have just noticed that isn’t working as expected.
The code you sent adds an array of default colours which are coded into the import process.
I do not want to have these default colours. That is fine I can remove that from the code you sent.
What I am trying to avoid is overwriting the colours in the system already. For example:
Saved Colours:
#fff
#000
#333Import File Contains:
#dedede
#999
#666Final Saved Colours should be:
#fff
#000
#333
#dedede
#999
#666Is this possible as the current code doesnt do this?
Thanks
BenForum: Plugins
In reply to: [Admin Page Framework] Change footer textThat won’t replace the current powered by though will it?
Not a big deal I can put my footer next to it using the span tag.
Thank you
Forum: Plugins
In reply to: [Admin Page Framework] Change footer textAhh yes I see it now! I was under the impression it would change the following text: Powered by Admin Page Framework, WordPress
Instead it appears like this:
https://bhwd.me/plugin-update-test/wp-content/uploads/2015/12/Screen-Shot-2015-12-03-at-11.32.25.png
So changing the mine type to txt from json works! the only thing is that if the colour already exists it still adds it in.
This is a minor detail but would be nice to avoid if possible.
ADded that in however now when exporting I get a JSON file but when importing it says:
The uploaded file type is not supported: application/txt
So I am assuming the mine type for txt can be added? I’m just curious why it will have changed from json to txt?
Thanks!
Forum: Plugins
In reply to: [Admin Page Framework] Export & Import Correct Method?Hi Miunosoft.
That worked!! Thank you ??
Is there any way that I can ADD to the list of colours rather than overwrite the current list?
Thank you
Forum: Plugins
In reply to: [Admin Page Framework] Create and Use drop down boxes@miunosoft No problem. Have opened another ticket. Thanks for your help!
Forum: Plugins
In reply to: [Admin Page Framework] Create and Use drop down boxesI have uploaded all of the source code. If you wouldnt mind pointing me in the right direction to change footer and get file upload to work i would really appreciate it. Thank you
Forum: Plugins
In reply to: [Admin Page Framework] Create and Use drop down boxesI have used the export and import field types but the import gives me the following error:
The uploaded file type is not supported: application/json
My Code:
array( // Submit button 'field_id' => 'export_button', 'type' => 'export', ), array( // Submit button 'field_id' => 'import_button', 'type' => 'import', )
Is this an old method?
Forum: Plugins
In reply to: [Admin Page Framework] Create and Use drop down boxesHi there.
I managed to get it working eventually Thank you ??
I am trying to change the footer text however the V3 documentation doesn’t really expand on this so I was wondering if you would mind providing an example of changing the footer text?
This is what i have tried:
function footer_right_APF_AdvancedSections( $sContent ) { return $sContent . '<p>Hello world!</p>'; }
Thank you
Forum: Plugins
In reply to: [Admin Page Framework] Create and Use drop down boxesRight so I have the type set to select and I have a select box and I can see that I need to set option as an array but what is the correct format for this array to get a list of options?