|
|
| Author |
Message |
DanV
New User
Joined: 30 Jul 2010
Posts: 4
|
Posted: July 30th 2010, 7:38 am Post subject: Category Modifications |
|
|
Hi
Recently I asked at the phpBB forum for help in changing the color of a particular category. They were very helpful and the result can be seen in this image:
Once this had been done I thought that the category would remain this color throughout the forum's different pages but this is not the case as the forum color reverts to the main color. When I asked the person about this they did not know how this could be done saying that the index page is forumrow whereas the viewforum page is the topicrow, so the forumrow.FORUM_ID code won't work, and topicrow.FORUM_ID doesn't exist. So, from what they said, it seems that the code of one template will not necessarily carry over into another one.
What I then considered were alternatives like a forum image associated witht the forum but there too that disappears after the index and it just breaks up the look of the forum row. Then I thought about a banner (Green Forum') and this image shows where I'd like it to go:
Now, keep in mind that I'd like the banner to show not on the index page but on the pages after that deal with that specific category and so I thought if there was a way to get the banner specific to a category.
When I asked the same person about this they said I'd need to get the same 'IF' statement working in order to display that banner. The "same" refers to how he showed me to modifiy said statement in order to add extra, colored categories in case I ever needed more. While I think I have that aspect of different category colors for future use, I simply do not have the knowledge of PHP for me to go tweaking the code to do this.
So, is there anyone who may have a suggestion as to how what I have noted here can be accomplished whether it be continuity of the category color or at least a banner to signify a particular forum beyond the index page?
I hope I have noted and explained this properly.
Thank You
Dan |
|
| Back to top |
|
 |
~HG~
Dedicated User
Joined: 08 Nov 2003
Posts: 3913
Location: Australia
|
Posted: July 30th 2010, 3:16 pm Post subject: |
|
|
The changes you have made to the index page to achieve what you want would also have to be made to viewforum (php and html) and again to viewtopic if you wish to continue it through to the topic itself.
I dont know if you made changes to your css files or not, but if you did then you would need to also keep the changes going through that file as well. _________________ ~HG~
|| rodneyangell.com || || phpbb-tutorials.com ||My Hacks |
|
| Back to top |
|
 |
DanV
New User
Joined: 30 Jul 2010
Posts: 4
|
Posted: July 30th 2010, 4:44 pm Post subject: |
|
|
HG
Thank you for the reply.
Yes, changes or rather an addition of a css class was added. I have no problem adding css to fit the need but it's the aspect of keeping the changes going through viewtopic that are apparently complicated due to what was noted in the previous post about a "topicrow.FORUM_ID" not existing and thus no way to specifically "tag" the forum for change, or in this case continuity.
If nothing like that exists then that's why I thought of alternatives like the banner mentioned and forum image. Basically, something on that forum page that denotes the particular forum since the forum-rows will not be green like in the index page.
Question: Can a banner such as the one shown be coded into viewtopic.html? From my end I can do the wrap, div, css and whatever else but I need to know the location on the template where it can be placed.
Thank You
Dan |
|
| Back to top |
|
 |
|