Can't Find Forum Template

Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
I was trying to remove the buttons and name box shaded red (see attached screenshot).

I had an idea to clone a profile header - remove those - and include the renamed header ONLY in the Admin Forum (a swap).

However, I can't find a template for that forum anywhere - how is it generated?
Forum.JPG.jpg
Forum.JPG.jpg  •  93KB




--

Ken Rich
indiegospel.net

updated by @ken-rich: 01/03/15 03:06:24AM
michael
@michael
10 years ago
7,714 posts
The categories that are shown in your screenshot are in the:
/modules/jrForum/templates/item_categories.tpl

file.

But don't alter it directly, unless you do it from the TEMPLATES tab of the module in the ACP.

To over-ride that at skin level you can use this method:

"Altering a modules template"
https://www.jamroom.net/the-jamroom-network/documentation/development/1051/altering-a-modules-template
Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
Hi Michael,

Thanks - that's a good trick to keep in mind.

However, it's no help to me here because /modules/jrForum/templates/item_categories.tpl is not the template generating the page.

I can delete that entirely and the only thing that disappears, is a part of the page I want to keep, not the profile buttons I want to get rid of.

In fact, I can delete all the jrforum templates and the buttons still show up there, so where are they coming from? There has to be a place somewhere with an include command for the profile name box and profile menu.

I suspect the page is generated in PHP as a "special case" since it is not the Jamroom "normal" fare. However, I am a little bit lost when it comes to picking through that stuff.


--

Ken Rich
indiegospel.net
douglas
@douglas
10 years ago
2,790 posts
The part shaded in read from you image is in the profile_header.tpl in your active skin directory.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
Hi Douglas,

Yes I know that - lol. But I can't delete the name box and profile buttons from that without deleting them from ALL the profile pages.

So, I need to clone it as perhaps profile_header(clone).tpl with the profile name box and profile menu removed.

Then I need to find the the place in the php for the forum where the profile_header.tpl is included and include the altered version instead.

Does that make sense or is there a different way?


--

Ken Rich
indiegospel.net

updated by @ken-rich: 12/03/14 04:36:45AM
John Bizley
John Bizley
@john-bizley
10 years ago
251 posts
You should be able to do this purely using some css to remove the buttons etc and leave behind what you want, this way you won't have to mess with any templates. Will have a play with my site to see how this could work out later today.
Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
Cool... But I think (from my limited understanding) that would change it for all profile pages instead of just the one for the forum.

As near as I can tell, what we need to change is in the PHP for jrForum, but it's too "cryptic" for me to be sure...


--

Ken Rich
indiegospel.net
John Bizley
John Bizley
@john-bizley
10 years ago
251 posts
Ken_Rich:
Cool... But I think (from my limited understanding) that would change it for all profile pages instead of just the one for the forum.

As near as I can tell, what we need to change is in the PHP for jrForum, but it's too "cryptic" for me to be sure...

It should be possible to target just the forum page by setting the css to read the url so it will only make those changes on that page.
brian
@brian
10 years ago
10,148 posts
Ken - are you trying to remove the profile menu on your "site forum" page?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
Yes, and the profile name box.

The community forum doesn't need to show any of the admin stuff.

Thanks...


--

Ken Rich
indiegospel.net
brian
@brian
10 years ago
10,148 posts
Ken_Rich:
Yes, and the profile name box.

The community forum doesn't need to show any of the admin stuff.

Thanks...

This is something we'll get added to the NIngJa skin so the forum looks more like a "site" forum.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
John Bizley:
It should be possible to target just the forum page by setting the css to read the url so it will only make those changes on that page.

John... Please teach me this trick... That would be useful in many places going forward...


--

Ken Rich
indiegospel.net
Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
brian:

This is something we'll get added to the NIngJa skin so the forum looks more like a "site" forum.

Hope this helps!

Awesome thanks...


--

Ken Rich
indiegospel.net
michael
@michael
10 years ago
7,714 posts
Ken_Rich:
Yes, and the profile name box.

The community forum doesn't need to show any of the admin stuff.

Thanks...
Yeah sorry, I wasn't understanding that.