PHP RSS Reader Gets Better With New Version

PHP RSS Reader, a free application with a paid/premium version that was shared before at WRD, now has a new version with nice features.

The application can crawl any number of feeds and can organize them inside categories created.

Similar to how Google News does, it can now show related news articles appear below each new item, in clusters nice way of discovering more.

PHP RSS Reader

The premium version has the ability to categorize contents that include pre-defined keywords which is very useful if you're monitoring your brand or a specific subject.

That version also has a multi-user interface where each user can create his/her own feeds and vote on the stories displayed.

Who is it good for?

It fits to various scenarios:

  • creating a website from scratch which totally feeds from other sources.
  • a companion to a website for displaying content from other similar websites.
  • monitoring your brand or specific keywords from preferred sources (Twitter, newspapers and more).

P.S. The premium version also comes with an optional free installation.

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
Professional XHTML Admin Template ($15 Discount With The Code: WRD.)
Psd to Xhtml
SSLmatic – Cheap SSL Certificates (from $19.99/year)

Tags: ,

Related posts

Hosted & Optimized JS Libraries – Cached Commons

Cached Commons is a repository of many JavaScript libraries that are cached, optimized and hosted on Github's CDN.

It is free for everyone and works by simply using the URLs mentioned (original or the minimized versions) as the script tag URLs.

Compared to the popular Google Libraries API, it hosts a much more number of libraries including many jQuery plugins, visualization or the ones for markup.

The only downside for now is that, there is only jQuery as a JS framework and hopefully, it'll start hosting others soon.

Cached Commons

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
Professional XHTML Admin Template ($15 Discount With The Code: WRD.)
Psd to Xhtml
SSLmatic – Cheap SSL Certificates (from $19.99/year)

Tags:

Related posts

Faster And Fault-Proof Tweet Button

At WRD, the previous tweet button for sharing stories was the cool Easy Retweet Button by John Resig. However, it was not perfect as, sometimes, it was unable to communicate with the URL shortener service and the tweet links were appearing buggy.

In search for a better one, I tested few others including the official tweet button. They were loading the links ok but had other issues like "loading slow", "blocking pages on load", etc.

And, for a button that is clicked by -maybe- 1/100 of the visitors, loading the scripts and making requests for every visitor didn't look like the smartest choice.

Here is another method, that is actually used at WRD now which loads very fast for everyone and almost fault-proof.

Faster Tweet Button

Demo Faster Tweet Button
Download Faster Tweet Button

How it works?

First of all, the button is hosted locally and it does not make any requests until it is clicked.

  • A link with the querystring that includes URL and the title of the web page is created, pointed to a server-side file (to be presented later in this article) and attached to any custom button we design.
  • Once clicked, it sends the URL and title to the server-side file which creates the tweet link and redirects to Twitter with the tweet.

Pros

  • Does not load any scripts from other domains (faster).
  • Does not perform anything until being clicked (faster).
  • Works with multiple URL shortener services. Currently, it uses Bit.ly by default, during the shortening, if there is an error, it falls back to Tinyurl. And if there is an error again, it uses the default URL. (fault-proof).
  • Counts the number of characters used and, if more than 140, reformats it. (fault-proof).
  • Any tweet button that you design can be used or just a "tweet it " text is enough (styleable).

Cons

  • Does not display the number of retweets (as no requests are made on load).

The Code

It is built by PHP. You'll see that the code is simple and can be ported to any other scripting language quickly. Here it is:

<?php
/*
- A customizable, fast-loading and fault-proof tweet button.
- Built by Umut Muhaddisoglu (@umutm) of http://www.webresourcesdepot.com.
- Strict LTADSSIYND License (Listen To A Dire Straits Song If You Never Did)
*/
/* Requires Update - START */
$viaText		= ' (via @umutm)';
$bitlyLogin		= 'yourBitlyLogin';
$bitlyApiKey	= 'yourBitlyPass';
/* Requires Update - END */

/* ******************************No Need To Update Below****************************** */

/* Getting Post Variables - START */
$postURL 		= urlencode($_GET['postURL']);
$postTitle 		= html_entity_decode(htmlspecialchars_decode($_GET['postTitle'], ENT_QUOTES));
/* Getting Post Variables - END */

