How To Replicate Techchuck AutoBlog

im not usin a plugin ive added the items using amazon data feeds you can add a complete store to your site using them and all items will link ot your affiliate id.

What's the advantage of using the feeds over something like Amazon's Omakmase widget?
 
What's the advantage of using the feeds over something like Amazon's Omakmase widget?
the advantage of using data feeds is that you can create an entire store as well as small widgets etc after the post which is what ive been toying with today,you can also use multiple affiliate programs within one store also, the method im using at the minute is using goldencan.com they take the data feeds from all the major affiliate programs ie linkshare CJ etc and you can put them all in one store and customise the output...ive done a basic example store on my site now you can see it http://technicnews.com/store.
at the minute its just amazon but im going to incorporate the apple store and play with the layout etc later just waiting to get approved by apple store and mac mall through CJ first.
 
That makes a lot of sense. I'll need to check out goldencan.com
 
yeah its cool im going to set up a new store on a subdomain later as that was just a trial ill set it up with a new theme etc a more store like theme with sub cats etc for laptops mp3 players etc
 
okay for any of you coding guru's out there i have a project for my site that i need completing...
i would like to keep the standard layout however i would like a custom home page.
i would like to keep the sidebar as it is but i would like to show the latest post from each category on the home page instead of all the latest posts as it is now...if anyone can do this ill be happy to pay for it...pm me if your interested cheers guys
 
specopkirbs, this is basically the same thing I have on the front page of my site and you can get the code from pretty much any of the Studio Press themes. There is a plugin that allows you to set a specific page for your home page, but I don't remember the name right now but it should not be hard to find.

Then make a copy of your current page and set it as a template to build your new home page. Then put the following where you want the posts to show.

Code:
<?php $feature_cat_1 = get_option('streamline_feature_cat_1'); $feature_cat_1_num = 5; if(!$feature_cat_1) $feature_cat_1 = 1713; //setting a default ?>
<!--feature_cat_1 == The Id of the cat you want to show -->
<!--feature_cat_1_num == Number of posts you want to show in this case 1 -->
<?php $recent = new WP_Query("cat=".$feature_cat_1."&showposts=".$feature_cat_1_num); while($recent->have_posts()) : $recent->the_post();?>
<!-- Show the post -->
<li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>

You will need to replicate this for each of the categories you want to show in the area. The link part would need to be played around with so you could get the formatting you would want. hope this helps.

Download pretty much any of the Studio Press or Revolution themes( they are in the download section) that show lists of different categories and you will see several examples of the above code in various sections of those themes. I can't take the credit for this as I just copied this from those themes.
 
Chris I will get that done for you. im almost done getting the code all fixed up

DynamicVB I have a piece of code which will use one loop to go through all categories and get the posts. then it will make it an excerpt. The only problem I am having is getting it to use the most recent post.

Here is what I have so far
$mycats = array(1,2,3); // the category ID numbers
foreach ($mycats as $catid) :
query_posts(array('cat'=>$catid,'showposts'=>1));
while (have_posts()): the_post();
the_title();
the_excerpt();
// whatever you are displaying here
endwhile;
endforeach;
 
Last edited:
Cool Mark, looks like you should be able to use the code from my example above to just pull one post into your array from each category, but I'm definitely not a PHP expert by any means.


I was thinking of something else that would be cool, but after looking at the code I'm not sure how to go about it. If you take a look at the mashget.com site he does something with the related post plugin that is pretty cool. At the end of the posts he has two sections for the related posts. The second one is just standard related_posts, but in the first one he displays both the title and a portion of the content from related posts.

This gives him more text for the SE's where he only has a little bit of content. This should also help with the duplicate content of the page in the SE's eyes as the chance is all pages will pull in different related posts even if someone is accessing the same feeds. This should also increase the stickness of the site as people would click on the other posts and you will get more page views and more chances for them to perform a monetized function.

I'm going to keep looking at the related posts plugin, but I'm pretty sure its beyond my skills with PHP to make that mod. Perhaps someone else has a better way or knows of a plugin that will perform like related posts but also show portions of the content.

Does anyone have any ideas on this?
 
Last edited:
What would i have to do to make it so i can use my logo that i made instead of the text on top of the website ?
 
