Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
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

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
thanks brett smile


- Allen wavey
- What Drives You?
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Can you please make it compatible with ext. categories and use three empty |^|'s before? tipsy

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
quote:
Originally posted by LK:
use three empty |^|'s before? tipsy

why?

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Read the, umm, whole sentence please tipsy

Sponsored Links
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
...!!

Where are you talking about?! confused

btw, i updated the file to include descriptions in extended categories.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
He said doing that will make it compatiable with "ext"

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Hmm.. can't believe i forgot about this. Finally made it compatible with the Ext. category hack. shocked

Joined: Oct 2002
Posts: 16
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 16
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.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Try:
Code
		($cat_order, $cat_name, $cat_number, $template, $html, $hidden) = split (/|^|/, $cat_line);

Sponsored Links
Joined: Oct 2002
Posts: 16
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 16
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 ?

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
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.

Joined: Oct 2002
Posts: 16
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 16
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?

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Can you rehack Extended Category Settings' step for ubb_forum_summary.cgi?

Joined: Oct 2002
Posts: 16
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 16
confused How? :rolleyes:

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

ah, is there any multihack file for this hack? :rolleyes:

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Get ExtCatSettings' text file, and then rehack ubb_forum_summary.cgi tipsy (maybe a problem with my multihack instructions?)

Joined: Oct 2002
Posts: 16
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 16
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 ?

Joined: Oct 2002
Posts: 16
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 16
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]

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
That's why you should re-hack it smile

Joined: Oct 2002
Posts: 16
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 16
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 ?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)