Integrating WordPress and FanAdmin Plus

Displaying Fanlisting Content

9. Place the contents of your welcome page, after this code:

if(!$_SERVER['QUERY_STRING']) {
?>

Something like this:

if(!$_SERVER[’QUERY_STRING’]) {
?>
<div id="content" class="narrowcolumn">

<div class="entry">
<p>

Welcome to my fanlisting….blah, blah, blah.
</p>

<p>
<strong>Site Statistics</strong><br />

<strong>Last Updated</strong> :
<?php get_lastupdate(); ?>
</div>
</div>

10. Now we’re ready to include the other content (the ones entered into WordPress Pages) by using this code:


<? } elseif ($_SERVER['QUERY_STRING'] == "guidelines") { ?>
<div id="content" class="narrowcolumn">
<div class="entry">

<h2> FANLISTING - Guidelines</h2>
<?php include_page ('1041', TRUE); ?>

</div>
</div>

Notice the parts of the code that I’ve highlighted. You need to change these two bits for each page you want to display.

guidelines” is the name of this portion of the fanlisting page. You access it through your browser through index.php?guidelines. In my case, the rules page of the Ben Affleck fanlisting can be seen at this URL : http://actors.too-manic.net/benaffleck/index.php?guidelines.

The affiliates page is seen via http://actors.too-manic.net/benaffleck/index.php?affiliates and so on.

<?php include_page (’1041′, TRUE); ?>” is the tag that the Include Page Plugin uses to display our page content. Change the number that references the page inside WordPress.

pageid.gif Go to Manage >> Pages. The page id is beside the name of your page.

So what you have to do is copy and paste the above code, one after the other for each set of content and change the name and corresponding page id.

11. Finished putting in all your fanlisting content? Then upload the index.php file to your fanlisting folder.

Next we tackle the FanAdmin user panel and member list display

One thought on “Integrating WordPress and FanAdmin Plus”

Comments are closed.