datafeedr
Forum Replies Created
-
Forum: Plugins
In reply to: [Ads by datafeedr.com] No Code Created when Inserting ImageUnfortunately I can’t test the issue with a premium theme…
Forum: Plugins
In reply to: [Ads by datafeedr.com] Callback Function BrokenYou can’t use $this in your own custom callback function.
There are 2 arrays available to you: $ads and $args.
$ads contains all of the ads which appear in the result set.
$args contains all of the variables related to the result set.
However you can replace lines like this:
$this->open_tag(With lines like these in your custom function:
DFADS::open_tag(Forum: Plugins
In reply to: [Ads by datafeedr.com] Only Show Ads That Are In Two Specific GroupsHaven’t tested it but I think you need to change this code:
$ids = implode( ",", $group_ids ); $sql['JOIN'] = " LEFT JOIN $wpdb->term_relationships AS tr ON (p.ID = tr.object_id) LEFT JOIN $wpdb->term_taxonomy AS tax ON (tr.term_taxonomy_id = tax.term_taxonomy_id) "; $sql['AND'] = " AND tax.taxonomy = 'dfads_group' AND tax.term_id IN($ids) "; return $sql;To something like this:
$sql['JOIN'] = " LEFT JOIN $wpdb->term_relationships AS tr ON (p.ID = tr.object_id) LEFT JOIN $wpdb->term_taxonomy AS tax ON (tr.term_taxonomy_id = tax.term_taxonomy_id) "; $sql['AND'] = " AND tax.taxonomy = 'dfads_group' "; foreach ($group_ids as $id) { $sql['AND'] .= " AND tax.term_id = $id "; } return $sql;Like I said, haven’t tested it but it might get you closer to what you want.
Forum: Plugins
In reply to: [Ads by datafeedr.com] Callback Function BrokenHi,
Can you post your code?
Eric
Forum: Plugins
In reply to: [Ads by datafeedr.com] Parent Group Not Showing Sub-Group's AdsThis is not possible.
Forum: Plugins
In reply to: [Ads by datafeedr.com] View Ad Shows 404 and View Group Show No Posts FoundThere are no pages for your ads. Your ads are to be embedded in posts or pages or in your templates.
Forum: Plugins
In reply to: [Ads by datafeedr.com] Plugin creates conflict with inserting photosI can’t test it on a premium theme, unfortunately.
Forum: Plugins
In reply to: [Ads by datafeedr.com] javascript conflict with insert image on a postWhat theme are you using?
Forum: Plugins
In reply to: [Ads by datafeedr.com] rotate without refresingHi,
That’s currently not possible with this plugin.
Eric
Forum: Plugins
In reply to: [Ads by datafeedr.com] Can I target ad by tags using the Callback Function?Hi,
This won’t be possible in the callback function.
Eric
Forum: Plugins
In reply to: [Ads by datafeedr.com] Ads not displaying randomlyHi,
Wow, that’s interesting.
Unfortunately I don’t really have any suggestions to get around this.
Eric
Forum: Plugins
In reply to: [Ads by datafeedr.com] javascript conflict with insert image on a postWhat theme are you using?
This sounds related to this issue: http://ww.wp.xz.cn/support/topic/plugin-creates-conflict-with-inserting-photos
Forum: Plugins
In reply to: [Ads by datafeedr.com] Do I need a datafeedr account for this?Hi,
No, you don’t need a datafeedr account for this.
No, we do not transmit any data anywhere.
Eric
Forum: Plugins
In reply to: [Ads by datafeedr.com] javascript errorMake sure you are not developing with a caching plugin turned on.
Forum: Plugins
In reply to: [Ads by datafeedr.com] Formatting 2 adverts side by sideIf you set the “Ad HTML Tag” settings to span (ie. ad_html=span) then your ads will sit next to each other.
However, Unless your images are not very wide, the Twenty Eleven theme doesn’t have that much room for 2+ images in a row. That theme basically has 188px of content width. So unless your images are 94px wide or less, they’re not going to fit.