Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: sirfpsycho - syyskuu 27, 2019, 01:01:41 AP

Otsikko: started by
Kirjoitti: sirfpsycho - syyskuu 27, 2019, 01:01:41 AP
I want to know which file should I edit where Started by "user" is written. Please check screenshot.
is it BoardIndex.template.php ?? If yes then which line? I could not see "started by user" line.
Otsikko: Re: started by
Kirjoitti: skb - syyskuu 27, 2019, 02:35:48 AP
That would be in the language files. index.english.php in the Themes/Default/Languages folder
Otsikko: Re: started by
Kirjoitti: Arantor - syyskuu 27, 2019, 02:37:18 AP
The display of that is controlled by MessageIndex.template.php.
Otsikko: Re: started by
Kirjoitti: a10 - syyskuu 28, 2019, 08:03:28 AP
Looking at the parse of this mod may give useful directions about where it's happening.

https://custom.simplemachines.org/mods/index.php?mod=3519
Otsikko: Re: started by
Kirjoitti: Arantor - syyskuu 28, 2019, 08:32:36 AP
Better question is what you're trying to do with that line.
Otsikko: Re: started by
Kirjoitti: sirfpsycho - syyskuu 28, 2019, 08:56:57 AP
I want to show topic starter name in simple portal latest topic/post block. Currently it shows commenters name.
I found the code but that topic starter code is not working in simple portal block.
Otsikko: Re: started by
Kirjoitti: Arantor - syyskuu 28, 2019, 09:36:54 AP
No, you can't just randomly grab code like that :( you need to rewrite the SP block to make that work the way you want, I think.
Otsikko: Re: started by
Kirjoitti: shadav - syyskuu 28, 2019, 09:39:45 AP
Lainaus käyttäjältä: sirfpsycho - syyskuu 28, 2019, 08:56:57 AP
I want to show topic starter name in simple portal latest topic/post block. Currently it shows commenters name.
I found the code but that topic starter code is not working in simple portal block.

you may want to ask the simple portal team for help :) though I'm sure someone here might know (if they use simple portal)
https://www.simplemachines.org/community/index.php?topic=227599.0
Otsikko: Re: started by
Kirjoitti: sirfpsycho - syyskuu 28, 2019, 09:45:01 AP
Already asked there but no one is there to help.