Customizing SMF > SMF Coding Discussion
How to remove the words "posts" and "topics" from child board indexes
Marcus Forsberg:
--- Quote from: Krash. on April 08, 2012, 02:27:58 PM ---If you just remove the $txt variables, it shouldn't affect anything else. You can even change a letter - $txt['board_topicx'] - and the text will disappear without changing the formatting.
--- End quote ---
That wouldn't be a very good idea, though, calling for an undefined index. Better to remove it entirely. ;)
ChalkCat:
Or just comment it out with // first to be on the safe side?
Krash.:
--- Quote from: Marcus Forsberg on April 08, 2012, 02:33:46 PM ---
--- Quote from: Krash. on April 08, 2012, 02:27:58 PM ---If you just remove the $txt variables, it shouldn't affect anything else. You can even change a letter - $txt['board_topicx'] - and the text will disappear without changing the formatting.
--- End quote ---
That wouldn't be a very good idea, though, calling for an undefined index. Better to remove it entirely. ;)
--- End quote ---
It werks gud! You can also find the variables in the language file and make them blank. But it's best to edit out the variables.
Commenting out the line removes all the post/topic info, including the numbers, not just the text labels.
Marcus Forsberg:
--- Quote from: Krash. on April 08, 2012, 03:22:53 PM ---It werks gud!
--- End quote ---
Um, no. It causes an undefined index in the error log. ;) You don't want that. Just remove the variables, there is no reason not to.
Groovystar:
Yeah--I know about undefined indexes. We have a whole slew of those already.
I'm so sorry to those of you who have given me directions here, but I just don't understand how to remove these commands to make those words not show up. :(
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version