I got a directory installed within xytheme.com. I want to call the stats and put it on my main blog. As you can see from www.xytheme.com, there is a sidebar there and I want to put my directory stats on it.
This theme is not a widget ready so everything has to be coded. I don't really good in coding, a simple task is ok though.
Can you suggest me anything to make this work?
So far, I tried to use
but no luck.
Then, I create a file called "dir_stats.php" and write in it the code above. I called "dir_stats.php" in below code but still the same.
Anyone can help?
Below are my sidebar.php code.
This theme is not a widget ready so everything has to be coded. I don't really good in coding, a simple task is ok though.
Can you suggest me anything to make this work?
So far, I tried to use
Code:
<?php include($_SERVER['DOCUMENT_ROOT']."/directory/stats_main.php"); ?>
Then, I create a file called "dir_stats.php" and write in it the code above. I called "dir_stats.php" in below code but still the same.
Anyone can help?
Below are my sidebar.php code.
Code:
<div id="side">
<ADSENSE>
</div>
<div class="sidebar1">
<h2 class="cat">xyTracker</h2>
<?php if (function_exists('useronline')): ?>
<ul><li><?php get_useronline(); ?></li></ul>
<?php endif; ?>
<?php if (function_exists('get_users_browsing_site')): ?>
<ul><li><?php get_users_browsing_site(); ?></li></ul>
<?php endif; ?>
<?php if (function_exists('get_users_browsing_page')): ?>
<ul><li><?php get_users_browsing_page(); ?></li></ul>
<?php endif; ?>
<h2 class="cat">xyCat</h2>
<ul>
<?php wp_list_cats(); ?>
</ul>
<h2 class="arc">xyArch</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
<h2 class="view" >Templates Demo</h2>
<div align="center" class="grp">
<?php include (TEMPLATEPATH . '/templates.php'); ?>
</div>
<h2 class="blogroll">xyNetwork</h2>
<ul>
<?php get_links('-1', '<li>', '</li>', '', FALSE, 'id', FALSE,
FALSE, -1, FALSE); ?>
</ul>
<h2 class="chain">xyLinks</h2>
<ul>
<?php include (TEMPLATEPATH . '/text_links.php'); ?>
</ul>
<h2 class="cat">xyDir Stats</h2>
<ul>
<li>
<?php include (TEMPLATEPATH . '/dir_stats.php'); ?>
</li>
</ul>
<h2 class="meta">xyPanel</h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://www.xytheme.com/directory/">xytheMe Directory</a></li>
<li><a href="http://www.proxywhereabouts.com">Proxy Listing</a></li>
</ul>
</div>
<div class="sidebar2" align="center">
<ADSENSE>
<br>
<CANEP>
</div>
</div>







