SMF Support > SMF 2.0.x Support
Activating a template page
(1/1)
binarygod:
We are running 2.0.2 and I'm having some behavior that I can't explain or maybe I just don't understand.
My end goal is to add some custom code to the user info (post bit) area of a post. So I found the resulting code in Display.template.php. Well the template we decided to use on the forum didn't have this page defined, which I found out means it's just inheriting it from the default theme. So I Modify the Theme that we are using and select "Copy a template from the theme this is based on", I find the Display.template.php and select [copy].
The Display.template.php file now shows up if I Modify the used theme and select Browse the templates and files in this theme. The issue is that I can't seem to get SMF to realize that the new Display.template.php is there. I'm noticing that the other *.template.php files have an identical *.template.php~ (which I'm guessing is a lock or state file), my Display.template.php does not have one which suggests to me it's not being used or being seen.
Can someone tell me what I am doing wrong?
Thanks
Storman™:
The files with a tilde (~) are essentially backup files automatically generated when the original file gets changed.
I'm unclear why you think that your Display.template.php is not being used ? Have you made any code changes to it yet ?
Colin:
Have you tried just echoing a simple string to see if it is actually an error with your script?
Navigation
[0] Message Index
Go to full version