UBB.Dev
Posted By: Dalantech [6.4] Article templates. - 03/09/2003 9:28 PM
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.

Attached File
Posted By: JoshPet Re: [6.2x] Article templates. - 03/09/2003 9:39 PM
Good work!
Posted By: Dalantech Re: [6.2x] Article templates. - 03/09/2003 9:42 PM
I couldn't have done it without all the help I got from the mods and admins here
Posted By: Dalantech Re: [6.2x] Article templates. - 03/09/2003 10:09 PM
Edited to add the changes that I made to the printthread.php file and to include a printthread-article.tmpl file
Posted By: Dalantech Re: [6.2x] Article templates. - 03/09/2003 11:09 PM
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!
Posted By: sirpineal Re: [6.2x] Article templates. - 03/09/2003 11:11 PM
sweet. this will help make things more veratile and multifaceted. thanks guys.
Posted By: AllenAyres Re: [6.2x] Article templates. - 03/11/2003 12:28 AM
yes, great work on this.... looks very nice DLT
Posted By: dimopoulos Re: [6.2x] Article templates. - 03/11/2003 2:05 AM
Nice one DLT
Posted By: Dalantech Re: [6.2x] Article templates. - 03/11/2003 7:47 AM
Thanks for the props!
Posted By: Dalantech Re: [6.2x] Article templates. - 03/11/2003 7:48 AM
Thanks Nikos!
Posted By: shortbus Re: [6.2x] Article templates. - 03/11/2003 8:16 AM
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.
Posted By: Dalantech Re: [6.2x] Article templates. - 03/11/2003 8:37 AM
LOL!

Nope, I've never been to your site. Do you already have different templates for articles?
Posted By: JoshPet Re: [6.2x] Article templates. - 03/11/2003 9:00 AM
he he

Shhh... don't tell him. It's a game we play. LOL

No of course not aaron.
Posted By: Dalantech Re: [6.2x] Article templates. - 03/11/2003 9:41 AM
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
Posted By: shortbus Re: [6.2x] Article templates. - 03/11/2003 9:20 PM
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.
Posted By: JoshPet Re: [6.2x] Article templates. - 03/11/2003 9:22 PM
Yeah, the more that you can get integrated into threads... the better.
Posted By: Dalantech Re: [6.2x] Article templates. - 03/11/2003 10:25 PM
Posted By: Dalantech Re: [6.2x] Article templates. - 05/02/2003 7:22 AM
This mod works with UBB Threads 6.3
Posted By: shortbus Re: [6.2x] Article templates. - 05/02/2003 7:51 AM
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?
Posted By: Dalantech Re: [6.2x] Article templates. - 05/02/2003 8:12 AM
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.
Posted By: AllenAyres Re: [6.2x] Article templates. - 05/02/2003 7:44 PM
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
Posted By: Dalantech Re: [6.2x] Article templates. - 05/02/2003 7:58 PM
Sure
Posted By: shortbus Re: [6.2x] Article templates. - 05/08/2003 6:24 AM
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
Posted By: AllenAyres Re: [6.2x] Article templates. - 05/08/2003 7:31 AM
you could use something like the ubbt_news script for that
Posted By: shortbus Re: [6.2x] Article templates. - 05/08/2003 8:09 AM
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.
Posted By: Dalantech Re: [6.2x] Article templates. - 05/08/2003 8:12 AM
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.
Posted By: Dalantech This mod works for Threads 6.4... - 12/17/2003 8:12 AM
...no changes needed
Posted By: AllenAyres Re: This mod works for Threads 6.4... - 12/17/2003 8:32 AM
muchas gracias DLT, love this one
Posted By: Dalantech Re: This mod works for Threads 6.4... - 12/17/2003 9:49 AM
Thanks for the props! A lot of the mods / admins here gave me some great feedback when I was writing the article templates
Posted By: Dalantech Re: [6.2x] Article templates. - 12/17/2003 9:51 AM
[]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*
Posted By: Dalantech Updated for Threads 6.4 - 01/01/2004 6:52 PM
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.
Posted By: fishtails Re: [6.2x] Article templates. - 02/10/2004 5:07 AM
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!
Posted By: Dalantech Re: [6.2x] Article templates. - 02/10/2004 2:27 PM
Thanks for the props
Posted By: PatrickEgan Re: [6.2x] Article templates. - 05/15/2004 12:34 AM
will this still work with 6.3
Posted By: Dalantech Re: [6.2x] Article templates. - 05/17/2004 5:56 PM
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.
© UBB.Developers