chitika eminimalls

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

chitika eminimalls

Post by MySchizoBuddy »

I case people don't know it contextual and non contextual ad company. it unique style of ads is making people lot of money
website here

my question is that chitika can take it post titles as keywords to serve ads. and they have mentioned that in wordpress we can use
ch_query = ‘<?php the_title(); ?>’;

Now the corresponding S9Y string doesn't work
ch_query = ‘{$entry.title}';

is smarty allowed inside html nugget, and inside javascript.

can we have a plugin that will rotate chitika ads and google adsense or any other ads. basically every 3 page load will switch the ads.
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: chitika eminimalls

Post by garvinhicking »

By default Smarty is not allowed in HTML nuggets. You need to install the "Smarty Markup" plugin for that to be available.

The $entry variable is not available in the HTML nugget content. But you can use the $blogTitle variable for that, which contains the entry title if an entry is selected.

You can do Ad switching with javascript already, this seems like a good approach for your rotating ads?

Best 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/
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

So your saying even after installing smarty the {$entry.title} variable isn't available and i should use {$blogTitle} instead.

but for blogtitle to include an entry i have to select the entry, that means it won't work on front page
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Yeah...that's right. I think you'll need to somehow assign the $entry.title variable into a global variable, which your html nugget plugin can then access. Don't know how, tough. I'm not that good at smarty :)

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/
Post Reply