Hi,
I am looking for the PHP code for the messages posted in a topic. There must be a loop some where. Can anyone tell where can I find and edit that code? :-\
The page of viewing the message is controlled by 1 source file (to do the queries and most of the hard php work) and the template to do the loop and writing of the html.
Sources/Display.php
Themes/default/Display.template.php
(note each theme may have a custom Display.template.php, so any changes you make to Display.template.php you may also want to replicate for every other theme with a custom Display.template.php)
Well I am using "Dilber Multicolor" theam. When I browse the files at Admin. section. I don't see any file named Display.templet.php
These are the PHP files which I see there:
BoardIndex.template.php
index.php
index.template.php
MessageIndex.template.php
Settings.template.php
But I am unable to find the required code for all the Messages and reply posted :-\
If a file isn't present in a custom theme, SMF automatically defaults to the default core theme for that particular file.
But I would suggest you copy the Display.template.php from the default theme to the Dilber theme folder and work with that file. As to safe guard your default theme when editing files and you'll always have a working theme to fall back on.
Thanks, finally I have done it 8)
But note once you copy across a file, if you have any further modifications you wish to install that affect the Display.template.php
you will need to manually edit those changes onto your Dilber MC themes new Display.template.php.
So only start copying over files if you REALLY need to.