Forums / Extensions / Are there any affliate extensions for Ez Publish?

Are there any affliate extensions for Ez Publish?

Author Message

Stephen Milley

Saturday 21 August 2010 12:24:10 pm

I am thinking of transferring my system to an Ez Publish system due to all the features and extra benefits Ez Publish offers. However, I haven't found any affiliate based extensions. I was wondering if there are any. According to a feature matrix, this was one of the missing elements. The two I would need are "GoogleSense Ads" and "Amazon Affiliates". Also, I do know of some from other CMS systems. Is it possible I could write one based on other free modules in another CMS? TIA

Thiago Campos Viana

Saturday 21 August 2010 12:50:11 pm

I think there isn't any affiliate extension yet. But these kind of feature would be easy to implement using template system, but you could implement as an extension also, without problems as well.

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Jérôme Vieilledent

Saturday 21 August 2010 1:28:25 pm

Hi Stephen

I wrote an Amazon extension based on Amazon webservices : jvAmazonAdvertising. Maybe you should try it ;)

Of course you could develop eZ Publish extensions based on other CMS ones (be careful with licence though). What did you have in mind ?

What feature would you need with Google adsense ?

Thiago Campos Viana

Saturday 21 August 2010 2:22:40 pm

"

Hi Stephen

I wrote an Amazon extension based on Amazon webservices : jvAmazonAdvertising. Maybe you should try it ;)

Of course you could develop eZ Publish extensions based on other CMS ones (be careful with licence though). What did you have in mind ?

What feature would you need with Google adsense ?

"

Nice extension! Are you planning to release a google adsense extension? I checked how adsense works. The user goes to adsense home page and click in adsense setup, then creates a adsense for content and google generates a block of javascript that user needs to copy and paste in his site template.

The javascript generate is something like this:

<script type="text/javascript"><!--
google_ad_client = "pub-7807XXXPUBLISERIDVAR";
/* 120x240, criado 22/09/08 */
google_ad_slot = "2631XXXXADIDVAR";
google_ad_width = 120;
google_ad_height = 240;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

google_ad_client could be one variable, the user has only one id, I think this one could be defined in some .ini file.

google_ad_slot is unique to every ad block user creates, so it could be defined, in ez flow, as an input block, but the user has to generate an add block in google adsense page before.

google_ad_width and google_ad_height could be user defined, I'm not sure.

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

SEBBANE Alexandre

Saturday 21 August 2010 2:38:15 pm

Hi

to use this piece of JS you could use the ad block of ezflow ...

i think this is the first step brfore write an extension.

Paris, France

Thiago Campos Viana

Saturday 21 August 2010 2:53:27 pm

I started a new project on ez publish projects site, but I already upload a preview on http://projects.ez.no/adsenseblock/downloads

Just change adsense.ini, activate the extension, regenerate autoloads and clear the cache. It is used with eZ flow.

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Stephen Milley

Saturday 21 August 2010 4:47:56 pm

Jerome: As far as what I need in Google Adsense, I would need something to display just my affiliate products on the sidebar. It should be made to position either left, or right, depending on the preference of the user of the extension. Please bear in mind that I am new to Ez Publisher, but I have tried other CMS systems and I am amazed at the potential of what this particular CMS can do. There are two modules that I used, for example, when I tried out the following Joomla 1.5 CMS modules: Vip Amazon Associates and Simple Adsense. I figured if there weren't any that were close to that, I could write something similar. However, since Thiago mentioned he liked the Amazon extension, that would be useful and I wouldn't have write anything.
Thiago: Thanks for letting me know about that. Was that a most recent project of yours, out of curiosity? I'll have to check out your script. If only there was a way to test it. Google don't allow any of their affiliates to click on any of their own affiliate links. Would there be any way to test it in action, otherwise?

Stephen Milley

Saturday 21 August 2010 4:51:07 pm

My apologies everyone! I'm used to other editors on other sites where I can write the A Href code to the links of those resources.

Thiago Campos Viana

Saturday 21 August 2010 5:00:43 pm

Hi

To add a link just select your text in post editor and click in chain symbol, select link type (html, node, etc ).

To install my extension, adsense block, you first need to make an ez flow installation. Then uncompress the .tar.gz file in extension directory.

Installation
================
1) Copy adsenseblock into 'extension' folder


2) Activate adsenseblock
In administrator user interface, click 'setup' tab->'extensions' menu, select 'adsenseblock', click button 'Apply Changes'.
or in settings/override/site.ini.append.php, add acivation configuration under "ExtensionSettings" section:
[ExtensionSettings]
ActiveExtensions[]=adsenseblock
3) Regenerate autoloads
In administrator user interface, click 'setup' tab->'extensions' menu, select 'adsenseblock', click button 'Regenerate autoload arrays for extensions',
or in eZ Publish installation folder, run "php bin/php/ezpgenerateautoloads.php -e"

4) Clear cache
Clear INI and template caches. (from admin 'Setup' tab or commandline)

5) Change adsenseblock/settings/adsense.ini - copy you pub-id.

You need to first have a working adsense block and an approved adsense site. Go to your front end home page, log in as admin. Click edit button ( pen symbol ). Choose AdSense in blocks combo box and click add block. Go to the AdSense block you added and click in the down symbol before AdSense Block name. Fill all the fields ( slot id, width, height ). Publish the content you are editing. Go to your back end and clear the cache.

When you go back to your front end home page, your adsense block should be there.

PS.: I just edited my twitter block extension, it is very easy to create ez flow block extensions.

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Jérôme Vieilledent

Saturday 21 August 2010 11:40:41 pm

"

My apologies everyone! I'm used to other editors on other sites where I can write the A Href code to the links of those resources.

"

No problem pal ;-). Please note that you can edit your post :)

Thiago : Can you please give the project page ? You only posted the download link. Thanks

Stephen : I'll check the Joomla! VIP Amazon associates plugin and will try to see if I can add some of its features to my extension.

Thiago Campos Viana

Sunday 22 August 2010 6:04:44 am

"
"

My apologies everyone! I'm used to other editors on other sites where I can write the A Href code to the links of those resources.

"

No problem pal ;-). Please note that you can edit your post :)

Thiago : Can you please give the project page ? You only posted the download link. Thanks

Stephen : I'll check the Joomla! VIP Amazon associates plugin and will try to see if I can add some of its features to my extension.

"

Sorry, but I have uploaded to another project because my project was not approved yesterday, but now it is alive: http://projects.ez.no/adsenseblock/

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Stephen Milley

Monday 23 August 2010 8:03:15 pm

Nice going, Thiago! I knew the code for it wouldn't be that hard for anyone who knows PHP to write, but it's very useful for everyone that is a Google Adsense Affiliate. :)