dichternebel
Forum Replies Created
-
Forum: Plugins
In reply to: [Calendar Event Multi View] WP 4.1: Edit Details no longer workingThanks! It works!
Forum: Plugins
In reply to: [Calendar Event Multi View] WP 4.1: Edit Details no longer workingOk, found it!
A quick fix described below.
But this should be fixed as soon as possible by the plugin owner.The issue is wrong references to jQueryUI libs. I don’t know when this changed, but it seems that jQueryUI has left out the namespace in the js-files, e.g. jquery.ui.core.min.js has been renamed to core.min.js and so on.
I did a search on files and it seems to be enough to edit two files in CP Multi Event Calendar folder, where we have to fix the links:
Search "jquery.ui." (14 hits in 2 files) \wp-content\plugins\cp-multi-view-calendar\cp-main-class.inc.php (9 hits) Line 199: <script type='text/javascript' src='<?php echo $plugin_url.'/../../../'; ?>wp-includes/js/jquery/ui/jquery.ui.core.min.js'></script> Line 200: <script type='text/javascript' src='<?php echo $plugin_url.'/../../../'; ?>wp-includes/js/jquery/ui/jquery.ui.widget.min.js'></script> Line 201: <script type='text/javascript' src='<?php echo $plugin_url.'/../../../'; ?>wp-includes/js/jquery/ui/jquery.ui.mouse.min.js'></script> Line 202: <script type='text/javascript' src='<?php echo $plugin_url.'/../../../'; ?>wp-includes/js/jquery/ui/jquery.ui.resizable.min.js'></script> Line 203: <script type='text/javascript' src='<?php echo $plugin_url.'/../../../'; ?>wp-includes/js/jquery/ui/jquery.ui.draggable.min.js'></script> Line 204: <script type='text/javascript' src='<?php echo $plugin_url.'/../../../'; ?>wp-includes/js/jquery/ui/jquery.ui.button.min.js'></script> Line 205: <script type='text/javascript' src='<?php echo $plugin_url.'/../../../'; ?>wp-includes/js/jquery/ui/jquery.ui.position.min.js?'></script> Line 206: <script type='text/javascript' src='<?php echo $plugin_url.'/../../../'; ?>wp-includes/js/jquery/ui/jquery.ui.dialog.min.js'></script> Line 207: <script type='text/javascript' src='<?php echo $plugin_url.'/../../../'; ?>wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js'></script> \wp-content\plugins\cp-multi-view-calendar\php\edit.php (5 hits) Line 58: <script type='text/javascript' src='<?php echo $path.'../../../../wp-includes/js/jquery/ui/jquery.ui.core.min.js'; ?>'></script> Line 59: <script type='text/javascript' src='<?php echo $path.'../../../../wp-includes/js/jquery/ui/jquery.ui.widget.min.js'; ?>'></script> Line 60: <script type='text/javascript' src='<?php echo $path.'../../../../wp-includes/js/jquery/ui/jquery.ui.button.min.js'; ?>'></script> Line 61: <script type='text/javascript' src='<?php echo $path.'../../../../wp-includes/js/jquery/ui/jquery.ui.dialog.min.js'; ?>'></script> Line 62: <script type='text/javascript' src='<?php echo $path.'../../../../wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js'; ?>'></script>
Forum: Themes and Templates
In reply to: [Tracks] AllInOne SEO and Tracks 1.30.3Ouch!
Shame on me. Reading your reply pointed exactly to the problem that is currently sitting in front of a laptop and typing… ??
I did some customization in header.php but I did not update the file to 1.30.3. to do the tweaks based on the current version!
So thanks again Ben, it has nothing to do with All in One SEO nor with Tracks 1.30.3 but just with me…Forum: Themes and Templates
In reply to: [Tracks] Social Media Icon "Email"Thanks again, Ben!
It works.Forum: Themes and Templates
In reply to: [Tracks] Customize What Categories Show On HomepageYou’re welcome!
I tried your solution by including your snippet into the functions.php and it is working. I think it’s the better solution anyways because as a plugin one should be able to customize the Cat ID.
For the “copy & paste”-guys of you:
Don’t copy the
<?php
into the functions.php unless the snippet is the only piece of code in that file.
Then you also need to add the closing tag
?>
Forum: Plugins
In reply to: [wp-Monalisa] Admin Settings not showing on WordPress MultisiteHa,
yes, that did it.
Blog#1 indeed shows the menu entries. But activating the plugin completey broke my pages => no content is showing.
Activating on another blog does not do antything… Activating network wide has the same effect.
In the meantime I achieved what I wanted with a simple hook by overwriting the standard smilies with a custom set in my child theme functions.php.Thanks anyway
SaschaForum: Themes and Templates
In reply to: [Tracks] Customize What Categories Show On HomepageHi,
I had the same requirement and found the solution somewhere in the forums.
What you need is a custom plugin to do that. First take a look at your categories and grap the category ID you want to display. In the example the Cat ID is “2”.
$query->set('cat', 2);
Change the code below to match your ID.<?php /* Plugin Name: Limit homepage to display a single Category */ function my_before_query( $query ) { if( $query->is_main_query() && is_home() ){ $query->set('cat', 2); } } add_action( 'pre_get_posts', 'my_before_query', 1 ); ?>
I created a php file named limitHomepageToCat.php, put in the code and copied it to the plugin-folder.
Simply activate the plugin and your homepage will only display the posts from one category.
You might also put that code in the functions.php of your child theme, but I did not test that.Forum: Themes and Templates
In reply to: [BizWay] Upload Images won't work@nina: that would be great. thank you!
Meanwhile I found a workaround: I switched back to the parent theme, made my image uploads and switched forth to the child theme. Now I have my options in the child theme done with the working parent theme image upload.
I hope this helps someone.
Forum: Themes and Templates
In reply to: [BizWay] Upload Images won't workThanks esmi,
but since this is already the second topic, see Razi3L: Theme Options not saving with child theme , facing the same problem I didn’t want to start another one.
But I’ll do in future.Forum: Themes and Templates
In reply to: [BizWay] Upload Images won't workJust having a child theme at all results in the upload button not working.
Same problem here! That’s quite embarrassing since I really need to customize some things and being unable to use the options from a child theme is a real impediment.
Any workarounds?
Forum: Plugins
In reply to: [Frontend Uploader] Custom destination folderDid you look at the WP codex site for the gallery shortcode?
You could try something like this:
Options The following basic options are supported: orderby specify how to sort the display thumbnails. The default is "menu_order". Options: menu_order - you can reorder the images in the Gallery tab of the Add Media pop-up title - order by the title of the image in the Media Library post_date - sort by date/time rand - order randomly ID order specify the sort order used to display thumbnails. ASC or DESC. For example, to sort by ID, DESC: [gallery order="DESC" orderby="ID"]
or you could give RPS Image gallery a try.
ahh… sorry. I did not really understand your problem. You meant direct dowloading from the uploads folder per gallery, right? That’s a problem… no idea!
Forum: Plugins
In reply to: [Frontend Uploader] Custom destination folderHi,
I’ve been having the same requirement… ??
But after playing around a bit, I noticed that this plugin attaches the files to the page where the form is in, so it works out of the box if you use the WP galleries since v3.5!
All you have to do is to add a gallery to the page with the form and when you approve your uploads, they are automatically added to the gallery.best regards
SaschaForum: Fixing WordPress
In reply to: Intranet Site – link to a network share?After a little bit more research, the solution seems to be already provided here: link to local file
Forum: Fixing WordPress
In reply to: Intranet Site – link to a network share?Today I noticed that this mu-plugin somehow only works for Administrators. So I ended in editing the functions.php directly… that’s damn ugly!
I noticed that plugins should be able to change the allowed protocols but I did not find a way to get it work. One problem could be that the $protocols is a static variable, but why did it work for the admin anyway?Seems to me, that I don’t understand the process how WP is cleaning up URLs… I could really need some help here.
Forum: Fixing WordPress
In reply to: Intranet Site – link to a network share?Guys,
I just had the same problem and hoped to find a plugin as always when wanting WordPress to do something that can’t be done out of the box… but this time without success. ??
What I have found is that WP 3.4.2 uses a funtion returning the allowed protocols. I found it in wp-include\functions.php named wp_allowed_protocols(). Adding ‘file’ to the array did the trick.
Since it’s not the best idea to edit core files of WP I ended up with following solution, which works like a charm:
- create a directory (if not already existing) named wp-content\mu-plugins
- create a file in the mu-plugins folder e.g. called allowFileLink.php
- copy & paste the following code snippet into the file and that’s it
<?php function custom_allowed_protocols() { static $protocols; if ( empty( $protocols ) ) { $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn', 'file' ); $protocols = apply_filters( 'kses_allowed_protocols', $protocols ); } return $protocols; } $hook = wp_allowed_protocols; add_filter($hook,custom_allowed_protocols); ?>
You now can add links like file:///X:/somefolder/somesubfolder/sometextfile.txt
Let me know if it works for you. If you have better solutions than this fast hack, please provide them.
Cheers
Sascha