#84 recent topics update

closed-accepted
5
2002-06-20
2002-05-17
shane
No

This updates the set_recent_topics task to

1. use a template to generate the icons at the top
setrecenttopicstop;misc;default
2. generate a 'recent topics' slashbox that is
generated from a template.
setrecenttopicsblock;misc;default
3. the sql needs the sql below appended to it.

This was written and tested with FRY using today's
current FRY from cvs and a fresh install of a
slashsite.

--------SQL:
INSERT INTO blocks (bid, block, seclev, type,
description, section, ordernum, title, portal, url,
rdf, retrieve) VALUES ('recenttopics',
'none yet',500,'static','Recent
Topics','index',1,'Recent Topics',1,'',NULL,0);

--------TEMPLATE#1:
__section__
default
__description__
Icons that make up the top of the page recent topic
list

Passed the list of recent topics
__title__

__page__
misc
__lang__
en_US
__name__
setrecenttopicstop
__template__
[% USE Slash %]

<TD><A HREF="$constants->{rootdir}/search.pl?topic=[%
id %]"><IMG
SRC="[% image %]"
WIDTH="[% width %]" HEIGHT="[% height
%]"
BORDER="0" ALT="[% alttext %]"></A>
</TD>

__seclev__
10000

--------TEMPLATE#2:
__section__
default
__description__
Icons that make up the top of the page recent topic
list

Passed the list of recent topics
__title__

__page__
misc
__lang__
en_US
__name__
setrecenttopicsblock
__template__

<A HREF="$constants->{rootdir}/search.pl?topic=[% id
%]">[% name %]</A><BR>
__seclev__
10000

Discussion

  • shane
    shane
    2002-05-17

    Logged In: YES
    user_id=52587

    Sorry about the double-upload. Please delete
    "set_recent_topics_patchfile.txt". Please keep
    "set_recent_topics_patchfile.txt" as it is a diff -u, in
    accordance with slash-style on slashcode.

     
  • shane
    shane
    2002-05-17

    Logged In: YES
    user_id=52587

    ok, today's not my day. that's keep
    "set_recent_topics_patchfile_diffud.txt"

     
  • shane
    shane
    2002-05-17

    Logged In: YES
    user_id=52587

    Here's an all-inclusive file. Apply to
    {frycheckoutdir}/themes. made with:

    diff -N -U3 -xCVS -
    r /tmp/slash/themes/slashcode /usr/local/src/slash/fry/slas
    h/themes/slashcode

     
  • shane
    shane
    2002-05-17

    Contains entire diff for SQL,templates and script

     
  • Jamie McCarthy
    Jamie McCarthy
    2002-05-17

    Logged In: YES
    user_id=3889

    Deleting old attachments per tf23's request

     
  • shane
    shane
    2002-05-17

    Logged In: YES
    user_id=52587

    sorry jamie - this fixes the template names being wrong in
    the template files themselves, and the incorrect
    $constants instead of [% constants. tested it on
    http://fry.lottadot.com/ all seems OK. apply to
    {fry}/themes/slashcode

     
  • shane
    shane
    2002-05-17

    tested on

     
  • Jamie McCarthy
    Jamie McCarthy
    2002-06-20

    • labels: 310623 --> Development branch
    • assigned_to: nobody --> jamiemccarthy
    • status: open --> closed-accepted
     
  • Jamie McCarthy
    Jamie McCarthy
    2002-06-20

    Logged In: YES
    user_id=3889

    This was accepted and applied with minor changes to CVS. Thanks.