Permalink
Browse files

Default weight of 10 for newly added topics.

  • Loading branch information...
jamiemccarthy committed Jul 14, 2004
1 parent 9ea8482 commit 01d638bff46bc60b0239d0ee4395d253ba617247
Showing with 5 additions and 1 deletion.
  1. +1 −0 plugins/Admin/dump
  2. +1 −1 plugins/Admin/topic_tree_draw.pl
  3. +3 −0 sql/mysql/upgrades
View
@@ -35,6 +35,7 @@ INSERT INTO vars (name, value, description) VALUES ('similarstorydays', '30', 'N
INSERT INTO vars (name, value, description) VALUES ('similarstorymaxwords', '30', 'Maximum number of top-weighted scores to search for in previous stories');
INSERT INTO vars (name, value, description) VALUES ('similarstoryminweight', '4', 'Minimum weight necessary for a story to be displayed as similar');
INSERT INTO vars (name, value, description) VALUES ('similarstorynumshow', '5', 'Maximum number of similar stories to show in admin preview');
+INSERT INTO vars (name, value, description) VALUES ('topic_popup_defaultweight', '10', 'Default weight for new topics in the popup menu (should probably match default for topic_parents.min_weight)');
INSERT INTO vars (name, value, description) VALUES ('topic_tree_draw', '1', 'Draw the images/topic_tree.png?');
INSERT INTO vars (name, value, description) VALUES ('topic_tree_draw_fontname', 'freefont/FreeMono', 'Name of font used for labels in the topic tree');
INSERT INTO vars (name, value, description) VALUES ('topic_tree_draw_fontsize', '10', 'Size of font used for labels in the topic tree');
@@ -82,7 +82,7 @@
);
for my $ctid ( @{$topic->{children}} ) {
$g->add_edge($tid, $ctid,
- style => $topic->{child}{$ctid} >= 3 ? "dashed" : "solid",
+ style => $topic->{child}{$ctid} >= 30 ? "dashed" : "solid",
color => $hsv[ ($tid+$ctid) % @hsv ],
);
}
View
@@ -2402,3 +2402,6 @@ UPDATE topic_parents SET min_weight = min_weight * 10 WHERE min_weight <
UPDATE story_topics_chosen SET weight = weight * 10 WHERE weight < 10;
UPDATE story_topics_rendered SET weight = weight * 10 WHERE weight < 10;
+# Changes for plugins/Admin (which you are almost certainly using)
+INSERT INTO vars (name, value, description) VALUES ('topic_popup_defaultweight', '10', 'Default weight for new topics in the popup menu (should probably match default for topic_parents.min_weight)');
+

0 comments on commit 01d638b

Please sign in to comment.