Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

[ NEW PLUGIN ] AdSenseShare v1

Quote Reply
[ NEW PLUGIN ] AdSenseShare v1
Hi,

This feature was asked for a long while back, so I thought I would have a go at making something to do the job =)

http://www.ultranerds.com/...n/AdSenseShare_L233/

It basically lets you share you adsense space on your site.

For example, show 3 ads with your ID in - and then 1 of the publisher ID the user entered into their profile. Their adcode will only ever show up on links they OWN! (i.e it doesn't show on other peoples links)

The price is $30, and is also part of the ULTRA Package and ULTRA Package PRO packages Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [ NEW PLUGIN ] AdSenseShare v1 In reply to
Plugin Requirements
Gossamer Links 3.0.1
User_Edit_Profile (for letting users update their Adsense publisher ID)


So, this won't work with GComm because User_Edit_Profile won't work with GComm?

Regards.

P.S. How about something similiar for GForum? Or maybe put it to work with GComm so it can be used also with GForum and GLinks.

UnReal Network

Last edited by:

deadroot: Feb 24, 2008, 10:39 AM
Quote Reply
Re: [Andy] [ NEW PLUGIN ] AdSenseShare v1 In reply to
Link on "Setup" (on AdSenseShare menu) goes to "http://www.gossamerlinks.com/cgi-bin/dev/admin/admin.cgi?do=page&page=plugin_manager.html&plugin_man_do=edit_installed&plugin_name=AdSenseShare"

Wink

Question. Is it possible to display this adcode only on detailed pages of links that are payed? I guess it can be done with <%if _%> rules in GLinks but don't know really how.

Regards.

UnReal Network
Quote Reply
Re: [deadroot] [ NEW PLUGIN ] AdSenseShare v1 In reply to
deadroot wrote:
So, this won't work with GComm because User_Edit_Profile won't work with GComm?

It should do - as long as you setup the AdSense field, like you did here:

http://www.gossamer-threads.com/...?post=297997#p297997

Quote:
P.S. How about something similiar for GForum? Or maybe put it to work with GComm so it can be used also with GForum and GLinks.

Yup, I'm gonna be working on a GForum one today =) Not sure about a central version for GComm, as 1) Plugin options don't seem to work (found that out when I did a free plugin, but still no reply from GT about that bug Frown) and 2) It would need to keep connecting to GLinks or GForum, which would get quite stressful on the server (mainly on large sites)

Anyway, I'm gonna work on one for GForum today =)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [deadroot] [ NEW PLUGIN ] AdSenseShare v1 In reply to
deadroot wrote:
Link on "Setup" (on AdSenseShare menu) goes to "http://www.gossamerlinks.com/cgi-bin/dev/admin/admin.cgi?do=page&page=plugin_manager.html&plugin_man_do=edit_installed&plugin_name=AdSenseShare"

Whoops, fixed now =)

Quote:
Question. Is it possible to display this adcode only on detailed pages of links that are payed? I guess it can be done with <%if _%> rules in GLinks but don't know really how.

Mmm.. I think this would work for that:

Code:
<%if ExpiryDate < 2147483647%>
<%-- paid link --%>
<%Plugins::AdSenseShare::GetCode($ID,$LinkOwner)%>
<%else%>
<%-- unpaid link --%>
<%-- show whatever ad code you want here--%>
<%endif%>

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [deadroot] [ NEW PLUGIN ] AdSenseShare v1 In reply to
Hi,

Quote:
P.S. How about something similiar for GForum?

Cool

http://www.ultranerds.com/...enseShareForum_L235/

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [ NEW PLUGIN ] AdSenseShare v1 In reply to
Damn! I'll bankrupt very soon with this tempo Tongue

UnReal Network
Quote Reply
Re: [deadroot] [ NEW PLUGIN ] AdSenseShare v1 In reply to
deadroot wrote:
Damn! I'll bankrupt very soon with this tempo Tongue
Laugh
Quote Reply
Re: [Andy] [ NEW PLUGIN ] AdSenseShare v1 In reply to
Hhmm.
I mean that google did not allow different adsense Users
on the same page.

Best regards from
Bremen/Germany

Lothar
Quote Reply
Re: [eljot] [ NEW PLUGIN ] AdSenseShare v1 In reply to
Hi,

Nope, they do allow it - but you can't have 2 different publisher's on one page

i.e if you have 2 adverts from google adsense on one page, then both adverts must belong to that publisher.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [DeadMan] [ NEW PLUGIN ] AdSenseShare v1 In reply to
Hi,

I've had to do a pretty big bit of we-writing on this plugin, due to Google changing the way they let you show adverts :(

Now - instead of the user just entering their pub-ID - and having it "put into" your default code, the user has to actually specify *all* the code .

Please note, you need to tell your users the dimension codes (i.e 468x60), that its ok to use - otherwise, the script checks the code the provided, and if it doesn't fit the sizes you specify in the plugin settings - then it will just default to your AdSense code.

The reason I've done this, is to stop users taking the mickey - by entering code for large skyscrapers etc, which would throw your design off - and make it look crap ;)

If you already have this plugin installed, then you need to do 2 things:

1) Go to Database > Users > Properties > Delete Column, and then delete the AdSenseID field.
2) Install version 1.1, which is available in the Members Area now.

Then, also follow the suggested changes in the readme - for the input field that users put their code in (needs changing from a simple TEXT field, to a TEXTAREA - otherwise their code won't get saved right).

If anyone has any problems with this version, please let me know.

Once I'm happy this is all working ok - I'll roll out the same kind of changes for AdSenseShreForum.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [ NEW PLUGIN ] AdSenseShare v1 In reply to
Hi,

I've just released version 1.2

This is to try and make it work with the new AdSesne code (which requires a SlotID and PublisherID)

This new version is availabled from our Members Area now.

I'm also gonna be doing these changes to the forum version - but will do that later today Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [ NEW PLUGIN ] AdSenseShare v1 In reply to
So, with this new version I must add new field in GComm SlotID?

Does users need to fill that info?

UnReal Network
Quote Reply
Re: [DeadMan] [ NEW PLUGIN ] AdSenseShare v1 In reply to
DeadMan wrote:
So, with this new version I must add new field in GComm SlotID?

Does users need to fill that info?
Hi,

Yes and yes :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [ NEW PLUGIN ] AdSenseShare v1 In reply to
Didn't have time before so today I wanted to install both GLinks and GForum new versions on this plugin.

I'm using GComm and now I got little problem.

In GForum I'm using 468x60 banners and in GLinks 200x200. Now, as you wrote here (didn't check it in plugin) user must just specific AdSlot with specific banner dimensions if I want that design doesn't look like s***.

And there can be only one AdSlot ID in script. And that is my problem.

Any solution?

UnReal Network
Quote Reply
Re: [Andy] [ NEW PLUGIN ] AdSenseShare v1 In reply to
No solution?

Regards.

UnReal Network
Quote Reply
Re: [DeadMan] [ NEW PLUGIN ] AdSenseShare v1 In reply to
Hi,

Mmm.. it would need another field in the GComm users table, one for GLinks, and another for GForum.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!