[Burichan]  [Futaba]  [Kusabax]  -  [WT]  [Home] [Manage]

Subject   (new thread)
File []
Password  (for post and file deletion)
  • Supported file types are:
  • Maximum file size allowed is 1000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • Currently 1114 unique user posts. View catalog

File 139240677440.jpg - (577.07KB , 1675x1200 , ohwin.jpg )
60406 No. 60406 hide watch expand quickreply [Reply]
double posting test
9 posts and 1 image omitted. Click Reply to view.
>> No. 60416
I solved the problem in the following way:
open the file posting.class.php and find the function: CheckReplyTime() and bring to a form:

function CheckReplyTime() {
global $tc_db, $board_class;

/* Get the timestamp of the last time a new thread was made by this IP address */
$result = $tc_db->GetOne("SELECT MAX(timestamp) FROM `posts` WHERE `boardid` = " . $board_class->board['id'] . " AND `parentid` != 0 AND `ipmd5` = '" . md5($_SERVER['REMOTE_ADDR']) . "' AND `timestamp` > " . (time() - KU_REPLYDELAY));
/* If they have posted before and it was recorded... */
if (isset($result)) {
/* If the time was shorter than the minimum time distance */
if (time() - $result <= KU_REPLYDELAY) {
exitWithErrorPage(_gettext('Your error text.'), _gettext('Your error text2.'));
Message too long. Click here to view the full text.
>> No. 60429
File 139322062611.jpg - (74.16KB , 300x462 , 126058728259.jpg )
I modified two things in the code and it worked fine here.
("$results" to "$result" and "GetAll" to "GetOne")

>> No. 60443
Probably the OP just want to double posting the same text, not limit the time of posting (that you can edit in config.php)

File 139327362782.jpg - (196.54KB , 1345x556 , Безымянный.jpg )
60430 No. 60430 hide watch expand quickreply [Reply]
How to disable loading identical pictures?
1 post and 1 image omitted. Click Reply to view.
>> No. 60432
Оп, уже раскомментирована. Сейчас напишу.
Какой-то он поехавший, а что у тебя за борда?
>> No. 60433
>> No. 60438
Thanks, dude.

File 139361385414.jpg - (7.48KB , 480x360 , Gracie_films.jpg )
60435 No. 60435 hide watch quickreply [Reply]
How can i change my imageboard's font?
>> No. 60436
learning html and css
>> No. 60437
No i don't mean to learn HTML and CSS.

File 139322026829.jpg - (72.79KB , 400x388 , 1383114998606.jpg )
60428 No. 60428 hide watch quickreply [Reply]
Whenever I try and install through install-mysql.php

I get these errors:
Warning: require(config.php): failed to open stream: No such file or directory in /home/kchanx10/public_html/install-mysql.php on line 69

Warning: require(config.php): failed to open stream: No such file or directory in /home/kchanx10/public_html/install-mysql.php on line 69

Fatal error: require(): Failed opening required 'config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kchanx10/public_html/install-mysql.php on line 69

I tried just using install.php but that just says it can't find config.php either.

File 134980088563.gif - (8.63KB , 49x49 , awesome dance.gif )
58204 No. 58204 hide watch expand quickreply [Reply]

How to make GIF thumbnails play automatically?
17 posts omitted. Click Reply to view.
>> No. 59338
> and most of the time they are scrambled
Hey, Jimmy, could you please to tell if this scramble goes from Kusaba X or ImageMagick?
>> No. 59344
File 136382257333.gif - (444.61KB , 720x300 , basic3.gif )
its a bit of both
*TL;DR, go to bottom of post for fix*

Kusaba calls imagemagick as default, with no options but the needed ones,
the scrambling is with imagemagick and the way it handles some gifs,
(gifs are made from lots of still images, *moreyouknow*)

compressed gifs start with the first image, then on the next frame it contains only changed pixels, overlapped on the first image, then the third is overlapped on the second, that's on the first image, ETC

when it is thumbnailed, this kind of gifs mess up, often ending in scrambled gifs(*artifacts*, see attached image, the more a image moves, the more if fucks up)

with imagemagick, there is a way to fix this with a flag, although it will increase the time it takes to thumbnail the image,
the way this flag works is by making imagemagick draw the first frame, then for the second it draws the first and second(then saves it), then the third it uses the second from memory to be used, along with the third image, to produce another frame.
so with this flag, it will have to process every image 3 times.
Message too long. Click here to view the full text.
>> No. 60427
<a href=http://www.wickman-group.com/docs/#aw4d>xanax 2mg</a> xanax side effects zoloft - xanax pills identification

File 139278054877.png - (25.26KB , 403x414 , 13011916606.png )
60421 No. 60421 hide watch expand quickreply [Reply]
Well I'm getting very heavy traffic in my board now and my hosting keeps locking me down because of it. They asked me if I could try adding some sort of caching mechanism, where the script does not need to generate a new page with every request so helps to lower the over load that a script will cause. I have no idea how to do this and I'm pretty much left with no choice but to close down everything until I resolve this. Halp?
1 post omitted. Click Reply to view.
>> No. 60424
tell your host this:

"HERP DERP DERP, the software comes with a cache enabled with no way to disable it, its one of the features of the software, when browsing it serves up static html pages."

your host (if they are a good host) will have a page where you can see your most frequently visited pages, post the top 5 here and i might be able to help :)
>> No. 60425
You can add caching directives to .htaccess as well... see the html5 boilerplate on github.

With Kusaba you shouldn't need it though. Maybe caching images would help.
>> No. 60426
Rent a VPS, DigitalOcean is great and cheap enough, Kusaba was not made to run on a shared host for much time because its generates thousand of HTML files after each post, and this is inefetive as hell, disk write is very expensive for any software.

File 139264677161.png - (673.04KB , 591x545 )
60418 No. 60418 hide watch quickreply [Reply]
has anyone ever figured out how to make images expand when you click them instead of when you click the filename link?
>> No. 60419
It's done from the templates.
>> No. 60420
Replace all in img_board_page.tpl: (the are 5 occurances)

href="{$file_path}/src/{$post.file}.{$post.file_type}" onclick="javascript:expandimg('{$post.id}', '{$file_path}/src/{$post.file}.{$post.file_type}', '{$file_path}/thumb/{$post.file}s.{$post.file_type}', '{$post.image_w}', '{$post.image_h}', '{$post.thumb_w}', '{$post.thumb_h}');return false;">

Add following function to kusaba.js
function expandimg(PN, H, F, C, G, E, A) {
element = document.getElementById("thumb" + PN);
var D = '<img src="' + F + '" alt="' + PN + '" class="thumb" width="' + E + '" height="' + A + '">';
var J = '<img src="' + F + '" alt="' + PN + '" class="thumb" height="' + A + '" width="' + E + '">';
var K = '<img src="' + F + '" alt="' + PN + '" class="thumb" height="' + A + '" width="' + E + '"/>';
Message too long. Click here to view the full text.

File 135874888156.jpg - (87.13KB , 600x800 , 135732373530.jpg )
58955 No. 58955 hide watch expand quickreply [Reply]
I want to add to news.php this:
"Number of posts in the last 24 hours: XXX"
Is there any simple way to get the number of posts in the last 24 hours pasting some code?
Thank you for your help!
23 posts and 1 image omitted. Click Reply to view.
>> No. 59216
I'm not the OP, but I'm interessed in the code.
Is there a way to show the posts done in each board?
For example, ONLY the posts done in /b/ in the last 24 hours.
>> No. 60405
<a href=http://mccallwilder.com/new/#2u0>Going Here</a> valium green pill 477 - valium prescription drug
>> No. 60417

File 139109133131.jpg - (233.37KB , 1920x1080 , maxresdefault.jpg )
60381 No. 60381 hide watch expand quickreply [Reply]
Hello @ all

I have been wondering how to implement an image hover full screen on mouse-over (like 4chan)?

Any ideas?
5 posts omitted. Click Reply to view.
>> No. 60394
UPDATE for the template file:
href="{$file_path}/src/{$post.file}.{$post.file_type}" onmouseout="javascript:imgshrink();return false;" onmouseover= "javascript:imghover('{$post.id}','{$file_path}/src/{$post.file}.{$post.file_type}', '{$post.image_w}', '{$post.image_h}');return false;" onclick="javascript:expandimg('{$post.id}', '{$file_path}/src/{$post.file}.{$post.file_type}', '{$file_path}/thumb/{$post.file}s.{$post.file_type}', '{$post.image_w}', '{$post.image_h}', '{$post.thumb_w}', '{$post.thumb_h}');return false;">
>> No. 60396
I just tried your code but the image that's supposed to be "hovered" just appears on the bottom of the page under the board list. How could I fix that?
>> No. 60404
Sorry I forgot the CSS:

max-width: 100%;
/*max-height: 100%;*/

File 137839553411.jpg - (3.20KB , 358x23 )
60006 No. 60006 hide watch expand quickreply [Reply]
There's some way I can make boards with new posts appears in navbar with bold?

Pic related: /b/, /am/ and /jo/ has new posts, so they're with bold text.
3 posts omitted. Click Reply to view.
>> No. 60183
>> No. 60379
>> No. 60402
quite easy to do.. Edit the templates you'll have to add some stuff to board-post.class btw (header function)

File 139168396539.jpg - (27.29KB , 450x338 , uFpcXCvdegA.jpg )
60395 No. 60395 hide watch quickreply [Reply]
I put the userscript for imageboard, and this stopped working delete posts and reports.
Userscript - http://userscripts.org/scripts/version/157754/615348.user.js
Probably the case in the script, but it may be possible to change the names in the form, for example?

File 138525198344.png - (2.00KB , 321x47 )
60195 No. 60195 hide watch quickreply [Reply]
How long till threads that are marked for deletion, are automatically deleted?
>> No. 60200
How do I set 'recent posts' not to expire?
>> No. 60350
>How do I set 'recent posts' not to expire?

I need this too
>> No. 60382
go to board options and set "mark page" one page more than "maximum board pages"

File 135480859262.png - (243.54KB , 600x600 , patch.png )
58562 No. 58562 hide watch expand quickreply [Reply]
Just got spammed by some russians how can i wipe all the boards?
13 posts omitted. Click Reply to view.
>> No. 58585
email me info to this if you dont mind :)
>> No. 58652
I trust my source on this but i'm trying to get a working exploit together to send you, so if I can I will eventually.

If not, umm, it's still a shit captcha.
>> No. 58653
File 135597095644.png - (249.13KB , 1360x9634 , kusabacaptcha.png )
wow. that worked even better than expected.

File 139062161528.jpg - (167.24KB , 500x423 , 1388098720444.jpg )
60356 No. 60356 hide watch quickreply [Reply]
How to make a search for threads/posts for users?
>> No. 60361

File 13904672002.png - (266.08KB , 553x399 , 1390415323299.png )
60343 No. 60343 hide watch quickreply [Reply]
>> No. 60370

File 136034808476.jpg - (59.11KB , 355x500 , V_for_Vendetta_by_EzraShadowstorm.jpg )
59105 No. 59105 hide watch expand quickreply [Reply]
How to add automatic update in threads (when you are inside a thread)? I have a board with medium/high activity and this would be interesting... thank you.
17 posts and 2 images omitted. Click Reply to view.
>> No. 60312
fixed, my css had some fixed width in the body that was fucking shit up
>> No. 60325
>> No. 60337

File 138387772436.jpg - (401.88KB , 1280x2880 , 137722111098.jpg )
60177 No. 60177 hide watch expand quickreply [Reply]
I'm having a problem with posting delay.
I've set x time as delay between posts, but the user can post before that timer expire without a problem, even tough if the user make a new thread, the thread creation delay works with both new threads and new replies, but reply to reply and reply to new thread delays don't seem to work at all.
4 posts omitted. Click Reply to view.
>> No. 60318
jmyeom's svn fix:
>> No. 60323
There is a simpler solution?
>> No. 60336
In SVN-version this problem is also present. Please help me! How to remove this bug?

File 139022584588.png - (21.72KB , 1044x706 , Screenshot-1.png )
60334 No. 60334 hide watch quickreply [Reply]
Just installed, how do I get the sidebar and main page to have a style
>> No. 60362
looks like you screwed up something in config.php, your paths are incorrect.

File 139001436144.jpg - (175.16KB , 600x449 , Time for 4-chan.jpg )
60329 No. 60329 hide watch quickreply [Reply]
How to disable captcha for admin/mod/janitor?
>> No. 60330
Where the code does the validation for the captcha, add code which checks if they're logged in and skips it if they are.

File 138927619819.gif - (69.48KB , 300x100 , banned.gif )
60321 No. 60321 hide watch quickreply [Reply]
Can somebody give me a quick idea of how to make a 4chan-esque "Post Successful!" screen with Kusaba X?
I know basic php.
>> No. 60327
my svn fix,
>> No. 60328

File 137466867235.jpg - (4.85KB , 284x177 , images (2).jpg )
59933 No. 59933 hide watch expand quickreply [Reply]
I know that the catalog page can be edited on board-post.class.php.
My question is, I want to show a little extract of the thread text, not only the image. Do you know how can I do this? Thanks.
22 posts and 2 images omitted. Click Reply to view.
>> No. 60302
Wow, thank you! I'll try it. I'll tell you if it went well.
>> No. 60303
10/10! It worked perfectly.
Could you take a look into this?: >>60266
There are some Kusaba Imageboards with the quick reply feature but I don't know how to install it. Thank you.
>> No. 60322
does anyone know how to limit the number of columns?

File 138837802157.jpg - (45.17KB , 600x600 , 13878325091.jpg )
60301 No. 60301 hide watch quickreply [Reply]
Niggaz how do I add a memory limit to Kusaba like WordPress does?
>> No. 60319
google "php memory limit"

File 138901910524.jpg - (10.28KB , 480x360 , 1509128_10201137558710094_1894709497_n.jpg )
60314 No. 60314 hide watch quickreply [Reply]
I've got a pretty fresh install of kusaba x on my webserver and am having a bit of a problem.

Every board I enable embedding on, requires that a user must fill in an embed ID when they post.

As it is right now, I've had to disable embedding on all my boards so people are able to post without linking a video.

Is there a way to have embedding enabled while not requiring a embed ID be given for every post?
>> No. 60317
yeah, you fucked something up. you normally are not required to embed.

first thing i would check would be board options.

File 138911968372.jpg - (33.83KB , 950x534 , google_.jpg )
60316 No. 60316 hide watch quickreply [Reply]
Just wondering if anyone's had experience with making their Kusaba X installations more SEO friendly. Making more readable URLs like chan.com/boardname/topicslug, having topic text automatically added in <meta> tags for each page, etc.
>> No. 60324
The url slug might be difficult since not every thread would have a topic, but the most common way of doing this for other applications uses url routing, assigning a path as part of a regex which matches, say url '/board/post/[\w]+' (or whatever) to a closure which does the necessary work.

The meta tags (and open graph tags, etc) could probably be added through the templates without much problem, though off the top of my head I don't know whether the message content itself would be in scope when the head templates are compiled or not.

tl;dr - meta tags probably, slugs probably not.

File 138867812174.jpg - (61.84KB , 640x480 , RrRbx.jpg )
60307 No. 60307 hide watch quickreply [Reply]
Is it possible to add a feature where I can format links like you can on reddit?

On reddit you can type "[reddit!](http://reddit.com") and get "reddit!" as a link

Can I do this on kusabax?
>> No. 60309
it's called markdown, and yes it's possible.
>> No. 60310
how do you do it?
>> No. 60363
= find a markdown library (there are tons)
= replace the bbcode parser in kusaba x with it
= profit

File 138777894627.jpg - (101.51KB , 593x441 , help.jpg )
60286 No. 60286 hide watch expand quickreply [Reply]
How to use Kusaba X without access to /tmp dir?
2 posts omitted. Click Reply to view.
>> No. 60291
Search and replace all instances of /tmp in the PHP source with something like /home/uXXXXXX/tmp. You can even do it on the command-line with grep/sed probably.
>> No. 60294
Never mind, I don't think this would actually work. I'll look at the upload functions later and see how to do this
>> No. 60295
> find -name '*.php' -exec sed '/s/regex/{/tmp/}/temp/g' \;

File 138617441481.jpg - (19.69KB , 1290x93 )
60227 No. 60227 hide watch quickreply [Reply]
what can I do?
I fill 'Subject' field, but this is not work!
>> No. 60292
I have this problem too now. I'm going to try and find out what's going wrong and if I find a solution I'll post here again.
>> No. 60293
Okay, how I fixed it (running Kusaba 0.9.3 with forced-anon imageboards), was to change line 304 in board.php to:
$post['subject'] = substr(strip_tags($_POST['subject']), 0, 74);

For some reason $post_subject wasn't receiving a value earlier in the script. This is an ugly hack, but it fixes the immediate problem for me. Maybe it's already fixed in the SVN.

File 138808956453.gif - (961B , 18x18 , sticky.gif )
60289 No. 60289 hide watch quickreply [Reply]

If you post modified files for kusaba x 0.9.3 release to allow multiple file uploads i will send you atleast 0.1 BTC for all that trouble!

File 13876425192.jpg - (136.01KB , 426x282 , Secure-yourself.jpg )
60280 No. 60280 hide watch quickreply [Reply]
Hi, I have HTTPS support configured on my web host, and now I'm just wondering what the "best practice" is for using Kusaba over SSL. Whenever I visit my board with the https url, it automatically redirects to the http url. Changing KU_WEBPATH in config.php to the https url kinda helped, for a bit, but then the CSS wasn't loading over https (still using http).

Sure, I could probably just manually go through the source and replace all instances of http with https, but I'm wondering if there isn't a better way. Thanks.
>> No. 60281
You could try this: https://www.owasp.org/index.php/HTTP_Strict_Transport_Security
>> No. 60283
Thanks, I've got it working now.

File 138768813098.jpg - (13.99KB , 208x242 , 1387376369740.jpg )
60282 No. 60282 hide watch quickreply [Reply]
Why is the download page broken? I click it, nothing happens

Delete post []
Report post
[0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18]