FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » add a site navigator on the left of each page.
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
add a site navigator on the left of each page. [message #17305] Tue, 23 March 2004 21:52 Go to next message
WilliamBurns is currently offline  WilliamBurns   United States
Messages: 123
Registered: March 2004
Location: San Jose, CA
Karma: 0
Senior Member
I want to use the forum as a discussion area as part of a larger website. We currently use a 170 pixel wide html ssi to create a uniform navigator column for our html pages. Is there a way to use ssi with FUDForum? Assuming ssi is not available, is there a way to create this site navigator column in php and fit it on the left (maybe stealing 170 pixels of horizontal space from the topic column)?

I saw the general admonition that template files for the layouts are all accessible and editable. But there are a lot of them, and so it would really help to get a clue as to a) whether or not what I want to do is even possible, and if so b) where to start and what to do to inch toward implementing something like this? Do you have a list of people who have implemented FUDForum so that new users like me can check out the different implementations?
Re: add a site navigator on the left of each page. [message #17306 is a reply to message #17305] Tue, 23 March 2004 22:04 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You can stick whatever code you want into header.tmpl, for example you could use readfile() function to emulate the ssi include.

FUDforum Core Developer
Re: add a site navigator on the left of each page. [message #17329 is a reply to message #17306] Thu, 25 March 2004 21:27 Go to previous messageGo to next message
WilliamBurns is currently offline  WilliamBurns   United States
Messages: 123
Registered: March 2004
Location: San Jose, CA
Karma: 0
Senior Member
Thank you.
This makes sense.
I even saw an include() function mentioned in the php manual. I will try that too.
But where have I gone wrong here? -- I went to the template editor in the control panel and created a new theme called test1.
Then I went into the thm folders and modified the test1 theme header.tmpl (and also footer.tmpl).
Then I "compiled" the theme.
When I go to a user profile, and go to select a theme, no alternative is offered. I can only see "default" as a choice. Clearly I must have left something out. Any clue as to what I left out? I am still plowing through the documentation for the program. It only makes me a little nervous that it continually refers to version 2.3, or sometimes 2.1.
Ultimately, I want to present ONLY my customized theme for people to use. I presume I can simply make my test1 theme the default theme.
Re: add a site navigator on the left of each page. [message #17350 is a reply to message #17329] Fri, 26 March 2004 19:44 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You need to enable the new theme that you have created via the theme manager.
Re: add a site navigator on the left of each page. [message #17429 is a reply to message #17350] Tue, 30 March 2004 07:36 Go to previous messageGo to next message
WilliamBurns is currently offline  WilliamBurns   United States
Messages: 123
Registered: March 2004
Location: San Jose, CA
Karma: 0
Senior Member
Oops..
Now I don't know what I have done. I was in the theme manager, where I noticed that I had made a test1 theme with a yes in the enabled column (and a yes in the default column to the right of that), and I also had a second test1 theme with no in each column. (Shouldn't that be trouble right there, having two themes with the same name?) There was also a row for the default theme, which was still set as the default theme. So I clicked on the enable field on the second test1 theme, changing it from no to yes. Then I used the delete function to delete the extra test1 theme (with the two yeses). Then I went to exit the control panel and I was greeted with a blank screen. I looked at the underlying HTML source to see that it is in fact an empty HTML file, with a <body></body> pair surrounded by a couple of lines of HTML boilerplate. How can I get back to my default screen and the control panel? I have no idea how to recover from this situation. I am about to physically delete my two folders from the server and install the whole thing again. I went to run the uninstall script, but it says that my non-browsable folder cannot be found, so it doesn't seem to work. Is physical removal (by hand) an acceptable way to begin again? Is there something I should try first that might help me recover THIS installation?
Re: add a site navigator on the left of each page. [message #17439 is a reply to message #17429] Tue, 30 March 2004 16:12 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Physical removal will always work.

Give the provided information it looks like you've deleted the default theme, causing problems for the forum as a whole. There is a way to recover but it is somewhat complex and it would be much faster not to mention simpler to re-install.
Re: add a site navigator on the left of each page. [message #17462 is a reply to message #17439] Wed, 31 March 2004 05:25 Go to previous messageGo to next message
WilliamBurns is currently offline  WilliamBurns   United States
Messages: 123
Registered: March 2004
Location: San Jose, CA
Karma: 0
Senior Member
Again, thank you!
I uninstalled and reinstalled (easily! very impressive), and I seem to be still lacking some procedural knowledge about the use of themes and templates. I am still trying to put our site navigator column on the left side, and reduce the forum width so that both the forum and the navigator column fit on every page, every time.
I created my theme as test1. However, there is a place in the theme editor to give a name to the theme in addition to the name test1, so I gave it the name test_one. This latter name seems to show up in the profile list.
I went into the non-browsable folder, found the thm folder, selected the test1 theme, and went to the tmpl folder to find the header.tmpl and footer.tmpl files.
I am encouraged, because in the header file, I reduced the table width from 100% to 75%, and the forum files actually display narrower, with room for the navigator information. However, the navigator is not showing.
Here are the operative lines from that file:

<?php
include 'pre.txt';
?>
<table width="75%" border="0" cellspacing="3" cellpadding="5"><tr><td class="ForumBackground">
{MAIN_SECTION: END}

Will this "include" function simply drop the html lines from my pre.txt file into the page file at this point? Evidently not, but the php documentation says that is what it will do. Where will this pre.txt file have to be placed in order to be included?
In the same folder with the header.tmpl?, in the browsable folder?
Re: add a site navigator on the left of each page. [message #17467 is a reply to message #17462] Wed, 31 March 2004 13:46 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
First of all don't use include 'pre.txt'; use readfile('pre.txt'); it'll be faster and second provide a full path to pre.txt.

The end result is that the forum will make the text inside pre.txt appear right above the <table width="75%" border="0" cellspacing="3" cellpadding="5"><tr><td class="ForumBackground"> line on the forum pages.
Re: add a site navigator on the left of each page. [message #17504 is a reply to message #17467] Thu, 01 April 2004 16:38 Go to previous message
WilliamBurns is currently offline  WilliamBurns   United States
Messages: 123
Registered: March 2004
Location: San Jose, CA
Karma: 0
Senior Member
Once again, THANK YOU!
It works great.
I will start a new thread with my next question!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Threaded or unthreaded.
Next Topic: Actions List.
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 12:23:56 GMT 2024

Total time taken to generate the page: 0.03834 seconds