Bainternet
Forum Replies Created
-
I’m assuming that you didn’t limited the custom post type of your custom user role to 1 in that specific users blog.
You need to set it up in each blog in your Multisite network.care to provide some input on what exactly didn’t work with the shortcodes ?
Forum: Plugins
In reply to: [Bainternet User Ranks] Use this with WPMU@bigdrobek: Sorry to say but i don’t really see this functionally in the plugin anytime soon, the best i can offer is tips on how to code it in your own, and help if find problems alog the way.
@paulson101 like i said
for usage instructions head to the faq section
it has an example of top ranked php template tag usage.
@paulson101 done, check out the new version 1.3.0
which has a new method to get top ranked and also a shortcode functionally for single user and top ranked user list.for usage instructions head to the faq section
Forum: Plugins
In reply to: [Simple Google +1 Button] [Plugin: Simple Google 1 Button] Feature Requestwish granted ??
you can now (from version 1.2) select to show the button before and after the content together.you don’t need anyone to be logged in, just get a list of your users ids and for each one you can use:
$baur_plugin = new baur_Plugin(); $user_rank = $baur_plugin->ba_get_user_points($user_id,true); echo "title: ". $user_rank['title'] ."<br />Points: " . $user_rank['points'];
and each time change the $user_id.
as for top rated you will need wait for the next update.
@andrea82, I see what you mean, right now its design to limit and not block altogether. If you want to give no access to post pages for a given group, use the WordPress Built-in Roles and capabilities for that.
maybe in the future I’ll add a -1 argument to block access, if you still can’t work it out.
Any news on update?
@nuagedelait: fixed “Missing argument … ” warnings in 1.2.0
thanks.
@nuagedelait: Thanks, the extra characters were due to wrong file encoding and was fixed in version 1.1.0
please update and try again.as for the other warnings “Missing argument … ” , what php version does your sever have?
@wackonerd: sorry it took so long to answer, anyway the new released version (1.0.0) has some new features, like restriction and limitation based on user role, and it now works with multisite install.
thanks for the suggestion.Forum: Plugins
In reply to: [Twitter Hash Tag Shortcode] [Plugin: Twitter Hash Tag Shortcode] Dyou need to echo it out to see it so use:
<?php echo do_shortcode('[hashtag_tweets hashtag="keyword" number="5"]'); ?>
@famousb as long as you pass an actual user id this will work, the plugin keeps score for users and can’t keep score for guests. so if you want to display a rank and title of a registered user to guests it ok. and if you are using the plugin within the loop the you can just use:
$post->post_author
instead ofget_the_author_meta( 'ID' ) //or $current_user->ID
To answer your questions:
Where?
any where in your theme that you would like to show the rank or title, that is where.
How?
the plugins FAQ show’s exactly what you need to do in order to use it, the only thing i mistakenly assumed was known to every is that $user_id is something that needs to be in the scope and assigned.Little example :
Say you have a multi-author blog with Author profie page and you want to display the author’s rank and Score then you add to your theme’s author.php file this code:<?php //first get the authors data beacuse you need the ID if(isset($_GET['author_name'])) { $curauth = get_userdatabylogin($author_name); }else{ $curauth = get_userdata(intval($author)); } //then use the plugins class and pass the current author ID $baur_plugin = new baur_Plugin(); $user_rank = $baur_plugin->ba_get_user_points($curauth->ID,true); echo "Rank: ". $user_rank['title'] . "Score: " . $user_rank['points']; ?>
Hope this helps , and if you have more specific question feel free to ask instead of trashing someone Else’s hard work.