Monthly Archives: March 2011

Ayu agc wordpress theme

ayu agc themebulan kemarin ada temen yang minta di buatin versi agc dari theme ayu (sama yang ane pake di blog ini) dan baru sekarang sempet bikin :D
tetep sama seperti theme theme sebelumnya,agc di single post pake cara membuat agc paling mudah dan di search.php
url search masih tetep standar /search/key-key yang mau oprek silahkan oprek sendiri
o iya plus satu tambahan url tag akan langsung mengarah ke halaman search jadi manfaatin tag sebaik baiknya ya :D
demo : nggak perlu

download http://agcku.com/download/ayu
selamat ber AGC dengan si ayu :D

ps : bukan untuk di jual ulang

Membuat AGC paling mudah

he he he lama nggak nengok nih blog,lagi males banget soalnya,gimana nih AGCnya pada terkena sapuan panda nggak?kalau di liat di serp gugel sih pada kenyataannya blog blog AGC masih bertebaran he he he

oke deh langsung saja tentang membuat AGC yang menurut saya paling gampang,karena ini tanpa pake API API an ,tinggal tempel langsung jadi,kode ini ane dapet di adsense-id dan jisportal pasti sudah pada tau dengan 2 forum tersebut.

berikut ini kodenya :

?Download download.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<div class="ayu-post"><?php $edit = array ('-' , '/' , '.html');
$sumber = str_replace($edit, ' ', $_SERVER['REQUEST_URI']);
?>
<?php
// Get RSS Feed(s)
include_once(ABSPATH . WPINC . '/feed.php');
 
$query = $sumber ;
$rss = fetch_feed('http://www.bing.com/search?q=' . str_replace(' ', '+', $query) . '&go=&form=QBLH&filt=all&format=rss');
 
if (!is_wp_error( $rss ) ) : // Checks that the object is created correctly
// Figure out how many total items there are, but limit it to 10.
$maxitems = $rss->get_item_quantity(5);
 
// Build an array of all the items, starting with element 0 (first element).
$rss_items = $rss->get_items(0, $maxitems);
endif;
 
?>
<?php if ($maxitems == 0)
echo ' ';
else
 
// Loop through each feed item and display each item as a hyperlink.
foreach ( $rss_items as $item ) : ?>
 
<h2 class="postTitle"><a href="http://adf.ly/7498/<?php echo $item->get_permalink(); ?>" target="_blank" rel="nofollow"><?php echo $item->get_title(); ?></a></h2>
<?php echo $item->get_description(); ?>
<?php
 
$erase = array ('block keyword di sini',';' , '%' , '+' , '-' , '&', ':' , 'amp;' , ' ...' , ' ....' , ' .....' , '–' , '|' , '/' , '[' , ']' , '?' , '$' , ','  , '.' , '«' , '(' , ')', '::' , '~');
$first = str_replace ($erase , '' , $item->get_title());
$encode = urlencode(strtolower($first));
$plus = str_replace ('+' , '-' , $encode);
$minus = array ('--' , '---' , '----');
$link = str_replace ($minus , '-' , $plus);
?>
<a href=<?php bloginfo('url'); ?>/search/<?php echo $link; ?>><?php echo $item->get_title(); ?></a>
<?php endforeach; ?></div>

kode ini bisa di letakkan di mana saja,sesuka kamu,di single.php,sidebar.php,404.php ataupun di search.php di mana aja jadi deh he he he,yang merah silahkan di ganti,juga kode css sesuaikan dengan theme yang di pake.selamat mencoba.

ini kode cocok buat theme ayu,theme lain silahkan di sesuaikan sendiri