RYO Membership Directory Plugin Administrator Manual
Back to Index
The system has available an ad rotator that you can add to display a banner ad at the top or bottom of each page. You will have to edit your theme to display it.
We've included a function called ryou_ads()
to make this possible. You'll probably want to add this to your theme's Main Index Template, Archives (archive.php, not to be confused with archives.php), Page Template, and Single Post templates. Here's the code we used:
<?php if (function_exists('ryou_ads') ) {ryou_ads();} ?>
Then you'll want to put the code for the ads into the system by going to Directory Choices and selecting the the Ad Rotator Random Choices information. Place one ad on each line.
Sample ads are included in that file to show you how to place the ads. (They point to banner graphic files that won't be on your website, so don't expect them to work for you.
One of the features is that you can add a # symbol to the beginning of a line and it will not be used. We call that "commenting out" a line, because we turn it into a comment. That's useful in that you can leave our examples in the record to see later, but by placing a # symbol at the front of those lines, they won't be displayed as ads on your website.
We suggest making your banner ads 468x60 pixels, the most common "standard" banner ad size. You can also use text ads.
Editing the theme templates and editing ad code is a bit technical, so you may want to have your webmaster do it for you.
Note: One special feature of using this system is that templates will display on all Pages including your directory and search results pages, but not on individual profile pages.
Tip: If you upload ad images to your website, you'll have to do this manually. Do not place them in a folder called ads or advertising or banners or anything that's obviously advertising. That's because some browsers try to block banner ads, and it's the main way they know to block an ad.