Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Fields (and I18N)
#26
Angryboy Wrote:Thanks again for updating this plugin Smile

When I click on the 'Browse' button given by the functionality of the two new fields, a page does pop up, but it remains blank. Am I doing something wrong?

I forgot to state that you have to turn on site wide cookies in gsconfig.php:
Code:
define('GSCOOKIEISSITEWIDE', TRUE);
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#27
Ahh, thank you Smile Working perfectly now Big Grin

And mvlceck's awesomestreak continues Smile
Reply
#28
Ok, i'm on GS 3.0 and using the latest version of I18N Custom Fields plugin. On all custom image fields, the browse button that should point to my image files, takes me to the default home page of the site. The url the browse button is generating is...

http://www.staging.glyphinteractive.com/...ype=images

Any idea what's going on? Sitewide cookies are enabled in GSconfig.

Also, i found a small bug with naming fields in the Custom Field creation. Looks like you cannot name fields with uppercase - (ie featurePic breaks but featurepic works). Not a big deal but drove me crazy for a little while.

Fantastic modification of the original plugin though. Thank you for the hard work.
Reply
#29
jonnboy44 Wrote:Ok, i'm on GS 3.0 and using the latest version of I18N Custom Fields plugin. On all custom image fields, the browse button that should point to my image files, takes me to the default home page of the site. The url the browse button is generating is...

http://www.staging.glyphinteractive.com/...ype=images

Any idea what's going on? Sitewide cookies are enabled in GSconfig.

The path itself seems to be correct - is there a filebrowser.php at this position?
Is there a .htaccess file in this directory (with allow from all) - or are you using something different than Apache?
Have you modified your .htaccess rules in the root directory?

jonnboy44 Wrote:Also, i found a small bug with naming fields in the Custom Field creation. Looks like you cannot name fields with uppercase - (ie featurePic breaks but featurepic works). Not a big deal but drove me crazy for a little while.

Actually that's a feature - the comparison of field names is case insensitive. But it should not break - what doesn't work with uppercase names?

jonnboy44 Wrote:Fantastic modification of the original plugin though. Thank you for the hard work.

You're welcome!
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#30
mvlcek Wrote:
jonnboy44 Wrote:Ok, i'm on GS 3.0 and using the latest version of I18N Custom Fields plugin. On all custom image fields, the browse button that should point to my image files, takes me to the default home page of the site. The url the browse button is generating is...

http://www.staging.glyphinteractive.com/...ype=images

Any idea what's going on? Sitewide cookies are enabled in GSconfig.

The path itself seems to be correct - is there a filebrowser.php at this position?
Is there a .htaccess file in this directory (with allow from all) - or are you using something different than Apache?
Have you modified your .htaccess rules in the root directory?

jonnboy44 Wrote:Also, i found a small bug with naming fields in the Custom Field creation. Looks like you cannot name fields with uppercase - (ie featurePic breaks but featurepic works). Not a big deal but drove me crazy for a little while.

Actually that's a feature - the comparison of field names is case insensitive. But it should not break - what doesn't work with uppercase names?

jonnboy44 Wrote:Fantastic modification of the original plugin though. Thank you for the hard work.

You're welcome!

Quote:The path itself seems to be correct - is there a filebrowser.php at this position?
Is there a .htaccess file in this directory (with allow from all) - or are you using something different than Apache?
Have you modified your .htaccess rules in the root directory?

Crap! stupid .htaccess files get me every time! Thank you for pointing out the glaringly obvious answer staring me in the face.

Quote:Actually that's a feature - the comparison of field names is case insensitive. But it should not break - what doesn't work with uppercase names?

As for the humpCase naming convention, basically any field with a label name of featurePic won't display content, but change that same lable to featurepic and the content displays. Obviously checking to make sure that the
Code:
<?php get_custom_field('featurePic'); ?>
is correct.

Once again thank you for the help and work on the plugin.
Reply
#31
Awesome and the most useful plugin, thanks for the updates!

I wonder whether it's possible the LINK and IMAGE browsing can be change to the default lightbox rather than a pop-up new window? which files should i tweak? thanks heaps!!!!!!
Reply
#32
tommy Wrote:Awesome and the most useful plugin, thanks for the updates!

I wonder whether it's possible the LINK and IMAGE browsing can be change to the default lightbox rather than a pop-up new window? which files should i tweak? thanks heaps!!!!!!

The image browsing is the same as when browsing in the editor!? The page browsing is similar to the navigation structure view of the I18N plugin.

If you want to change something the relevant file is i18n_customfields/edit.php - case "link" and case "image", the browser popups are in i18n_customfields/browser. The filebrowser.php is more or less a copy of admin/filebrowser.php.

Please post your modifications, when you are finished, for others to see. If there is new functionality or it just looks better I might include it in the plugin.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#33
blind me, you are right the admin/filebrowser.php do the same popups Smile

maybe its just me, i prefer the more subtle lightbox popup than traditional new window popups.
it would be nice if it can be implemented when the browse button is click (both for the core admin and this plugin).
it will takes awhile for me to tweak this being a complete noob to php Smile

