Endolil
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Minify] [Plugin: WP Minify] How to change position of minified files?I am loading all js files via functions.php into the footer of the website but non of them got minified.
This was the solution: add_action(‘wp_footer’, array($this, ‘post_content’), 20);
Thanks to joel_birch ??
Forum: Plugins
In reply to: [WP-Paginate] [Plugin: WP-Paginate] current-menu-item doesn't get setFor me the class ’emm-current’ gets not set at all. WP 3.4.1
What works for me is to use an older version (3.1.4) of ACF
That is not really a solution but a work around so that I can use acf for the WP 3.4 based site I am working on.I am having the same issue.
It is pretty annoying because the error prevents important jQuery functions of the WordPress backend from loading properly. Under this circumstances ACF is useless.Any hints or a bug fix is really appreciated.
Forum: Fixing WordPress
In reply to: get page/post ID in functions.php fileI am trying enque js files in my functions.php in dependence of custom field values.
$url = explode('?', 'https://'.$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); $ID = url_to_postid($url[0]);
I was able to output the id of the current page/post through my functions.php with this but I could not get this to work:
$form = get_post_meta($ID,'form');
I tried to write a function that could use the $postID to access to a custom field value but that doesn’t work either.
function custom_field_v($key, $echo = false) { $url = explode('?', 'https://'.$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); $postID = url_to_postid($url[0]); $value = get_post_meta($postID, $key, $echo); if($echo == false) { return $value; } else { echo $value; } } // and than get a value $form = custom_field_v('form');
Any idea how to get this to work in the functions.php?
Forum: Plugins
In reply to: [Plugin: Custom Field Template] Definite bug: values from keys removedThank you for your response.
I can definitely say that it does not work for me.
Neither the save button nor the autosave function.When for example I enter a value in an input field and save the document than it will save the value as expected. After saving the document – what means a reload of the page as well – I switch the template and after switching back the input field is empty where there was a value before. The save function does not help here either.
Anyway it should not delete the value when switching the template, right? The value is actually a permanent thing after saving the document. For what ever reason the switching of templates causes the deletion of values – in my case.Any ideas?
Forum: Plugins
In reply to: [Plugin: Custom Field Template] Definite bug: values from keys removedI just realized that even only switching between the templates is causing the complete deletion of all values in the template that I am switching from.
Hiroaki Miyashita, do you have any idea how to fix this?
Forum: Plugins
In reply to: [Plugin: Custom Field Template] Definite bug: values from keys removedI found a bug as well – I am not sure if this is the same.
When I am switching between two templates within the edit screen a of page and save new values in one template, values in another template (that is valid for the same page) are lost.At this time it seems to be impossible to use two different templates for pages that store values and allow to change the values in each of templates. It looks like there is only one template at a time storing values in the customf fields and changing one template causes the deletion of the values in another template.
It’s a shame!
Thank you dertien,
for your sharing this partly solution.
I am not sure if it works for me.Actually I try to reduce using plugins for things that I can manage with the functions.php or some simple includes into the theme files.
I will not use the browser checking very intense because I wanna use clean CSS and HTML code that works in the major browsers and some special hacks or features ?? I will only use if really neccessary. I wanna keep it simple, so I will look for a script that gives me the control to check browser type and operating system and that’s it for now.
When I try to use the phpbrowsercap.php I have no idea how to use it because it is a class and I am not that deep in PHP so that I know how I can work with a class. I also do not want to hack it into the plugin mentioned above – I want to do something that I really understand and that does not need a plugin.
This is a new decision and it is a good one. ??I will let you know if and when I found a simpler solution.
Warm regards,
SebastianForum: Plugins
In reply to: [WP-Table Reloaded] WP-Table Reloaded Option 'kills' jQueryThank you Tobias!
Now I see clearly and it’s good to know. ??Danke!
Dein Plugin ist wirklich fantastisch und für mich eine echte Revolution in der Arbeit mit Tabellen, die sonst ziemlich nervig sein k?nnen.
Great job!Thank you Marty,
the thing is that I want to detect a Mac Safari and I am working on a Windows maschine.
In this case your code will not help but thank you for sharing.
It would be great if there is somebody updating that file but on the other side it is doubtful if a browser detection makes sense in terms of detecting a version. For Internet Explorer it might make sense and probably also for modern mobile devices like the iPhone.
I just wanted to change the text size for the Mac Safari (based on CSS) because it displays the websites that I am making alsways a bit bigger what looks lousy. I spend more than 3 hours looking at this topic and in the end I gave up because the story seems to be an endless one and not really promising at all.
I was even checking jQuery browser detection but lately they changed their concept from browser- to feature-detection and that does not helps in my case either, even when it is a good concept.
Anyway,
I let it go for now and accept Safari to be different. That makes my life easier.… edit …
I was to curious to let it completly go, even when I do not want to work with it now:
https://techpatterns.com/forums/about304.html
And if somebody wants the full programm ??
User Agent String.ComFor testing this might be helpful:
User Agent Switcher 0.7.2 for FirefoxHey,
thanks for the hint.
I had the same issue and my final solution looks like this:$gallerytag = (get_query_var('gallerytag')); // get the slug $gallerytag = str_replace("-", " ", $gallerytag); // replace dashes with spaces $gallerytag = ucwords($gallerytag); // capitalize words echo '<h1>'.$gallerytag.'</h1>'; // show the result
And I am happy with it! ??
Forum: Fixing WordPress
In reply to: Using wp_get_attachment_image for thumbnails and external linkyes,
that’s exactly with what I ended up.
Only a workaround because the URL field is not made for optional links.Forum: Plugins
In reply to: [Plugin: Custom Field Template] checkbox really checked by defaultI still have this problem.
I have a set of checkboxes in my cft template and I use this custom fields for some options in my wordpress templates.
I do not understand how to make sure that checkboxes are checked or unchecked by default.Anbody?
Forum: Plugins
In reply to: [Plugin: Capability Manager] Hide Contact Form 7 MenuHey,
you should check out the plugin ‘Adminimize’
I guess you’ll love it! ??