Gumboots wrote: Sun Nov 10, 2019 11:41 pm
I'm after a list of which actions (or sections) correlate to which templates in Prosilver.
If you look in includes/functions.php you'll find this array at the bottom, this is just the start of it:
Code: Select all
// The following assigns all _common_ variables that may be used at any point in a template.
$template->assign_vars(array(
'SITENAME' => $config['sitename'],
'SITE_DESCRIPTION' => $config['site_desc'],
You will also find an array the bottom of each main PHP file like search.php that contains similar array. Note the last one, you now have switch which can be used in templates to turn on or off something when in search.
Code: Select all
$template->assign_vars(array(
'S_SEARCH_ACTION' => append_sid("{$phpbb_root_path}search.$phpEx", false, true, 0), // We force no ?sid= appending by using 0
'S_HIDDEN_FIELDS' => build_hidden_fields($s_hidden_fields),
'S_CHARACTER_OPTIONS' => $s_characters,
'S_FORUM_OPTIONS' => $s_forums,
'S_SELECT_SORT_DIR' => $s_sort_dir,
'S_SELECT_SORT_KEY' => $s_sort_key,
'S_SELECT_SORT_DAYS' => $s_limit_days,
'S_IN_SEARCH' => true,
));
When you have something like topics, posts or search results being displayed it's an array in a loop. There is template variable all over the place... Easiest way to track them down is search the files for the template variable using the search function on editor like Notepadd++ that allows you to search directories and sub directories.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”
Attributed - Thomas Edison