Popular links block not visible

thiokol - March 29, 2009 - 05:57
Project:External Link Popularity
Version:6.x-1.4
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I have installed the module and configured it for one content type, I've also set the permissions. The Popular links block is not visible in my sidebar when I enable it on the blocks page.

Also, is there any way to just show the count for clicked links at the bottom of each node, as this simple functionality is what i really want, I've no need for a popular links block.

Thanks.

#1

dailypress - April 3, 2009 - 16:49

I have the same problem. I cant figure out others do it.

#2

sicjoy - April 4, 2009 - 11:02

Hi:

Sorry for the late reply: I'm swamped lately.

The block doesn't show up when there aren't any pop_links clicks (votingapi votes), i.e. there's is nothing to display in the list.

If you are running a test site, you'll need to create some dummy users and I highly recommend using the Devel module (it will allow you to quickly switch back and forth between the admin and dummy users). If using Devel, give the dummy users permission to switch users. Give the dummy users permission to record clicks. The admin (user 1) can not record clicks. That was a feature request a while back, but it has created a lot of confusion for people who are testing this module.

Please reply to let me know if this fixes your problem.

Best,

sicjoy

#3

dailypress - April 4, 2009 - 15:29

THanks but it still doesnt work. Which Permission setting do I need to change?
I appreciate your help. I have installed your module for a few months now and it still doesnt show up! ?

My stats section also doesnt record anything either. Can that be the problem?

#4

thiokol - April 4, 2009 - 20:04

yeah not working here either, I'm running it on a live site with over 250 users, I've also logged in as users other than admin and cliked on links, but the block is still not showing. My permissions are correct so not sure whats up.

#5

sicjoy - April 5, 2009 - 04:26

The record external click permission must be set. If the stats section is empty, for sure the block won't show up.

There's one other thing. What theme are you using? If switching back to the Garland theme allows you to record clicks, read item 6 of the INSTALL.txt that comes with the module.

--sicjoy

#6

thiokol - April 5, 2009 - 04:47

record external click is set for all users including anonymous.

Using Garland theme.

Block still not showing.

#7

dailypress - April 5, 2009 - 06:18

I was actually wondering if it was a theme problem but I noticed a friend is using the same theme and his module is working.
Do you think it can be the Drupal version that is causing this problem?

Or do you think its the stats? How come the stats is not showing up? If you can PM me your email or number I can give you my contact info and website. I would like to figure this out.

thanks again for the module and your help. Im using Marinelli theme btw.

#8

thiokol - April 5, 2009 - 07:23

if by stats section you mean External Link Popularity Log and External Link Popularity Summary under Reports section, Both of these are empty.

as said above, record external click permission is set correctly.

I have clicked on external links as anonymous and also as authenticated user in 2 different roles. Clicks not being recorded.

could be another module interfering with the functions of pop_links? worth investigating as if its a highly used contrib then its a major problem. I can list all my contrib modules if it will help in any way.

#9

dailypress - April 5, 2009 - 13:35

I have also tried using BuzzWorthy module which I think may be similar to this one and that doesnt work either!! Just an FYI, so im wondering as well if it could be another module or a theme causing the problem.

Please help and respond. I will check this page on a daily basis until the problem is resolved. :)

#10

thiokol - April 8, 2009 - 22:26

after being installed and activated for weeks, a clicked link has suddenly been recorded today. One single link.

NOTHING has been changed in pop_links settings whatsoever.

I know for a fact that I have personally clicked on hundreds of external links as both anonymous, admin, and 3 different test users.

Any ideas as to why clicks aren't being recorded before i remove the module?

#11

sicjoy - April 9, 2009 - 01:10

Hi thiokol:

I should have asked this from the start:

You are using the 6.x-1.4 version of External Link Popularity (ELP), correct?

What are your ELP settings? What are your pop_links module permission settings? What are your Voting API settings?

How are the external links added to your site? What node type are they appearing in? Are you using views to display the external links?

I haven't been able to reproduce any of your problems. The more information you can give, the better. The sooner I can reproduce the problem the faster I can fix it.

Best regards,

sicjoy

#12

thiokol - April 9, 2009 - 04:10

yes using 6.x-1.4

External link popularity settings:

click points lifetime: indefinite
statistics lifetime: indefinite

node types: box for one single custom content type is checked

tracking by role: all boxes left blank (to track all roles)

Voting API settings:

anonymous vote rollover: 1 day
vote tallying: tally results whenever a vote is cast

pop_links module permissions

access link popularity stats: All roles checked
record external click: All roles checked

