TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,970
  • Latest: bynw
Stats
  • Total Posts: 196,061
  • Total Topics: 21,338
  • Online today: 234
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 220
  • Total: 221
  • @rjen

Display forum message as article?

Started by mixman, May 21, 2007, 12:00:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mixman

Is there a way to display a forum message as an article with the functionality as an article? This would be a nice way to highlight great forum messages.

What about the other way around? Could I automatically post an article to a forum when created or afterwards?

Can I group articles and forum messages so that articles are displayed above any forum message on the start page?

/M

Zetan

#1
SSI functions in an article can probably do what you need.
Have a look here: http://docs.simplemachines.org/index.php?topic=400.msg529#msg529

If you point you're browser to:
http://yoursite.com/ssi_examples.php

and

http://yoursite.com/ssi_examples.shtml

You will open examples of SSI functions that are packaged with SMF.



I don't quite understand you're second point:
Quote from: mixman on May 21, 2007, 12:00:13 PM
What about the other way around? Could I automatically post an article to a forum when created or afterwards?

The third point... You could do this in a center block and display it in a board of you're choice, again using SSI functions. Explore SSI.. it enables you to pull various bits of information into an area of choice.


SSI = Server Side Include

mixman

Thanks for the input Zetan! This looks really interesting.

What I meant with my first question is that if I post something as an article, is there a way to automatically have that article posted to a specific board. Another way to look at this; Can Tiny Portal and SMF share the same database for a message regardless if posted as an article or in a forum/board?

SSI seems very exiting! Couple of questions;

1. I assume I can use SSI in a box, right? How do I do this properly? I tried a PHP box and included the code but got an error.

2. When using the "recentTopics" function, can I specify a forum to get the topics from or does it always include all forums?


IchBin

TinyPortal cannot post an article to the SMF topics.

Recent topics can be customized in a block. Check the block code snippets board for more info on that.

This website is proudly hosted on Crocweb Cloud Website Hosting.