Previous Thread
Next Thread
Print Thread
Rating: 5
#239263 03/09/2003 2:28 PM
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
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.
Attachments
72346-Article_templates_6.4.zip (0 Bytes, 87 downloads)

Last edited by Dalantech; 01/01/2004 12:43 PM.
Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Good work!

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
I couldn't have done it without all the help I got from the mods and admins here

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Edited to add the changes that I made to the printthread.php file and to include a printthread-article.tmpl file

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
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!

Sponsored Links
Joined: Jun 2002
Posts: 19
Newbie
Newbie
Offline
Joined: Jun 2002
Posts: 19
sweet. this will help make things more veratile and multifaceted. thanks guys.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
yes, great work on this.... looks very nice DLT


- Allen wavey
- What Drives You?
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Nice one DLT


Nikos
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Thanks for the props!

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Thanks Nikos!

Sponsored Links
Joined: Apr 2002
Posts: 610
Code Monkey
Code Monkey
Joined: Apr 2002
Posts: 610
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.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
LOL!

Nope, I've never been to your site. Do you already have different templates for articles?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
he he

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

No of course not aaron.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
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

Joined: Apr 2002
Posts: 610
Code Monkey
Code Monkey
Joined: Apr 2002
Posts: 610
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.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, the more that you can get integrated into threads... the better.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
This mod works with UBB Threads 6.3

Joined: Apr 2002
Posts: 610
Code Monkey
Code Monkey
Joined: Apr 2002
Posts: 610
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?

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
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.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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


- Allen wavey
- What Drives You?
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Sure

Joined: Apr 2002
Posts: 610
Code Monkey
Code Monkey
Joined: Apr 2002
Posts: 610
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

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
you could use something like the ubbt_news script for that


- Allen wavey
- What Drives You?
Joined: Apr 2002
Posts: 610
Code Monkey
Code Monkey
Joined: Apr 2002
Posts: 610
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.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
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.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
...no changes needed

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
muchas gracias DLT, love this one


- Allen wavey
- What Drives You?
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Thanks for the props! A lot of the mods / admins here gave me some great feedback when I was writing the article templates

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
[]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*

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
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.

Joined: Jun 2002
Posts: 303
Enthusiast
Enthusiast
Joined: Jun 2002
Posts: 303
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!

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Thanks for the props

Joined: Jul 2003
Posts: 26
User
User
Joined: Jul 2003
Posts: 26
will this still work with 6.3

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
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.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)