Links are added to a custom content type via a CCK field provided by the Link module ( http://drupal.org/project/link )

Links are then displayed in a node (not views) with the default title of 'Download'

Hope this helps.

#13

sicjoy - April 9, 2009 - 17:44

OK - I haven't tried ELP with a CCK field before. I'll set up a test and let you know what I find.

Thanks for your patience.

--sicjoy

#14

sicjoy - April 10, 2009 - 18:25

Hey dailypress:

Are you using CCK with link field as well?

--sicjoy

#15

thiokol - April 10, 2009 - 19:21

Thanks for checking this out. Were you able to reproduce?

#16

sicjoy - April 14, 2009 - 18:18

I cannot reproduce your problem.

I installed CCK & link modules, then created a new content type with a link field. I used the default settings for the link field. I set the permission to allow authenticated users to view the link field. I added the new content type in the External Link Popularity settings Node types: checklist. Next, I created a node (promoted to the front page) with a link field. After switching to a dummy user and following the link field link, the Popular links block showed up with the new node listed as having a click.

Why don't you send me the link to your website: kevin [at] vervemojo [dot] com. When I get some time, I'll look at your site to see if I can find the problem. I have to warn you, I am extremely busy at the moment. It may take a week or more.

????

sicjoy

#17

dailypress - April 14, 2009 - 20:14

No, I am not using CCk.

#18

911 - April 14, 2009 - 22:36

Same Problem heer. Using CCK Link Field too. Same Settings as post above

[EDIT]
I have set the CCK Links to open in new Browser window. Perhaps this might matter?

#19

thiokol - April 15, 2009 - 00:27

All my links open in the same browser window, and I think the CCK/Link thing may be irrelevant or at least only part of the problem, as I have links in regular text fields (full HTML filtered) which also aren't being recorded, it's not just limited to links from the Link module.

#20

911 - April 15, 2009 - 00:49

OK. I testet with links open in same window too. Still not working. I am not testing on a life site. Browser is FF 3.0.8 on Windows XP.

The tracking is done by javascript. Shouldn't I be able to see the Javascript snipped for this tracking in the souce code? I had a quick look and could just find an empty javascript block in the head

<script type="text/javascript"> </script>

#21

sicjoy - April 15, 2009 - 01:01

If you aren't seeing the following in the html header block:
<script src="/sites/all/modules/pop_links/pop_links.js?f" type="text/javascript">
Then you are either logged in as user 1 (admin) or there is something wrong with the permissions.

--sicjoy

#22

thiokol - April 15, 2009 - 01:17

Just checked this on my site, that line does not appear in page source, checked this logged in as all roles (not admin), and as anonymous.

Permissions set correctly as already detailed above in post #12

Using Garland theme.

#23

911 - April 15, 2009 - 02:20

OK. I was logged in as User1. I see the javascript in the surcecode

<script type="text/javascript" src="/sites/all/modules/pop_links/pop_links.js?u"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/", "pop_links": { "base_path": "/" } });
//--><!]]>
</script>

But no clicks are tracked and no block is showing up. I cant figure out why it is not working.

#24

sicjoy - April 15, 2009 - 02:52

OK - so the javascript is showing up for 911.

  • Is the record external click permission set for the role that you want to track, e.g. authenticated user?
  • When you go to the configuration for the Popular links block, what if any roles are checked under Show block for specific roles:?
  • What about the Show block on specific pages: checklist?

#25

thiokol - April 15, 2009 - 03:12

record external click: NO ROLES CHECKED ("leave empty for ALL roles")
show block for specific roles: NO ROLES CHECKED ("if you select no roles, block is visible to all users")
show block on specific pages: Show on every page except the listed pages (no pages are listed)

#26

thiokol - April 15, 2009 - 03:22

Can google analytics affect this somehow?

"pop_links" appears in the javascript as below, but not how it should appear as you describe:

<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/", "googleanalytics": { "trackOutgoing": 1, "trackMailto": 1, "trackDownload": 1, "trackDownloadExtensions": "7z|aac|avi|csv|doc|exe|flv|gif|gz|jpe?g|js|mp(3|4|e?g)|mov|pdf|phps|png|ppt|rar|sit|tar|torrent|txt|wma|wmv|xls|xml|zip" }, "pop_links": { "base_path": "/" }, "views": { "ajax_path": "/index.php?q=views/ajax", "ajaxViews": [ { "view_name": "frontpage", "view_display_id": "page", "view_args": "", "view_path": "frontpage", "view_base_path": "index.php?q=frontpage", "view_dom_id": 1, "pager_element": 0 } ] } });
//--><!]]>
</script>

#27

911 - April 15, 2009 - 14:38

Settings are set correct. Same as Thiokol. I have insert GA Javascript Tracking Code in my template too. Will try to remove the GA Code and see what happens.

I haveno special rules for block displaying set. All Users on all sites should see the block. Like you said before, the block only shows if there is data to display. And thats the point. No data is tracked.

#28

911 - April 15, 2009 - 18:56

Dooh!.. I think I got my problem.. I always klicked the links from Teaser view. I tried it in the node full view, and got my first klicks tracked -> Block showing up. :)

I will now testing klicking around and see if it works now.

Would it be possible to track Clicks vom Teaser view related to the teasers node?

Cheers

#29

thiokol - April 15, 2009 - 23:02

