Question on Danbooru setup!

Posted under General

So basically I have Danbooru setup on an ubuntu box, and the "site" is basically up and running locally, I can upload pictures, add comments, pools, etc etc. References and images are being stored properly, SQL tables are updating.

All is well (so far), but there's a few things I noticed were missing.

1) Page numbers on posts. After uploading a few pages worth of images, I noticed that the page listing is missing. The urls (page=1, page=2, etc) work, but the links are not appearing. Looked around the config for a bit but I couldn't find a setting that controls this display. Anybody run into this issue and have a fix?

2) the images are being stored hierarchically. However, gif images don't get stored in respective folders, and as a result does not show up on the posts. Now I can go and manually add it (then it shows up), but this is a problem that I'd rather not have to fix manually. Again, anybody have dealt with this before?

3) Ads. Is it possible to incorporate other types of Ads (besides the default) to the page?

If anybody familiar with the whole entire setup process could answer these few questions, would greatly appreciate it. :D

Updated by poweryoga

poweryoga said:
1) Page numbers on posts. After uploading a few pages worth of images, I noticed that the page listing is missing.

The number of results returned by every search is cached. If the cached value becomes inaccurate (because a bunch of stuff is suddenly uploaded) then the page listing won't be accurate either.

The easiest thing to do would be to disable memcache in the config. You probably don't need it anyway if you're just running this locally. Otherwise you'll have to hunt down the place in the code where the post count is being cached and change it.

2) the images are being stored hierarchically. However, gif images don't get stored in respective folders, and as a result does not show up on the posts.

That's odd. Do other file types have the same problem (PNG & Flash)? Are your file permissions correct? Does flat storage mode work for you?

3) Ads. Is it possible to incorporate other types of Ads (besides the default) to the page?

I don't know exactly what you want to do, but you'll probably have to hack on the code a little if you want to do something other than simple banner ads.

Hi! Thanks for the responses. Here's what I did for the fixes.

1) Page # on posts

This was a migration, so a list of all the old images from another board format was imported and it wasn't updated. After running an update statement the pages came back.

2) Memcache's port was set incorrectly. Fixing that resolved the problem.

3) Hacked the code a bit and was able to replace the vertical/horizontal ads with another set. Can replace the contents of app\views\static\_jlist_rss_ads.html.erb

1