Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We accept installation questions and specification requests. #1

Open
satopian opened this issue Apr 25, 2021 · 21 comments
Open

We accept installation questions and specification requests. #1

satopian opened this issue Apr 25, 2021 · 21 comments

Comments

@satopian
Copy link
Owner

satopian commented Apr 25, 2021

I translate English into Japanese and read it with Google Translate.
My native language is Japanese.
Support BBSin Japanese.
If you don't mind Japanese, you can also use the Japanese language Support BBS.
If you find it difficult to use the Japanese bulletin board, or if you cannot write to it, please use this.
paintmode

@catharsis71
Copy link

Are tripcodes supported at all? I see some references in the source (like a "separateNameAndTrip" function) but tripcodes don't seem to work for me

@satopian
Copy link
Owner Author

@catharsis71

Are tripcodes supported at all?

Only the ability to view 'trip' from old log files remains.
'Trip' cannot be included when posting a new post.

@satopian
Copy link
Owner Author

@catharsis71
It's a feature that was once removed, but it can be implemented again.
Work a little and test.

@satopian
Copy link
Owner Author

@catharsis71
8553d48
Reimplemented the trip code generation function.
It has not been released yet, but you can download it from "code" on the top page.

@catharsis71
Copy link

Thank you for re-adding the tripcode functionality

Next question...

Shi-Painter seems to have problems, it takes a very long time to load for new visitors, or doesn't finish loading at all

Looking at the server logs, I eventually see a HEAD request for spainter_all.jar but I usually never see a GET request for it:

[2022-06-06/18:10] "POST /potiboard.php HTTP/2.0" 200 "https://cracky.win/" 
[2022-06-06/18:12] "HEAD /spainter_all.jar HTTP/2.0" 200 "https://cracky.win/potiboard.php" rv:91.0) Gecko/20100101 Firefox/91.0" - - - -

Usually once it loads successfully once it will load better in the future probably due to browser caching however, I see requests in the log for a non-existent file "spainter_all.jar.js" resulting in a 404:

[2022-06-06/18:23] "POST /potiboard.php HTTP/2.0" 200 "https://cracky.win/"
[2022-06-06/18:23] "HEAD /spainter_all.jar HTTP/2.0" 200 "https://cracky.win/potiboard.php"
[2022-06-06/18:23] "GET /spainter_all.jar HTTP/2.0" 200 "https://cracky.win/potiboard.php"
[2022-06-06/18:23] "GET /spainter_all.jar.js HTTP/2.0" 404 "https://cracky.win/potiboard.php"

Probably unrelated but I also sometimes see requests for a non-existent file "mono_dark.css.map" also resulting in 404:

[2022-06-06/17:52] "GET /templates/mono_en/css/mono_dark.css.map HTTP/2.0" 404 "-" 
[2022-06-06/17:53] "GET /templates/mono_en/css/mono_dark.css.map HTTP/2.0" 404 "-" 
[2022-06-06/17:59] "GET /templates/mono_en/css/mono_dark.css.map HTTP/2.0" 404 "-" 
[2022-06-06/18:11] "GET /templates/mono_en/css/mono_dark.css.map HTTP/2.0" 404 "-" 
[2022-06-06/18:15] "GET /templates/mono_en/css/mono_dark.css.map HTTP/2.0" 404 "-"

(Note I have set the mono_dark theme as the default theme for my board)

@satopian
Copy link
Owner Author

satopian commented Jun 7, 2022

@catharsis71 Since shi-Painter is a Java applet, an application called CheerpJ converts it on the server.
It is a conversion performed using the server of CheerpJ's development company.
However, shi-Painter may take a long time to start or may not start.
// Use Shi Painter
// (1: Enabled, 0: Disabled)
define ('USE_SHI_PAINTER', '0');

If you set Shi Painter to Disabled in the settings, you will not be able to select it.
If you only want to use apps that start immediately

// (1: Enabled, 0: Disabled)
define ('USE_SHI_PAINTER', '0');

Please set it.

This is because we are using an app manufactured in 2006, so it can't be helped.

And if possible, press the "New issue" button to set up a new thread for different content.
thank you.

@Azoart
Copy link

Azoart commented Oct 26, 2024

Hello! I just downloaded the poti-board code but... to be honest, i don't know what to do now! I looked through the english wiki and translated the japanese wiki but i still didn't understand how to use and setup it. I want to set it up on my own computer first, self hosting it so i can properly understand it. Could someone please help me out? I have basic knowledge of html, css and javascript, and very small knowledge of php.

@satopian
Copy link
Owner Author

