当前位置: 首页>>代码示例>>PHP>>正文


PHP bp_get_forum_topic_count_for_user函数代码示例

本文整理汇总了PHP中bp_get_forum_topic_count_for_user函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_get_forum_topic_count_for_user函数的具体用法?PHP bp_get_forum_topic_count_for_user怎么用?PHP bp_get_forum_topic_count_for_user使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了bp_get_forum_topic_count_for_user函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: trailingslashit

echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug());
?>
"><?php 
printf(__('All Topics <span>%s</span>', 'buddypress'), bp_get_forum_topic_count());
?>
</a></li>

						<?php 
if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) {
    ?>

							<li id="forums-personal"><a href="<?php 
    echo trailingslashit(bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics');
    ?>
"><?php 
    printf(__('My Topics <span>%s</span>', 'buddypress'), bp_get_forum_topic_count_for_user(bp_loggedin_user_id()));
    ?>
</a></li>

						<?php 
}
?>

						<?php 
do_action('bp_forums_directory_group_types');
?>

					</ul>
				</div>

				<div class="item-list-tabs" id="subnav" role="navigation">
开发者ID:shieldsdesignstudio,项目名称:forefield,代码行数:31,代码来源:bp-forums.php

示例2: printf

						<p><?php printf( __( "You are not a member of any groups so you don't have any group forums you can post in. To start posting, first find a group that matches the topic subject you'd like to start. If this group does not exist, why not <a href='%s'>create a new group</a>? Once you have joined or created the group you can post your topic in that group's forum.", 'buddypress' ), site_url( BP_GROUPS_SLUG . '/create/' ) ) ?></p>
					</div>

				<?php endif; ?>

			<?php endif; ?>
		</div><!-- #new-topic-post -->

		<form action="" method="post" id="forums-directory-form" class="dir-form">

			<div class="item-list-tabs">
				<ul>
					<li class="selected" id="forums-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Topics (%s)', 'buddypress' ), bp_get_forum_topic_count() ) ?></a></li>

					<?php if ( is_user_logged_in() && bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) : ?>
						<li id="forums-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/' ?>"><?php printf( __( 'My Topics (%s)', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>
					<?php endif; ?>

					<?php do_action( 'bp_forums_directory_group_types' ) ?>

					<li id="forums-order-select" class="last filter">

						<?php _e( 'Order By:', 'buddypress' ) ?>
						<select>
							<option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>
							<option value="popular"><?php _e( 'Most Posts', 'buddypress' ) ?></option>
							<option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ) ?></option>

							<?php do_action( 'bp_forums_directory_order_options' ) ?>
						</select>
					</li>
开发者ID:n-sane,项目名称:zaroka,代码行数:31,代码来源:index.php

示例3: bp_forum_topic_count_for_user

/**
 * Output the total topic count for a given user.
 *
 * @see bp_get_forum_topic_count_for_user() for description of parameters.
 *
 * @param int $user_id See {@link bp_get_forum_topic_count_for_user()}.
 */
function bp_forum_topic_count_for_user($user_id = 0)
{
    echo bp_get_forum_topic_count_for_user($user_id);
}
开发者ID:danielcoats,项目名称:schoolpress,代码行数:11,代码来源:bp-forums-template.php

示例4: trailingslashit

echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug());
?>
"><?php 
printf(__('All Topics <span>%s</span>', 'firmasite'), bp_get_forum_topic_count());
?>
</a></li>

				<?php 
if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) {
    ?>

					<li id="forums-personal"><a href="<?php 
    echo trailingslashit(bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics');
    ?>
"><?php 
    printf(__('My Topics <span>%s</span>', 'firmasite'), bp_get_forum_topic_count_for_user(bp_loggedin_user_id()));
    ?>
</a></li>

				<?php 
}
?>

				<?php 
do_action('bp_forums_directory_group_types');
?>

			</ul>
		</div>

		<div class="item-list-tabs" id="subnav" role="navigation">
开发者ID:jason-herndon,项目名称:bas-intranet,代码行数:31,代码来源:index.php

示例5: trailingslashit

echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug());
?>
"><?php 
printf(__('All Topics %s', 'wonderflux'), '<span>' . bp_get_forum_topic_count() . '</span>');
?>
</a></li>

				<?php 
if (is_user_logged_in() && bp_get_forum_topic_count_for_user(bp_loggedin_user_id())) {
    ?>

					<li id="forums-personal"><a href="<?php 
    echo trailingslashit(bp_loggedin_user_domain() . bp_get_forums_slug() . '/topics');
    ?>
"><?php 
    printf(__('My Topics %s', 'wonderflux'), '<span>' . bp_get_forum_topic_count_for_user(bp_loggedin_user_id()) . '</span>');
    ?>
</a></li>

				<?php 
}
?>

				<?php 
/**
 * Fires inside the forum group types list.
 *
 * @since 1.2.0
 */
do_action('bp_forums_directory_group_types');
?>
开发者ID:bdacode,项目名称:Wonderflux,代码行数:31,代码来源:index.php


注:本文中的bp_get_forum_topic_count_for_user函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。