Giter Club home page Giter Club logo

vafpress-framework's People

Contributors

agusmu avatar arkross avatar ayublin avatar daviedr avatar ivanrnld avatar kpodemski avatar richardlin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vafpress-framework's Issues

Request: Slide Sorter

First of all Superb job on this framework, It just needs a little more work and then it would be the best Open Source Options Framework out there.

One of the thing that I feel is missing is the "Slide Sorter", Where you can add new slide and each slide could have its own set of options (image upload, name, link ...) and of course you should be able to sort them.

This is very useful for custom galleries or custom social icons and ... .

an example: http://i.imgur.com/tlOsKOl.jpg

Remove Meta Box

I want to totally remove metabox from option, then what i do if i want to delete?
I just remove code that call metabox , but when i removed it then it will show lot of error.

Google font block

Hi,

I saw the vp_font_preview function and some how managed to bind it with other related fields.

An easy ready block should be great with

$preview and $face, $style, $weight, $size, $line_height.

Thanks.

Upload field size option

Hi,

The upload field returns the direct path of the image.

As the upload is using the wp default media upload, is there any way we can use the "Size" field value of "Attachment Display Settings"?

As you know themeforest doesn't allow to use timthumb!

Thanks.

Metabox: value dependency

Hi,

Is there way to create elastic "per value" dependency on metaboxes? For example, I have "Sample group", "Another group". I want to display "Another group" only if "example_field" value from "Sample group" equal to "example_value". Is there a way to do this?

WordPress Version

Vafpress is not compatible with older version of WordPress ( Even 3.4) .I can't click, or switch tabs anymore. Any solution?

Dependancy with mutiple checkbox.

I am working on meta-boxes. I have set of fields. And, I want to display the fields on radio or check-box selection. Data-source is added per selection category (for radio and check-box), but no data is passing to data source function. Due to that the data source function is not working.

Groups

Is it possible to include in the theme options groups with multiple textboxes etc where user can add more or remove them?

Like metaboxes but i need them in a page in the vafpress theme options.

Typography Field

Firstly, thanks for this wonderful options panel. I want to use this options panel for my new premium wordpress theme. Are you planning to add typography field in the near future?

HTML Preview not working

Hi,

The vp_font_preview function doesn't exist anymore in the sources.php file. Is this on purpose or will this be brought back in the next update? Because I really loved this function!

Max

Metabox Filtering Template support

Hi,
Is there any option to show/hide meta fields as per template selected. WPAlachemy have support to add meta-box for particular page-template.

How to entry double quote ( " " ) in the textbox?

Its only accepting single quote.

Reason:

Say, I want to create a textbox for Contact form 7 short code which by default generates shortcode with douple code like:

[contact-form-7 id="11" title="Contact form 1"]

Many thanks for your support.

Regards.

Textarea adds backslashes after saving

Hi,

I'm saving HTML into the textarea. For example the input looks like:

<ul class="unordered-list">
    <li>list item</li>
    <li>list item</li>
</ul>

But e.g. after saving the theme options it adds a backslashes to the class="" like so:

<ul class=\\\\\\\"unordered-list\\\\\\\">
    <li>list item</li>
    <li>list item</li>
</ul>

And they keep adding.

I read that this could be solved be adding stripslashes() around the output. How can I fix this?

Max

Use only Theme Options / Metaboxes part

Hello,

would it be possible to use only let's say Theme Options part from the library? So other in this case unnecessary stuff doesn't load?

Thanks in advance!

Error when saving a Post

Hi guys,

i use the

demo.themesmarts.com/euclid/
themesmarts.com/downloads/themes/euclid_theme.zip

