Update for Drupal 6.x need testing

wayland76 - February 18, 2008 - 02:09
Project:Adsense Injector
Version:6.x-2.6-rc2
Component:Code
Category:task
Priority:critical
Assigned:hswong3i
Status:closed
Description

Are you planning to port this module to 6.x?

#1

carusen - March 2, 2008 - 09:15

It would be great if you would port it.
It is one of the most important modules I use on my sites.

#2

hswong3i - April 1, 2008 - 08:31
Category:feature request» task
Status:active» needs review

Patch via DRUPAL-5, able to work with Google Adsense (http://drupal.org/project/adsense, http://drupal.org/node/211584). Include coding style clean up and update with coder. Please test with complete uninstall and reinstall.

AttachmentSize
adsense_injector-DRUPAL-5-0.1.patch 22.21 KB

#3

hswong3i - April 5, 2008 - 13:08

Bug fix update: fix node preview, and so preview will show up correctly.

AttachmentSize
adsense_injector-DRUPAL-5-0.2.patch 22.42 KB

#4

wayland76 - April 26, 2008 - 00:00
Title:Port to 6.x» Port of Adsense Injector to 6.x

#5

PipSqueak - June 8, 2008 - 02:09

I couldn't get this to work... I've tried two ways: patching adsense injector v5 with patch 5.01, then with 5.02 and patching adsense injector v5 straight to 5.02. The patching gives errors. Can you help?

#6

Michael Curry - June 10, 2008 - 04:40

All,

(I apologize for the delay in responding to these -- I haven't been receiving email notifications on my issues, for some reason.)

Thanks for helping with this. I can't help with this right now, because I haven't had time to set up a Drupal 6 installation. I'll be happy to commit this under an appropriate tag as soon as we think it's working, even thought I can't test it.

So, if someone decides it's working, set the status to "Reviewed & tested by the community" and I'll work on committing it.

#7

Michael Curry - June 11, 2008 - 06:36

Just starting to play with Drupal 6 - since this module makes use of the Adsense module, I'd like to know what version of the Adsense module is compatible with D6.

#8

wayland76 - July 8, 2008 - 07:21

#9

Psicomante - August 22, 2008 - 21:35

subs

#10

yas - September 3, 2008 - 06:01

subscribing

#11

Dirty Accountant - October 19, 2008 - 13:34

any news?

#12

aflores3 - November 4, 2008 - 22:27

Subscribe

#13

superflyman - November 7, 2008 - 01:46
Status:needs review» active

subscribe

#14

Finkpad - November 11, 2008 - 16:38

Status? I can test if that helps...

#15

TallDavid - November 25, 2008 - 17:07
Status:active» reviewed & tested by the community

inactivist, please commit a 6.x-x.x-dev version. This will make it easier for those individuals that don't have the technical expertise or desire to apply patches and will likely increase the number of testers for the Drupal 6 version.

#16

Michael Curry - November 26, 2008 - 03:41

@TallDavid: I will commit a 6.x dev branch when I have time to do so. I appreciate everyone's patience.

#17

dirkson - December 2, 2008 - 16:48

sub

#18

Finkpad - December 3, 2008 - 18:44

excellent news!

/me orders a beer for inactivist ;)

#19

gdtechindia - December 4, 2008 - 21:15

still waiting

#20

Michael Curry - December 6, 2008 - 19:00
Title:Port of Adsense Injector to 6.x» Create DRUPAL-6 branch for port development.
Status:reviewed & tested by the community» fixed

I've created a DRUPAL-6--1 branch from the most recent D5 release code for AdSense Injector. The most recent patch does not work against the current code; please re-roll your last modifications against the DRUPAL-6--1 branch, resubmit it under a new issue, and I'll commit it to the D6 branch.

I'm closing this issue; please create new port issues against the DRUPAL-6--1 branch.

Edit: added reason for requesting new patch

#21

Michael Curry - December 6, 2008 - 19:06
Version:5.x-2.5-1» 6.x-1.x-dev

Updating branch/version

#22

executex - December 8, 2008 - 21:16

When will this be released as a link download or a dev link download for 6.x?

#23

Michael Curry - December 8, 2008 - 22:45
Title:Create DRUPAL-6 branch for port development.» Update Drupal 6 patches
Status:fixed» needs work

As soon as someone re-rolls the patch for the Drupal-6 branch. Sadly, that won't be me -- I hope that the patch originator can help out. Otherwise, anyone else who wants to lend a hand.

The most recent patches don't apply successfully, so the 6.x-1.x-dev branch is nothing more than a copy of the most recent Drupal 5 release code.

#24

Thomasr976 - December 11, 2008 - 15:57

This is important. It prevents me from going from d 5.13 to 6.

#25

executex - December 11, 2008 - 19:13

I'm a very good PHP learner, if someone can teach me the basic differences between Drupal 6 modules and drupal 5 modules, I'll port it easily. But I would need a guide of every single possible difference (I can't find one on this site).

#26

hswong3i - December 16, 2008 - 03:36
Priority:normal» critical
Assigned to:Anonymous» hswong3i
Status:needs work» needs review

Latest patch for DRUPAL-6--1. Update include:

  • Renew hook_menu(). D6 coming with new implementation.
  • watchdog() no longer require for t().
  • hook_nodeapi() coming with new implementation for D6.
  • Split admin related hook_settings() to adsense_injector.admin.inc, as D6 style.
  • Retouch adsense_injector.info so group this module with Adsense.
  • Better coding style.
  • Better comment.
  • Code validate with D6 coder module.
  • Completely tested with adsense 6.x-1.0-beta3.

IMHO, if this module is not actively maintained, we should remove the paypal banner from admin setting page :S

AttachmentSize
adsense_injector-DRUPAL-6--1-1229398488.patch 23.22 KB

#27

Michael Curry - December 16, 2008 - 05:07

@hswong3i:

Thanks for the patch re-roll. I'll try it out as soon as possible. I'm giving you CVS access. Feel free to commit the patches, I'll create a release for it. Please tread lightly.

IMHO, if this module is not actively maintained, we should remove the paypal banner from admin setting page :S

Since you mentioned it, yes, we should remove the donation link. I appreciate those who have supported the module over the years.

Let me know if I can help with anything.

#28

hswong3i - December 16, 2008 - 06:01

@inactivist: thanks for your kindly action. I will tidy up existing code and also commit this patch for CVS, so let's review it afterward :D

Another suggestion: may we activate D5 and D6 -dev version? So before stable release we can test it in advance. On the other hand, D47 should now be obsoleted based on usage statistics, we may disable it, too.

#29

hswong3i - December 16, 2008 - 06:19

Update: Seems I don't have right to commit file:

cvs commit: Examining .
** Access denied: hswong3i does not have permission to commit files in:
** contributions/modules/adsense_injector
** Please contact the owner of this project and request to be added
** as a CVS maintainer, see http://drupal.org/node/63634.
cvs commit: Pre-commit check failed
cvs [commit aborted]: correct above errors first!
cvs commit: saving log message in /tmp/cvsbGkgQ9

Any idea?

#30

Michael Curry - December 16, 2008 - 07:29

Please try again; it turns out that I had not pressed the proper button to commit the change. Sorry about that.

#31

hswong3i - December 16, 2008 - 09:55
Title:Update Drupal 6 patches» Update for Drupal 6.x need testing
Version:6.x-1.x-dev» 6.x-2.6-rc1

Hopefully I am not doing too much for this project. A new RC version is now available for D6, where D5 is also update with coding style cleanup and sync programming logic with D6. Some documentation is now tidy up, too. Please feel free to report if there exist any bugs.

Thanks inactivist, thanks for giving chance for contribution. I love this module very much and hope everyone would like this contribution :D

#32

Michael Curry - December 16, 2008 - 16:36

@hswong3i:

Hopefully I am not doing too much for this project. A new RC version is now available for D6, where D5 is also update with coding style cleanup and sync programming logic with D6. Some documentation is now tidy up, too. Please feel free to report if there exist any bugs.

Thanks inactivist, thanks for giving chance for contribution. I love this module very much and hope everyone would like this contribution :D

No, you can't do too much! Thanks for helping.

I won't be able to review hswong3i's work until this weekend at the earliest. So, we need the community to jump in and show just how much this module means. Please check out hswong3i's work and provide feedback ASAP. Generate new issues as appropriate!

#33

Finkpad - December 16, 2008 - 22:25

Just installed it at 2 website and both seem to be working perfectly.

http://www.PROJEX.com and http://www.DRUMSTHEWORD.com

/me grins like a cat thats got the cream!

Good job fellas!

I've written some instructions here http://www.projex.com/configure-drupal-6-google-adsense-and-injector-module

#34

Michael Curry - December 16, 2008 - 19:25

Thanks to hswong3i... he spent the time to get this up and running. I'll try this out on a test installation this weekend.

#35

Finkpad - December 16, 2008 - 22:26

You are a star!

AttachmentSize
star.png 10.36 KB

#36

hswong3i - December 17, 2008 - 02:25

@inactivist: Sorry for over-reaction... Since this module seems like a raw diamonds, and as been waiting for almost 8 months, I suddenly get out of control... We should have more review and discussion before stable release. I am too careless and please forgive me :S

Here are the cvs diff for simpler review, between: 1. 5.x HEAD vs. 5.x-2.5-1, and 2. 5.x HEAD vs. 6.x HEAD. Both diff files are obtain with cvs diff -uRpNwbB so we can just focus on string changes but no space changes. I diff 5.x with 6.x as they are now sync in programming logic and coding style, so this can show out the major change of programming logic for version upgrade from D5 to D6. Most likely, additional changes are belongs to documentation :D

P.S. The different between 5.x and 6.x should be very tiny. The diff file is big just because hook_settings() is now split into individual file. The function itself have no different between 5.x and 6.x.

AttachmentSize
adsense_injector-5x251-5x.diff 37.76 KB
adsense_injector-5x-6x.diff 17.71 KB

#37

Michael Curry - December 17, 2008 - 02:54

@hswong3i:

@inactivist: Sorry for over-reaction... Since this module seems like a raw diamonds, and as been waiting for almost 8 months, I suddenly get out of control... We should have more review and discussion before stable release. I am too careless and please forgive me :S

As over-reactions go, that wasn't too bad. :D

The diffs look reasonable.

Please re-insert my copyright notices. Exodus Development retains copyright even though they are licensed under the GPL. So, each php module should contain the following line at or near the top:

/* Copyright (c) 2006 - 2008 Exodus Development, Inc. All Rights Reserved. http://exodusdev.com */

Other than that, I think things look OK. Anyone else have any comments? C'mon, everyone! You all are anxious for this module, so jump in and help out! :D

#38

hswong3i - December 17, 2008 - 03:20

Minor suggestion: when checking adsense module, they insert their own copyright information in front of README.txt as below, and left LICENSE.txt with GPLv2:

$Id: README.txt,v 1.20.2.4 2008/11/06 15:10:57 kbahey Exp $

Copyright 2005-2008 Khalid Baheyeldin (http://2bits.com)
Copyright 2008      Joao Ventura      (http://www.venturas.org)

Should we clone this style too? It looks elegant :D

#39

hswong3i - December 17, 2008 - 03:23

Patch for review.

AttachmentSize
adsense_injector-copyright-1229484152.patch 542 bytes

#40

Finkpad - December 17, 2008 - 03:53

fwiw - I agree. This style looks better.

*AND* I got a problem. When I'm logged into my website I see the ADSENSE marker boxes but when I log out the ads vanish.

This is the generated code when I'm logged out:
!-- google_ad_section_start --

Am I doing something stupid?

#41

Michael Curry - December 17, 2008 - 03:51

@finkpad, @hswong3i:

Go for it. Let's wrap it up. Roll a new release when you have time. Thanks again.

#42

hswong3i - December 17, 2008 - 03:54

Get it :D

I will double check if still something miss, and roll a new release ASAP. Maybe just RC2 so we have more time for review before stable release?

#43

hswong3i - December 17, 2008 - 10:16
Version:6.x-2.6-rc1» 6.x-2.6-rc2

There are more cleanup and bugfix within latest within 6.x-2.6-rc2. Please check the CHANGELOG.txt for more information.

We may need more test and review before stable release. Please feel free to comment if possible :D

#44

Finkpad - December 18, 2008 - 13:26

hswong3i - can you confirm that you see the ads when anonymous and what website is it on.

When I am logged in (I see the ad placeholders anyway) but NOTHING when I am logged out ie: an anonymous surfer. I'm possibly suffering from adsense blindness from playing around with the settings too much. If I can see it working on another Drupal6 website that will help.

Feel free to register and test at www.PROJEX.com

Cheers.

Drupal 6.8
adsense module 6.x-1.0-beta3
Adsense Injector 6.x-2.6-rc2

#45

hswong3i - December 18, 2008 - 14:54

@Finkpad: They are now working within my blog: http://edin.no-ip.com/. I am also using adsense.module 6.x-1.0-beta3 + adsense_injector.module 6.x-2.6-rc2. Just provide you some demo setup as reference:

Activate modules: AdSense core, Managed ads and AdSense Injector
Site Google AdSense Publisher ID: pub-0123456789012345
Body view template: <div style="float: right; margin: 0; padding: 0 1em .25em 0;">[adsense:250x250:0123456789]</div>%body<br class="clear"/>[adsense:728x90:0123456789]
List view template: %teaser<br class="clear"/>[adsense:728x90:0123456789]
Active required content type

P.S. Google adsense now coming with new "slot" setup. You may need to update your google adsense account setting :D

#46

Finkpad - December 18, 2008 - 22:05

OK - but I dont see any ads on YOUR blogs either....

Have you tried LOGGING OUT and looking at your website? Do the ADSENSE placeholders only apear when you are logged in? I just registered on http://edin.no-ip.com/ and still dont see any adsense.

I swear I am going maaaaaddddddd

/me shakes head

#47

hswong3i - December 19, 2008 - 07:01

Finkpad: ...... A silly Qs: are you sure your browser is supporting JS? E.g. As I have install FF3 web developer plugin, I can simply disable all JS from the tool bar. I have check my site with 3 different computer and both IE/FF, it is functioning :D

Moreover, may you try to use adsense's helper code directly? E.g. create a new node + php fiflter + call adsense_display() manually. If this also display none of ads, means your adsense module is not configure correctly :S

P.S. Remember to follow up this issue if you can/can't solve this problem, so others can take this as reference ;)

#48

hswong3i - December 31, 2008 - 08:16

I think it is almost time for a stable release. Any suggestion?

#49

hswong3i - January 2, 2009 - 07:23
Status:needs review» fixed

The stable 6.x-2.7 is now released. This issue will now marked as fixed :D

#50

Michael Curry - January 2, 2009 - 17:15

@hswongi:

Thanks for the help! And thanks to those of you who provided useful feedback.

Happy new year!

#51

Finkpad - January 6, 2009 - 15:16

With the advent of this latest rollout my adsense is displaying just great. Happy New years fellas - this is everything I *love* (in a manly way of course) about the Drupal community.

Many Thanks!

#52

System Message - January 20, 2009 - 15:20
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.