Topic Author And Topic Age

Started by Rohan_, June 25, 2009, 03:21:48 PM

Previous topic - Next topic

Rohan_

Hi Allzz ..


i saw this type of topics in Vb and i likes it and i want this type of messageindex on my smf ... i want the topic author's name and topic age after every topic .. i am also posting a image for you see this and please tell me is this possible ..

he it is


in this image u can see the poster name and the topic age after every topic :) i want this
Proud To Be An Indian

Rohan_

Proud To Be An Indian

Arantor

First of all, please do not bump within 24 hours of your post; we are all volunteers here and sometimes it does take longer to get to an individual query.

Most of what you want can be achieved with this mod.

Adjusting it to include the thread's age shouldn't be a problem - there are likely to be details in the mod's own thread.

Rohan_

hey i dont want the profile link on the username appear after a topic after using this mod .. how to do this ?
Proud To Be An Indian

Arantor

You are normally likely to get better support in the mod's thread since it will be in the mod that it needs to be changed.

Though since this is quite a small change, I'll answer it here.

In the modified BoardIndex.template.php for your theme (or default/BoardIndex.template.php otherwise), look for:
<small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '<br />', $txt['cby'], ' <b>', $topic['first_post']['member']['link'],  '</b></small>

Change it to:
<small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '<br />', $txt['cby'], ' <b>', $topic['first_post']['member']['name'],  '</b></small>

Rohan_

okay .. anyway to add topic age ?? please if possible it will really appreciated .. mainly i need that
Proud To Be An Indian

Arantor

That one you would have to ask in the mod's thread, it's actually not a small change. If nothing else, do you round up or down?

For example, a topic is exactly 1 hour 30 minutes old - was it posted "an hour ago" or "2 hours ago"?

Rohan_

no no no .. i dont want the time i want like this >

like i posted a topic so i want after a topic this > Rohan_ - Today , Rohan_ - 1 Day Old , Rohan_ - 2 days old , 3 days old 4 days old .

i want like this . i want the age in days :) i hope now u can understand what i want
Proud To Be An Indian

Arantor

That's my point - I was trying to ascertain what you wanted. In any case, the mod's own topic is still the best place to ask because the mod's author reads that thread.

Rohan_

i dnt know much about that you guys are the boss here i asked for help here and u helping me .. please forward my this problem wherever u think its right and helpful .. now its your heading to solve this topic :) . thanks a lot
Proud To Be An Indian

Arantor

I'm no boss here, I'm just someone who posts far too much and frequently doesn't know what I'm talking about.

I'm just pointing out that since there's a mod that does half of what you want, it would probably be quicker to get an answer on modifying that mod to suit exactly what you want there - I don't know the mod at all, I hadn't even seen it until yesterday when I looked (quickly) at its source.

Rohan_

please find a way :D i also posted a pic in my first post see then i want like that :D .. please find a way to do that :D .. you are the boss for me 8)
Proud To Be An Indian

Arantor

The thing is, this is not as easy as the fix I mentioned above - that's a one line change. The change you're asking for is not a one line change. It's definitely more complex.

Seriously, post it in the mod's own topic, then the mod author himself can modify this for you then release it to everyone as an updated version of his mod.

Rohan_

Proud To Be An Indian

Arantor

Hello, did you manage to get this sorted?

Rohan_

no ... no one helping me there :( they said to wait me and now they saying that they dont have time .. post ur request in coding section  :'( :( :-X
Proud To Be An Indian

Arantor

If you can post your current theme's BoardIndex.template.php file I'll do it. Generally yes it should be done by the mod author but you've been waiting several days so post it here and I'll sort it for you.

Rohan_

#17
which board index ?

i attached boardindex.template of the current theme that i am using not of default .

and one more thing that currently i have applied a mod of topic starter name after topic name (Vb style Topic Starter ) so just add topic age after that ..

i think u need messageindex.template ...... m i right ??
Proud To Be An Indian

Arantor

Sorry, yes, it was MessageIndex.template.php I meant, not BoardIndex.template.php.

Rohan_

here is the default messageindex.template file :)

please do it for me :D
Proud To Be An Indian

Advertisement: