Forum Replies Created
-
In reply to: How to insert text into TOS plugin — box is blank
got it! thanks!
In reply to: How to insert text into TOS plugin — box is blankhmm and you didn’t have to change anything? mine shows up in registration but no text for TOS in the box provided.
In reply to: How to insert text into TOS plugin — box is blankyes i’m trying to use it in 1.0. do you have any suggestions? thanx
In reply to: How to insert text into TOS plugin — box is blankhere’s a link to the plugin i downloaded: https://bbpress.org/plugins/topic/terms-of-service/
In reply to: How to insert ads other than google adsoh and in your response you’d mentioned something about wanting to show codes…no, i don’t want to show the codes. All i want is for the ads to show on the pages i want them to.
thanks!!
In reply to: How to insert ads other than google adsIpstenu, here are links to the plugins i’ve used:
https://bbpress.org/plugins/topic/adsense-for-bbpress/#post-2573
https://bbpress.org/plugins/topic/simple-google-adsense/#post-1576
btw, what are backsticks?
In reply to: How to insert ads other than google adsi downloaded the plugins ADSENSE FOR BBPRESS and GOOGLE ADSENSE CONFIGURATION. The former gives an option to insert codes but when i put in my OpenX code nothing shows up. The latter, however, displays my OpenX ads, only problem is it shows up in the footer when i want it in the header and between posts. i tried inserting the html codes directly in my themes but it shows as html codes and not as an ad. am i doing something wrong? please let me know.
Also, can any of you please help me configure it to not only show up in the footer? here’s the coding for that plugin:
<?php
/*
Plugin Name: Simple Google Adsense
Plugin URI: http://www.strapontins.org/people/rentendre/simple-google-adsense-bbpress/
Description: Add Google Adsense code in your bbPress forum, in the footer All users are welcome to improve on it :p
Author: Frédéric Petit
Author URI: http://www.strapontins.org/
Version: 0.2
License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/
*/
add_action(‘bb_admin_menu_generator’, ‘bb_gad_configuration_page_add’);
add_action(‘bb_admin-header.php’, ‘bb_gad_configuration_page_process’);
function bb_gad_configuration_page_add() {
bb_admin_add_submenu(__(‘Google Adsense Configuration’), ‘use_keys’, ‘bb_gad_configurtion_page’);
}
function bb_gad_configurtion_page(){?>
<h2><?php _e(‘Google Adsense Configuration’); ?></h2>
<form class=”options” method=”post” action=””>
<fieldset>
<label for=”ga_key”>
<?php _e(‘Google Adsense User Id:’) ?>
</label>
<div>
<textarea class=”text” name=”ga_key” id=”ga_key” value=”<?php bb_form_option(‘ga_key’); ?>” ></textarea>
<?php _e(‘Put your adsense code, without the code of the script pagead2.googlesyndication.com/pagead/show_ads.js’); ?>
</div>
</fieldset>
<fieldset>
<?php bb_nonce_field( ‘ga-configuration’ ); ?>
<input type=”hidden” name=”action” id=”action” value=”update-ga-configuration” />
<div class=”spacer”>
<input type=”submit” name=”submit” id=”submit” value=”<?php _e(‘Update Configuration »’) ?>” />
</div>
</fieldset>
</form>
<?php
}
function bb_gad_configuration_page_process() {
if ($_POST == ‘update-ga-configuration’) {
bb_check_admin_referer(‘ga-configuration’);
if ($_POST) {
$value = stripslashes_deep( trim( $_POST ) );
if ($value) {
bb_update_option(‘ga_key’, $value);
} else {
bb_delete_option(‘ga_key’ );
}
} else {
bb_delete_option(‘ga_key’);
}
$goback = add_query_arg(‘ga-updated’, ‘true’, wp_get_referer());
bb_safe_redirect($goback);
}
if ($_GET) {
bb_admin_notice( __(‘Configuration saved.’) );
}
}
// Bail here if no key is set
if (!bb_get_option( ‘ga_key’ ))
return;
function createGAdCode($accountId) {
$code .= ‘<div class=’bbpress_adsense’>’ . “n”;
$code .= ‘ ‘ . $accountId . ‘ ‘ . “n”;
$code .= ‘<script type=’text/javascript’ src=’http://pagead2.googlesyndication.com/pagead/show_ads.js’></script>’ . “n”;
$code .= ‘</div>’ . “n”;
return $code;
}
function insertGAdCode() {
$accountId = bb_get_option(‘ga_key’);
if ($accountId != ”) {
echo createGAdCode($accountId);
}
}
add_action(‘bb_foot’, ‘insertGAdCode’);
?>
In reply to: New to BBPRESS — need help with ad plugins please!Got it! thanks guys!!!
In reply to: New to BBPRESS — need help with ad plugins please!Thanks a lot guys.
@ Chris…i know how to add new forums etc. what i’m trying to figure out is how to add a new directory to the plugins to enable ads. i’ve downloaded a plugin and the read me file says:
“Unpack the zip to your
/my-plugins/
directory”. WHERE IS THAT?“Copy and paste this:
<?php bbad_ad_block(); ?>
as the first line of post.php (before<div class="threadauthor">
) in whichever theme you are using. I.e. yoursite.com/forums/bb-templates/kakumei/post.php.”i’m confused. please help.
thanks.