Description: Attached is a new version of the ubbthreads.tmpl where there is a login box at the top of the page. As an added bonus the moderator column is removed and the moderator list is shown below the forum description.
To be more intuitive for newbies, in that log-in box I would place [:"green"]{$ubbt_lang['NEW_USER']} [/] ("New user"). I know its already above, but I think the placement would be much more intuitive in the login box.
Ideally we would have a language text for "Not registered? Click here".
Writes AllenAyres: I like the moderator's placement
I do as well and I plan on using this template as a guide for modifying mine to remove the moderators column and place the moderator list beneath the forum description. I think that will help to "unclutter" the main index (or Command Centre as it's called on my board).
Actually, the login box is not shown for users that are logged in. The reason that it isn't in ubbt_unregisterednav.tmpl is that it wouldn't show correctly on my board because of some background images I have. Also, this way it only shows up on the forum list, which I think is enough.
The code for the login box is separated though, so it would be easy to put it in unregisterednav instead. Although, it would be a good idea to remove the check to see if the user is logged in since it won't be necessary any more.
Yeah, I really like the placement of the moderators, but I think it was someone else here that gave me the idea. Would be good with a new language text for it also, so that it says "Moderators" instead. But I didn't feel like making the template needing a change to another file as well.
Strange, it works for me when I view it and I just made a copy from my template file. It was in DOS mode though for some reason, not sure if templates should be that or not. Seems that some are and some aren't even when looking at files I haven't altered.
Here is a new version which is in unix format, hopefully it will work better.
I did not right click because you had named the file a .txt so naturally I assumed that it contained a txt file. I would associate a txt file for a hack or template with a list of directions to implement it - I would not assume that it was a .tmpl file in disguise.
I was about to see if my board image hack needed any updates for 6.0 final when I saw that I had actually included it by accident in this template. So there is actually one more hack as well.
Description: This hack allows you to have different pictures next to the board & description on the main index page. The image is inserted to the left of the forum description, even though it can be placed anywhere on the row of that forum if you want. It is just a matter of placing the "{$forumimage}" where the picture should go.
You can have a different image for every board, you just have to name them after the boards Keyword. This board would have an image called "templates.gif". If no image for the forum exists a default image "board.gif" is inserted instead, if it exists. This way you can have the same image for all boards if you want to, as well. If you want a jpeg or png image as the default image you will have to change the "board.gif" name below.
If you want it to be a background image instead you could use the variable {$fimage} instead and place it in the background attribute of the table where you want it to show up.
Download: Just save the ubbthreads.txt in the original post of this thread and rename it to ubbthreads.tmpl and put it in the templates directory. Or if you don't want the login box and moved moderator list, just download the attached file which includes all instructions on how to add it yourself.
OK, I have fixed the links to recent messages. The problem was that the & in the links had been changed into "&", so you can fix it yourself by just search and replace that everywhere. Or just download the new text file I have attached and use that.
Instructions: Just save the attached file and replace the existing ubbthreads.tmpl template file with it.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.