Hello;
as we use the template file category_bit.html each time we need to display categories listing, we have to edit each PHP file at the site root that parses it. index.php and categories.php already do it.
Example, in index.php, we find:
$templates_used = 'home,category_bit,whos_online,thumbnail_bit';
$main_template = 'home';
index.php parses 4 template files: home.html, category_bit.html, whos_online.html and thumbnail_bit.html, but uses home.html as default template file.
category_bit.html is parsed to display category listing, whos_online.html to display online visitors at the bottom of the page, thumbnail_bit.html to display new images.
If we want to add category listing to image details, we find in details.php:
$main_template = 'details';
Let us replace by:
$templates_used = 'details,category_bit';
$main_template = 'details';
(we do not add the .html suffix) so we are able in details to parse category_bit.html template, to display a category listing in details.html page, as described before.
We will have to do the same modification in lightbox.php, member.php, register.php, search.php, top.php... and make needed changes in template files like lightbox.html, member.html, register.html, etc...
I would feel sorry to be not understood, as I am french, think in french , translate it to english and write it as well as I manage. Anyway, feel free to contact me by the forum or PM. I would help as far as I can.