Vanilla Forums: Community Forums Evolved
Addons
Community
Documentation
Blog
Download
Hosting
Start Using Vanilla today
Home
›
Questions
Sign In
·
Register
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Unanswered
862
Best Of...
Categories
All Categories
19.5K
Questions
18.5K
Developers
89
Localization
104
Feedback
783
Blog
20
In this Discussion
DCrovâ
June 2007
yann
November 2009
Panel Categories
ithcy
mod
August 2006
edited August 2006
in
Questions
This discussion is related to the
Panel Categories
addon.
Panel Categories
Flag
Spam
Abuse
0
·
Insightful
Awesome
LOL
·
Comments
DCrovâ
June 2007
Any update on this extension-I cannot see half the categories in the list when I run this extension. Refreshing the page helped at first, but now the list has completely vanished. Any thoughts?
Flag
Spam
Abuse
0
·
Insightful
Awesome
LOL
·
yann
November 2009
http://vanillaforums.org/discussion/10231/highlight-category-in-panel./#Item_1
@ithcy
: which one would you rather I did?
Flag
Spam
Abuse
0
·
Insightful
Awesome
LOL
·
yann
November 2009
I have a patch to sort the categories alphabetically. It is attached at the bottom, hopefully it won't look horrid.
@ithcy
: I could send you the patch via email if you wanted to include it in the next release.
41,43d40
< $list = array();
< $desc = array();
< $curr = "";
61,72c58,63
< $list[$Row['Name']] = $thisURL;
< $desc[$Row['Name']] = nicetrim($Row['Description'], $MaxDescriptionLength);
< if ($CurrentCategory == $Row['CategoryID'])
< {
< $curr = $Row['Name'];
< }
< //$PanelCatNameVar = ($CurrentCategory == $Row['CategoryID'])? "PanelCatNameCurrent" : "PanelCatName";
< //$PanelCategoryList .= "\t\t\t
{$Row['Name']}
\n";
< //if ($ShowCatDescriptions)
< //{
< // $PanelCategoryList .= "\t\t\t" . nicetrim($Row['Description'], $MaxDescriptionLength) . "\n";
< //}
---
> $PanelCatNameVar = ($CurrentCategory == $Row['CategoryID'])? "PanelCatNameCurrent" : "PanelCatName";
> $PanelCategoryList .= "\t\t\t
{$Row['Name']}
\n";
> if ($ShowCatDescriptions)
> {
> $PanelCategoryList .= "\t\t\t" . nicetrim($Row['Description'], $MaxDescriptionLength) . "\n";
> }
75,85d65
< ksort($list);
< foreach ($list as $key => $value)
< {
< $PanelCatNameVar = ($key == $curr)? "PanelCatNameCurrent" : "PanelCatName";
< $PanelCategoryList .= "\t\t\t
{$key}
\n";
< if ($ShowCatDescriptions)
< {
< $PanelCategoryList .= "\t\t\t" . $desc[$key] . "\n";
< }
< }
<
Flag
Spam
Abuse
0
·
Insightful
Awesome
LOL
·
Sign In
or
Register
to comment.
Powered by Vanilla
Comments
- Spam
- Abuse
0 · Insightful Awesome LOL ·@ithcy: which one would you rather I did?
- Spam
- Abuse
0 · Insightful Awesome LOL ·@ithcy: I could send you the patch via email if you wanted to include it in the next release.
41,43d40
< $list = array();
< $desc = array();
< $curr = "";
61,72c58,63
< $list[$Row['Name']] = $thisURL;
< $desc[$Row['Name']] = nicetrim($Row['Description'], $MaxDescriptionLength);
< if ($CurrentCategory == $Row['CategoryID'])
< {
< $curr = $Row['Name'];
< }
< //$PanelCatNameVar = ($CurrentCategory == $Row['CategoryID'])? "PanelCatNameCurrent" : "PanelCatName";
< //$PanelCategoryList .= "\t\t\t{$Row['Name']}\n";
< //if ($ShowCatDescriptions)
< //{
< // $PanelCategoryList .= "\t\t\t" . nicetrim($Row['Description'], $MaxDescriptionLength) . "\n";
< //}
---
> $PanelCatNameVar = ($CurrentCategory == $Row['CategoryID'])? "PanelCatNameCurrent" : "PanelCatName";
> $PanelCategoryList .= "\t\t\t{$Row['Name']}\n";
> if ($ShowCatDescriptions)
> {
> $PanelCategoryList .= "\t\t\t" . nicetrim($Row['Description'], $MaxDescriptionLength) . "\n";
> }
75,85d65
< ksort($list);
< foreach ($list as $key => $value)
< {
< $PanelCatNameVar = ($key == $curr)? "PanelCatNameCurrent" : "PanelCatName";
< $PanelCategoryList .= "\t\t\t{$key}\n";
< if ($ShowCatDescriptions)
< {
< $PanelCategoryList .= "\t\t\t" . $desc[$key] . "\n";
< }
< }
<
- Spam
- Abuse
0 · Insightful Awesome LOL ·