Text Link Ads Plugin

Creating and modifying plugins.
Post Reply
vavai
Regular
Posts: 37
Joined: Thu Mar 01, 2007 12:43 am
Location: Bekasi-West Java-Indonesia
Contact:

Text Link Ads Plugin

Post by vavai »

Hi,

I want to install Text-Link-Ads code in my blog but I don't understand what's the command used for :
After the file has been uploaded, you will see the plugin appear in your Serendipity plugin manager. Now you simply need to use the smarty code {serendipity_hookPlugin hook="external_service_textlinkads" hookAll="true"} to place the ads.
The question : what can I do with the smarty code ? Is this means that I must placed the code into my post or do I must embed the code into my template ?
/* Muhammad Rivai Andargini */
/* Migrasi Windows-Linux : http://www.vavai.com/index.php */
/* Blog Vavai : http://www.vavai.com/blog/index.php */
/* Bridge Blogging : http://www.vavai.net */
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Text Link Ads Plugin

Post by garvinhicking »

Hi!

That Smarty code needs to be placed inside your smarty template file, at the place where you later want to see the textlinkads.

Whats your URL? Depending on your layout, you might want to place it simply at the top or the bottom of the entries.tpl file - if you use bulletproof, that would be /templates/bulletproof/entries.tpl.

However, the proper code is:

Code: Select all

{serendipity_hookPlugin hook="external_service_tla" hookAll="true"} 
(note it's _tla and not _textlinkads).

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
vavai
Regular
Posts: 37
Joined: Thu Mar 01, 2007 12:43 am
Location: Bekasi-West Java-Indonesia
Contact:

Re: Text Link Ads Plugin

Post by vavai »

Hi Garvin,

Thank you for quick response. It's my URL : http://vavai.com/index.php. I'm using the ported itheme template.

Code: Select all

{serendipity_hookPlugin hook="external_service_tla" hookAll="true"} 
(note it's _tla and not _textlinkads).
I got the above code (with _textlinkads) from text-link-ads account. Below is the complete instruction :
Your Ad Code is Ready for Installation!

The three final steps:

1. Create a file named local_115173.xml that is writable by the web server. The file should be blank and it should be located in your root Serendipity directory. On unix you would CHMOD 666 on windows you will need to access your custom control panel to set the permissions or contact your hosting company.
2. Create a folder named "/plugins/serendipity_event_textlinkads/" in your root Serendipity directory. Now copy the code below and save it as "serendipity_event_textlinkads.php" in that directory (/plugins/serendipity_event_textlinkads/serendipity_event_textlinkads.php).
3. After the file has been uploaded, you will see the plugin appear in your Serendipity plugin manager. Now you simply need to use the smarty code {serendipity_hookPlugin hook="external_service_textlinkads" hookAll="true"} to place the ads.

Because this site is set for site wide display, you must place the links so that they appear on ALL pages of the site. If you wish to change this inventory to a single page display, click here.

Important: Our advertisers monitor the traffic they receive from their text link ads diligently. To ensure maximum ad sales and high renewal rates for your website please place our ad code somewhere above the fold in a position that will receive clicks!

When the code has been successfully installed, you will automatically receive an email from Text Link Ads and we will start selling ad space on your site!
/* Muhammad Rivai Andargini */
/* Migrasi Windows-Linux : http://www.vavai.com/index.php */
/* Blog Vavai : http://www.vavai.com/blog/index.php */
/* Bridge Blogging : http://www.vavai.net */
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Text Link Ads Plugin

Post by garvinhicking »

Hi!

Okay, in this case, you could simply edit the templates/i3theme/index.tpl template file, and for example place the smarty code just after the first closing </form> element you find (at around line 57). If you do not see any output, try to use "external_service_tla" instead of "extenal_service_textlinkads".

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
vavai
Regular
Posts: 37
Joined: Thu Mar 01, 2007 12:43 am
Location: Bekasi-West Java-Indonesia
Contact:

Re: Text Link Ads Plugin

Post by vavai »

Thank you Garvin,

It's clear now and waiting for text-link-ads re-crawl my site. I'll be updating which code should be OK, "external_service_tla" or "external_service_textlinkads" :lol:
/* Muhammad Rivai Andargini */
/* Migrasi Windows-Linux : http://www.vavai.com/index.php */
/* Blog Vavai : http://www.vavai.com/blog/index.php */
/* Bridge Blogging : http://www.vavai.net */
julianhopkins
Regular
Posts: 17
Joined: Tue Mar 18, 2008 4:07 am
Location: Malaysia
Contact:

Re: Text Link Ads Plugin

Post by julianhopkins »

Hi - I also have the same question. I've installed the plugin etc. but don't know where to put the smarty code.

Does the template I use make a lot of difference as to where I should place the code? I use the 'andreas09' template, and my url is http://julianhopkins.net

I'd like to have it in a sidebar panel as all of my other ads and things are, if possible.

Thanks :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Text Link Ads Plugin

Post by garvinhicking »

Hi!

Check your index.tpl file and search for {serendipity_printSideBar} - you can place the smarty code either below or above that line to make it appear in the place where the sidebar is.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
julianhopkins
Regular
Posts: 17
Joined: Tue Mar 18, 2008 4:07 am
Location: Malaysia
Contact:

Re: Text Link Ads Plugin

Post by julianhopkins »

Thanks! It seems to be working.
Much appreciated :)
Post Reply