By sithicus on
I've seen drupal sites that don't have the timestamp under the catagory.. can someone please tell how to remove the timestamp from the catagory listing.. I for the life of me can't find the setting for this.. so i'm guessing it is somewhere in the code.. maybe one of the include.. files..
thanks
-Chris
Comments
Theme global
Theme global settings?
If that is not what you are looking for, then you will need to mention what theme you are using.
-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
I'm using friendselectric
I don't see the setting under the global setting that effects the timestamps.. (I could very possibly missing it) sorry for the noob question
nevermind
read it wrong
soo..
nobody knows how to do this?
I'd like to know too
The timestamp is okay; it just takes up a good bit of space that I'd like to cut if possible.
CultureCat
Here's how
I don't think there is a setting for this. You need to modify the code.
Here's a general procedure for finding and changing this kind of thing.
First, we need a string to search for. Since the block is titled "Categories", we'll search for that string using any text editor (case dependent, whole word search).
There are several matches, but the ones that look promising are in taxonomy.module (line numbers are from Drupal 4.5.2):
That sure looks like it might have something to do with the subject of a block, doesn't it? With any luck, the code that fills in the content of the block will be somewhere near there. And it is (text broken into multiple lines here for readability):
Looking at that, we can see that it puts three strings together. First is the category name and count. Second is a line break tag. Third is the time since last post.
So, we just need to change this line to keep the category name and count but omit the line break and time:
All done!
ack, wait...
Now let's not go modifing core modules that will complicate any upgrades. Simple display issue's like this are better handled through the customizing the theme.
A quick look at Friends Electric show that you probably want the node.tpl.php module
Open it up and look at line 14 I think.
-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
That is the perfect solution
Sepeck,
That worked like a charm, thank you for that, I was really hesitant on updating modules, and your fix worked wonders!!!