Description: This allows you to add a bit of text (or a banner ad / HTML) to the top of the postlist page. It's forum specific, so you can have different info for each forum. Version 2.0 Adds the ability to edit the stuff at the top of each forum via the Admin menu. This is a PERFECT way to have banner ads for each forum without having to do a whole specific header for each forum. Version 3.0 updates instructions for UBB.Threads version 6.4. Version 3.5 adds instructions to extend this extra information into the showflat/showthreaded view.
New Files: /admin/selectforuminfo.php, /admin/editforuminfo.php, /admin/doeditforuminfo.php
Database Altered: none
Info/Instructions: Instructions - Upload 3 new scripts to the 'admin' directory of your threads install and apply the changed included. make sure your "includes" folder is writable so the files can get created and you can edit them from the online interface.
Disclaimer: Please backup every file that you intend to modify. If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
No - DLWebMaestro just updated the instructions to work with 6.4 as sometimes the instructions need to be changed so it matches when people copy/paste. Otherwise it's exactly the same.
Just make sure you save it as a .zip file instead of a .php file. Clicking the attachment link downloads a .zip for me, if I right click the link and choose Save target as, then it is listed as a .php in the save as window. Simply changing the name so that it ends with .zip works to make it a .zip for me.
Thanks, Josh. I had mentioned to you about putting banners for forums using the 6.3 version of this mod. I had managed to add them to newpost.tmpl and newreply.tmpl, but I couldn't figure out how to do it for showflat or showthreaded. This will help when I upgrade
Just one weird thing I noticed though when I installed it on my site, and it wasn't noticeable in IE but is in Opera. In postlist.tmpl you have a couple of <td>'s which span a few columns:
Are the colspan's necessary? What happens after you install this mod and view in Opera, is that you'll see some extra table cells squeezed in to seemingly make up for the missing cells. In other words, you're telling the cell to span X amount of columns, but there are only Y columns in the next row, so it'll squeeze in the missing X-Y columns.
In any case, removing the two colspans fixed this up. When looking through the code, I concluded that the colspans weren't needed but it'd be nice to get some confirmation on that?
If you want evidence, just look at any forum list (postlist.php) on this site through Opera and you'll see what I mean. There's a skinny black cell padded to the right of all the forum instructions.
Sorry I should of clarified -- there's nothing wrong with your changes or instructions. The mod is perfect as far as I'm concerned.
The bit of code I pasted is from postlist.tmpl, right at the top. It's already existing in the 6.4 (and probably older) distribution of ubb.t. You only notice the extra cells if you use this mod (when viewing in Opera).
Any chance of the drop menu seen when editing, having the category names also? Another idea is to have it read/display the description text already shown on the main page And....... you could use this with a lil modification to show different meta tags for each forum, to aid in search engine indexing
This uses the exact same mechinism to select a forum as when you edit a custom header for the forum. Blank page would usually be a language file problem. But this just uses the /languages/english/admin/generic.php language file.
Oh well no luck, instead I added Bo_Description, and $Description, to the boards query in postlist and added $Description to the template. It pulls the descript, (same as the main page) which will do for now.
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.