|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Modification Name: Category Descriptions Author(s): Weird Al Description: Allows you to add a description right under the category name on the forum summary. Looks just like the 6.7 version. Demo: none Requirements: 6.6.x Download Link: https://www.ubbdev.com/ubb/upload/00020028/CategoryDescription6.6.txt Credits: Charles did all the hard work, I just added CP support. Instructions / Other Info: I was looking through the templates and noticed some code that look out of place, looking into it, the spot for category descriptions are already in 6.6.x code, and it still is. You can open vars_cats.cgi and add the desciption there, but I felt a cp interface would be good. When you go to the Category page in the CP, there will be a new text input box for you to add a description. ubbcode works, graemlins do not, img code works, so does html. If you want to add a line break, use html. Remember to clear your summary cache when you change the description.
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
You have no idea how long I've been trying to do this... I was about to release it as a mod for 6.5 too But I guess you beat me to it... Nice work Al/Charles, installing now (Suggestion for future version: Making the UBB automatically waste the cache after updating category descriptions? ubb_lib, &ClearSummaryCache... Just a thought )
|
|
|
|
Joined: Sep 2001
Posts: 93
Member
|
Member
Joined: Sep 2001
Posts: 93 |
i got this in cp after installing on 6.6.1 quote: Undefined subroutine &main::prep_for_edit called at /home/www/web1/html/ubb/Templates/cp2_categories.pl line 177.
ยป Please use your back button to return.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
doh, forgot one step In cp2_categories.pl FIND: REPLACE WITH: return qw(cp2_forums ubb_lib_posting); I'll update the txt now TXT updates
|
|
|
|
Joined: Sep 2001
Posts: 93
Member
|
Member
Joined: Sep 2001
Posts: 93 |
now it works is html possible ? seems like yes and not cause some tag work and some not
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
If you enabled html in a post, that's the html that would work. javascript etc isn't allowed
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
Okay, easy instruction for lazy people (like me ) who want to automatically clear the cache after updating the descriptions. Find: $in{returnpage} = "categories"; Add after:
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
yeah, I was assuming that changing the name of a category also cleared the summary cache, so I left that out. Thanks for the code, how's it working for you?
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
Better than ever... Categories look so much better now Thanks Al
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Added this to my main boards, so the new demo is at http://www.alforadmin.com
|
|
|
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.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|