[ home ] [ site / arch ] [ pony / oat / anon ] [ rp / art ]

/site/ - Site Issues

The board for discussing site related issues, questions, concerns, and suggestions.
Name
Email
Subject
Comment
File
Flags
Password (For file deletion.)

Site maintenance in progress! Posts made now may be lost.

Ponychan-MLPchan Merger >>>/site/15219

File: 1357311985611.gif (212.12 KB, 150x200, 133484669756.gif)

Anonymous 5045

Mlpchan, I come to you in need of help. I know this might be a longshot but I'll post anyway. I recently set up a *chan site using Tinyboard like you did. I barely modified it and my users are okay with that, they like the simplicity. Only think they complained about was lack of settings button where they could configure thread expansion, post preview and such. I was wondering if you could help me out a bit with that, again, I know this one's pretty longshot but since the Tinyboard community is small, you're my last hope.


Regards.

Anonymous 5046

Also, sorry if I posted this on the wrong board.

Anonthony!EEEEEEEE2c 5048

File: 1357316627546.png (187.03 KB, 1000x1000, 25 - Spirit Shine - Lemon Loaf…)

You're in the right place. The code aspect isn't something I'm the right person to talk to, but the sysadmin will definitely see this. We've shared pieces of what we've modified with other sites, namely mlpg.co, and I'm sure he'd be happy to pass along some help to you too.

Anonymous 5049

>>5048
That's great! I knew this was the right place to get some help from the community. Thanks for the reply.

5078

File: 1357368442432.png (99.01 KB, 900x729, dash_on_a_cloud_by_geekywebman…)

It's not exactly my area of expertise, but I will offer my help if needed.
Most of the stuff I can do is pathetically simple, but I still offer my assistance.

Macil!/5s/Techmk 5079

https://mlpchan.net/js/ has the un-minified source of this site's javascript code.

Note that not all of those files are used (some are just untouched Tinyboard stock and left disabled), so here's the list of what's actually in use. A number of them also rely on changes in the thread templates too (mainly just the addition of the postContainer/replyContainer divs if I remember right).
'js/jquery.min.js';
'js/logger.js';
'js/default.js';
'js/settings.js';
'js/state.js';
'js/styles.js';
'js/spoiler-toggle.js';
'js/local-time.js';
'js/auto-reload.js';
'js/post-hover.js';
'js/show-op.js';
'js/show-filenames.js';
'js/inline-expanding.js';
'js/image-hover.js';
'js/smartphone-spoiler.js';
'js/show-backlinks.js';
'js/navbar.js';
'js/permalink.js';
'js/qr.js';
'js/tags.js';
'js/misc.js';
'js/titlebar.js';
'js/hide-toggle.js';
'js/post-hiding.js';
'js/watcher.js';

Well, logger.js and watcher.js aren't too useful without some of mlpchan's server-side stuff that I haven't really opened, though you can probably do without them. And most of templates/main.js has been moved to js/default.js; here is what's left in main.js: http://pastebin.com/GNFSZzij


I've been meaning to submit more of my work upstream to the Tinyboard project, though a lot of it depends on other parts including some mlpchan-specific stuff.

Anonymous 5081

>>5078
Well thanks, it's the thought that counts. :)

>>5079
Okay so I moved needed .js files to my server. How do I incorporate/enable them? Do I call for them in inc/instance-config.php?

Macil!/5s/Techmk 5082

>>5081
Yeah, they'll need to be enabled in inc/instance-config.php, and then you'll need to trigger a Rebuild in the administrator dashboard. (And then templates/post_thread.html and post_reply.html will need some edits to make the page html resemble ours more. I think it's just the addition of those container tags and a few classes on the post divs. And then I guess you'll probably just want to grab stylesheets/styles.css too from here.)

Anonymous 5084

>>5082
Mind posting the example of enabling them? I'm really clueless when it comes to javascript/php.

Macil!/5s/Techmk 5091

>>5084
The file has examples of scripts being enabled in it.

Also, I think this rough diff has the necessary changes to some templates: http://pastebin.com/undeAHwY

And you're relatively on your own with the CSS. Running a diff between ours and Tinyboard stock CSS will probably show some of the important parts.

Sorry for the very batteries-not-included help.

Anonymous 5098

>>5091
>Sorry for the very batteries-not-included help.

You have been extremely helpful. Actually only you guys from mlpchan have helped me so far. I need to repay this someday, somehow.

Anonthony!EEEEEEEE2c 5099

File: 1357490407440.jpg (127.46 KB, 700x750, 200599__UNOPT__safe_anthro_oct…)

>>5098
We're happy to help. Tinyboard is a great software, Macil's done some awesome stuff with it, and it's helped us become the largest Tinyboard-based imageboard in the world that I know of. Pointing people in the right direction of stuff is just a good thing to do.

Anonymous 5107

>>5091
Is there a way to contact you via email or something so I don't spam this board too much.

czaks!fPeniseKvI 10017

Hi, I'm not the OP, but I have browsed some google-indexed TB chans and saw your wishlist. Well, I run a tinyboard chan with most code open to the public and I have some commits that you may like. For example, an /all/ board, it's called ukko and was initially written by Riku Rouvilla, we've sorta improved it. See demo here: https://pl.vichan.net/*/

For the code, feel free to browse our commits here, on github:
https://github.com/vichan-devel/Tinyboard

It's also an installable codebase, mostly compatible with upstream.

