Saturday,February 9th, 2008
Gone for a while
Sorry but I will be gone for a while. If you have questions or comments, email me at suebriquet[at]gmail.com.
Popularity: 24% [?]
Posted in Uncategorized | Comments Off
Saturday,February 9th, 2008
Sorry but I will be gone for a while. If you have questions or comments, email me at suebriquet[at]gmail.com.
Popularity: 24% [?]
Posted in Uncategorized | Comments Off
Thursday,January 24th, 2008
Have you ever wondered if there’s a way to create a page that displays all your friends’ recent entries so you don’t have to visit their sites individually every time you want to see if they have updates? Well, I have created just the post for you. I still need to find a way to display full entries though, and possibly categories the entries fall under, the author’s name, and a comments link with the number of comments already posted. Basically, I’m looking for something like Livejournal’s friends page or Xanga’s subscriptions page.
Here’s the bit of code you will be needing:
<?php
require_once (ABSPATH . WPINC . '/rss-functions.php');
$url = 'http://suefeng.com/feed/';
$rss = fetch_rss( $url );
if ( $rss ) {
echo "<h4>" . $rss->channel['title'] . "</h4>";
$i = 1;
foreach ($rss->items as $item) {
$href = $item['link'];
$title = $item['title'];
$pubdate = $item['pubdate'];
$author = $item['author'];
$category = $item['category'];
$description = $item['description'];
echo "<span style=\"font-size:16px\"><a href=\"$href\">$title</a></span><br /><b>$pubdate</b><br /><div style=\"padding:0 20px 0 20px\">$description</div>";
if ($i == 1 ) break;
$i = $i + 1;
}}?>
The only part you really need to change is the part that says
http://suefeng.com/feed/
Change that to whatever URL the feed page is to your friend’s web site. Usually they provide a link for you. If you have Firefox, you can view that page by clicking on the orange square icon on the very right of the address bar. Otherwise you can right click and view source to find where it says link rel=”alternate” and find the URL of the feed after that. Be sure it ends with rss, or feed. Somehow atom feeds don’t work with this code.
For each new feed URL you want on the page, you’ll need to copy and paste that code again and insert the URL.
For an example of a working Friends/Affiliates page, click here.
Edit on 1.30.2008: To display full entry feeds, use this bit of code in place of where it says $description = $item[’description’];
$isset = $item['content']['encoded'];
and replace where it says $description with $isset.
To display the author’s name use this:
$author = $item['dc']['creator'];
And be sure to include echo “Author: $author”;
Oh yeah, and here are the instructions for how to apply the code:
To set up the dailies page, you need to create a template. Let’s call it “Feed”. To create a template, basically copy the code from page.php or if you don’t have that use index.php, but delete wherever they call the comments function, the date, and anything else you don’t want to show up on your dailies page.
Create feed.php with that copied code from page.php or index.php. At the top you should write <?php /* Template Name: Feed */ ?> or whatever you want the template name to be. Then you should paste that bit of code I mentioned in this post in place of where it says <?php the_content(); ?> or something similar to that.
Create as many duplicates of that bit of code as there are feeds you want to read from people. It only creates one entry per site. Be sure to replace the URL with whatever feed URL you want. After that, save the feed.php, and upload it on your server under your theme’s folder.
Then create a page in Wordpress, and name it “Dailies” or something like that. Be sure to select the template “Feed”. You don’t have to write anything on that page. Hit publish, and you should be able to view that page.
Popularity: 100% [?]
Thanks for your comment: stevelucky, brainsolid, moritheil, Roz, Katie, bec, Destiny, Kimberly, lisadragon, Sue, Brenda, Yara, Angela, stanch, Xuan, Chien YeePosted in Tutorials | 23 Comments »
Sunday,December 16th, 2007
Yes I’m still alive. I haven’t posted in quite a long time because of finals and such. Also, I’ve been working on developing a forum. This forum will encompass just about any topic you can think of. It’s almost done but to get your password, you need to get it through email. Currently my host doesn’t give permission for emailing data from my web site since I have a free account. I just bought a paid account, the most affordable one there. They still haven’t verified my transaction yet though. Once they do, I’ll show you the site and I do hope you’ll join.
On another note, I’m proud to announce that one of my poems, Spring, has been selected as one of the finalists in a national poetry contest, and it has also been awarded the Editor’s Choice Award along with just 33 other poets. I was surprised because I just picked a random poem to submit that met the length requirement (of 20 lines or less) and submitted thinking nothing of it. It was read by a professional reader and it will be recorded professionally as a special part of a new CD poetry collection- The Sound of Poetry. Also, it will be published in a book.
What else have I been up to? Well, I’m currently watching Tsubasa Reservoir Chronicle. I’m on episode 30 now. I stopped and now I’m reading the manga. I’m on chapter 4. I’m planning on reading all the manga before finishing the anime so I can compare the two and have something to discuss in my forum. I watched Cardcaptor Sakura right before that (all 70 episodes plus the two movies). I hope to get some interesting discussions going with that as well.
For now, here’s a riddle called “Make Up Your Mind” for you to think about, and maybe comment about if you’re feeling up to it:
Whoever makes it, tells it not.
Whoever takes it, knows it not.
And whoever knows it wants it not.
Hint: Don’t think too hard on this one.
Popularity: 45% [?]
Thanks for your comment: D, Sue, Summer, Chien Yee, Meshia, monkee, Rafia, Morbid Romantic, Kaylee, Ayame, YaraPosted in Musings, Updates | 13 Comments »