nice zesty good stuff...almost finished on the video thumbnails so ill put a step by step up tomorrown just need to work out how to get rid of the powered by youtube image now

Good stuff this is what I need to figure out. So I'll keep an eye out for that post. Thanks.
 
ill probably do it later today or tomorrow sorry about the delay been working on my online tech store
 
I am looking at a way to add phpbay pro listings to my autoblog...problem is you have to add the code...i.e.

Code:
[phpbay]apple ipod, 10, "", ""[/phpbay]

manually. Now looking through these methods I can see a way to pull keywords from the tag function as it is done in the twitter plugin...using
Code:
<?=$tagname ?>

But the phpbay code is designed to be used in posts not templates. Can anyone think of a way to get the code the work in a template...i.e. can you wrap it in some php tag?
 
Last edited:
Okay for those still having issues with linking back to the original article with wp-o-matic. Just add a post template for the feed and put the following in it.

{content} <p><a href={permalink}>Link to the original site</a></p>)

If you want to have the original article open in a new window:

{content} <p><a href={permalink} target="_blank">Link to the original article</a></p>
 
sbw27, this should work for you to automatically add your phpbay code to the end of each post.

Create a file in your wp-content/plugins folder named addPHPBay.php and paste the following code into it:
Code:
<?php
/*
Plugin Name: addPHPBay
Plugin URI: http://www.yourdomain.com
Description: Plugin to add PHPBay code to end of posts based on post tags
Version: 0.1
Author: scb335
Author URI: http://www.yourdomain.com/
*/

function filter_addPBay($content) {

$toAdd = '[phpbay]';

$posttags = get_the_tags();
   if ($posttags) {
      foreach($posttags as $tag) {
         $toAdd .= $tag->name.' '; 
      }
   }

   $toAdd  .= ', 10, "", ""[/phpbay]';

   $content = $content.$toAdd;

   return $content;
}

add_filter('the_content','filter_addPBay');
?>

Then just activate the plugin in WordPress.

What it will do is get each of the tags from your post when the post is displayed on someone's screen and add the following code to the end of the post output:
Code:
[phpbay]tag tag tag , 10, "", ""[/phpbay]
where each "tag" is a tag used in the posting.

The only thing I'm not sure of is how this will interact with the actual PHPBay plugin, so even though this will create the tag you need, if this runs after the PHPBay plugin reads the content then it may not insert the PHPBay content you want.

I don't have that plugin so haven't tested it. If it works, great, and glad I could help. If it doesn't maybe you or someone else who uses PHPBay can tweak it to get it working.

Hope this helps.
 
Thanks so much scb335, that plug-in really does the trick! Legend. You should publish that plug-in, I know it's uber simple, but I think there would be people out there that would want it! Cheers anyway dude, you just saved me having to do something manual on, what I am aiming to have as an autoblog.
 
Uggg.

Alright I need two things.

First on your main site where you show excerpts. Mine currently says ..read more. I know I am being picky but I want it to say Read More...

Yes a very simple change however I can't figure out how to do it. I thought for sure I was the one who changed this originally from ... but I can't remember where I did it at.

The second thing is has anyone figured out how to take your images from the sidebar and have them link to the article they came from? I thought at one time mine were doing it but now they are not.
 
player, in your index.php there should be something after excerpt which includes read more.. Edit that and then change it to Read More...
 
First on your main site where you show excerpts. Mine currently says ..read more. I know I am being picky but I want it to say Read More...

Yes a very simple change however I can't figure out how to do it. I thought for sure I was the one who changed this originally from ... but I can't remember where I did it at.QUOTE]

Player if your using the custom excerpt plugin, you can change the read more under settings for the plugin
 
I've been working on setting up my site for a couple of days and it occurs to me that in order for these sites to really stay above the radar and stick then we are going to need to be able to only pull in excerpts of the articles, otherwise we are going to get pinged for scrapping content. I've already been ping and I'm just testing still.

Lots of threads about how to get a full feed from a partial, but none I can find on limiting the content received from a full feed. Does anyone know how to only pull in a certain number of words in a feed that is only available as a full feed with Wp-o-matic or something else since this does not seem to be available as an option with wp-o-matic?
 
Back
Top