Skip to content

Instantly share code, notes, and snippets.

@jpustula
jpustula / instruction.md
Last active April 26, 2016 08:40
Adding sidebar in we_clearblue 2.1 for phpBB 3.1

Step #1. Open styles/we_clearblue/template/overall_header.html and find:

<div class="inventea-content" role="main">

Step #2. Add after:

<div class="sidebar">
	<!-- Block 1 -->
	<div class="forabg">
@jpustula
jpustula / instruction.md
Created February 11, 2016 13:45
Adding sidebar in we_universal 2.4 for phpBB 3.1

Step #1. Open styles/we_universal/template/overall_header.html and find:

<div class="inventea-wrapper inventea-content" role="main">

Step #1. Add after:

<div class="sidebar">
	Sidebar content here
</div>
@jpustula
jpustula / instruction.md
Created December 19, 2015 12:36
Clickable banner in we_universal 2.4 for phpBB 3.1
<nav class="my-nav" role="navigation">
<div class="inventea-forum-menu">
<ul class="inventea-menu" role="menubar">
<!-- EVENT overall_header_navigation_prepend -->
<li><a href="{U_FAQ}" rel="help" title="{L_FAQ_EXPLAIN}" role="menuitem">{L_FAQ}</a></li>
<!-- IF S_DISPLAY_SEARCH --><li><a href="{U_SEARCH}" role="menuitem">{L_SEARCH}</a></li><!-- ENDIF -->
<!-- IF not S_IS_BOT -->
<!-- IF S_DISPLAY_MEMBERLIST --><li><a href="{U_MEMBERLIST}" role="menuitem">{L_MEMBERLIST}</a></li><!-- ENDIF -->
diff -x images -crNEB release-3.1.4/language/en/captcha_recaptcha.php release-3.1.5/language/en/captcha_recaptcha.php
*** release-3.1.4/language/en/captcha_recaptcha.php 2015-05-03 17:14:55.000000000 +0200
--- release-3.1.5/language/en/captcha_recaptcha.php 2015-06-14 16:14:07.000000000 +0200
***************
*** 47,52 ****
'RECAPTCHA_PRIVATE' => 'Private reCaptcha key',
'RECAPTCHA_PRIVATE_EXPLAIN' => 'Your private reCaptcha key. Keys can be obtained on <a href="http://www.google.com/recaptcha">www.google.com/recaptcha</a>.',
! 'RECAPTCHA_EXPLAIN' => 'In an effort to prevent automatic submissions, we require that you enter both of the words displayed into the text field underneath.',
'RECAPTCHA_SOCKET_ERROR' => 'There was a problem connecting to the RECAPTCHA service: could not open socket. Try again later.',
diff -x images -crNEB release-3.1.3/language/en/email/short/newtopic_notify.txt release-3.1.4/language/en/email/short/newtopic_notify.txt
*** release-3.1.3/language/en/email/short/newtopic_notify.txt 2015-02-01 19:18:30.000000000 +0100
--- release-3.1.4/language/en/email/short/newtopic_notify.txt 2015-05-03 17:14:55.000000000 +0200
***************
*** 2,8 ****
Hello {USERNAME},
! You are receiving this notification because you are watching the forum "{FORUM_NAME}" at "{SITENAME}". This forum has received a new topic<!-- IF AUTHOR_NAME --> by {AUTHOR_NAME}<!-- ENDIF --> since your last visit, "{TOPIC_TITLE}". You can use the following link to view the forum, no more notifications will be sent until you visit the forum.
@jpustula
jpustula / phpbb312_to_phpbb313.patch
Created February 2, 2015 10:33
phpBB 3.1.2 to phpBB 3.1.3 language changes
diff -x images -crNEB release-3.1.2/language/en/acp/common.php release-3.1.3/language/en/acp/common.php
*** release-3.1.2/language/en/acp/common.php 2014-11-25 16:36:32.000000000 +0100
--- release-3.1.3/language/en/acp/common.php 2015-02-01 19:18:30.000000000 +0100
***************
*** 558,563 ****
--- 558,564 ----
'LOG_LOCK_POST' => '<strong>Locked post</strong><br />» %s',
'LOG_MERGE' => '<strong>Merged posts</strong> into topic<br />» %s',
'LOG_MOVE' => '<strong>Moved topic</strong><br />» from %1$s to %2$s',
+ 'LOG_MOVED_TOPIC' => '<strong>Moved topic</strong><br />» %s',
@jpustula
jpustula / compress.py
Created April 25, 2014 08:47
CSS compressor for phpBB.
#!/usr/bin/env python
"""
Compress all CSS files imported in a single file (eg. stylesheet.css) and write
it's minified content to new file called stylesheet.min.css.
Requirements:
- cssmin library (https://github.com/zacharyvoase/cssmin)
Usage:
/*
* Przykładowy program rozdzielający wątki na konkretne rdzenie.
*
* Kompilacja:
* g++ thread_affinity.cpp -o thread_affinity -lpthread -std=c++11
*
* Oparte na przykładzie:
* http://stackoverflow.com/questions/1407786/how-to-set-cpu-affinity-of-a-particular-pthread
*
* Dokumentacja: