UBB.Dev
Posted By: Brett [6.3.x] [beta] Category Descriptions - 06/13/2002 7:13 PM
Name: Category Descriptions

Description: When in category only view, it will display a description under the category name

Inspired by: https://ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=28;t=000936

Download: Offline
Posted By: AllenAyres Re: [6.3.x] [beta] Category Descriptions - 06/13/2002 7:28 PM
thanks brett smile
Posted By: LK Re: [6.3.x] [beta] Category Descriptions - 06/13/2002 8:35 PM
Can you please make it compatible with ext. categories and use three empty |^|'s before? tipsy
Posted By: Brett Re: [6.3.x] [beta] Category Descriptions - 06/13/2002 9:11 PM
quote:
Originally posted by LK:
use three empty |^|'s before? tipsy

why?
Posted By: LK Re: [6.3.x] [beta] Category Descriptions - 06/13/2002 10:02 PM
Read the, umm, whole sentence please tipsy
Posted By: Brett Re: [6.3.x] [beta] Category Descriptions - 06/13/2002 11:05 PM
...!!

Where are you talking about?! confused

btw, i updated the file to include descriptions in extended categories.
Posted By: Lord Dexter Re: [6.3.x] [beta] Category Descriptions - 06/14/2002 2:25 AM
He said doing that will make it compatiable with "ext"
Posted By: Brett Re: [6.3.x] [beta] Category Descriptions - 08/29/2002 5:04 AM
Hmm.. can't believe i forgot about this. Finally made it compatible with the Ext. category hack. shocked
Posted By: stefans9 Re: [6.3.x] [beta] Category Descriptions - 11/08/2002 6:27 PM
Hello,

i have a 6.3 UBB but i cant find the lines at my ubb_forum_summary.cgi:

Quote
quote:
### If You have Extended Category installed ###
($cat_order, $cat_name, $cat_number, $Template, $HTML, $Hidden) = split (/|^|/, $cat_line);

### If You Don't have Ext. Cat. Installed ###
($cat_order, $cat_name, $cat_number) = split (/|^|/, $cat_line);
thank you.
Posted By: LK Re: [6.3.x] [beta] Category Descriptions - 11/08/2002 6:31 PM
Try:
Code
		($cat_order, $cat_name, $cat_number, $template, $html, $hidden) = split (/|^|/, $cat_line);
Posted By: stefans9 Re: [6.3.x] [beta] Category Descriptions - 11/08/2002 6:41 PM
i only have these lines:
Quote
quote:

foreach $cat_line (@cats) {
($cat_order, $cat_name, $cat_number) = split (/|^|/, $cat_line);
chomp($cat_number);
$forum_count = 0;
what change should i make now ?
Posted By: LK Re: [6.3.x] [beta] Category Descriptions - 11/08/2002 7:27 PM
If you wish to install Extended Category Settings, install it before that hack if you want it, then you'll get what I pasted. If not, it's the other line - without the part of $template, $html, hidden.
Posted By: stefans9 Re: [6.3.x] [beta] Category Descriptions - 11/08/2002 7:36 PM
i have already installed the Extended category settings. Now, i ll have to remove this line:

Quote
quote:

($cat_order, $cat_name, $cat_number) = split (/|^|/, $cat_line);

and replace it with which one?
or should i add the "missing"
quote:
[qb]local($cat_desr);
[/qb]
somewhere?
Posted By: LK Re: [6.3.x] [beta] Category Descriptions - 11/08/2002 7:40 PM
Can you rehack Extended Category Settings' step for ubb_forum_summary.cgi?
Posted By: stefans9 Re: [6.3.x] [beta] Category Descriptions - 11/08/2002 7:45 PM
confused How? :rolleyes:

I installed the extented category hack using the killer multihack. thumbsup

ah, is there any multihack file for this hack? :rolleyes:
Posted By: LK Re: [6.3.x] [beta] Category Descriptions - 11/08/2002 7:48 PM
Get ExtCatSettings' text file, and then rehack ubb_forum_summary.cgi tipsy (maybe a problem with my multihack instructions?)
Posted By: stefans9 Re: [6.3.x] [beta] Category Descriptions - 11/08/2002 7:56 PM
BTW, is it also possible to have the total number of posts and total number of topics in the first category page besides the Total Forums in Category ?
Posted By: stefans9 Re: [6.3.x] [beta] Category Descriptions - 11/08/2002 8:05 PM
hmm my ubb_forum_summary (hacked by multihack) file has the following line:

Quote
quote:
foreach $cat_line (@cats) {
($cat_order, $cat_name, $cat_number) = split (/|^|/, $cat_line);
chomp($cat_number);
$forum_count = 0;
but in the ExtCatSettings TXT, the instructions are:

quote:
[qb] Find:
=====

($cat_order, $cat_name, $cat_number) = split (/|^|/, $cat_line);

Replace with:
=============

($cat_order, $cat_name, $cat_number, $template, $html, $hidden) = split (/|^|/, $cat_line);
next if $hidden eq 'yes'; [/qb]
Posted By: LK Re: [6.3.x] [beta] Category Descriptions - 11/08/2002 8:24 PM
That's why you should re-hack it smile
Posted By: stefans9 Re: [6.3.x] [beta] Category Descriptions - 11/08/2002 8:42 PM
yes man!
i did and works! wow thanks!

BTW, is it also possible to have the total number of posts and total number of topics in the first category page besides the Total Forums in Category ?
© UBB.Developers