Phlux0r
Forum Replies Created
-
Forum: Plugins
In reply to: [Latest Tweets Widget] func_get_args(): Can't be used as a function parameterNo worries, that was quick… you don’t miss a beat 🙂
Forum: Plugins
In reply to: [Latest Tweets Widget] func_get_args(): Can't be used as a function parameterIn
wp-content/plugins/latest-tweets-widget/latest-tweets.php
around line 30 just replace the code that says:if( $cachettl ){ $cachekey = 'latest_tweets_'.implode('_', func_get_args() );with:
if( $cachettl ){ $fargs = func_get_args(); $cachekey = 'latest_tweets_'.implode('_', $fargs );Forum: Plugins
In reply to: [BP-TinyMCE] [Plugin: BP-TinyMCE] Can't input text in activity replyWhich one?
Forum: Plugins
In reply to: [BP-TinyMCE] Disabling some of the buttons on BP-TinyMCESee my reply here how I changed the WYSIWYG buttons:
http://ww.wp.xz.cn/support/topic/plugin-bp-tinymce-cant-input-text-in-activity-reply?replies=4#post-2477021If you want to avoid using the full Tiny MCE toolbar, you may want to switch to the Teeny WYSIWYG by implementing the following filter hook:
add_filter( 'bp_tinymce_is_teeny', 'my_bp_tinymce_is_teeny' ); function my_bp_tinymce_is_teeny($is_teeny) { return true; }You may need to put this into the bp-custom.php in your plugins folder as in my case having it in my theme functions.php didn’t work.
Forum: Plugins
In reply to: [BP-TinyMCE] [Plugin: BP-TinyMCE] Can't input text in activity replySame problem for me. Seems to be that TinyMCE disabled the editor for hidden containers.
What I’ve done, is basically added an exception to the initArray to NOT convert any of the activity comment textareas to the WYSIWYG by implementing the following filter hook:
add_filter( 'bp_tinymce_init_parms', 'my_bp_tinymce_init_parms'); function my_bp_tinymce_init_parms($initArray) { // change the available buttons - optional $initArray['theme_advanced_buttons1'] = 'bold, italic, underline, blockquote, separator, strikethrough, bullist, numlist, link, unlink, image'; // Disable the WYSIWYG on textareas with class ac-input $initArray['editor_deselector'] = 'ac-input'; return $initArray; }Here, I also change the available buttons… in case anyone wants to do that too.
HTH
Hm, I will probably make some mods to the widget code to customize it to the needs of my current project.
As it stands, there is a lot of ‘presentation’ stuff in the code so it’s not easy to customize it without touching the core plugin. Maybe you can look at providing some filter hooks for certain areas…
If I end up with some mods that could be useful to others, I can pass the code onto you to include in your plugin if you want.
I don’t think this plugin has anything to do with custom fields. They are part of the post custom data. Use get_post_custom() to retrieve the values. Check out the codex: http://codex.ww.wp.xz.cn/Custom_Fields
Forum: Themes and Templates
In reply to: Add wysiwyg to meta box?And a tut about using multiple boxes here: http://farinspace.com/multiple-wordpress-wysiwyg-visual-editors/ Read the comments for more good hints.
Forum: Fixing WordPress
In reply to: Best 'how to' Add Meta Boxes/Custom Post Types Tutorial?Check out: http://farinspace.com/multiple-wordpress-wysiwyg-visual-editors/
And to use the info? Well, it’s all saved in custom fields so just grab a tutorial about using custom fields.
Having had a look, you need to override Walker_CategoryDropdown and implement your own start_el() method since the original hard-codes using the term id.
Then you can do:
$walker = new QMT_Category_Walker();
and pass your walker to the dropdown function:
…walk_category_dropdown_tree( $terms, 0, array( 'selected' => qmt_get_query( $taxonomy ), 'show_count' => true, 'show_last_update' => false, 'hierarchical' => true, 'walker' => $walker, ) )Thanks for addressing this so quickly. Shows up quite nicely however it uses IDs to pass to the query string instead of the category and taxonomy slugs so there are no results… is this due to the change you made?
I Haven’t had a good look at the code yet…
Hit the same problem and resorted to using a direct call to the class method:
global $CategoryImagesII; echo $CategoryImagesII->display_images( array($cat_id), true );Forum: Plugins
In reply to: [Plugin: PollDaddy Polls] Sidebar Widget not workingTry pasting the javascript code into the text widget. Shortcodes don’t work in widgets, do they?
What worked for me on OS X Snow Leopard with PHP 5.3 and APC enabled was (in php.ini):
[apc]
apc.include_once_override=0HTH
What worked for me on OS X Snow Leopard with PHP 5.3 and APC was:
[apc]
apc.include_once_override=0HTH