/* Bit.ly Shorten Function - START */
function getBitlyURL($theURL,$theBitlyLogin,$theBitlyApiKey) {
	return file_get_contents('http://api.bit.ly/v3/shorten?login=' . $theBitlyLogin . '&apiKey=' . $theBitlyApiKey . '&longUrl=' . $theURL . '&format=txt');
}
/* Bit.ly Shorten Function - END */

/* TinyURL Shorten Function - START */
function getTinyURL($theURL) {
	return file_get_contents('http://tinyurl.com/api-create.php?url=' . $theURL);
}
/* TinyURL Shorten Function - END */

/* Shorten URL - START */
$shortenedURL = getBitlyURL($postURL,$bitlyLogin,$bitlyApiKey);
if (strrpos($shortenedURL, "bit.ly") == false) {
	$shortenedURL = getTinyURL($postURL);
	if (strrpos($shortenedURL, "tinyurl") == false) {
		$shortenedURL = $postURL;
	}
}
/* Shorten URL - END */

/* Prepare Tweet - START */
$tweet = urlencode($postTitle) . urlencode(' - ') . $shortenedURL . $viaText;
$tweetLength = strlen($postTitle . ' - ' . $shortenedURL . $viaText);
$postTitleLength = strlen($postTitle);
$restLength = strlen(' - ' . $shortenedURL . $viaText);
$dotsMargin = 4; 

if ($tweetLength > 140) {
	$tweet = urlencode(substr($postTitle,0,140 - $restLength - $dotsMargin)) . urlencode('.. - ') . $shortenedURL . $viaText;
}
/* Prepare Tweet - END */

/* Redirect To Twitter - START */
header('Location: http://twitter.com/home?status=' . $tweet);
/* Redirect To Twitter - END */
?>

The Button

It is possible to use a button you designed. At WRD, the "Official Tweet Button" images are used thinking that they will be the standard soon. If you prefer to use it too, here is the HTML-CSS for it:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Faster Tweet Button</title>
	<style>
	#tweetButton a {display:block;width:55px;height: 20px;background: url("tweetButton.png") 0 0 no-repeat;}
	#tweetButton a:hover {background: url("tweetButton.png") 0 -20px no-repeat;}
	</style>
</head>
<body>
	<span id="tweetButton"><a href="http://www.thedomain.com/tweet.php?postURL=changeWithTeURL&postTitle=changeWithTheTitle" target="_blank" rel="nofollow"></a></span>
</body>
</html>

How To Install?

Here are the steps:

  • Open tweet.php and edit the Bit.ly user-pass of yours (it is free to get one) and the "via" text in the beginning of the file.
  • Upload the file anywhere under your website.
  • Link to your tweet button image with <a href="http://www.mydomain.com/tweet.php?postURL=<?php echo 'http://www.theURLOfThePage.com'?>&postTitle=<?php urlencode('The Title')?>"></a> by editing the URL and the title
  • That's it.

For WordPress

After the first 2 steps above, for the 3rd step:

  • Link to your tweet button image with <a href="http://www.webresourcesdepot.com/tweet.php?postURL=<?php echo get_permalink(); ?>&postTitle=<?php echo urlencode(get_the_title($post->ID)); ?>" target="_blank" rel="nofollow"></a>

Any thoughts to make it better?

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
Professional XHTML Admin Template ($15 Discount With The Code: WRD.)
Psd to Xhtml
SSLmatic – Cheap SSL Certificates (from $19.99/year)

Tags: ,

Related posts

Faster And Fault-Proof Tweet Button

At WRD, the previous tweet button for sharing stories was the cool Easy Retweet Button by John Resig. However, it was not perfect as, sometimes, it was unable to communicate with the URL shortener service and the tweet links were appearing buggy.

In search for a better one, I tested few others including the official tweet button. They were loading the links ok but had other issues like "loading slow", "blocking pages on load", etc.

And, for a button that is clicked by -maybe- 1/100 of the visitors, loading the scripts and making requests for every visitor didn't look like the smartest choice.

Here is another method, that is actually used at WRD now which loads very fast for everyone and almost fault-proof.

Faster Tweet Button

Demo Faster Tweet Button
Download Faster Tweet Button

How it works?

First of all, the button is hosted locally and it does not make any requests until it is clicked.

  • A link with the querystring that includes URL and the title of the web page is created, pointed to a server-side file (to be presented later in this article) and attached to any custom button we design.
  • Once clicked, it sends the URL and title to the server-side file which creates the tweet link and redirects to Twitter with the tweet.

Pros

  • Does not load any scripts from other domains (faster).
  • Does not perform anything until being clicked (faster).
  • Works with multiple URL shortener services. Currently, it uses Bit.ly by default, during the shortening, if there is an error, it falls back to Tinyurl. And if there is an error again, it uses the default URL. (fault-proof).
  • Counts the number of characters used and, if more than 140, reformats it. (fault-proof).
  • Any tweet button that you design can be used or just a "tweet it " text is enough (styleable).

Cons

  • Does not display the number of retweets (as no requests are made on load).

The Code

It is built by PHP. You'll see that the code is simple and can be ported to any other scripting language quickly. Here it is:

<?php
/*
- A customizable, fast-loading and fault-proof tweet button.
- Built by Umut Muhaddisoglu (@umutm) of http://www.webresourcesdepot.com.
- Strict LTADSSIYND License (Listen To A Dire Straits Song If You Never Did)
*/
/* Requires Update - START */
$viaText		= ' (via @umutm)';
$bitlyLogin		= 'yourBitlyLogin';
$bitlyApiKey	= 'yourBitlyPass';
/* Requires Update - END */

/* ******************************No Need To Update Below****************************** */

/* Getting Post Variables - START */
$postURL 		= urlencode($_GET['postURL']);
$postTitle 		= html_entity_decode(htmlspecialchars_decode($_GET['postTitle'], ENT_QUOTES));
/* Getting Post Variables - END */

/* Bit.ly Shorten Function - START */
function getBitlyURL($theURL,$theBitlyLogin,$theBitlyApiKey) {
	return file_get_contents('http://api.bit.ly/v3/shorten?login=' . $theBitlyLogin . '&apiKey=' . $theBitlyApiKey . '&longUrl=' . $theURL . '&format=txt');
}
/* Bit.ly Shorten Function - END */

/* TinyURL Shorten Function - START */
function getTinyURL($theURL) {
	return file_get_contents('http://tinyurl.com/api-create.php?url=' . $theURL);
}
/* TinyURL Shorten Function - END */

/* Shorten URL - START */
$shortenedURL = getBitlyURL($postURL,$bitlyLogin,$bitlyApiKey);
if (strrpos($shortenedURL, "bit.ly") == false) {
	$shortenedURL = getTinyURL($postURL);
	if (strrpos($shortenedURL, "tinyurl") == false) {
		$shortenedURL = $postURL;
	}
}
/* Shorten URL - END */

/* Prepare Tweet - START */
$tweet = urlencode($postTitle) . urlencode(' - ') . $shortenedURL . $viaText;
$tweetLength = strlen($postTitle . ' - ' . $shortenedURL . $viaText);
$postTitleLength = strlen($postTitle);
$restLength = strlen(' - ' . $shortenedURL . $viaText);
$dotsMargin = 4; 

if ($tweetLength > 140) {
	$tweet = urlencode(substr($postTitle,0,140 - $restLength - $dotsMargin)) . urlencode('.. - ') . $shortenedURL . $viaText;
}
/* Prepare Tweet - END */

/* Redirect To Twitter - START */
header('Location: http://twitter.com/home?status=' . $tweet);
/* Redirect To Twitter - END */
?>

The Button

It is possible to use a button you designed. At WRD, the "Official Tweet Button" images are used thinking that they will be the standard soon. If you prefer to use it too, here is the HTML-CSS for it:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Faster Tweet Button</title>
	<style>
	#tweetButton a {display:block;width:55px;height: 20px;background: url("tweetButton.png") 0 0 no-repeat;}
	#tweetButton a:hover {background: url("tweetButton.png") 0 -20px no-repeat;}
	</style>
</head>
<body>
	<span id="tweetButton"><a href="http://www.thedomain.com/tweet.php?postURL=changeWithTeURL&postTitle=changeWithTheTitle" target="_blank" rel="nofollow"></a></span>
</body>
</html>

How To Install?

Here are the steps:

  • Open tweet.php and edit the Bit.ly user-pass of yours (it is free to get one) and the "via" text in the beginning of the file.
  • Upload the file anywhere under your website.
  • Link to your tweet button image with <a href="http://www.mydomain.com/tweet.php?postURL=<?php echo 'http://www.theURLOfThePage.com'?>&postTitle=<?php urlencode('The Title')?>"></a> by editing the URL and the title
  • That's it.

For WordPress

