Comics and Anime Club at UVa
Chalkboard yuri is always welcome.

LulzBB (Lack of) Development Thread


CAINE Textboards > Spam
[new topic] [reply] Goto page: First Page, 5, 6, 7, 8, 9, Last Page, etc
View Previous Topic :: View Next Topic
Author Message
eckstee
Azu-nyan ponder


Joined: May 2007
Power level: 2607
No. 14072 Posted: Sep 29 2009, 15:56:01 [quick quote] [quote]

yeah, I could put a default value on the field and change my code, but I won't.  The subject is supposed to be meaningful dammit.  I don't want my inbox to be filled with PMs that all say "(no subject)".

Well, since the PM's subject was blank in the database, I changed it to "<( o_o <)" (copypasta'd out of Eureka's post)

As for the code fix, well, I don't have a PM to test it on.

Edit: tested with a saved draft, think I got it working.  Stupid small oversight on my part really, was passing the subject through PHP's strip_tags() (removes anything that looks like an HTML tag, including Kirby faces) instead of htmlentities() (just turns a few select characters into &whatever;)

Double edit: well, I put a default value on the field anyway just so if something else like this slips through in the future the subject (hopefully) won't be blank.
_________________

Twitter | Blag | MAGFest 12 - January 2-5, 2014, at the Gaylord (National Harbor, MD)!

Back to Top [profile] [pm] [www] [mal] [google] [aim]
 
eckstee
Azu-nyan ponder


Joined: May 2007
Power level: 2607
No. 14194 Posted: Oct 2 2009, 03:07:45 [quick quote] [quote]

So, small update.

Search function implemented, taking the easy way out using Google for the dirty work (Thanks for reminding me about that, China).  Maybe when I feel like learning how to do fulltext searches I'll actually write a real one that actually finds relevant results.