Clicks for me aren't showing even clicking from within full nodes, although if the javascript hasn't been inserted properly then its no surprise.

911 did you insert your google analytics javascript code manually or do you use the GA module? I'm using the module which has created the javascript i posted above, I dont understand why "pop_links" appears as part of that, and the line thats supposed to be there is missing, which makes me think the google anayltics module is interfering here somehow.

To clarify, I have no block showing problem, its there, showing ONE link clicked...over the course of several weeks :)

#30

911 - April 15, 2009 - 23:44

I dont use GA Modul. I only insert the tracking code in my page.tpl.php above the closing body Tag manualy.

Disable the GA Modul and check if this is the problem.

#31

dailypress - April 18, 2009 - 15:19

My friend installed the application and also has Google Analytics so I dont know if that is the problem.

#32

dailypress - April 18, 2009 - 16:46

No tracks are being recorded even before installing this module. So I think I may have a problem on Drupal installation, maybe?

Also I dont see the code:

#33

thiokol - April 18, 2009 - 18:19

I think there could be up to 3 different problems here, mine is definitely with ELP. All other stats are being recorded properly on my installation.

Disabling google analytics module had no effect.

#34

sicjoy - April 19, 2009 - 05:13

Can you email the URLs for your sites so I can have a look?

kevin [at] vervemojo [dot] com

#35

sicjoy - April 19, 2009 - 05:27

You can also try editing the pop_links module file to override the function that determines whether or not to insert the javascript. Look for the _pop_links_track($user) function. Add one line so that it looks like this:

function _pop_links_track($user) {
  return TRUE;

After doing that, check your html header. You should see the pop_links.js being included in the scripts section (see comment #21).

#36

dailypress - April 19, 2009 - 15:41

sicjoy: I have sent you an email.

#37

dailypress - April 19, 2009 - 18:54

I just installed a similar module:

http://drupal.org/project/buzzworthy
and it worked AFTER I enabled view counter under Access log settings under Reports. So I think my issue was not enabling the view counter.

Good luck everyone.

Now I will try to install Popular Links for my other website! :)

- Happy Daily Press (after months of struggling with Drupal)

#38

sicjoy - April 22, 2009 - 07:54

Hi Dailypress:

I visited your site. It's very nicely done, by the way!

I see that the pop_links.js file is being properly inserted into the header of your pages. However, I'm not finding any external links (links that point outside of your website) in your content. The nodes that I visited had embedded content such as pictures or videos, but these would not cast an External Link Popularity vote when viewed.

Can you direct me to a node that has an external link that is set up to be monitored by ELP?

--sicjoy

#39

sicjoy - April 22, 2009 - 08:10

thiokol:

ELP inserts two things into a page's header. One defines the base path for your website. The other inserts the tracking code.

Looking at the source that you included in comment #26, I see the base path part but not the tracking code.

Are you using some form of javascript caching? Are you using aggressive caching in admin/settings/performance?

--sicjoy

#40

dailypress - April 29, 2009 - 12:47

[quote]"However, I'm not finding any external links (links that point outside of your website) in your content."[/quote]

Thanks for your compliment. Yes, you are right. There are no external links. I wanted a module to show the most visited internal links.

Anyway, I have a long way to go on my drupal sites. I will probably be bugging you again on another website where I have installed drupal and is a bit more complicated than the one I sent you.

Sicjoy, Thanks again for your support. I really do appreciate your help. :)

#41

todoele - July 13, 2009 - 11:40

Hi,
I am having the same problems, the block doesn't show up.
I am using version 6.x-1.4 in Drupal 6.13.
The theme is Simply Modern 6.x-1.5

External link popularity settings:

click points lifetime: 1 week
statistics lifetime: 1 week

node types: box for two custom type of contents. One is a feed item generated using FeedAPI that includes the link to the original article, and the other is the blog syndicated that includes a link to the blog.

tracking by role: all boxes left blank (to track all roles)

Voting API settings:

anonymous vote rollover: 1 day
vote tallying: tally results whenever a vote is cast
record external click: All roles checked

pop_links module permissions
access link popularity stats: All roles checked
access link popularity stats: All roles checked

The site, still in the process of development is http://todoele.org/todoele20/.
The nodes with the external links are in this page: http://todoele.org/todoele20/category/blogs-sindicados/blog-de-fedele
The log shows that the clicks have been recorded, but the block does not show up?
Any idea?
Thanks,
J.Suarez

#42

todoele - July 13, 2009 - 11:44

Screen shot of the External link popularity log.
Should it appear in the list the title of the node next to the external link?

AttachmentSize
poplinkslog.png 6.13 KB

#43

momper - October 15, 2009 - 21:55

subscribe

#44

momper - October 16, 2009 - 11:10

the clicks are tracked the right way - entrances in the log but: no block in the frontend visible ...
i send you the domain by "contact" ...

thanks momper

 
 

Drupal is a registered trademark of Dries Buytaert.