Support Forum

  • Page:
  • 1

Remove timestamp link, add bullets

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Wow, just when I thought there wasn't a decent Twitter module for Joomla, I found jTweet. It's amazing!

I just need two things done to tweak it the way I need it:

- I need to remove the link from the tweet's timestamp. I see where it is in the Java Script file, but when I tried to remove it, I broke it. I don't really know what I'm doing in there. ;)

- Also, I'd like to be able to use the bullets from my template's CSS.

Any help would be greatly appreciated!

C.
  • XopherTaylor's Avatar
  • XopherTaylor
  • Free Extensions
  • 4 posts
  • Karma: 0
Last Edit: 9 years 10 months ago by XopherTaylor.
The administrator has disabled public write access.
XopherTaylor,

To remove the date stamp from your tweets, do the following;

First, make a backup of your original file, jquery.tweet.js... just in case! ;)

Now, edit your working .js file and search for this block of code;

// until we create a template option, arrange the items below to alter a tweet's display.

Based on the theme you are using (#1, #2 or #3), remove the reference to the 'date' call. There are three (3) references within the .js file for this and you'll have to remove the date call from all three...

For example, I'm using theme #2. The original line of code is this;

list.append('<li>' + avatar + twitterName + date + tweetsource + join + text +'</li>');

to remove the date stamp my revised line of code would now be;

list.append('<li>' + avatar + twitterName + tweetsource + join + text +'</li>');

Again, there are three (3) listings for the themes and you'll need to remove the date call in all three (3).

Ed
  • Ed's Avatar
  • Ed
  • LIfetime Developer - Big Bamboo
  • 1693 posts
  • 45 Thanks
  • Karma: 60
The administrator has disabled public write access.
Actually, I don't want the timestamp (or 'date') removed, just the link.

I (think) know the following code needs to be modified, but I don't know here:
var date = '<span class="tweetDate"> <a href="twitter.com/'+item.from_user+'/statuses/'+item.id+'" title="view tweet on twitter">'+relative_time(item.created_at)+'</a> </span>';
  • XopherTaylor's Avatar
  • XopherTaylor
  • Free Extensions
  • 4 posts
  • Karma: 0
The administrator has disabled public write access.
XopherTaylor,

Sorry my bad... miss read your request completely! I'll take another look to see if this can be done. Once again, sorry!

Ed
  • Ed's Avatar
  • Ed
  • LIfetime Developer - Big Bamboo
  • 1693 posts
  • 45 Thanks
  • Karma: 60
The administrator has disabled public write access.
XopherTaylor,

Sorry for the delay... but below is how you drop the link effect with the jTweet dates.


Find this (3 places):
var date = '<span class="tweetDate"> <a href="twitter.com/'+item.from_user+'/statuses/'+item.id+'" title="view tweet on twitter">'+relative_time(item.created_at)+'</a> </span>';

Replace with (3 places):
var date = '<span class="tweetDate"> </span>';

Ed
  • Ed's Avatar
  • Ed
  • LIfetime Developer - Big Bamboo
  • 1693 posts
  • 45 Thanks
  • Karma: 60
The administrator has disabled public write access.
Hi Ed -

No worries about taking some time to get back to me. I totally appreciate your efforts.

This modification to the code actually removed the timestamp completely. Should there not be something between <span class="tweetDate"> and </span>?
  • XopherTaylor's Avatar
  • XopherTaylor
  • Free Extensions
  • 4 posts
  • Karma: 0
The administrator has disabled public write access.
XopherTaylor,

Lets hope I have it this time. The three lines of code I told you to edit... replace them with this.

var date = '<span class="tweetDate"> '+relative_time(item.created_at)+' </span>';

Ed
  • Ed's Avatar
  • Ed
  • LIfetime Developer - Big Bamboo
  • 1693 posts
  • 45 Thanks
  • Karma: 60
The administrator has disabled public write access.
Whoa! That did it! Beautiful! Thanks for the help, Ed.
  • XopherTaylor's Avatar
  • XopherTaylor
  • Free Extensions
  • 4 posts
  • Karma: 0
The administrator has disabled public write access.
XopherTaylor,

Your most welcomed... Again, sorry for some of my post delays and I'm glad after three shots we got it 'right'! :laugh:

Ed

p.s. remember, this code modification will be lost if and when there is an offered upgrade to jTweet that you install...
  • Ed's Avatar
  • Ed
  • LIfetime Developer - Big Bamboo
  • 1693 posts
  • 45 Thanks
  • Karma: 60
Last Edit: 9 years 10 months ago by Ed.
The administrator has disabled public write access.
Unlike XopherTaylor, I actually AM looking simply to remove the timestamp completely from tweets displayed via JTweet. I followed the instructions in Ed's initial response. It seems to break JTweet every time. What might I be missing?

Nevermind. I am a goober. This is covered better in another thread.
  • neuronimo's Avatar
  • neuronimo
  • 3 Month Basic
  • 3 posts
  • Karma: 0
Last Edit: 9 years 2 weeks ago by neuronimo. Reason: found answer in another forum thread
The administrator has disabled public write access.
Thanks for the update :)

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers