monodistortion
Forum Replies Created
-
Go to the Gallery > Other Options admin panel and select Styles. Right now you have the CSS code:
.ngg-imagebrowser img (border:none)
Change that to:
.ngg-imagebrowser .pic { border: none; }
Forum: Plugins
In reply to: [WP Render Blogroll Links] [Plugin: WP Render Blogroll Links] Link dy dateTry something like this:
[wp-blogroll catid=1 orderby=updated order=DESC]Forum: Plugins
In reply to: [Plugin: Google AJAX Translation] It doesn't translateGoogle has discontinued its free translation API service:
https://code.google.com/apis/language/translate/overview.htmlThe closest alternate solution is to use Google translation with their widget, so you can put this code into a text widget or something like that:
https://translate.google.com/translate_toolsHope that helps.
NickGoogle has discontinued its free translation API service:
https://code.google.com/apis/language/translate/overview.htmlIt is possible to use Google translation with their widget though, so you can put this code into a text widget or something like that:
https://translate.google.com/translate_toolsHope that helps.
NickForum: Plugins
In reply to: [Google AJAX Translation] [Plugin: Google AJAX Translation] Stopped workingGoogle has discontinued its free translation API service:
https://code.google.com/apis/language/translate/overview.htmlIt is possible to use Google translation with their widget though, so you can put this code into a text widget or something like that:
https://translate.google.com/translate_toolsHope that helps.
NickForum: Plugins
In reply to: Google AJAX Translation plugin helpI sent you an email but I’ll also reply here. Google has discontinued its free translation API service:
https://code.google.com/apis/language/translate/overview.htmlIt is possible to use Google translation with their widget though, so you can put this code into a text widget or something like that:
https://translate.google.com/translate_toolsHope that helps.
NickUsing iframe mode the attribute
allowTransparency
is invalid but it’s used for IE.Forum: Plugins
In reply to: [Live Comment Preview] [Plugin: Live Comment Preview] bug in version 2.0b1I looked at the trunk, dated 2011-01-17, and you have to be careful with the short tags.
<?=
is shorthand for<?php echo
.Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] Edit TemplatesPut those files in a folder here:
wp-content/themes/my_theme/events/
Also put your custom
events.css
file there if you need to change the css.After a lot of digging I found what is causing the bug (more Fields version 2.0.5.2). I’m not sure what the best way to fix it would be since any change might break the way the plugin is supposed to work. But for the developers– this is what’s causing the bug.
In the file
more-fields-rewrite-object.php
there is a lineadd_filter('posts_join', array(&$this, 'query_join'));
that adds a filter called
query_join
.function query_join( $join ) { global $wpdb, $wp_query; if (!is_callable(array($wp_query, 'get'))) return false; if ($key = $wp_query->get('mf_key') || $type = esc_attr($_GET['type'])) { $join .= " LEFT JOIN $wpdb->postmeta as meta ON $wpdb->posts.ID = meta.post_id"; } return $join; }
This adds a LEFT JOIN to the normal $wp_query request parameter. This causes each image to show up 3 times in a normal $wp_query.
Then in the media library iframe the image links are paginated with the function:
$page_links = paginate_links( array( 'base' => add_query_arg( 'paged', '%#%' ), 'format' => '', 'prev_text' => __('?'), 'next_text' => __('?'), 'total' => ceil($wp_query->found_posts / 10), 'current' => $_GET['paged'] ));
My media library should show 18 images split up onto 2 pages but since
$wp_query->found_posts
is 54 they’re split up onto six pages with 4 images on each page.=====
As a temporary fix I’m going to comment out line 16 inmore-fields-rewrite-object.php
//add_filter('posts_join', array(&$this, 'query_join'));
Interesting! I was having this problem but I didn’t know what was causing it. I tested out disabling the More Fields plugin and that was the cause. My media library only shows 4 pictures at a time.
try changing it to:
echo the_event_end_date($post->ID, FALSE, 'G:i');
Hmm, WordPress stores categories with a numbered ID, a slug used for pretty permalinks, and a display name which is what we’re trying to change.
If you change the
const CATEGORYNAME
and you edit the category name on the Categories Administration Panel it should work and the ID and the slug wouldn’t change.Do you know if your database was created with support for UTF-8 characters?
Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] Fatal ErrorIn the General Settings Administration panel what do you have for
WordPress address (URL)
andSite address (URL)
?Are you using any Permalink Settings? If so does it work if you switch the permalinks to Default?
That section of the plugin is where it generates a lot of rewrite rules specific for the event category and dates.
I tried looking at your page and it seems this is a common problem when embedding a Google map into an iframe.
It looks fine on Firefox 3.6.13, Safari 5.0.2, and Chrome 8.0.552.224.
On my old iPod Touch with iOS 3.1.3 it loads the page and the map but after the map appears it keeps doing something and the frame holding the map gets really, really tall, stretching way off the page.
If you turn on the Develop menu in Safari you can send different user agents to see how Google sends a different looking map for mobile clients.
The error console in Safari, Chrome, and Mobile Safari will all spit out a lot of cross scripting JavaScript security errors like this but Firefox doesn’t.
Unsafe JavaScript attempt to access frame with URL https://www.therainbowofhope.net/events/2010/11/25/happy-thanksgiving/ from frame with URL https://www.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Plymouth+MA+United+States?%3E&output=embed. Domains, protocols and ports must match.
This may be a bug in Safari and Chrome or just a result of them having a stricter same-origin security policy.
https://stackoverflow.com/questions/858811
https://fascynacja.wordpress.com/2010/07/14/gwt-2-0-chrome-unsafe-javascript-attempt-to-access-frame-with-url/
https://code.google.com/p/chromium/issues/detail?id=43173If it’s important for the site to work in Mobile Safari I would suggest going with a simple solution and use the
Show Google Map Link:
option instead of theShow Google Map:
option.Other than that you could try using the Google Static Maps API which delivers an image file instead of an interactive iframe. This would require editing the plugin file
template-tags.php
though.
https://code.google.com/apis/maps/documentation/staticmaps/