pathuri
Forum Replies Created
-
Forum: Plugins
In reply to: [Google Doc Embedder] google drive issueEven I’m getting error with dropbox link also :
[gview file=”https://dl.dropboxusercontent.com/s/zn400afv6e9t73p/ward-committee.pdf?dl=1″ height=”850px”]Forum: Plugins
In reply to: [Google Doc Embedder] google drive issuefollowing are some more options tried :
ward committe (http link – https://drive.google.com/file/d/0BzvCHTTn4xINb0RaRURtcV85b2c/edit?usp=sharing) — works
[gview file=”ward-committee.pdf” height=”850px”] – local file works
[gview file=”https://drive.google.com/file/d/0BzvCHTTn4xINb0RaRURtcV85b2c/edit?usp=sharing” height=”850px”] — google drive link — not working
[gview file=”https://drive.google.com/uc?id=0BzvCHTTn4xINb0RaRURtcV85b2c&e=download” height=”850px”] — google drive link not working
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] How to display latest 5 events?thanks for the reply.
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] How to display latest 5 events?both options can be good :
a) either first five or user defined
b) or last five or user definedI’m using all latest versions of wordpress, buddypress and BP A+.
Mine is single site.
Let me investigate further.
Might be it is a conflict of some plug-in?pastebin link –
http://pastebin.com/Cny4EHbCin my view, it is better if mod is part of bp-activity-shortcode.php file rather than modifying the bp-activity-plus code.
I’m using the solution posted in the link mentioned by you to show the new-form as part of bp-activity-short-code.
The code from the link is added above the ‘title’ code exactly.
The solution from the post was working fine but without BP AP+ links.
That is when I posted this problem here.
Then i tried your 2 solutions –
(1) first solution works fine
(2) second solution still doesn’t work even after moving the code to above the ‘title’ code (earlier it was above ‘use_compat code and now i shifted to above ‘title’ code).
with my trials, it looks like 2nd solution doesn’t work.Pastebin Link :
<?php
/**
* Plugin Name: BuddyPress Activity Shortcode
* Author: Brajesh Singh(BuddyDev)
* Plugin URI: http://buddydev.com/plugins/bp-activity-shortcode/
* Author URI: http://buddydev.com/members/sbrajesh/
* Version: 1.0.2
* License: GPL
*/
class BD_Activity_Stream_Shortcodes_Helper{private static $instance;
private function __construct() {
//register shortcodes
$this->register_shortcodes();}
/**
* Register shortcodes
*
*/
private function register_shortcodes() {
//[activity-stream display_comments=threaded|none title=somethimg per_page=something]add_shortcode( ‘activity-stream’, array( $this, ‘generate_activity_stream’ ) );
}
/**
* Get Instance
*
*
* @return BD_Activity_Stream_Shortcodes_Helper
*/
public static function get_instance() {if ( !isset( self::$instance ) )
self::$instance = new self();return self::$instance;
}public function generate_activity_stream( $atts, $content = null ) {
//allow to use all those args awesome!
$atts=shortcode_atts(array(
‘title’ => ‘Latest Activity’,//title of the section
‘pagination’ => ‘true’,//show or not
‘display_comments’ => ‘threaded’,
‘include’ => false, // pass an activity_id or string of IDs comma-separated
‘exclude’ => false, // pass an activity_id or string of IDs comma-separated
‘in’ => false, // comma-separated list or array of activity IDs among which to search
‘sort’ => ‘DESC’, // sort DESC or ASC
‘page’ => 1, // which page to load
‘per_page’ => 5, //how many per page
‘max’ => false, // max number to return// Scope – pre-built activity filters for a user (friends/groups/favorites/mentions)
‘scope’ => false,// Filtering
‘user_id’ => false, // user_id to filter on
‘object’ => false, // object to filter on e.g. groups, profile, status, friends
‘action’ => false, // action to filter on e.g. activity_update, new_forum_post, profile_updated
‘primary_id’ => false, // object ID to filter on e.g. a group_id or forum_id or blog_id etc.
‘secondary_id’ => false, // secondary object ID to filter on e.g. a post_id// Searching
‘search_terms’ => false, // specify terms to search on
‘use_compat’ => bp_use_theme_compat_with_current_theme()
), $atts );extract( $atts );
ob_start(); ?>
<?php if ( is_user_logged_in() ) : ?>
<?php include_once( WP_PLUGIN_DIR.’/buddypress/bp-templates/bp-legacy/buddypress/activity/post-form.php’); ?>
<?php endif; ?>
<?php if( $use_compat):?>
<div id=”buddypress”>
<?php endif;?><?php if($title): ?>
<h3 class=”activity-shortcode-title”><?php echo $title; ?></h3>
<?php endif;?><?php do_action( ‘bp_before_activity_loop’ ); ?>
<?php if ( bp_has_activities($atts) ) : ?>
<div class=”activity <?php if(!$display_comments): ?> hide-activity-comments<?php endif; ?> shortcode-activity-stream”><?php if ( empty( $_POST[‘page’] ) ) : ?>
<ul id=”activity-stream” class=”activity-list item-list”>
<?php endif; ?>
<?php while ( bp_activities() ) : bp_the_activity(); ?>
<?php bp_get_template_part( ‘activity/entry’); ?>
<?php endwhile; ?>
<?php if ( empty( $_POST[‘page’] ) ) : ?>
<?php endif; ?>
<?php if($pagination):?>
<div class=”pagination”>
<div class=”pag-count”><?php bp_activity_pagination_count(); ?></div>
<div class=”pagination-links”><?php bp_activity_pagination_links(); ?></div>
</div>
<?php endif;?>
</div><?php else : ?>
<div id=”message” class=”info”>
<p><?php _e( ‘Sorry, there was no activity found. Please try a different filter.’, ‘buddypress’ ); ?></p>
</div><?php endif; ?>
<?php do_action( ‘bp_after_activity_loop’ ); ?>
<form action=”” name=”activity-loop-form” id=”activity-loop-form” method=”post”>
<?php wp_nonce_field( ‘activity_filter’, ‘_wpnonce_activity_filter’ ); ?>
</form>
<?php if( $use_compat ):?>
</div>
<?php endif;?>
<?php$output = ob_get_clean();
return $output;
}
}
BD_Activity_Stream_Shortcodes_Helper::get_instance();
Forum: Plugins
In reply to: [bbPress Like Button] Issues 1.5 versionYES – the problem has disappeared.
Thanks for the help.Forum: Plugins
In reply to: [bbPress Like Button] Issues 1.5 versionI have the same issue,,,
strange strings appearing in PLUGINS page.
Where is 1.5.1 ?
Don’t see on the download page,,,Hi! WPMUDEV!
First solution is working fine (if (true ||)
Second solution (mods to bp-activity-shortcode.php) is not working somehow.Thanks for all the SUPPORT!
I will check and confirm.
Forum: Plugins
In reply to: [Posts in Sidebar] forum and topic custom post types not showingThanks for such a SPEED RESPONSE.
I can confirm that it is working FINE.
Thanks once again.