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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,026
  • Total Topics: 21,333
  • Online today: 916
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 273
  • Total: 273

How to know weather the article is PHP or not?

Started by Megaforum, November 17, 2007, 01:40:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dragooon

I was making a very customizable Article Block(Won't disclose the info though) and I was stuck at a point. How is the info, weather the Article is PHP or not, stored in the database?

Xarcell

When you edit an article, half way down the page it tells you, and allows you to change it if needed.

As far as reading the article, there is no way to tell, though it is obvious to the more experienced.

I may have misunderstood your question.

Dragooon

No Lol.
I am asking, where in the mySQL Database, is it stored that weather the Article is a PHP Article or not.
If I am right it must be somewhere there.

bloc

Its the "useintro" value. It goes like this:

v0.9.x
0 = use full bodytext
1 = use introtext
-1 = php article(cannot use intro)

This is the same in TP 1.0, but in case you only check values lower than 0 to find php articles there are more in that version:

-2 = bbc article
-3 = import external file/article

Dragooon


This website is proudly hosted on Crocweb Cloud Website Hosting.