thanks for the quick reply anyway!

<script type="text/javascript">
function fill_<?php echo $i; ?>(url) {
$('#post-<?php echo $key; ?>').val(url);
}
$(function() {
$('#browse-<?php echo $key; ?>').click(function(e) {
window.open('<?php echo $SITEURL; ?>plugins/i18n_customfields/browser/pagebrowser.php?func=fill_<?php echo $i; ?>&i18n=<?php echo $isI18N; ?>', 'browser', 'width=800,height=500,left=100,top=100,scrollbars=yes');
});
});
</script>
Reply
#34
I18N Custom Fields version 1.5.3: correct some use of short php tags <? instead of <?php

(thanks to Carlos for pointing this out)
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#35
after copying the files to the server site shows a white page
Reply
#36
In relation to this question, could it be possible to retrieve a custom field value for a specific page, probably using the slug as the page ID? For example, to retrieve a hero image from the index page, something like this:

Code:
return_custom_field("img-hero", "index");
Modern UI Admin for GetSimple
Watch the demo. Install this plugin. Use this CSS. Enjoy.
Reply
#37
after copying the files to the server site shows a white page
Reply
#38
@Oleg06
Any errors with debug mode enabled?
Reply
#39
no errors, just a white screen
Reply
#40
Oleg06 Wrote:no errors, just a white screen

Does it happen only with latest I18N custom fields 1.5.3? Did previous releases work fine?
Reply
#41
Sorry, the plugin works is likely to conflict with some of the plugins that I added too much
Reply
#42
I18N Custom Fields version 1.7:
  • sends the content of WYSIWYG fields through the content filter, i.e. the placeholders - (% ... %) or {% ... %} - of most plugins will work (unless they add something in the header, too).
  • some optimizations when used with the I18N plugin - use at least version 1.7 of I18N!
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#43
It's very good plugin but in WYSIWYG type it does no take images's adress.
I must to paste it manually.
For comparison: main wysiwyg (for standard content) works ok.
Tested on 3.1B
Reply
#44
cyklades Wrote:It's very good plugin but in WYSIWYG type it does no take images's adress.
I must to paste it manually.
For comparison: main wysiwyg (for standard content) works ok.
Tested on 3.1B

It's tested and supported only on 3.0.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#45
mvlcek Wrote:
cyklades Wrote:It's very good plugin but in WYSIWYG type it does no take images's adress.
I must to paste it manually.
For comparison: main wysiwyg (for standard content) works ok.
Tested on 3.1B

It's tested and supported only on 3.0.

Thank you, I will try on 3.0
Reply
#46
Oleg06 Wrote:no errors, just a white screen

I have a same problem.

Internal Server Error 500, when I copy the i18n_customfields.php.

installed:

i18n_base
i18n_common
i18n_customfields
i18n_navigation
i18n_search
p01-contact

Whats the problem?
Reply
#47
I am using the custom_fields plugin to create an external link in the menu. I created a blank page named BLOG and added the custom field of link with name and type as link and label as BLOG. It works.

My problem is that this custom field is visible on all the new pages that I create along with the BLOG link and if I don't delete it from the new pages, they all point to the external link instead of the internal page that I have created.

Any way to sort it out?
Reply
#48
andyash Wrote:I am using the custom_fields plugin to create an external link in the menu. I created a blank page named BLOG and added the custom field of link with name and type as link and label as BLOG. It works.

My problem is that this custom field is visible on all the new pages that I create along with the BLOG link and if I don't delete it from the new pages, they all point to the external link instead of the internal page that I have created.

Any way to sort it out?

Did you enter the link as Default in the Custom Fields configuration?

You should use a custom field with name = link, label = Link (or something else), type = link and default empty.
Then on your empty blog page, enter the link (e.g. http://my.blog.site/link-to-my-blog) into the field.
The field will be empty in newly created pages.

=== THIS IS MY 500th POST ===
Now I am a Guru no more, just an ordinary Master :-(
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#49
Master Wrote:
Oleg06 Wrote:no errors, just a white screen

I have a same problem.

Internal Server Error 500, when I copy the i18n_customfields.php.

installed:

i18n_base
i18n_common
i18n_customfields
i18n_navigation
i18n_search
p01-contact

Whats the problem?

+++

Debugging:

Fatal error: Cannot redeclare get_custom_field() (previously declared in /xxx/htdocs/xxx/plugins/i18n_base.php:178) in /xxx/htdocs/xxx/plugins/i18n_customfields.php on line 155

Can somebody help me?
Reply
#50
Master Wrote:Debugging:

Fatal error: Cannot redeclare get_custom_field() (previously declared in /xxx/htdocs/xxx/plugins/i18n_base.php:178) in /xxx/htdocs/xxx/plugins/i18n_customfields.php on line 155

Can somebody help me?

Use the newest versions both of I18N and I8N Custom Fields.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply




Users browsing this thread: 4 Guest(s)