As ezra_g pointed out in #1925208: Use drupal_http_request for determining version information The timeago functionality has changed. I've been tracking down the issue and it's that the modules timeago.js file isn't loaded. I think you removed this out of error thinking it's a duplicate js file but in reality it's a helper file for the timeago module to initiate it's functionality. Please remove this patch from the make file.

I recommend rolling back the next update to include the non-patched version of the module.

Edit: Forgot to add the two lines in question that'll bring back the functionality, after line 356 add the following to profiles/commons/modules/contrib/timeago/timeago.module

    $path = drupal_get_path('module', 'timeago') . '/timeago.js';
    drupal_add_js($path);

Comments

moheshmohan’s picture

Issue tags: +span class, +anchors not working, +Commons 7.x-3.2 radar, +Theme issue
StatusFileSize
new22.89 KB

wow this exactly solved the issue.... thanks mate... I have another problem and i could not solve it by myself...

Please look at the screen shot

http://drupal.org/files/Clipboard01_9.jpg

I am using commons 3.2.

Some how the span inside anchor tags get displayed, this happens in multiple places (for example in users notification settings page etc). Similar issue was reported in http://drupal.org/node/1838928

So i thought its somehow related to timeago (thanks to my poor knowledge in coding)

Any ideas to fix this.... Thanks in advance :)

cellar door’s picture

Sorry I can't tell what the issue is from your screenshot but I'm not guessing it's related to the timeago fix as it's doing it on non-time aspects. Best to open a new issue for that

ezra-g’s picture

Issue tags: -span class, -anchors not working, -Commons 7.x-3.2 radar, -Theme issue +Commons 7.x-3.3 radar

Moving from 3.2 to 3.3 radar.

moheshmohan’s picture

yep i opened another issue.... i guess its not related to timeago patch.. with or without it the issue is still on

devin carlson’s picture

Assigned: Unassigned » devin carlson
Status: Active » Needs review
StatusFileSize
new633 bytes

As the original post points out, the patch currently applied to the Timeago module removes the inclusion of the module's initialization JavaScript.

The attached patch removes the patch against Timeago.

devin carlson’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new450.09 KB
new447.79 KB

Two screenshots demonstrating that the patch currently included in the Commons makefile prevents the Timeago JavaScript from loading: one after a fresh install of common and one after a fresh install of Commons with the patch removed.

Stock Commons
stock_commons.png

Patch Removed
patch_removed.png

devin carlson’s picture

Status: Reviewed & tested by the community » Fixed

Committed #5 to Drupal Commons 7.x-3x.

http://drupalcode.org/project/commons.git/commit/c77a10d

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated with missing code