[interchange-cvs] interchange - heins modified 4 files
interchange-core@icdevgroup.org
interchange-core@icdevgroup.org
Sat Oct 5 22:56:01 2002
User: heins
Date: 2002-10-06 02:55:50 GMT
Modified: . MANIFEST
Modified: code/UserTag forum.tag
Modified: dist/foundation/pages/forum reply.html submit.html
Log:
* Add DBM definition for forum, but keep disabled. Tested, works
at least minimally on DBM. God help the person who puts up a
DBM forum, though. They better hope it is not popular....
* Allow changeable date format for {DATE} key in forum templates.
Revision Changes Path
2.68 +1 -0 interchange/MANIFEST
rev 2.68, prev_rev 2.67
Index: MANIFEST
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /var/cvs/interchange/MANIFEST,v
retrieving revision 2.67
retrieving revision 2.68
diff -u -r2.67 -r2.68
--- MANIFEST 6 Oct 2002 01:37:42 -0000 2.67
+++ MANIFEST 6 Oct 2002 02:55:50 -0000 2.68
@@ -268,6 +268,7 @@
dist/foundation/dbconf/default_db/component.dbm
dist/foundation/dbconf/default_db/country.dbm
dist/foundation/dbconf/default_db/default_db.cfg
+dist/foundation/dbconf/default_db/forum.dbm
dist/foundation/dbconf/default_db/gift_certs.dbm
dist/foundation/dbconf/default_db/inventory.dbm
dist/foundation/dbconf/default_db/locale.dbm
1.2 +3 -2 interchange/code/UserTag/forum.tag
rev 1.2, prev_rev 1.1
Index: forum.tag
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /var/cvs/interchange/code/UserTag/forum.tag,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- forum.tag 6 Oct 2002 01:37:42 -0000 1.1
+++ forum.tag 6 Oct 2002 02:55:50 -0000 1.2
@@ -83,7 +83,7 @@
<A HREF=3D"{DISPLAY_URL}">$opt->{threshold_message}</a>
EOF
=20
- $tpl ||=3D <<EOF;
+ $tpl ||=3D $opt->{template} || <<EOF;
<table cellspacing=3D0 cellpadding=3D2>
<tr>
<td class=3Dcontentbar1>
@@ -121,6 +121,7 @@
$opt->{reply_page} ||=3D 'forum/reply';
$opt->{submit_page} ||=3D 'forum/submit';
$opt->{display_page} ||=3D $Global::Variable->{MV_PAGE};
+ $opt->{date_format} ||=3D '%B %e, %Y @%H:%M';
my $menu_row =3D sub {
shift;
my $row =3D shift;
@@ -146,7 +147,7 @@
});
$row->{userinfo} =3D $Tag->forum_userlink($row);
$row->{date} =3D $Tag->convert_date({
- fmt =3D> '%B %e, %Y @%H:%M',
+ fmt =3D> $opt->{date_format},
body =3D> $row->{created},
});
my $lev =3D $row->{mv_level};
1.2 +1 -1 interchange/dist/foundation/pages/forum/reply.html
rev 1.2, prev_rev 1.1
Index: reply.html
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /var/cvs/interchange/dist/foundation/pages/forum/reply.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- reply.html 6 Oct 2002 01:37:42 -0000 1.1
+++ reply.html 6 Oct 2002 02:55:50 -0000 1.2
@@ -3,6 +3,7 @@
ui_template_name: leftonly
[/comment]
=20
+[flag type=3Dwrite table=3Dforum]
[tmp page_title]Reply to [data table=3Dforum col=3Dsubject key=3D"[data se=
ssion arg]"][/tmp]
=20
[control reset=3D1]
@@ -28,7 +29,6 @@
@_LEFTONLY_TOP_@
=20
[if cgi product]
- [flag type=3Dwrite table=3Dforum]
[if type=3D!data term=3D"forum:code:[data session arg]"]
[perl tables=3D"forum products"]
my $db =3D $Db{forum};
1.2 +1 -0 interchange/dist/foundation/pages/forum/submit.html
rev 1.2, prev_rev 1.1
Index: submit.html
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /var/cvs/interchange/dist/foundation/pages/forum/submit.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- submit.html 6 Oct 2002 01:37:42 -0000 1.1
+++ submit.html 6 Oct 2002 02:55:50 -0000 1.2
@@ -3,6 +3,7 @@
ui_template_name: leftonly
[/comment]
=20
+[flag type=3Dwrite table=3Dforum]
[tmp page_title]Submit a forum story[/tmp]
=20
[control reset=3D1]