Archive for May, 2010

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.


AlphaUserPoints Integration for JReviews Guide | AUP API | Joomla

First you’ll need go Components > AlphaUserPoints then click on Plugins. Then you’ll unzip the files below which contain a .xml file. Then you upload 2 different .xml files. One is for creating points upon a new review listing. The other is for reviewing a existing item.

-

Next you’ll need to edit 3 files. Which sadly you’ll have to do every time you upgrade JReviews. So this is reference for me as well. This also prevents people from getting points just for editing a listing or review as well. First up is this file:

/components/com_jreviews/jreviews/controllers/listings_controller.php

Search for this text:

The listing was successfully saved

Here is the original

                if($listing['Listing']['state']) 
                {
                    App::import('Helper','routes','jreviews');
                    $Routes = new RoutesHelper();
                    $Routes->params = $this->params;
                    $url = cmsFramework::route($Routes->content('',$listing,array(),'',false));
 
                    $update_text = $isNew ? __t("Thank you for your submission.",true,true) : __t("The listing was successfully saved.",true,true);
                    $update_html = "<a href=\"{$url}\">".__t("Click here to view the listing",true)."</a>";
                    $jsonObject = json_encode(compact('target_id','update_text','update_html'));
                    $response[] = '
                        var $parentForm = '.$parentFrame.'.jQuery(\'#jr_listingForm\');
                        $parentForm.scrollTo({duration:400,offset:-100});
                        $parentForm.s2ShowUpdate('.$jsonObject.');                                                       
                    ';
                    return $this->makeJS($response);
                }
            }

Modified with AlphaUserPoints Integration:

(continue reading…)


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…)


Play PAC-MAN on Google’s Home Page for the next 48 Hours | Plus an Easter Egg!

In honor of PAC-MAN’s 30th birthday. Google put up a fully functional PAC-MAN game on the the Google home page. It will be live for the next 48 and and includes all 255 levels, even the glitchy 256th.

Google also included a easter egg, 2 Players! If you put in another “coin” Ms. PAC-MAN is playable.

To control PAC-MAN you use the arrow keys.
To control Ms. PAC-MAN yo use the WASD keys.

How many levels did you clear?

Via Google


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