2009-02-07 00:10:58 +00:00
< form id = " pw-handler " action = " " method = " post " >
< input type = " hidden " name = " action " value = " change-memberid " />
< table class = " form-table " >
< tr >
2009-02-11 23:24:42 +00:00
< th scope = " row " > Your member number </ th >
2009-02-07 00:10:58 +00:00
< td >
< input id = " memberid " name = " memberid " value = " <?php echo get_option( " plugin - wonderful - memberid " ) ?> " />
2009-02-11 23:24:42 +00:00
< em > ( you can find your member number by logging in to Project Wonderful and clicking on your profile image in the upper right of the page ) </ em >
2009-02-07 00:10:58 +00:00
</ td >
</ tr >
< tr >
< th scope = " row " > Use Standard Adboxes ? </ th >
< td >
< label >
< input type = " checkbox "
name = " use-standardcode "
value = " yes "
< ? php echo ( get_option ( " plugin-wonderful-use-standardcode " ) == 1 ) ? " checked " : " " ?> />
< em > ( If you want to use standard code adboxes instead of advanced code , enable this option ) </ em >
</ label >
</ td >
</ tr >
< tr >
< td >& nbsp ; </ td >
< td >
< input type = " submit " value = " Change " class = " button " />
</ td >
</ tr >
</ table >
</ form >
< ? php if ( $this -> publisher_info !== false ) { ?>
< h3 > Adbox Information </ h3 >
< table class = " widefat post fixed " >
< tr >
< th width = " 20% " class = " manage-column " > Site Name </ th >
< th width = " 30% " class = " manage-column " > Description </ th >
2009-02-11 23:24:42 +00:00
< th class = " manage-column " align = " center " > Size </ th >
2009-02-07 00:10:58 +00:00
< th class = " manage-column " align = " center " > Dimensions </ th >
< th class = " manage-column " align = " center " > Category </ th >
< th style = " text-align: right !important " width = " 25% " class = " manage-column " > Template Tag < em > ( for direct use in theme ) </ em ></ th >
</ tr >
< ? php
$first_adboxid = null ;
foreach ( $this -> publisher_info -> adboxes as $adbox ) {
$first_adboxid = $adbox -> adboxid ; ?>
< tr >
< td >< a href = " <?php echo $adbox->url ?> " target = " _top " title = " Ad for use on <?php echo $adbox->url ?> (opens in new window) " >< ? php echo $adbox -> sitename ?> </a></td>
< td >< ? php echo $adbox -> description ?> </td>
2009-02-11 23:24:42 +00:00
< td >< ? php echo $adbox -> adtype ?> </td>
2009-02-07 00:10:58 +00:00
< td >< ? php echo $adbox -> dimensions ?> </td>
< td >< ? php echo $adbox -> category ?> </td>
< td align = " right " >< tt > the_project_wonderful_ad ( < ? php echo $adbox -> adboxid ?> )</tt></td>
</ tr >
< ? php
}
?>
</ table >
2009-02-11 23:24:42 +00:00
< h3 > Using Widgets to Put Ads on Your Site </ h3 >
< p >
Visit < a href = " widgets.php " > Appearance -> Widgets </ a > to quickly add Project Wonderful advertisements to your site . Plugin Wonderful widgets start with & quot ; PW & quot ; .
</ p >
2009-02-07 00:10:58 +00:00
< h3 > Using the Template Tags in Your Theme </ h3 >
< p >
2009-02-11 23:24:42 +00:00
Find the location in your theme where you want the ad to appear . Type in the template tag for that ad , surrounded in PHP tags , like this :
2009-02-07 00:10:58 +00:00
</ p >
< tt >
& lt ; ? php the_project_wonderful_ad ( < ? php echo $first_adboxid ?> ) ?>
</ tt >
2009-02-11 23:24:42 +00:00
< ? php if ( isset ( $_GET [ 'allow-destroy' ])) { ?>
< h3 > Rebuilding Your Project Wonderful Ad Database </ h3 >
< p >
If you are having issues with your ads not downloading correctly from Project Wonderful , click this button to destroy and rebuild the database that stores ad info .
</ p >
< form id = " pw-handler " action = " " method = " post " >
< input type = " hidden " name = " action " value = " rebuild-database " />
< input type = " submit " value = " Destroy and Rebuild Database " class = " button " />
</ form >
< ? php } ?>
2009-02-07 00:10:58 +00:00
< ? php } ?>