What is it?: A mod that will load different showflat and showthreaded templates for the forums you select in the admin panel, as well as use a different template for the printed view of an article post.
Why should you care?: Having articles in UBB Threads is pretty cool, but they look like the rest of the posts. The "posted by" column takes up a lot of space on a long post, and since most articles are pretty long the posted by info kills off a lot of room. This mod removes the posted by column for the forums you specify. It also will not display the edit, reply, and quote buttons for users who do not have the right to post in your article forum(s).
Who gets the props?: JoshPet for SQL commands, Gardener for scripting ideas, AllenAyres and Astaran for feedback. This one was definitely a group effort <img src="/threads/php/images/graemlins/cool.gif" alt="" />
Just follow the instructions included in the zip file. For an example of how it looks check out
this article at Da LAN Tech.
01 Jan 04: Updated for Threads 6.4 and included instructions for using a special print thread template for your articles.
I couldn't have done it without all the help I got from the mods and admins here
Edited to add the changes that I made to the printthread.php file and to include a printthread-article.tmpl file
One more thing:
If the person who posted an article is not the same as the person who wrote it you can use the following SQL command to change it:
UPDATE w3t_Posts
SET B_PosterId = xxxx
WHERE B_Number = yyyy
xxxx = the user number of the person you want listed as the author of the article.
yyyy = the post number that you want to change.
As always, backup your database before making changes!
sweet. this will help make things more veratile and multifaceted. thanks guys.
yes, great work on this.... looks very nice DLT
where were you before with this
.
Do you guys conspire together, checking my site to see when I add something or have something done, and then come out with something better over here?
Don't lie to me guys! I see what you're doing.
LOL!
Nope, I've never been to your site. Do you already have different templates for articles?
he he
Shhh... don't tell him. It's a game we play. LOL
No of course not aaron.
So I can't tell him that we can travel into the furture, look at his mods, then come back and write them like they are ours?
In the future remind me to go back and delete this post so he won't see it in the now
No, I was just having some software written as "article" software. I wanted something like this but never thought of it, of course
. I'm just givin you a hard time man.
Yeah, the more that you can get integrated into threads... the better.
This mod works with UBB Threads 6.3
Okay, I don't know if you have time for this, nor if you would even want to, but I have some suggestions for this mod.
You know how tld works, with the different categories etc. I'm assuming. Going with that, you could make articles sections, such as: sports-baseball, football, basketball; women-pretty, ugly, pretty ugly; category 3-sub cat one, sub cat two, sub cat three.
Take my site for instance. I'd have an articles page, with a customized threads template that would let the users choose to read articles by category: nursing, travel nursing, men in nursing, etc. or by specialty under nursing: er, or, med surg, etc. Or by author.
Then you could assign authors to their own catogory and give their "weekly column" a name, or you could allow them permission to contribute to a set number of categories.
This would basically be the same as giving permission to post in a forum, only the posts would be categorized in more of a links type format, and the text of the articles would appear just like a typical article on any other site.
Am I crazy?
You're not crazy, but it might be overkill for what you're ultimatley trying to do.
On this site Josh developed a special page for mods that lets you click on a button to get all the mods for Threads 6.2 (for example), and to search the mods. He was kind enough to give me a copy of the php script and template that he used to make that page, and I'm going to hack it to develope an "article index" for my site. When I'm finished I'll release it as a mod that anyone can use on their own site. It's gonna be a while before I can get to it though cause I'm knee deep in developing a template set for Threads 6.3.
As for asigning people to write columns: Just create groups for your authors, give write permissions to those groups in the forums you want them to post in, and asign authors to the groups. Then if someone wants to write a colomn they can post it in whatever article forum you've given them permission to post in (you can even set up post moderation in those forums).
I'm hesitant to do any article development in TLD because it's not finished yet.
an "article index" for the articles forum would be cool DLT, when you get a chance... could give someone ultimately a 'front end' for an entire articles/interviews/etc section
would there be a way to use threads to write articles, but then make them appear in the middle of a page outside threads, like this one?
http://demo1.interactivetools.com/current/artman_gr030/index.html
you could use something like the ubbt_news script for that
hmmn, I guess I missed that Alan. Btw, did you get that last pm I sent with my details? I never heard back from you after that.
I'm not sure what you are asking. If you want to be able to post an article in Threads, and then call that post and put it into a page using a script that is outside of the Threads directory then that's easy. All you have to do is require the Threads library, querry for the post, and then create a template to display the article... sounds like a lot, but it's realy not that bad
Allen also makes a good point: If you take a look at how the ubbtnews.php script works (it's in the addons directory under your Threads directory) you should be able to figure out how to make the page you want.
muchas gracias DLT, love this one
Thanks for the props! A lot of the mods / admins here gave me some great feedback when I was writing the article templates
[]AllenAyres said:
an "article index" for the articles forum would be cool DLT, when you get a chance... could give someone ultimately a 'front end' for an entire articles/interviews/etc section <img src="/forum/images/graemlins/smile.gif" alt="" /> [/]
Man, I really lost track of this one!
*Dal puts it back on his "to do" list*
I was wrong -this did need an update for Threads 6.4. I've corrected the files and uploaded a new zip file to the first post.
Well done Dalantech. I had done something else using the ubbtnews.php in the addons but it was becoming a pain to keep it seperate. Your templates are great, I'm going to do some minor changes to the templates to fit better into my setup. Thanks for the hack!
will this still work with 6.3
It wouldn't hurt to try it -but I can't tell you if it will work since I don't run 6.3 anymore. If it doesn't work then post your 6.3 showflat and showthreaded templates and I'll see if I can hack them for you.
For 6.5 I'll start a new thread so that the version here will be frozen.