Theme with latest Wordpress 3.8.
I get an Error when saving a new Post.
When i delete the vafpress Folder in Theme Location it works :-(
...............................................................
Warning: strtolower() expects parameter 1 to be string, array given in D:\Apache\xampp\htdocs\wp_rudolphien\wp-includes\formatting.php on line 979

Warning: Cannot modify header information - headers already sent by (output started at D:\Apache\xampp\htdocs\wp_rudolphien\wp-includes\formatting.php:979) in D:\Apache\xampp\htdocs\wp_rudolphien\wp-admin\post.php on line 229

Warning: Cannot modify header information - headers already sent by (output started at D:\Apache\xampp\htdocs\wp_rudolphien\wp-includes\formatting.php:979) in D:\Apache\xampp\htdocs\wp_rudolphien\wp-includes\pluggable.php on line 896
................................................................
I think this Theme uses an old version of vafpress...
But maybe u can help me with this .. im getting rid of it ...

Thx ..
Markus

Save post - usability issue

Currently in the vafpress theme boilerplate, looking at post metaboxes, setting values for WYSWYG editor is required, and if you try to save the post without entering the value, tooltip next to save/update post button just says there is an error , but it doesn't says where.
So it is very hard to track down the error, ("required filed") notice is very hard to spot. Especially if there is a lot of metaxboxes on the page.

  • Maybe the tooltip should say in which metabox is the error, or the error design indication should be more visible on the page.

Why use AJAX for Dependent Fields ?

I wanted to know if there was any particular reason that you guys used AJAX for Dependent Fields?

Why not just load them at first and then use hide/show? Because clearly using AJAX for this purpose only increase the waiting time before saving and this becomes more clear if you test it on a slow internet connection/hosting service.

No method select2SortableOrder

This framework is great, thanks!

If there is no type 'sorter' in option.php, i get this error:

Object [object Object] has no method 'select2SortableOrder'

Theme Check Erros

Hi,

Small issue, when running the Theme Check plugin, I get a couple of errors:
WARNING: Found PHP short tags in file vafpress-framework/includes/markdown/parser.php.

Line 379: | # PHP and ASP-style processor instructions (<? and <%)

WARNING: file_get_contents was found in the file vafpress-framework/data/sources.php possible file operations.

Line 84: $fonts = file_get_contents(dirname(FILE) . '/gwf.json');

Line 102: $fonts = file_get_contents(dirname(FILE) . '/gwf.json');

Line 119: $fonts = file_get_contents(dirname(FILE) . '/gwf.json');

Line 171: $subject = file_get_contents(VP_DIR . '/public/css/vendor/font-awesome.min.css');

REQUIRED: vafpress-framework/classes/option.php. Themes should use add_theme_page() for adding admin pages.

Line 120: $hook_suffix = add_menu_page(

REQUIRED: get_links found in the file vafpress-framework/classes/site/googlewebfont.php. Deprecated since version 2.1. Use get_bookmarks() instead.

Line 61: $links = $this->get_links();

Line 83: public function get_links()

Is it possible for these errors to be fixed?

Best Regards,
Max

WPEditor Metabox - Insert Media not working?

Not sure if this is a known issue, but I'm unable to insert images or galleries into a WPEditor metabox field. No JS errors, and using the example code that comes with the boilerplate.

Repeating Custom Option Group

Hi,

Can I create repeating custom option group as its available for meta group with add/remove button.

Say, I want to create a custom group in the option page with a text box, image uploader and url field. And I want user to be able to repeat this option group just by clicking theadd button.

Is this feature available?

Redux is offering this feature but its still not fully working and bug free.

Thanks,
Sincerely,
-Enayet

Random sliding - Slider

Hi,
I have theme that uses vafpress and I can't see option for random image sliding. Is there option or code for that?

Thanks

CSS not loading on toggle [metabox]

In my case, css is not loading on Toggle. Also i see in your demo setting section - Input & checkbox field UI is looking grate but in metabox section(within post), its showing the default of browser. So, is that an issue or you coded like that way?

lot of errors

I used newest version of vafour with options from boilerplate template and I get following errors

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'vp_bind_bigcontinents' not found or invalid function name in C:\Program Files\EasyPHP-5.3.6.1\www\wordpress2\wp-content\themes\twentythirteen2\vafpress-framework\classes\control\fieldmulti.php on line 35

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\Program Files\EasyPHP-5.3.6.1\www\wordpress2\wp-content\themes\twentythirteen2\vafpress-framework\classes\control\fieldmulti.php on line 36

Notice: Trying to get property of non-object in C:\Program Files\EasyPHP-5.3.6.1\www\wordpress2\wp-content\themes\twentythirteen2\vafpress-framework\classes\control\fieldmulti.php on line 91

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'vp_bind_continents' not found or invalid function name in C:\Program Files\EasyPHP-5.3.6.1\www\wordpress2\wp-content\themes\twentythirteen2\vafpress-framework\classes\option\control\set.php on line 250

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'vp_bind_countries' not found or invalid function name in C:\Program Files\EasyPHP-5.3.6.1\www\wordpress2\wp-content\themes\twentythirteen2\vafpress-framework\classes\option\control\set.php on line 250

Slider default example?

Hello there, can I have default slider of your theme option framework?btw, thanks for creating a great wpthemeoption framework... owh..one more..what EOF stand for?

Lost Focus on Repeated Field

This issue also happens when I test metabox in your demo http://demo.vafpress.com/#/vafpress-framework

For example, I click "Add More Reference" button, It does add new reference field, but it scrolls down to a wrong place. So, it lost focus on current reference field.

It also happens when you click "Add More Column" and "Add More Row" on the Page Builder demo.

Tested with the latest Firefox and Internet Explorer

WP deprecated function names collide with vafpress function names

I thought it might be good idea to mention that certain functions used in vafpress collide with WP deprecated functions which leads to certain Warnings and Recommendations thrown by ThemeForest-Check plugin...

  1. get_links found in the file googlewebfont.php. Deprecated since version 2.1. Use get_bookmarks() instead.

Line 61: $links = $this->get_links();
Line 83: public function get_links()

  1. get_theme found in the file codeeditor.php. Deprecated since version 3.4. Use wp_get_theme() instead.

Line 44: 'theme' => $this->get_theme(),
Line 93: public function get_theme() {

Hopefully it helps to make vafpress perfect :)

Widget support?

Discovered this framework last week and I love it, a lot of functionality and looks amazing.

Would you guys consider extending the framework to cover widgets also? Having dependencies, data sources, sliders, would be very useful for giving advanced Widget options. Afaik there are no other frameworks out there that do it, and IMO it would be a great feature.

text filed value with " problem

Hello,
I'm playing around with your framework and found that if i set textbox and default value will contain " than everithing after firs " wount be outputed to the value of input..
The first thing i did was apply esc_attr() on my default value and it helped, but after modefying it with new value with " it didn't outputed it needer.
So i found in view/control/textbox.php $value; and wraped it with esc_attr() function and now everithing is working fine..
Havent tested it with othere fields, but i think there will be same problem ( may be ).
You could fix these in secconds )
<input type="text" name="<?php echo $name ?>" class="vp-input input-large" value="<?php echo esc_attr( $value ); ?>" />

Field Interactions Data Source Functions Security Update

To improve security, now all data source functions to be used in any kind of field interactions (binding data source, dependencies and binding value) must be registered to be working, simply do this for every function:

VP_Security::instance()->whitelist_function('my_function');

Will update the documentation soon.

Issue report by:
Daniel Dvorkin

Is the document outdated ?

Hi , I'm totally impressed with your demo and wanna use the framework in my theme. I followed your document, that tell me add the line

require_once 'vafpress-framework/bootstrap.php';

in my theme's functions.php file. But after adding that line, nothing happened. No "Theme Options" submenu under Appearance in Dashboard. ( the bootstrap.php file included, but seems to do nothing ?).

And, is the document outdated or I miss some steps ? For example, it tells me to open

\vafpress\core\config\option.php

but I cannot find the "core" directory.

Multiple Select

This is nice option framework. I did retrieve all of field except multiple. Like i want retrieve multiple select then how i coding that. Can you show me that?

Depended fields check box can't be unchecked.

I'm test driving the latest version of this framework in combination with vafpress-framework-theme-boilerplate
And looking at the theme options -> field interactions->depended field
After selecting the font, and checking font weight or font style check box fields, I'm unable to un-check them.

using only one feature

Vafpress Framework comes with three great features: Options Page, Metabox Builder, and Shortcode Generator.

Let's say, in one of my plugin I only need shortcode generator and in other plugin I only need options page.

Is it possible to get "shortcode generator" version only of VafPress Framework?

My concern is file size. I tried to ZIP the plugin/theme boilerparte, and I found the ZIP filesize is still bigger than 800KB. I want to make it simple and smaller.

Any suggestion from you guys? Or do I need to build my own "light" version of Vafpress Framework to achieve this?

Let me know if Github is not the right place to ask this question.

FWD slash missing in constant.php

Not sure whether it was made on purpose or not...

line #36, "constant.php":
defined('VP_PUBLIC_URL') or define('VP_PUBLIC_URL' , VP_URL . 'public');

... if no forward slash before 'public' vafpress framework loading will end up with a bunch of javascript errors because files not found. So I just have added FWD slash and everything works wonderful again:

defined('VP_PUBLIC_URL') or define('VP_PUBLIC_URL' , VP_URL . '/public');


I know this is not a place for a feedback but I have to say that you guys made an extraordinary job here. Really appreciate your work and efforts for the most complete WP library in the world. You saved me a ton of time, can't stop saying THANKS!!!

Backup option for option settings available?

Hi,

Not sure whether I am missing anything or not.

In the demo I can see only the "Restore Default" button.

Is the backup/export json/xml option available for the option settings?

Also not seeing any import option.

This is much required

Thanks,
Enayet

Shortcode Content

How to use shortcode generator for [shortcode] This is a content [/shortcode] ? thanks

wp_editor in Metabox or Options will re-format content upon save

For some reason, when used with Metabox or Options, "wp_editor" doesn't keep content formatted in tinyMCE upon save, it'll rather tend to "compress" it and thus create unreadable chunk of text. That's really annoying, especially when the content is mixed up with shortcode placeholders or even worse - photos.

Is there a way to use (or include) "wp_editor" identical to the one used with Post or Page editor where users can switch between Visual and Text (html) mode?

I know that there is "HTML view" available whenever "wp_editor" is included to Metabox, however, HTML looks identical to tinyMCE - a big pile of letters, HTML tags and shortcode placeholders. It's totally useless.

Is it possible to bind 2 field, Both are in different group

Hi,

Is it possible to bind 2 field on in both are in different group. I had tried but no success. Same code working for both field in Same Group But not working in different group.

Here is my Code

'vp_meta_sample_6', 'types' => array('branch'), 'title' => __('VP Fixed Group With Item Bindings Fields', 'vp_textdomain'), 'priority' => 'high', 'template' => array( array( 'type' => 'group', 'repeating' => false, 'length' => 1, 'name' => 'binding_groupnew', 'title' => __('New Location', 'vp_textdomain'), 'fields' => array( array( 'type' => 'select', 'name' => 'big_continent', 'label' => __('Big Continent', 'vp_textdomain'), 'description' => __('Big Continent', 'vp_textdomain'), 'items' => array( 'data' => array( array( 'source' => 'function', 'value' => 'vp_bind_bigcontinents', ), ), ), 'default' => '{{last}}', ), ) ``` ), array( 'type' => 'group', 'repeating' => false, 'length' => 2, 'name' => 'binding_group', 'title' => __('Location', 'vp_textdomain'), 'fields' => array( array( 'type' => 'radiobutton', 'name' => 'continent', 'label' => __('Continent', 'vp_textdomain'), 'description' => __('Continent', 'vp_textdomain'), 'items' => array( 'data' => array( array( 'source' => 'binding', 'field' => 'big_continent', 'value' => 'vp_bind_continents', ), ), ), ), array( 'type' => 'select', 'name' => 'country', 'label' => __('Country', 'vp_textdomain'), 'description' => __('Country', 'vp_textdomain'), 'items' => array( 'data' => array( array( 'source' => 'binding', 'field' => 'continent', 'value' => 'vp_bind_countries', ), ), ), ), ), ), ), ``` ); /** - EOF */

Is it a Bug?

Dears,

I'm building a page builder and I'm using a multiselect field in a group that has a binding function, the multiselect has a function to get custom taxonomies

function vp_get_portfolio_filter()
{
    $wp_portfolio_filters = get_categories(array('hide_empty' => 0, 'taxonomy' => 'portfolio_filter'));

    $result = array();
    foreach ($wp_portfolio_filters as $portfolio_filter)
    {
        $result[] = array('value' => $portfolio_filter->slug, 'label' => $portfolio_filter->name);
    }
    return $result;
}

Well,, once the binding group loaded the multiselect return

( ! ) Warning: in_array() expects parameter 2 to be array, null given in C:\wamp\www\pheelwp\wp-content\themes\pheel\lib\views\control\multiselect.php on line 5 Call Stack #TimeMemoryFunctionLocation 10.0011338856{main}(  )..\post.php:0 20.300920922504include( 'C:\wamp\www\pheelwp\wp-admin\edit-form-advanced.php' )..\post.php:198 30.382521892760do_meta_boxes(  )..\edit-form-advanced.php:443 40.383021895640call_user_func (  )..\template.php:925 50.383021895672VP_Metabox->_setup(  )..\template.php:925 60.466122967368VP_Metabox->_enview(  )..\metabox.php:123 70.466122967824VP_Metabox->_render_repeating_group(  )..\metabox.php:470 85.939423796152VP_Metabox->_render_group(  )..\metabox.php:577 95.939423798360VP_Metabox->_render_field(  )..\metabox.php:524 105.939423798360VP_Control_Field_MultiSelect->render(  )..\metabox.php:485 115.939623800568VP_View->load(  )..\multiselect.php:27 125.940123826960include( 'C:\wamp\www\pheelwp\wp-content\themes\pheel\lib\views\control\multiselect.php' )..\view.php:53 135.940523827240in_array (  )..\multiselect.php:5   value="port-cat-1">Port Cat 1

it gives me this warning only once the binding group loaded but if I update the page it loads the taxonomies perfectly.

I tried to change the multiselect with sorter and it works perfectly so it seams an issue with the multiselect.

waiting your response

Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.