WordPress

BuddyPress Activity Stream Bar | WordPress Plugin

Adds a static bar at the bottom of every page of your website. Which displays the latest 20 BuddyPress Activities and rotates threw them.

This way all your members/visitors can see at a glance all the latest activity on your website!

There are also buttons so you can go forward and back in the activity stream and a close/open button in the bottom right.

-

== Installation ==

1. Activate the “BuddyPress Activity Stream Bar” Plugin
2. See FAQ if you want to change how often the activity rotates.

Frequently Asked Questions


-

You can download it over at WordPress.org


Integrate Simple:Press Forum into the BuddyPress Activity Stream!

This will post new topics/replies from your Simple:Press Forum into the BuddyPress Activity stream and you can even filter it under “Show Forum Replies”. The view button will take you right to the permalink as well!

So let’s get started shall we. First off go to this file:

wp-content/plugins/simple-forum/forum/hooks/sf-hook-template.txt

Then rename that file or made a copy and name it sf-hook-template.php

(continue reading…)


Change WordPress Default Email From Name and Address without a plugin!

WordPress usually uses the from name “WordPress” and address “[email protected]” by default when it sends notifications to users. For example new users or comments on your posts.

On one of my wordpress blogs it actually used [email protected] which is kinda weird too. Let’s make this custom to your website! Just requires pasting in some code into 1 file.

This is working as a WordPress version 2.9.2

All you need to do is put this in your themes functions.php file before the ending ?>

add_filter('wp_mail_from', 'new_mail_from');
add_filter('wp_mail_from_name', 'new_mail_from_name');
 
function new_mail_from($old) {
 return [email protected]';
}
 
function new_mail_from_name($old) {
 return 'Blog or Website Name';
}

Save it and your done! Yes it’s that easy.


Best Countdown Timer Plugin for WordPress | Easy Timer

I’ve tried several countdown plugins, this is the best by far. What it lacks in looks it more than makes up in options. It’s also a very lightweight plugin. It’s called Easy Timer by Kleor.

You can have the countdown timer display the remaining time in the following ways. By using simple shortcodes.

[dhmstimer] (or [timer]) to display the remaining time in days, hours, minutes and seconds
[dhmtimer] to display the remaining time in days, hours and minutes
[dhtimer] to display the remaining time in days and hours
[dtimer] to display the remaining time in days
[hmstimer] to display the remaining time in hours, minutes and seconds
[hmtimer] to display the remaining time in hours and minutes
[htimer] to display the remaining time in hours
[mstimer] to display the remaining time in minutes and seconds
[mtimer] to display the remaining time in minutes
[stimer] to display the remaining time in seconds

After the countdown is complete you can choose to display a image, text, etc. using basic html.

In fact you can have one countdown trigger another. Why would you want to do this? What if you want have a countdown to New Years Day or any set day really. You set it up a few years ahead and forgot about it.

Some other options:

  • You can use it in widgets and posts/pages!
  • You have to option to “count up” to an event with the same remaining time options as the countdown
  • Use it as a basic display clock.
  • Display the current year, month, day, etc
  • Offset with timezone

There isn’t a admin screen for this plugin. Isn’t needed but it would be nice to have basic admin page with all the different options listed there for reference. But the plugin link does point to the documentation on how to use this great plugin.

Complete Documentation is available here.

Be sure to check it out, it’s a the best one I’ve found for WordPress.


CubePoints support for the Calendar plugin by Kieran O’Shea | WordPress

You can download the Calendar plugin by Kieran O’Shea here.

To give points for adding a calendar item. Search for this text.

Event added. It will now show in your calendar

Here is the original:

	    else
	      {
		?>
		<div class="updated"><p>< ?php _e('Event added. It will now show in your calendar.','calendar'); ?></p></div>
		< ?php
	      }

Modified with CubePoints support. This will give the user 20 points.

(continue reading…)


CubePoints and WP-Polls | WordPress Plugin

This is reported as working on Version 2.40 of WP-Polls.

Open WP-Polls.php

Find:

foreach($poll_aid_array as $polla_aid) {
$wpdb->query("UPDATE $wpdb->pollsa SET polla_votes = (polla_votes+1) WHERE polla_qid = $poll_id AND polla_aid = $polla_aid");
}

Below is ONLY for CubePoints 3.0+

Add this code after that line:

//Cubepoints support
$current_user = wp_get_current_user();
cp_points(‘wppolls_cb_new_topic’, $current_user->ID, get_option(‘cp_wppolls_topic’), “”);

Then save this file as wp_polls.txt and upload it to the CubePoints module folder:

wp-content/plugins/cubepoints/modules/

Active the module, set your points value and your set!

Below is ONLY for CubePoints 2.0 – 2.1.3

Add this code after that line:

/* Additional CubePoints integration */
if( function_exists('cp_alterPoints') && is_user_logged_in() ){
cp_alterPoints(cp_currentUser(), 1);
cp_log('Poll Vote', cp_currentUser(), 1, Polls);
}

This will give the user 1 point for creating a poll.

Thanks to Armin for figuring this out.


  • RSS SlySpyder Reviews

  • Categories

  • Copyright © 1996-2010 SlySpyder Blog. All rights reserved.
    iDream theme by Templates Next | Powered by WordPress