Also, a nice catalog is now part of the upstream, written yesterday by STI.

10027

File: 1374394379580.png (239.33 KB, 890x897, fluttershy_and_angel_bunny_by_…)

>>5107
All the staff have an email listed on the front page.
macils is [email protected]

sage for old

Brodan the Bronificent!3JY/LOLITA 10046

>>5045
Singed?

Anonymous 10065

File: 1374792449128.jpg (143.77 KB, 994x803, pony_wan_kenobi_color_by_cupid…)

Also not OP here, but I did have a question on a somewhat related topic and figured I should use this thread instead of create a new one. Basically, I've used a lot of the help that was provided here and >>7877 and it's gotten me a long way in my own project… but now I've hit a dead end.

Essentially, I have qr.js working almost 100% perfectly. Right now it's a direct copy because I want to get it working completely before tailoring it to my own purposes, but any post that runs through it just gets "Connection error." I looked through the code itself and, while I'm very much a newbie at javascript, I've taught myself various other languages before and… I'm stumped. I can't find anything in the code that tells me what's going wrong. I don't know how to debug this. I admit that I'm way over my head here, but I had a friend who's a good deal more experienced with this kind of thing look at it and… nope. Also stumped. Not that they're an expert or anything, but still. I'm out of ideas here…

I've been working on it all day and now I need to head to work, so I figured I'd make a post here and see if I could get even the tiniest little clue to help me find my bug when I get home. If not, I understand, I just figured I'd ask here rather than fry my brain on this… :)

So, that said…

>pic

Macil!/5s/Techmk 10070

>>10065
post.php here replies with a JSON response when the "wantjson" parameter is posted, and qr.js relies on that. (If you use Firefox's Firebug add-on, you can watch the connection here and see what format it's expecting the response to be in.)

Here's a rough diff of what has to be changed server-side to support that: http://pastebin.com/uBR7SgkS

Anonymous 10072

>>10070
Posting from my phone at work so I can't get to my code right now, but out of curiosity, is there any way to determine context on a diff from pastebin like that? It doesn't seem to say what lines they go on or what the code between each addition is. If it's irrelevant then that's fine, I'm just afraid of throwing code in willy-nilly. :)

Regardless, thanks a million for your input. Can't wait to get home and take another crack at it now, despite having a headache over it earlier. :p

Macil!/5s/Techmk 10073

>>10072
I included some context, but not line numbers because my versions differ from upstream so the line numbers wouldn't match. It's not strictly in any diff format so you'll need to manually apply it by searching for the included context lines in your files.

Anonymous 10076

File: 1374864670748.jpg (194.08 KB, 1600x1164, 133114794046.jpg)

>>10073
First of all, thank you so much for going through all that trouble for me. It's greatly appreciated. I just now applied the changes and it got me past that connection error message, which was the most vague one for me. Now it's just a matter of me figuring out how to destroy 'your post looks automated' errors once and for all… :p

!!Littlepip 10077

>>10076
Tinyboard has some broken spam detection, so I disabled part of it and then made the QR rely on that change. Everything regarding the `antispam` table ought to be removed. For a quick fix, near the end of checkSpam() in inc/anti-bot.php, remove this part:

$query = prepare('SELECT `passed` FROM `antispam` WHERE `hash` = :hash');
$query->bindValue(':hash', $hash);
$query->execute() or error(db_error($query));
if ((($passed = $query->fetchColumn(0)) === false) || ($passed > $config['spam']['hidden_inputs_max_pass'])) {
// there was no database entry for this hash. most likely expired.
return true;
}

Anonymous 10078

File: 1374874983647.jpg (72.96 KB, 800x800, 132251544366.jpg)

>>10077
Well hopefully that made it so normal posts won't do that anymore, at least. It still seems to be doing it on the QR, but I don't really have as much time as I'd like to play with the code myself. I kind of wish I could just disable anti-bot/anti-spam all together. I don't really need anything built into the board itself…

Anonymous 10423

So I got the JSON code in place. And removed this >>10077 from the end of inc/anti-bot.php

The qr works fine till you try and post an image then it throws the you look like a bot error. Oddly enough if you use a spoiler on the image it goes through no problem. This is on tinyboard dev-12

Any ideas why this would be happening?

Anonymous 10869

>>5045
lavl

Anonymous 12951

File: 1388099923125.jpg (27.55 KB, 600x400, Prezident_Lukashenko_milliardn…)

Anonymous 13313

File: 1393520272759.jpg (51.7 KB, 331x331, 1336430602944.jpg)

I found this thread while searching somewhere with a clue on how to fix my issues. Hopefully someone will reply, I know the thread is over a year old but I'm desperate and this is the only place that has had the same issues as mine.

Basically, it's the enabling the .js scripts in the inc/instance-config.php. A post up there says that there are examples on the file itself, maybe I'm just blind, but code written in there doesn't offer me a clear example…

If anyone could help me with more clearer instructions as to how to add stuff like quick reply, auto update and the such I would be very grateful.

tertret 13339

retretretet

Anonymous 15137

>>10076
I tried, but it still shows up.

halp

also, happy 2015. :^)

Anonymous 15181

>>13313
Would be grateful for this too.

I think I enabled them fine in instance-config.php (for example, local-time.js works) but I've got no idea how to make them appear on pages.

For example, the quick reply and auto-reload don't show up on the board.


Delete Post [ ]
[ home ] [ site / arch ] [ pony / oat / anon ] [ rp / art ]