TinyPortal

General => Chit chat => Topic started by: Senkusha on March 19, 2025, 12:21:11 PM

Title: Do you use Articles
Post by: Senkusha on March 19, 2025, 12:21:11 PM
I'm in the process of working on my site, and I've decided that I want to try to use the Article feature more.  But, I'm a little lost with how/what/why to use it, so I'm came here looking for some examples of people using the Articles system within TP.

But, unfortunately, many of the links I've tried in the showcase end up going to dead sites, or I'm not seeing much usage of Articles.

So, I'd like to ask:

Thanks!
Title: Re: Do you use Articles?
Post by: lurkalot on March 19, 2025, 01:37:46 PM
I use the articles on my sites in my signature, not great examples but you get the idea.  My links pages also built using articles.

Our TinyPortal Documentation site is also built using the article system. Link above in main menu.

@rjen has articles on his FJR site link in his signature.
Title: Re: Do you use Articles?
Post by: [chrisB] on March 19, 2025, 03:17:51 PM
I intend to use the articles within an article system, just like WordPress. This side of my site is still something I need to sort out.

The idea of using them as a way to write a blog is a neat idea.

In addition to this, I use articles as a way to build custom pages such as "About" and other information.
Title: Re: Do you use Articles?
Post by: lurkalot on March 19, 2025, 03:25:10 PM
The articles system is pretty handy, not just for pages or articles, but you can run other stuff in those pages as they come in different flavours. bbc, html, php etc.
Title: Re: Do you use Articles?
Post by: Senkusha on March 20, 2025, 02:31:49 PM
Okay, so for example, I saw that (after I posted this), that somebody is using Articles for some of their static site pages.  I do enjoy having the ability to modify my code anywhere using the SMF and TP system! 

But, I'm going to try my hand at writing a custom PHP Article.  I noticed that the <tab> key doesn't exactly work like it would, say in Notepad.  Is there an easy way to indent without having to <space> five times?
Title: Re: Do you use Articles?
Post by: Senkusha on March 23, 2025, 11:38:41 AM
Also, I've seen Articles that have images in them.  After looking around, I don't see an easy way to embed images into TP Articles, like in SMF, I can just Attach an image.  But so far, the only way I see of adding an image to an Article is by linking to an uploaded message (via FTP to my web server).

Did I maybe miss something, somewhere?  I mean, TP is a pretty massive Mod.  :)
Title: Re: Do you use Articles?
Post by: @rjen on March 23, 2025, 12:32:42 PM
In BBC and HTML articles you can use the My images quick-list to uploud attached images and insert them in the articles...

Check here under Images..

https://www.tinyportal.net/docs/index.php?page=Creating-an-article
Title: Re: Do you use Articles?
Post by: Senkusha on March 23, 2025, 10:24:33 PM
Thank you!  I may not have something enabled.  I see the option when using a HTML article, but there's nothing there for a BBC article.

2025-03-23 18_23_58-Kawaii Klub - TP admin — Mozilla Firefox.png
Title: Re: Do you use Articles?
Post by: @rjen on March 23, 2025, 10:28:17 PM
My bad, The quicklist is only available for HTML articles, NOT for BBC articles
Title: Re: Do you use Articles?
Post by: Senkusha on March 23, 2025, 10:41:05 PM
Okay, good to know! :)

Dumb question.  If I enabled HTML for my members, would they be able to write anything nefarious, like inserting php code into an HTML document, or does the TP system filter those tags out?  Like I could see somebody trying something slick like:

<?php
// Read the database to get passwords...
?>

Title: Re: Do you use Articles?
Post by: @rjen on March 23, 2025, 10:45:54 PM
Quote from: Senkusha on March 23, 2025, 10:41:05 PMOkay, good to know! :)

Dumb question.  If I enabled HTML for my members, would they be able to write anything nefarious, like inserting php code into an HTML document, or does the TP system filter those tags out?  Like I could see somebody trying something slick like:

<?php
// Read the database to get passwords...
?>


That will be sanitised, and will not work... php code can only be used in php articles.