satopian commented Oct 26, 2024

Do you want to install it on your own computer?
I use Windows, so I'll explain it that way. Install XAMPP and create a local server on your computer that runs PHP.
After you download POTI-board, get the potiboard5/ folder from there.
Put it in the htdocs/ folder of XAMPP.
For example, c:\xampp\htdocs\potiboard5\
Then start XAMPP.
Then open the server URL on your computer in your browser (for example: http://localhost/potiboard5/).
When you do this, POTI-board should already be running.
However, the administrator password in config.php is set to "adminpass" by default, so if you are installing it on the public Internet, use a password that no one knows and that only you use.
You will need this password when you delete or edit posts.
However, this PHP script bulletin board is not intended to be installed on your own PC, but is most likely to be installed on a public rental server on the Internet.
In that case, all you need is the contents of the potiboard5 folder.
Transfer all these files to the rental server.
Then, when you use a browser to view the file on the public server on the Internet where the file is stored, it will be initialized and work.

XAMPP Installers and Downloads for Apache Friends
https://www.apachefriends.org/index.html

You can download XAMPP here.

@Azoart
Copy link

Azoart commented Oct 27, 2024

Do you want to install it on your own computer? I use Windows, so I'll explain it that way. Install XAMPP and create a local server on your computer that runs PHP. After you download POTI-board, get the potiboard5/ folder from there. Put it in the htdocs/ folder of XAMPP. For example, c:\xampp\htdocs\potiboard5\ Then start XAMPP. Then open the server URL on your computer in your browser (for example: http://localhost/potiboard5/). When you do this, POTI-board should already be running. However, the administrator password in config.php is set to "adminpass" by default, so if you are installing it on the public Internet, use a password that no one knows and that only you use. You will need this password when you delete or edit posts. However, this PHP script bulletin board is not intended to be installed on your own PC, but is most likely to be installed on a public rental server on the Internet. In that case, all you need is the contents of the potiboard5 folder. Transfer all these files to the rental server. Then, when you use a browser to view the file on the public server on the Internet where the file is stored, it will be initialized and work.

XAMPP Installers and Downloads for Apache Friends https://www.apachefriends.org/index.html

You can download XAMPP here.

thank you so much, it worked! And how would i go on about customizing the CSS? I would also like to make a simple index page, maybe with some login options. Is this possible? How would i go on about that?

@satopian
Copy link
Owner Author

satopian commented Oct 27, 2024

@Azoart
Anyone who knows CSS can customize it themselves.
However, this is a customization and we cannot provide support for customization.
Feel free to modify it. However, modified versions will not be supported by the developer.
However, there is a directory potiboard5\templates\mono_en\css\dev\sass where you can edit the scss to create 4 different CSS files by changing only the color settings.
To do this, you will also need to learn the technology required to compile scss files. This you will need to learn yourself or pay someone to do it for you.
This is free software provided for free and unfortunately we cannot provide support for customization.
Good luck!

@Azoart
Copy link

Azoart commented Oct 29, 2024

when i press the post button, the image doesn't show up in the main page. What do i do?

@satopian
Copy link
Owner Author

@Azoart Is the problem occurring on a public internet web server?

Are you talking about a local XAMPP server?

When you say it's not reflected on the main page, do you mean that it's not displayed on a page like potiboard5/index.html, but the image is in potiboard5/potiboard.php?res=2?

Or is the image not being POSTed anywhere?

If the image is not present in potiboard5/index.html, the browser cache may be displaying an old page.

/* ------------- トラブルシューティング(trouble shooting) ------------- */

//問題なく動作している時は変更しない。

// urlパラメータを追加する する:1 しない:0
// ブラウザのキャッシュが表示されて投稿しても反映されない時は1。
// If the cache of the browser is displayed and not reflected even after posting, set "1".
define("URL_PARAMETER", "0");

define("URL_PARAMETER", "1");
In this way, by changing 0 to 1, old cache will no longer be displayed.

However, it's hard to answer if you just say that the image doesn't appear when you POST.
From what you say, i can only guess what problem you're facing.
Please provide as much detail as possible.
For example, a screenshot of the screen might be effective.

@Azoart
Copy link

Azoart commented Nov 1, 2024

@Azoart Is the problem occurring on a public internet web server?

Are you talking about a local XAMPP server?

When you say it's not reflected on the main page, do you mean that it's not displayed on a page like potiboard5/index.html, but the image is in potiboard5/potiboard.php?res=2?

Or is the image not being POSTed anywhere?

If the image is not present in potiboard5/index.html, the browser cache may be displaying an old page.

/* ------------- トラブルシューティング(trouble shooting) ------------- */

//問題なく動作している時は変更しない。

// urlパラメータを追加する する:1 しない:0
// ブラウザのキャッシュが表示されて投稿しても反映されない時は1。
// If the cache of the browser is displayed and not reflected even after posting, set "1".
define("URL_PARAMETER", "0");

define("URL_PARAMETER", "1"); In this way, by changing 0 to 1, old cache will no longer be displayed.

However, it's hard to answer if you just say that the image doesn't appear when you POST. From what you say, i can only guess what problem you're facing. Please provide as much detail as possible. For example, a screenshot of the screen might be effective.

hello! i apologize for not providing more details, but the problem was indeed in the browser cache and your proposed solution worked, thanks!
i have another question. i think that, since this is a problem regarding customization you won't be able to reply to me but i think it's worth to try.
i would like to add a pagedoll to my board. i managed to move the main container where the header and the overall oekaki content is in to the left, so i have some space for a pagedoll.
i added the pagedoll image tag on top of the page_top button, in mono_main.blade.php:

<img src="https://file.garden/ZyOm7DtO7TTyC8Q7/oekaki/pagedoll/dummy_400x600_ffffff_cccccc.png">
<div id="page_top"><a class="icon-angles-up-solid"></a></div>
<script src="loadcookie.js"></script>

and in the mono_main.scss file i added:

.pagedoll {
	position: sticky;
	right: 50;
	bottom: 0;

	width: 200px;
	height: 350px;
}

however, my pagedoll is not showing. I moved the page_top button to the left side of the screen, and the pagedoll is supposed to be on the right side. It's ok if you can't help me, but if you can, could you please tell me why my pagedoll is not showing up?

@satopian
Copy link
Owner Author

satopian commented Nov 2, 2024

@Azoart

and in the mono_main.scss

scss?

image

dev/sass/

The scss files in the dev/ folder are used to create a single css file using two files: a color-only configuration file for compiling css files, e.g. _mono_main_conf.scss, and a layout configuration file, e.g. mono_main.scss.
The design is in a file like mono_main.scss, and the color scheme settings are in _mono_main_conf.scss.
When you open mono_main.scss, you will see the following settings:
//設定ファイルの読み込み
// @use "mono_dark_conf" as val;
// @use "mono_deep_conf" as val;
@use "mono_main_conf" as val;
// @use "mono_mayo_conf" as val;
In this way, the color scheme of mono_main.scss is set to @use "mono_main_conf" as val;.
After that, use Visual Studio Code, a free program provided by Microsoft, to compile the file into CSS and create a CSS file.
In this way, we will create CSS files that differ only in four colors.

Sass (style sheet language) - Wikipedia

Editing the sass files directly will not change anything.

If you have difficulty compiling sass, you can edit the css files directly.

image

css/mono_main.css
css/mono_mayo.css
css/mono_deep.css
css/mono_dark.css

These are four different CSS files.
What's different about these files? The color settings.

image

This is where we switch the css files.

@Azoart
Copy link

Azoart commented Nov 2, 2024

@Azoart

and in the mono_main.scss

scss?

image

dev/sass/

The scss files in the dev/ folder are used to create a single css file using two files: a color-only configuration file for compiling css files, e.g. _mono_main_conf.scss, and a layout configuration file, e.g. mono_main.scss. The design is in a file like mono_main.scss, and the color scheme settings are in _mono_main_conf.scss. When you open mono_main.scss, you will see the following settings: //設定ファイルの読み込み // @use "mono_dark_conf" as val; // @use "mono_deep_conf" as val; @use "mono_main_conf" as val; // @use "mono_mayo_conf" as val; In this way, the color scheme of mono_main.scss is set to @use "mono_main_conf" as val;. After that, use Visual Studio Code, a free program provided by Microsoft, to compile the file into CSS and create a CSS file. In this way, we will create CSS files that differ only in four colors.

Sass (style sheet language) - Wikipedia

Editing the sass files directly will not change anything.

If you have difficulty compiling sass, you can edit the css files directly.

image

css/mono_main.css css/mono_mayo.css css/mono_deep.css css/mono_dark.css

These are four different CSS files. What's different about these files? The color settings.

image

This is where we switch the css files.

i'm using a scss to css command line tool compiler - the official one from the sass install page, and i managed to change all the styles i wanted by editing the .scss file, since it seemed easier this way, and it worked very well. However, i can't seem to get my pagedoll to show up.

A pagedoll is basically a image that i want to be fixed to a specific area of the webpage: the bottom right, as an example. I added a divider to the .php page i mentioned on my other reply, and i added its styling to the .scss file, and then i compiled the .scss to the .css file using the command line tool i mentioned. However out of all modifications i've done to my page, this is the only one that didn't work, and i don't know why. 💔

@satopian
Copy link
Owner Author

satopian commented Nov 2, 2024

@Azoart So does that mean the sass compilation was successful?
If so, you probably didn't copy the CSS files you created in the dev/sass/ folder to the CSS folder.
If not, you copied them to the CSS folder and your other changes are working, it will be hard for me to help you.
In that case, it will be an explanation of what CSS does.
Also, I'm not a CSS expert myself, so it will be hard for me to help you.

@Azoart
Copy link

Azoart commented Nov 2, 2024

@satopian yes! the sass compilation was successful! your theme is very easy and very fun to customize, even for a beginner!
and thank you for all of the help you've given to me :^) i greatly appreciate it!

@Azoart
Copy link

Azoart commented Nov 3, 2024

I have found a issue, i think.

When i try to add a image using the HTML image tag to the mono_main.blade.php, the image simply doesn't show up. The image won't show up as a broken image, and when i use the "inspect element" tool of my browser, it does not show up in the code itself.

As an example, i was trying to add a simple image to the

tag of the mono_main.blade.php file, more specifically to this divider inside of the tag:

<div class="epost">
		@if ($notres and (!$diary or $addinfo))
			<ul>
			@if ($paint2 and !$diary)
			<li>The canvas size is width {{$pminw}}px to {{$pmaxw}}px, height {{$pminh}}px to {{$pmaxh}}px.</li>
			<li>Images larger than width {{$maxw}}px height {{$maxh}}px will be thumbnailed. Remember to save your images.</li>
			<li>Please set a password for your post if you want to edit and/or delete it!</li>
			<li>Remember to be nice!</li>
			<img src="https://angel-town.cinni.net/img/a_5.gif">
			@endif
			{!!$addinfo!!}
		</ul>
		@endif	
</div>

And the image didn't show up. Can you help me? The image is not corrupted or broken, and the link itself works fine.

@satopian
Copy link
Owner Author

satopian commented Nov 4, 2024

@Azoart
image
image

Index.html doesn't update automatically if you just update the template manually.
So either "update" it in admin mode or do something like a normal post.
If that doesn't solve the problem, empty the template engine "cache" folder by deleting its contents.

image

@Azoart
Copy link

Azoart commented Nov 7, 2024

@Azoart image image

Index.html doesn't update automatically if you just update the template manually. So either "update" it in admin mode or do something like a normal post. If that doesn't solve the problem, empty the template engine "cache" folder by deleting its contents.

image

i see, thank you! it worked perfectly!
another question, and i hope that you don't mind me asking, but is it possible to add more CSS themes? I think there's only four of them and i would like to add more. How would i go on about doing that? Can i just copy some of the original CSS theme files, or do i have to do something else?

@satopian
Copy link
Owner Author

satopian commented Nov 7, 2024

@Azoart
poti-kaini-EN\potiboard5\templates\mono_en\parts\mono_mainte_form.blade.php
Edit or add CSS names in this file.

		<span class="stylechanger">Style: 
			<select class="form" id="mystyle" onchange="SetCss(this);">
				<option>MONO</option>
				<option>Dark</option>
				<option>Deep</option>
				<option>MAYO</option>
			</select>
		</span>

poti-kaini-EN\potiboard5\templates\mono_en\parts\style-switcher.blade.php
Add the path to the CSS file name.

<link rel="stylesheet" href="{{$skindir}}css/mono_main.css?{{$ver}}">
<link rel="stylesheet" href="{{$skindir}}css/mono_dark.css?{{$ver}}" id="css1" disabled>
<link rel="stylesheet" href="{{$skindir}}css/mono_deep.css?{{$ver}}" id="css2" disabled>
<link rel="stylesheet" href="{{$skindir}}css/mono_mayo.css?{{$ver}}" id="css3" disabled>

poti-kaini-EN\potiboard5\templates\mono_en\js\mono_common.js
This is where you set the JavaScript that will switch CSS.

var colorIdx = GetCookie("colorIdx");
switch (Number(colorIdx)) {
  case 1:
    document.getElementById("css1").removeAttribute("disabled");
    break;
  case 2:
    document.getElementById("css2").removeAttribute("disabled");
    break;
  case 3:
    document.getElementById("css3").removeAttribute("disabled");
    break;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants