Archive for February, 2004

Simple news feed for links list in WordPress

6
responses
by
on
February 15th, 2004
in
WordPress Hack

I had a question in the WordPress forums about my links list RSS feed reader and I wrote up a little tutorial for it. Check out the links list in Mindful Musings for a better idea of what I mean. So here goes. I added the RSS 2.0 feed with each of my link manager links (updated them manually, look inside each link under link manager). Then in links.php (in wp-includes folder) I found this line (inside the get_links() function) that shows the updated links: if ($show_updated && $row->recently_updated) { echo get_settings(‘links_recently_updated_append’); } and replaced it with this: if ($show_updated && $row->recently_updated) { echo get_settings(‘links_recently_updated_append’); if ($row->link_rss!=””) echo ”  <span style=\”border-bottom: 1px dashed #ccc; padding-bottom: 0px; font-size: 85%\”><a href=\”newsreader.php?url=$row->link_rss\”>RSS</a></span>\n”; } I find this line in the same file: $sql = “SELECT link_url, link_name, link_image, link_target, link_description, link_rating, link_rel, $length $recently_updated_test $get_updated FROM $tablelinks WHERE link_visible = ‘Y’ ” . $category_query; and […]

[Continue Reading...]

Finished some preliminary work on WordPress Caching

4
responses
by
on
February 15th, 2004
in
WordPress Hack

Here are some examples: Here is a WordPress 1.1 beta blog showing 300 posts. Here is the same blog, cached with my method Take a quick look at the bottom of the page for the generation times. The number in small letters in the center is for the main entries to be generated and displayed and the larger number to the left is the time for the whole blog to be generated. A little more work is required to make this a functional hack. The categories and comments sections (along with archives and others) do not use the cache at this point to display the pages. Only the index page uses the cached entries and produces all the right links. Consequently, some more work is required to update the cache when some information is edited or added. This could include adding or editing a post or addition of comments and/or […]

[Continue Reading...]

WordPress Backup/Restore new version available

20
responses
by
on
February 14th, 2004
in
WordPress Hack

There is a new version of Wp Backup and Restore available which is completely integerated into the WordPress admin interface and controlled by user levels. Features include, as before, backup and restore of your WordPress database on the fly and backup of your WordPress directory for local storage. Very easy install. Please post bugs on here. Peace Download location: http://weblogtoolscollection.com/b2-img/wp_backup.zip There is an update for users that have “passthru” disabled on their servers for security reasons. You can download it from here: http://weblogtoolscollection.com/b2-img/wp_backup11.zip

[Continue Reading...]

WP Blacklist Comment Spam Filter Update

3
responses
by
on
February 14th, 2004
in
WordPress Hack

This update has a more inclusive (read updated, more entries) list of spammer domains and is compeltely integerated into the wp-admin interface. The updated script allow a user to import new blacklists both from exported WP blacklists as well as MT Blacklists without fear of having multiple entries. There is also a new export feature that exports your blacklist to a text file which can be shared with other users. Another new feature allows you to add single domains and regular expressions from new spam comments that the blacklist did not catch. Download the updated zip file containing the whole WP Blacklist application from: http://weblogtoolscollection.com/b2-img/wpblacklist.zip

[Continue Reading...]

Ping PubSub from your WordPress or Moveable Type blog

3
responses
by
on
February 10th, 2004
in
WordPress Hack

Due to popular demand, here is the function to ping the PubSub RSS crawler from WordPress. (MT follows) Add this function to your my-hacks.php: // pings PubSub.com RSS Crawler function pingPubSub($blog_ID = 1) { // original function by Dries Buytaert for Drupal global $blogname,$siteurl,$blogfilename; if ((!(($blogname==”my weblog”) && ($siteurl==”http://example.com”) && ($blogfilename==”wp.php”))) && (!preg_match(“/localhost\//”,$siteurl))) { $client = new xmlrpc_client(“/ping”, “xping.pubsub.com”, 80); $message = new xmlrpcmsg(“weblogUpdates.ping”, array(new xmlrpcval($blogname), new xmlrpcval($siteurl.”/”.$blogfilename))); $result = $client->send($message); if (!$result || $result->faultCode()) { return false; } return true; } else { return false; } } Find these lines in your post.php (inside wp-admin folder) : pingWeblogs($blog_ID); pingBlogs($blog_ID); And add this right after that: pingPubSub($blog_ID); All done and pingin (in WordPress)! From Moveable Type: From your main blog admin, click on Weblog config on the left hand column and then preferences on top (next to core setup). Click on Publicity/Remote Interfaces/Trackback in the main list that shows on […]

[Continue Reading...]

Make your markup more user friendly

2
responses
by
on
February 10th, 2004
in
Cool Scripts

This is a wonderful tool written by Tony Bierman (an accomplished software architect and manager, I might add) which lets a webmaster add flavor to any HTML markup page. It is of course, of great use to us bloggers who are looking to make our pages more quality sensitive. Basically it is a combination of filters for various acronyms, links, search terms etc. In the words of Tony, phpGiggle locates user-defined keywords and phrases in an HTML document or string and subsequently replaces the keywords or phrases with anchor tags linking to user-defined URLs. As well, pre-defined ‘template’ anchor tags are included for Google.com, Dictionary.com, Webopedia.com, Vivisimo.com, CPAN.org, Freshmeat.net and others. With phpGiggle, anchor tags for an entire website can be contained in a single file, with links being dynamically generated when the HTML is displayed to vistor’s browser. This is particulary useful for sites with dynamically generated content, such […]

[Continue Reading...]

WordPress CSS Contest Winners declared

No
responses

Alex King has declared the winners of CSS Styles contest. There were a total of 38 new styles that can be downloaded as a result of this contest and a round of applause goes out to the winners and the contest organizers. This brings the total number os usable WordPress CSS styles to 44! Here is the link to download them all or browse through them.

[Continue Reading...]

Newsreader php script

2
responses
by
on
February 8th, 2004
in
Cool Scripts

I wrote a small newsreader php script which could be used in a bunch of applications. It is really simple, reads RSS 1.0 and RSS 2.0 (with ATOM support coming up). Here is the link to the script. It is really simple to implement. Call the script as a link with the variable ‘url’ containing the RSS url and you are done. For example: http://weblogtoolscollection.com/newsreader.php?url=http://dinki.mine.nu/weblog/wp-rss2.php brings up my main blog’s news feed. I use it on my main blog to provide news links from my blogroll.

[Continue Reading...]

Technorati Link Cosmos using PHP

8
responses
by
on
February 8th, 2004
in
WordPress Hack

This hack can be used by any PHP enabled blog/site to display their Technorati Link Cosmos. You can see it at work on the right and the instructions can be downloaded here. #EDIT# Now updated with a better automatic cache mechanism!!

[Continue Reading...]



Obviously Powered by WordPress. © 2003-2013

css.php