GithubHelp home page GithubHelp logo

xkeeper0 / jul Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 12.0 5.46 MB

jul - maintenance upgrades to a forum system from 2001

Home Page: http://jul.rustedlogic.net

PHP 97.98% JavaScript 0.82% CSS 0.78% HTML 0.42%

jul's People

Contributors

arisotura avatar devinacker avatar kak2x avatar kscl avatar ranawaysuccessfully avatar sanqui avatar xkeeper0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jul's Issues

Two-step quick mod options

Using the checkbox trick to show/hide a "confirm" link for sticking/closing/trashing a thread would make it more difficult to accidentally trigger these by fat-fingering the screen (or links).

Allow automated password recovery

Right now, the only mechanism to get an account recovered is to email me directly, and that sucks.

It also requires you to attempt logging in 5 times, which... IP bans you with the message about recovery. This is really awful.

Forum encoding

Currently the forum encoding is (nothing at all), which means that everyone's browser tries to guess and usually fucks up. Changing it would be easy, except for the part where all the old text is in the database and setting a meta-tag for UTF8 would break all the old shit. Oops.

Need to look into converting the db assets at some point.

ikachan has no z-index

Ikachan, the greatest excuse for a major bugfix, is lacking a z-index now. Formerly he would appear above most post layouts but now apparently likes to sneak in behind them, making him disappear.

Mostly silly really, but still something that at some point may want to be corrected.

Removal of hacks for alternate host

There's a bunch of x_hacks['host'] that were added long ago to support running the code in two "modes". This is no longer relevant so it's time to get rid of most of them...

linebreaks inside <style> and <pre> tags

The website automatically places <br> tags inside these tags just like anywhere else. <pre> tags currently have a fix which works I guess, but <style> tags actually need to have an exception added somewhere in the code.

Otherwise, custom layouts can't have linebreaks in them (.ran_s3_post becomes <br> .ran_s3_post) unless they use an @import tag to import a .css file.

Filter bypass -> Javascript injection

Since dofilters() in lib/functions.php executes its filters in order, only once, it's possible to use some later filters to bypass earlier ones, e.g.:

<scrautoplayipt>alert("Javascript injection!")</scrautoplayipt>

%BZZZ% also makes it possible to inject syntactically script, though there may not be any way to make it execute since it will always begin with a call to a nonexistent function.

meta description is always the OP

For links that link directly to a specific post (like, uh, new replies or the "link" tool) it should probably use the actual post in question

of course some work will need to be done to make sure it doesn't give away posts that you shouldn't be able to see

hidden password field getting filled in by autocomplete

new thread/new reply has a hidden password field in the event someone wants to use an alternate account. this feature can probably be stripped, or if nothing else make the password field only added in the event that someone chooses to do so.

right now it causes autocomplete to fill it in, which makes auth fail (no username specified) and gives an unhelpful "unauthorized to post" message

Forums Management

As far as I can tell the only current way to manage forums and categories involves direct MySQL access, so I ported over a management page I wrote along with the two support files. You can add, remove, or edit categories and forums, as well as manage local moderators.

http://sukasa.kicks-ass.org/manageforums_port.zip

dropdown/input to go to page N

Instead of having: Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 instead we could have either of these two solutions (or any variation thereof).

On the left is the way SMWC is doing it, by having a dropdown to go to a specific page, and on the right is my/your suggestion from a year ago.

Post edits

Currently saved very ugly as strings fully dependent on the editor's current name and timezone settings:
$edited =" (last edited by $loguser[name] at ".date("m-d-y h:i A",ctime()).")";
Fix this. Two new columns for posts (timestamp, editor) would suffice, but we could implement edit history too, sure.

replace mysql with pdo

Right now there is a mixture of raw mysql_...() commands and commands run through a mysql pseudo-class. these should be replaced with a pdo-based class (and queries redone to use prepared statements).

faq updates

the faq is a bit outdated and a little weird so this is an issue to update it, finally

no css font fallbacks

Right now, the only fonts specified are Verdana and Tahoma (maybe on a per-scheme basis?); there should be adequate fallbacks, even if it's just to sans-serif, because right now the browser can and will fall back to Ugly Serif Garbage.

Setting custom date formats

A date format is already set in layout (and overwritten somewhere too), but apparently changing it messes some things up:
$dateformat='m-d-y h:i:s A';
$dateshort='m-d-y';
Ideally it should be user-configurable, which would require a new column in the database.

A few characters don't work correctly in polls.

There are a few characters that act weird when creating a poll. Specifically:

\ ' " will create another \ character before it in the "Question:" and "Briefing:" boxes (appearing as \ ' and ").

& " < > will get replaced by &amp ; &quot ; &lt ; &gt ; respectively (without the spaces). It seems like it is replacing a few HTML characters with their entities, but not all of them (รฉ is not replaced by anything).

I don't know if I am doing this right.

"Use of undefined constant" - i.e., unquoted array keys

Warning: Use of undefined constant xxxxx - assumed 'xxxxx' (this will throw an Error in a future version of PHP) in [...]

These are everywhere... ๐Ÿ˜‘ Most have been fixed but there's still a bunch laying around.

&mood&

A tag for the post mood number. Would enable layouts with pictures or colors changing according to the post mood, not just the avatar.

I remember trying to do it myself years ago and having some issues, but it should be possible. Note that it needs to update when you edit the post.

dateformat issues in edituser.php

https://github.com/Xkeeper0/jul/blob/develop/edituser.php#L186

It's extremely likely that when you're using edituser.php, you're editing a user that isn't yourself. However, using $dateformat here will stick your date formatting in the fields instead of theirs, which obviously shouldn't happen.

Additionally, the box for the shortened date format uses dateformat too instead of dateshort, which means that field contains the wrong data from the wrong user; double whammy there. =p

Broken HTML layout in thread

Seen on: https://jul.rustedlogic.net/thread.php?id=18227&page=3

The first three posts on the page have no wrapping div. Also, there's no identifying class name on the post body - ideally, the div would have class=post.

<table width="100%">...title...</table>
<table width="100%">...pages...</table>
<div style="position:relative">
	</div>
<table class="table" cellspacing="0">post</table>
<table class="table" cellspacing="0">post</table>
<table class="table" cellspacing="0">post</table>
<div style="position:relative"><table class="table" cellspacing="0">post</table></div>
<div style="position:relative"><table class="table" cellspacing="0">post</table></div>
<div style="position:relative"><table class="table" cellspacing="0">post</table></div>

Theme "Hydra's Blue Thing (V2)" resets custom date format

The theme "Hydra's Blue Thing (V2)" will reset a user's custom date format (in the Edit Profile page) to "m-d-y h:i" and your custom short date format to "m-d-y", and it also won't allow you to change it.

The only way to change the custom date format back is to switch to another theme.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.