[ index / * / b / navy / neoranga ] [ mod ] [ home ]

/b/ - Random

kurame channel img
Name
Email
Subject
Comment
Verification
File
Password (For file deletion.)
[1] Next | Images

お絵かき掲示板はこちらへ

投稿しても反映されない時はキャッシュを消すと反映されてる場合も
(firefoxならshift+リロード chromeならctrl+リロード)


>rktn , >amzn

Recent Images ALL boards

Recent Images /b/


File: 1696433397814.png ( 96.94 KB , 1888x1562 , yu-hi.sakura.ne_dtp_231005002645_008494.png )

 No.17[Reply][Last 50 Posts]

log mitai
588 posts and 244 image replies omitted. Click reply to view.

 No.621

>>620
>modモード維持が不要なら一般ページへのリンクを生成するように書けばいいと思います

templates/thread.html
<div class="banner">{% trans %}Posting mode: Reply{% endtrans %} <a class="unimportant" href="{{ return }}">[{% trans %}Return{% endtrans %}]</a> <a class="unimportant" href="#bottom">[{% trans %}Go to bottom {% endtrans %}]</a> | <a id="thread-images" href="{{ config.root }}{{ board.dir }}recent_media_cat.html">{% trans %}Images{% endtrans %}</a></div>

<a id="thread-images" href="{{ config.root }}{{ board.dir }}recent_media_cat.html">{% trans %}Images{% endtrans %}</a>

templates/index.html
{{ btn.next }}
| <a href="{{ config.root }}{{ board.dir }}recent_media_cat.html">{% trans %}Images{% endtrans %}</a>

{% if config.catalog_link %}
| <a href="{{ config.root }}{% if mod %}{{ config.file_mod }}?/{% endif %}{{ board.dir }}{{ config.catalog_link }}">{% trans %}Catalog{% endtrans %}</a>
{% endif %}
Post too long. Click here to view the full text.

 No.622

https://yu-hi.sakura.ne.jp/hinabita/cgi-bin/sam2.2/sam_r.htm
今回更新して気づいたのですが
blogが自動生成するサムネの除外
(ファイル名末が-数字x数字)って
どうやって指定したらいいでしょうかね…?

 No.623

File: 1714908968047.txt ( 654 B , a.php.txt )

>>622
sam_oo_php
設定の$ignore_file値が正規表現だからそれで除外出来ます
添付ファイルみたいにしてください(他の部分は動作テストだからコピーしなくてよいです)

| : 論理和(or)の意味
- : ハイフンそのもの
[0-9]+ : 数字文字1回以上の繰り返し
x : エックスそのもの
[0-9]+ : 数字文字1回以上の繰り返し
\. : ドットそのもの
[^.]+ : ドット以外の文字の1回以上の繰り返し
$ : ここで文字列末尾であることという指定子

 No.624

>>623
正規表現について勉強している間に回答が!!!
ありがとうございます!!!
$|-[0-9]+x[0-9]+\.[^.]+$/i
しっかり勉強すればたったこれだけで行けるんですね…

 No.625

>>624
"|"はor演算子だから今回のファイル名にマッチするのはそれ以降です
"$"は"|"の左側表現に所属してます

/^(THM_|LOG_|img_|tm_).+\.(png|jpe?g|gif)$|_thumb\.(png|jpe?g|gif)$|-[0-9]+x[0-9]+.[^.]*$/i

これは3つに分解できて

^(THM_|LOG_|img_|tm_).+\.(png|jpe?g|gif)$
_thumb\.(png|jpe?g|gif)$
-[0-9]+x[0-9]+.[^.]*$

3つのうち1つ以上に一致させることを表現します
(iオプションが書いてあって大文字小文字は無視されるのにTHMとLOGが大文字なのは読みにくいね)

Post too long. Click here to view the full text.



File: 1696443982981.mp4 ( 1.31 MB , 1920x1080 , 2023-10-04T13-09-39_3m.mp4 )

 No.78[Reply]

 No.79

File: 1696450228628.webm ( 2.91 MB , 640x360 , 2023-08-26 10-00-07_0840-1100_170_3m.webm )




File: 1696372541678.zip ( 7.08 MB , 2023_1003_0738_14_054.zip )

 No.5[Reply]

test

 No.12

File: 1696428801232.rar ( 4.73 MB , 2023_0906_0046_12_606.rar )

testtttt



File: 1696420450005.gif ( 16.55 KB , 350x157 , ad6c65_9b12cd96e713431a85157e7fb52cf24d~mv2.gif )

 No.8[Reply]



File: 1696371233867.jpg ( 185.1 KB , 1270x714 , up002608.jpg )

 No.3[Reply]

test

 No.4

おてすと



File: 1696371148811.jpg ( 63.3 KB , 800x624 , 1485212401868.jpg )

 No.2[Reply]

点呼
自己紹介とかでもいいんだ


Delete Post [ ]
Previous [1] Next | Catalog | Images
[ index / * / b / navy / neoranga ] [ mod ] [ home ]