After the first 2 steps above, for the 3rd step:

  • Link to your tweet button image with <a href="http://www.webresourcesdepot.com/tweet.php?postURL=<?php echo get_permalink(); ?>&postTitle=<?php echo urlencode(get_the_title($post->ID)); ?>" target="_blank" rel="nofollow"></a>

Any thoughts to make it better?

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
Professional XHTML Admin Template ($15 Discount With The Code: WRD.)
Psd to Xhtml
SSLmatic – Cheap SSL Certificates (from $19.99/year)

Tags: ,

Related posts

WYSIWYG Editor With A File Manager: elRTE

elRTE is an open source and feature-rich WYSIWYG editor that is built using jQuery UI.

It performs all standard functions of an editor and has all the extras like undo-redo, advanced table management, creating a custom HTML element with a custom style + inserting it quickly and more.

elRTE WYSIWYG Editor

The interface is controlled via a single CSS file and can be customized pretty easily.

It has a built-in "save" button which can be attached to a JS function that saves the content that is pretty useful for helping users not to lose their content.

elRTE can be integrated with any file manager, however, there is elFinder, a file manager that has ready-to-use integration (can be used standalone too).

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
Professional XHTML Admin Template ($15 Discount With The Code: WRD.)
Psd to Xhtml
SSLmatic – Cheap SSL Certificates (from $19.99/year)

Tags:

Related posts

Two-Sided jQuery Content Slider – dualSlider

dualSlider is a jQuery content slider plugin which can display any HTML output.

It has a pretty-unique, two-sided interface which both of them slides sequentially and while one side displays the slide, other can present extra information about it.

jQuery dualSlider

The plugin can auto-slide the content with the help of a start-pause button or every item can be browsed manually using the prev-next controls.

There are several options offered like the easing effect for each side, their durations and auto display being on or off.

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
Professional XHTML Admin Template ($15 Discount With The Code: WRD.)
Psd to Xhtml
SSLmatic – Cheap SSL Certificates (from $19.99/year)

Tags:

Related posts

Using WordPress As A Bug Tracker – Quality Control

Whether it is a website for a customer, a web application or a software, it is always a good idea to write down the list of bugs.

It simply helps us not to forget any of them and analyze the process better (the time they require, better listing and solving them according to priorities, etc.).

Previously published WRD post: 9 Free And Open Source Bug Tracking Softwares is featuring very handy resources for managing the issues better. And, here is a new one:

WordPress Quality Control Theme

Quality Control is a free WordPress theme that functions as a bug or ticket tracking system.

It allows users to submit new requests and track the process on them easily.

The theme places requests under categories, displays them according to their priority and shows the latest activities.

Quality Control calls itself as a "base framework" for bug tracking as it is flexible and open to every improvement.

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
Professional XHTML Admin Template ($15 Discount With The Code: WRD.)
Psd to Xhtml
SSLmatic – Cheap SSL Certificates (from $19.99/year)

Tags:

Related posts

Fully Ajaxed MySQL Admin – MonoQL

MonoQL is a PHP-powered, open source and Ajaxed web application for managing MySQL databases.

It has a desktop-like interface -thanks to Ext JS- and can accomplish almost every task you can ask for like database/table design, data browsing/editing, advanced querying & more.

MonoQL

The application has support for controlling advanced MySQL features like triggers, stored procedures and views.

MonoQL can connect to any number of databases, both local or remote. Also, with the help of a context menu, it display options on every level like running queries, importing data from a CSV file or truncating/deleting a table.

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
Professional XHTML Admin Template ($15 Discount With The Code: WRD.)
Psd to Xhtml
SSLmatic – Cheap SSL Certificates (from $19.99/year)

Tags: ,

Related posts

Multi-File Uploader & Resizer – Agile Uploader

Agile Uploader is a free file uploader that works very fast by resizing them on the client-side and uploading afterwards.

The resizing process is done via a Flash file and it can handle both single and multiple files.

Agile Uploader

The uploader's submit button is not inside the Flash file so it can be customized and there are various JS callbacks provided (there is also an optional jQuery plugin).

Flash part is also flexible as it has settings like styling or resize-quality.

Agile Uploader also comes with sample PHP files for the upload process.

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
Professional XHTML Admin Template ($15 Discount With The Code: WRD.)
Psd to Xhtml
SSLmatic – Cheap SSL Certificates (from $19.99/year)

Tags:

Related posts