On the list:
  • Getting the login/logout, private messages, profile controls, search, etc. onto all pages so the links are actually usable
  • POLLS
  • Gravatar support?  Would anyone use this?  It's easy as hell to implement, but should I bother?
  • Changing user titles.  I've already written working code that does this but I need to fix issues and optimize the hell out of it.
    _________________

    Twitter | Blag | MAGFest 12 - January 2-5, 2014, at the Gaylord (National Harbor, MD)!

  • Back to Top [profile] [pm] [www] [mal] [google] [aim]
     
    eckstee
    Azu-nyan ponder


    Joined: May 2007
    Power level: 2607
    No. 15074 Posted: Oct 21 2009, 20:35:58 [quick quote] [quote]

    Quick tweaks for some things that were annoying me:
  • Clicking the thread title at the top of any page in the thread now takes you back to the beginning of the thread
  • Quick referencing another post via >>post number was kicking me off of dev
  • Deleting a single post now properly decreases the post count of the person who posted it
  • Deleting a single post now returns you to the page of the thread you were looking at rather than the first page.
  • Fixed forum and topic pagination for the Last Page link, it will no longer give you a starting offset that's not a multiple of TOPICS_PER_PAGE (15) or POSTS_PER_PAGE (also 15), respectively.
  • If the starting offset is too high (for example, if you deleted the only post on a given page) you will be shown the last page in the thread instead of a page with no posts.
  • Fixed a few incorrect statistics here and there.  Mostly just by changing stuff in the database.
  • Working on various tools to let me easily monitor statistics so I can see if they're getting messed up regularly or if it's just artifacts of previous bugs.

    Don't go haphazardly hitting delete to check things out, there's no delete confirmation and once it's gone, it's gone.  Perhaps that'll be fixed soon.
    _________________

    Twitter | Blag | MAGFest 12 - January 2-5, 2014, at the Gaylord (National Harbor, MD)!

  • Back to Top [profile] [pm] [www] [mal] [google] [aim]
     
    eckstee
    Azu-nyan ponder


    Joined: May 2007
    Power level: 2607
    No. 15083 Posted: Oct 21 2009, 23:15:36 [quick quote] [quote]

    And the latest thing I'd wanted that lulzbb never had until I wrote it: A quick link to the first unread post in a thread.

    It might behave a little strangely depending on when you last visited the forums.  The only real way to get it fixed is to read whatever's marked new and then let people post more.
    _________________

    Twitter | Blag | MAGFest 12 - January 2-5, 2014, at the Gaylord (National Harbor, MD)!

    Back to Top [profile] [pm] [www] [mal] [google] [aim]
     
    本屋
    [EX Director Honya]


    Joined: Aug 2007
    Power level: 3641
    Location: 妄想中
    No. 15086 Posted: Oct 21 2009, 23:24:54 [quick quote] [quote]

    I tried to use it but all I get is this:

    Resource specified doesn't exist.

    _________________
    Honya's MAL Card

    Back to Top [profile] [pm] [www] [mal] [aim]
     
    eckstee
    Azu-nyan ponder


    Joined: May 2007
    Power level: 2607
    No. 15088 Posted: Oct 21 2009, 23:25:55 [quick quote] [quote]

    Original post by eckstee
    It might behave a little strangely depending on when you last visited the forums.  The only real way to get it fixed is to read whatever's marked new and then let people post more.
    This is because once you view the forums your last visited time gets updated and the list of new posts is put into a cookie.  So just read the threads as normal to clear out that cookie and then it'll work.  I've been using it on all the posts made after I added it and it's working for me.
    _________________

    Twitter | Blag | MAGFest 12 - January 2-5, 2014, at the Gaylord (National Harbor, MD)!

    Back to Top [profile] [pm] [www] [mal] [google] [aim]
     
    eckstee
    Azu-nyan ponder


    Joined: May 2007
    Power level: 2607
    No. 17383 Posted: Dec 17 2009, 03:48:46 [quick quote] [quote]

    >>17369
    (Re: google account profile field)

    Not difficult to implement, but I need something to link it to if it's going to be useful.  I must admit I don't really know much about how Google's structured their stuff, it was only a few days ago when I was dicking around with my Google Wave account that I discovered that Google accounts have profiles.

    (After messing around with it some)

    Ohhh, okay...  It's kind of weird.  Google's all like "you suck because you don't want people to see your real name on the internet" so my profile isn't searchable, but...  yeah.

    It's just http://www.google.com/profiles/$USERNAME

    Implementing...

    (after implementing)

    works on dev, making it live...

    (after copying some files around)

    done.  As a bonus, there's an extra feature on the user control panel page that's now live.  If you have a MAL account defined in your profile, it'll show you a text box with your signature code to be copied/pasted anywhere in your signature.

    in before "tweak it pl0x"
    _________________

    Twitter | Blag | MAGFest 12 - January 2-5, 2014, at the Gaylord (National Harbor, MD)!

    Back to Top [profile] [pm] [www] [mal] [google] [aim]
     
    eckstee
    Azu-nyan ponder


    Joined: May 2007
    Power level: 2607
    No. 17753 Posted: Dec 29 2009, 15:26:23
    Subject: Post voting idea
    [quick quote] [quote]

    I have an idea.

    Rather than the current B& feature we have that's more or less the minority opinion of a post since only 5 people can use it, I was thinking of turning it into a thumbs up/down sort of thing as seen on YouTube and elsewhere and opening it up for everyone to use.

    Each post would display its balance, and there could be an overall balance thing on a user's profile page.  Perhaps I could stick the overall balance below the user's avatar/join date/power level/location in each post as well.

    I won't begin any work on this before or during MAGFest, so, there's time to discuss.

    Bullet points for my own later reference (and possible discussion):
  • Mod/Admin-only B& feature -> public opinion of post feature
  • would only be usable by logged-in users (so googlebot can't vote)
  • can use existing ban_count field, renaming the field would be nice but also require some code/template changes
  • Cache overall balance per-user in the user table.
  • Could call it Internets or something.

    Questions.
  • We need a method for limiting use.  For instance, YouTube only allows one vote on any given comment per day.
  • I'd probably use cookies for remembering this (lol clear your cookies to vote again!).  It does have that easy way of multi-voting but is a lot easier to implement than doing it server-side.  Correct me if I'm wrong, but I think we'd need an entirely new database table to store this crap if it were stored server-side.
  • One vote per post per 24 hour period (relative to when you last voted on the post), or one vote per post per day (resetting at midnight)?
  • Representation of the voting functions is an issue.  We seem to be sticking with text for things rather than using images (which I like, too many images makes things slow down, and using an image solely to display text is a big web design no-no).  My first instinct is something like [/\] [\/], but it could be [^] [v], [+] [-], [↑] [↓], or even [up] [down].  I like the first one, but I also like the third one.
  • How many of these things do we really want in the header of each post?
    _________________

    Twitter | Blag | MAGFest 12 - January 2-5, 2014, at the Gaylord (National Harbor, MD)!

  • Back to Top [profile] [pm] [www] [mal] [google] [aim]
     
    Burt
    whoa hello there

    Joined: Jun 2007
    Power level: 2924
    No. 17754 Posted: Dec 29 2009, 16:31:40 [quick quote] [quote]

    I have implementation suggestions, will post later.

    Back to Top [profile] [pm] [www] [mal] [aim]
     
    eckstee
    Azu-nyan ponder


    Joined: May 2007
    Power level: 2607
    No. 17757 Posted: Dec 30 2009, 03:50:54 [quick quote] [quote]

    inb4 jquery
    _________________

    Twitter | Blag | MAGFest 12 - January 2-5, 2014, at the Gaylord (National Harbor, MD)!

    Back to Top [profile] [pm] [www] [mal] [google] [aim]
     
    Burt
    whoa hello there

    Joined: Jun 2007
    Power level: 2924
    No. 17758 Posted: Dec 30 2009, 08:23:44 [quick quote] [quote]

    jquery rox

    Back to Top [profile] [pm] [www] [mal] [aim]
     
    Aorii
    I post in alt.total-loser


    Joined: Aug 2007
    Power level: 1893
    Location: Veni, Vidi, Nates Calce Concidi
    No. 18599 Posted: Jan 29 2010, 10:05:44 [quick quote] [quote]

    so somehow when I tried to delete/repost (added wrong pic) in the Tales of thread the entire thread vanished....

    not to mention doing something strange -->

    might want to look into the database on this.
    _________________
    "Allow me to warn you that challenging my ingenuity is a dangerous sort of project, and may tend to make your life a lot more surreal."
    "You crazy bastard! I'm gonna treat you like shit until you reveal your true form!!!"

    Back to Top [profile] [pm] [www] [mal] [google] [aim]
     
    Mr. Universe
    Move Zig!


    Joined: Sep 2008
    Power level: 1073
    No. 18603 Posted: Jan 29 2010, 10:23:36 [quick quote] [quote]

    The thread does still exist, though.  Last page.

    Back to Top [profile] [pm] [mal]
     
    Aorii
    I post in alt.total-loser


    Joined: Aug 2007
    Power level: 1893
    Location: Veni, Vidi, Nates Calce Concidi
    No. 18607 Posted: Jan 29 2010, 10:45:34 [quick quote] [quote]

    well, now that we know what DID happen to it.

    still shouldn't do that, mind...
    _________________
    "Allow me to warn you that challenging my ingenuity is a dangerous sort of project, and may tend to make your life a lot more surreal."
    "You crazy bastard! I'm gonna treat you like shit until you reveal your true form!!!"

    Back to Top [profile] [pm] [www] [mal] [google] [aim]
     
    本屋
    [EX Director Honya]


    Joined: Aug 2007
    Power level: 3641
    Location: 妄想中
    No. 18608 Posted: Jan 29 2010, 10:45:45 [quick quote] [quote]

    Okay, here's a request. Let's try to fix the front page so it's more accessible. I don't know how yet but we should think about it.
    _________________
    Honya's MAL Card

    Back to Top [profile] [pm] [www] [mal] [aim]
     
    You cannot reply because you are not logged in.
     
    [new topic] [reply] CAINE Textboards > Spam GMT - 5 Hours is where it's at
    Goto page: First Page, 5, 6, 7, 8, 9, Last Page, etc

    Powered by lulzbb © 2008 by Hark
    Maintained by XT-8147
    Although this organization has members who are University of Virginia students and may have University employees associated or engaged in its activities and affairs, the organization is not a part of or an agency of the University.  It is a separate and independent organization which is responsible for and manages its own activities and affairs.  The University does not direct, supervise or control the organization and is not responsible for the organization’s contracts, acts or omissions.