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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,250
  • Total Topics: 21,354
  • Online today: 626
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

Category List

Started by ElShotte, September 11, 2008, 12:22:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ElShotte

Hey guys, I want my users to be able to click an "Articles" link in the top menu, which would take them to a page listing all the categories available. I am using SMF 1.1.6 and TP 0.9.8. Thanks.

Ken.

For that you would need to build a page and add your link for it to your theme.
There is an articlebox available in your TinyPortal admin panel, take a look at it to see if it will give you what you need.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

ElShotte

Cool, would you be able to tell me which PHP file defines the look of the articles?

IchBin


ElShotte


ElShotte

Okay, now I need serious help. When you search, it searches through the forums only, I need to make a search box that will search through all the categories and articles. Is this feature built-in or do I have to code it myself?

JPDeni

There is currently no search function on the articles.

ElShotte

#7
Any clue why I am not getting the message?

/Checks to see if a specific category has been set
if(isset($_GET['cat'])) {

echo '<ul>';
//Foreach statement to display articles in a category
foreach($context['TPortal']['profile_articles'] as $art) {
if($art['catID']==$_GET['cat']) {

//Checks whether its empty
if ($art['subject']=='') {
//-----------------------MESSAGE!
echo '<p>No recepies have been added yet, please come back soon!</p>';
//-----------------------MESSAGE!
}
echo '
<li>' ,$art['subject'] , '';
echo '
</li>';
                                }
echo '</ul>';

                                                          }
} //End of specific category


I've tried everything, empty(), strlen($art['subject'] <=0)... nothing... I am absolutely puzzled.

G6Cad

Answer to what and where ?

ElShotte

Trying to pull articles for a categories set with "?cat=" in a custom action, is that what you meant?

This website is proudly hosted on Crocweb Cloud Website Hosting.