Joe (erebrandir) wrote in lj_dev,
Joe
erebrandir
lj_dev

PATCHES: Revised patches for preformatted bio option

Abstract

Revised patches for a preformatted option for user bios.

Reference: lj_dev:404019

Description

These patches provide a "Don't Auto-Format"/"Preformatted" option for user bios.

Upon recommendation of bradfitz, the "preformatted" option is now stored in column has_bio of table user, rather than in a new column opt_preformatted on table userbio.

has_bio is now set to "P" if the user has a bio, and it is preformatted, "Y" if the user has a bio, and it is not preformatted, and "N" if the user has no bio. userinfo.bml and editinfo.bml now check to see if $u->{'has_bio'} ne "N", rather than $u->{'has_bio'} eq "Y". This should not affect anything, as "N" is already the default value for has_bio.

This does require, however, that column has_bio on table user be altered from an enum('Y','N') to a char(1).

Patches

livejournal/htdocs/editinfo.bml Tested
livejournal/htdocs/userinfo.bml Tested
livejournal/bin/upgrading/en.dat Tested

Patches tested locally.

Subscribe

  • SessionGenerate and ljloggedin

    Are there any information after release 86 and changes in cookies scheme to use sessiongenerate? It returns ljsession key, but this key is not enough…

  • Retrieving comments

    Hi, Is there a way to retrieve a list of comments made by user XXX (which may or may be not the currently logged in user) in the journals of users…

  • Community posts and comments

    Hi! How can I download a community posts with comments when 1) I'm the community moderator 2) I'm not the community moderator ? Thank you

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 5 comments