Changeset 2089 in ExiteCMS for trunk/downloads.php


Ignore:
Timestamp:
12/03/08 17:29:31 (3 years ago)
Author:
WanWizard
Message:

added bbcode editor and bbcode parsing for download and download category descriptions
fixed a few relative link issues in the news main module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downloads.php

    r2030 r2089  
    2626// load this module's locales 
    2727locale_load("main.downloads"); 
     28 
     29// shared forum functions include 
     30require_once PATH_INCLUDES."forum_functions_include.php"; 
    2831 
    2932function countdownloads($cat_id) { 
     
    136139    while ($data = dbarray($result)) { 
    137140        $data['download_count'] = countdownloads($data['download_cat_id']); 
     141        $data['download_cat_description'] = parsemessage(array(), $data['download_cat_description'], true, true); 
    138142        $variables['download_cats'][] = $data; 
    139143    } 
     
    148152        while ($data = dbarray($result)) { 
    149153            $data['now'] = showdate("", time()); 
    150             $data['download_description'] = nl2br(stripslashes($data['download_description'])); 
     154            $data['download_description'] = parsemessage(array(), $data['download_description'], true, true); 
    151155            $variables['downloads'][] = $data; 
    152156        } 
Note: See TracChangeset for help on using the changeset viewer.