htvu
Forum Replies Created
-
Forum: Plugins
In reply to: [OptionTree] Optiontree don′t load my imagesActivate your firebug and check Console tab for error.
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Weird problems of adding list item@paul.c if you made custom changes (like me) on OT you must update manually. The way I did are:
– Check changes log
– Fix bugs
– Decide which new features important/need for project and copy its code.If you could make custom changes it mean you write/read code good enough so it is not hard to compare code from github commit history with your code. Be careful copy code from bottom to top.
By this way I did manual update from 2.0.9 to 2.0.12 easily, just about an hour.
Forum: Plugins
In reply to: [OptionTree] Optiontree don′t load my imagesHi,
I’m sure about your problem but here are some suggestion:
– Update to latest version of OT. With old version of OT (2.0.9 and below), sometime if you use an upload field within a list item it can cause problem like yours because “wrong ID” issue.
– Click on upload field and click to other field to trigger off focus/blur events that refresh preview image of upload field.Forum: Plugins
In reply to: [OptionTree] Meta Boxs On Custom Post TypesMost of meta box’s data is saved as post/page metadata so you just simple use:
get_post_meta($your_post_id, 'your_field_id')
??Forum: Plugins
In reply to: [OptionTree] Meta Boxs On Custom Post TypesCheck your new-meta-boxes.php file. Maybe it have some space before
<?php
Forum: Plugins
In reply to: [OptionTree] Get option from inactive layoutsThanks for your code.
Forum: Plugins
In reply to: [OptionTree] Infinite console errors on adding imagesForum: Plugins
In reply to: [OptionTree] OptionTree and NEW Insert MediaSorry, I fixed this issue but forgot update it here. The solution in the thread you mention above not solve issue completely. Try my solution:
Right below:intval = window.setInterval(function() {
Insert this:
if (typeof $(‘#TB_iframeContent’).attr(‘src’) === ‘undefined’) {window.clearInterval(intval);return;}
Hope it help
Forum: Plugins
In reply to: [OptionTree] Meta Boxs On Custom Post TypesIn your options array use an Array for ‘pages’ value instead string (as your above code)
‘pages’ => array(‘portfolio’, ‘your_cpt_slug‘),
Forum: Plugins
In reply to: [OptionTree] Custom Dashboard MenuYou don’t need to create custom menu, OT created already. Change settings array in ot-ui-theme-options.php
Forum: Plugins
In reply to: [OptionTree] Error in adding settingsIf I’m not wrong it happened when you use old version of OT. It belong to OT bugs (fixed in latest version). The code that generate id for list item not run correctly. Everything will fine if you adding fields continually. Strange thing just happen when you delete some fields and add new ones.
Another case maybe cause lost settings is switching between Plugin mode and Theme mode.
Forum: Plugins
In reply to: [OptionTree] How can I add a list item into another list item?I don’t understand why you need nested list item if you just want a “unlimited image gallery”. You can make a item list and add an upload field to its settings.
Forum: Plugins
In reply to: [OptionTree] CSS Option TypesVersion 2.0.12 added IDs (base on your field id) to wrapper tag of fields so you can easy to hide specific field. In case if you are using old version of OT and made some changes in OT source (so you can’t update to new version of OT) you can use jQuery to hide fields.
Forum: Plugins
In reply to: [OptionTree] CSS Option TypesIf you need set static CSS just add to your style.css. The power of CSS option type is combine with other options to generate dynamic CSS. If you just want to prevent user edit any fields you can use CSS to hide that fields.
@derek, wafcross: I think wafcross issue belong to httpd.conf settings but it also relate with the way OT submit data. Sometime 100+ options is more than 190+ options, it depend which type of options are used (ex: typography need more variables to store data than a simple text field). Derek, I think you should give a look to max_input_vars setting in httpd.conf and find the way to optimize OT form submition.