voting widget appears on teaser
The widget appears on teasers because the _nodeapi function should check for full page or teaser view.
This patch is for outbrain.module,v 3.2.0.1 2008/05/05
This patch is for outbrain.module,v 3.2.0.1 2008/05/05
--- outbrain.module.orig 2008-09-25 00:28:44.000000000 -0400
+++ outbrain.module 2008-09-25 00:27:50.000000000 -0400
@@ -108,7 +108,8 @@
*/
function outbrain_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
// we're in full node view
- if ($op == 'view') {
+ // $a3 gets $teaser if in 'view'
+ if ($op == 'view' && !$a3) {
//Check our node is one of the ok types
if(in_array($node->type, variable_get('outbrain_node_types', array()), TRUE)) {
$node->content['outbrain_rating'] = array(
2
people have this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
-
Inappropriate?Hi Greggo -
Just wondering what this is in reference to - was the widget appearing where you didn't want it to show up? I'd love to hear what the issue was so that we can make sure we accommodate it in our next release.
Shoot me an email at kate[at]outbrain[dot]com.
Thanks,
Kate
-The outbrain Team -
Inappropriate?Hi Kate,
Yup, the widget was appearing on the frontpage of the blog, even though we only display excerpts ("teasers" in drupal-speak) on the front page.
The outbrain.module code displays the widget when the post is being displayed, but it doesn't check to see if the post is being displayed as a teaser or full post.
In my case, I only wanted the widget to appear when the FULL post was being displayed. So in the module, I modified the outbrain_nodeapi function to check for whether the post being displayed was in teaser- or full-page-mode.
The variable to check for is $a3 in the outbrain_nodeapi function. If the post being displayed is in teaser mode, $a3 == TRUE. If it's in full-page mode, $a3 == FALSE.
More info on the _nodeapi hook and the $a3 variable is available here:
http://api.drupal.org/api/function/ho...
Hope this helps.
Thanks!
Greg -
Inappropriate?Thank you!
-Kate
The outbrain Team -
Inappropriate?Hi Kate,
Some more notes on my problem.
For some reason, my site (parentingsquad.com) won't verify. I'm getting an "internal error, please try again later" message.
I've been talking to David over email, and I think you (Kate) might be cc'ed on it?
It seems like the widget must appear on the homepage (ie., on teasers) in order to verify it -- at least that's the message I'm getting from support.
So I have two issues:
1) Does the widget HAVE TO appear on the homepage for the blog to verify? If that's the case, do you know why parentingsquad.com doesn't work? Any pointers would help....
2) After blog ownership verification, are we required to continue to display the outbrain widget on the homepage? We'd really like to limit the display of the voting widget to only the full-post (ie., permalink) page.
Thanks again for all the help! It's much appreciated. :)
Greg -
Inappropriate?I would be interested in this subject too.
Is there a new outbrain widget available with this patch where we could configure whether the widget appears on teasers..... vs. body. -
Hi, Right now it depends on your platform. Can you post your url so i can take a look?
Thanks,
Kate -
This reply was removed on 12/03/09.
see the change log -
are you using drupal? -
Can you remove this link from your outbrain database?
This link above is no longer active (the d6 subdirectory).
The domain itself is fine and should stay in outbrain but d6 was a test site only. -
Inappropriate?Yes, this is drupal 6.10
-
Right now we don't support this for Drupal. Only wordpress or using our java script version instead of the plugin. With the java script you can control in your code where the widget shows. You can download that here:
http://www.outbrain.com/get/ratings/O...
Thanks,
Kate -
Inappropriate?Hi,
That link shouldn't be a problem for you. Let me know if you have any other questions!
-Jackie -
Hi Jackie,
The only problem it causes is that if I turn on recommended articles (on outbrain) then It sometimes lists articles from d6 testsite - which is no longer available - any person clicking on the link will not be able to follow the link. If it was removed from outbrain database then it would not appear in "You might also like...." listings.
Hope I explained the issue okay.
regards
Noel -
Inappropriate?HI,
Sorry I wasn't clear there -- that page isn't currently in our database so it shouldn't show in the widget. If you do see the page once you turn on recs, that something we can look into further. What is your new blog's URL? I can keep an eye on it for you.
-Jackie
Jackie[at]outbrain[dot]com -
I still see this issue ... see this link:
http://traffic.outbrain.com/network/r...
The d6 domain no longer exists. -
Inappropriate?Hi,
Do you want to shoot me an email at Jackie[at]outbrain[dot]com? I think it might be easier to troubleshoot via email. Thanks!
Loading Profile...



EMPLOYEE
