Page 1 of 1

chitika eminimalls

Posted: Thu Nov 17, 2005 8:55 pm
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.

Re: chitika eminimalls

Posted: Fri Nov 18, 2005 9:27 am
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

Posted: Fri Dec 09, 2005 3:02 am
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

Posted: Fri Dec 09, 2005 1:17 pm
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