Recent Topics

[1.10.x] Adsense plugin doing nothing

Started by on Aug 05, 2007 – Contents updated: Aug 05, 2007

Aug 05, 2007 03:20    

My b2evolution Version: 1.10.x

I installed the adsense plugin and it displays the button which seems to function correctly (inserts [adsense:] when I click it), but the [adsense:] just shows up as-is in my posts. What can I do?

Aug 05, 2007 03:34

Here is [url=http://b2evolution.net/blog-ads/adsense-plugin.php]the description[/url] of the plugin. It sais:

In order to get an actual AdSense ad in there, you must go to the plugin Settings and copy/paste your personalized ad code from the Google AdSense site.

so you go to the backoffice -> App settings-> Plugins, click the Adsense plugin and add your Adsense code.
In the post the plugin will replace [Adsense:] by the actual code you added in the backoffice.

Good luck

Aug 06, 2007 01:15

Does the [adsense:] work if you place it before the [more:]?

Aug 06, 2007 02:08

I tried it and it didn't work there either.

Aug 06, 2007 02:17

Well it's the easiest type of plugins so I'm a bit out of ideas. Last resort: try backoffice -> Tools -> Delete prerendered Item cache.

I had it running within three minutes in my testlab.

Good luck

Aug 06, 2007 02:21

Well, some other ideas:
- uninstall and install again
- upload the plugin again
- check in backoffice -> App settings -> Plugins if the dot before Adsense plugin is black and not white
- click backoffice -> App Settings -> Plugins -> Reload events and codes for installed plugins.

Aug 06, 2007 12:04

Crack open the plugin and see if it has a line like this :

PHP

function GetDefaultSettings( & $params )

If it does then change it to this and see if it starts working ;)

PHP

function GetDefaultSettings()

¥

Aug 06, 2007 14:38

hi. would adsense plugin work for 1.9.3?

Aug 06, 2007 17:44

I hate to say this, but still no luck. Should I change it back?

Aug 07, 2007 08:40

karen wrote:

hi. would adsense plugin work for 1.9.3?

Not without amending the code, it requires triggers that weren't available prior to 1.10.x

Troy wrote:

I hate to say this, but still no luck. Should I change it back?

Leave it as it is for the moment and edit and re-save your original test post and see what happens.

¥

Aug 07, 2007 15:27

Nothing!!

And still no closer to an idea what's wrong.

What should the plugin settings be for adsense plugin?

Aug 07, 2007 15:41

For the moment (testing purposes) there is no need to add the adsense content. The plugin will create a clearly distinguishable warning that is more than only [adsense:]

Aug 07, 2007 16:23

I meant the other settings, I have:
Code: evo_adsense
Priority: 10
Apply Rendering: Opt-out

Aug 07, 2007 16:28

These are identical to my settings. If you think there is a conflict with another plugin you can raise the priority (max = 100).

Aug 07, 2007 17:03

Played with the priorities. Nothing there either.

Aug 07, 2007 17:07

I downloaded the plugin from the plugin directory, and it appears if you look in the comments that others have had the same problem.
Is there another place I can get the file where it might work?

Aug 08, 2007 08:28

Ok, I've just installed this ( after installing 1.10.2 ) and it works without any problems ( after removing the & $params mentioned earlier )

I'm assuming that you do have the plugin ticked for the post that you're trying to use it in?

¥

Aug 08, 2007 15:19

Lol, didn't know you had to do that.

Sorry, I could've saved everybody a lot of time here!

Aug 08, 2007 15:38

:> We've all had our moments of glory. LOL

Aug 08, 2007 18:00

Troy wrote:

I feel like an AOL wonder!

Maybe not *quite* that muppet ;)

¥

Aug 10, 2007 23:16

Try changing Apply Rendering: Opt-out to ALWAYS

I was having the same problem and this fixed it. The plugin was working when I placed it in a new post but it would not work in an edited post.

Oct 10, 2007 20:37

any ideas as to why it fails in the admin? getting these errors on 1.8.6:

Plugin info
Name:
AdSense
Short desc:
No desc available
Plugin settings
Warning: Missing argument 1 for adsense_plugin::GetDefaultSettings(), called in /home/a4at/public_html/blog/inc/VIEW/settings/_set_plugins_editsettings.form.php on line 87 and defined in /home/a4at/public_html/blog/plugins/_adsense.plugin.php on line 58
An unexpected error has occured!

If this error persits, please report it to the administrator.

Go back to home page
Additional information about this error:
Unsupported type [html_textarea] from GetDefaultSettings()!


Form is loading...

Run your own website! – This forum is powered by b2evolution CMS, a complete engine for your website.