Made some modifications to original gallery
DEMO: http://hostel.nstu.ru/resources/gallery.php
Info: http://punres.org/viewtopic.php?pid=4678#p4678
1 2006-02-04 09:35
Re: OLD TOPIC TO DELETE (133 replies, posted in PunBB 1.2 modifications, plugins and integrations)
2 2006-01-28 18:47
Re: форум hostel.nstu.ru (9 replies, posted in Archive)
??? ????????? ????? ???-?? ?? ??????? ???-?? ???????????? ????... ??? ????????? ????? ?????? ? ???? ???? ??-?? ?????..
3 2006-01-28 16:30
Re: форум hostel.nstu.ru (9 replies, posted in Archive)
??, ??? PunBB.
????????? ?? ??? ???????????.. ??.. ?? ? ???????????? 16? ????? ????, ? ??? ????? 60? ?????
????????? ??????? ?????, ?????? ??? ??????? ?? ??? ????
??? ???? ? ?? ???????, ???? ?? ?? ??? ?????? ???????? ???????????
4 2005-12-23 10:32
Re: [postgresql] BIG troubles with active forum and search (14 replies, posted in PunBB 1.2 bug reports)
No matter Anyway, if you want your forum to be more scalable you should think of rewriting search.php
BTW i don't know insiders of phpBB's search, but there are no such troubles there
5 2005-12-23 09:03
Re: [postgresql] BIG troubles with active forum and search (14 replies, posted in PunBB 1.2 bug reports)
so. done by myself, 6 Kb of code from search.php was removed. Searching of 3 words through ~110K messages and ~13K topics takes ~5-10 sec(~100 users online)
Adapting has taken ~8 hours
6 2005-12-22 08:53
Re: [postgresql] BIG troubles with active forum and search (14 replies, posted in PunBB 1.2 bug reports)
desided to use postgresql's Tsearch2 full-text search engine, and to adapt punbb so
7 2005-12-17 17:02
Re: [postgresql] BIG troubles with active forum and search (14 replies, posted in PunBB 1.2 bug reports)
Hi,
is there any progress ?
8 2005-12-14 06:37
Re: [postgresql] BIG troubles with active forum and search (14 replies, posted in PunBB 1.2 bug reports)
Thx a lot
9 2005-12-13 12:59
Re: [postgresql] BIG troubles with active forum and search (14 replies, posted in PunBB 1.2 bug reports)
>Yes, but it's a bigger change for search.php. It's not just one or two lines that need to be changed.
Really sad Are you going to look it through in near future or its better to think a bit and make it myself?
Honestly, I have no desire to do this ) Just have no time, but this bug is really annoying
10 2005-12-13 12:27
Re: [postgresql] BIG troubles with active forum and search (14 replies, posted in PunBB 1.2 bug reports)
BTW: include/search_idx.php
function strip_search_index($post_ids)
DELETE FROM '.$db->prefix.'search_words WHERE id IN(SELECT word_id FROM '.$db->prefix.'search_matches WHERE word_id IN(SELECT word_id FROM '.$db->prefix.'search_matches WHERE post_id IN('.$post_ids.') GROUP BY word_id) GROUP BY word_id HAVING COUNT(word_id)=1)
Here is check for db type, it would be logical to add the same to search.php
11 2005-12-13 12:20
Re: [postgresql] BIG troubles with active forum and search (14 replies, posted in PunBB 1.2 bug reports)
Hmmm, mysql 4.1.x(mb mysql 4.x) already has subqueries
could you please rewrite search a bit, mb just add a check for mysql version ?
12 2005-12-13 11:25
Topic: [postgresql] BIG troubles with active forum and search (14 replies, posted in PunBB 1.2 bug reports)
So, my AthlonXP 1800+, 512Mb RAM, 1gb SWAP, FreeBSD 6, PostgreSQL 8.1 gets fully stuck when smb searches forum because of this query:
SELECT t.id FROM pun_posts AS p INNER JOIN pun_topics AS t ON t.id=p.topic_id INNER JOIN pun_forums AS f ON f.id=t.forum_id LEFT JOIN pun_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE ( ( fp.read_forum IS NULL OR fp.read_forum=1 )) AND p.id IN(40258,57627,82690,17797,76558,.......!!!30_pages_of_numbers_here!!!..........88788,88772,89720,88784,50439,63671,29725,87854,71274,62780,29053) AND t.forum_id = 10 GROUP BY t.id
-----
So, is there a nice solution for this(except manually flushing search words cache ?
14 2005-11-24 15:44
Topic: University campus site (4 replies, posted in PunBB 1.2 show off)
Here it is http://hostel.nstu.ru/
Just "a little bit" modified punbb
15 2005-05-19 19:34
Re: [Release?] Extern.php News Extension (81 replies, posted in PunBB 1.2 modifications, plugins and integrations)
16 2005-05-18 03:20
Topic: DB deadlocks if using postgres (1 replies, posted in PunBB 1.2 bug reports)
well, actually i don't know if it's a punbb bug, or smth mine...
so..lets begin far away: i've modified update_users_online() to let me make the current online users location page (this is my PunOnline mod)
function update_users_online()
{
global $db, $pun_config, $pun_user;
$now = time();
$pathinfo = pathinfo($_SERVER['PHP_SELF']);
$current_page = $pathinfo['basename'];
$current_ip = get_remote_address();
$current_page_full = $_SERVER['PHP_SELF'];
if ($current_page == "viewforum.php" || $current_page == "viewtopic.php" || $current_page == "profile.php" || $current_page == "post.php" || $current_page == "edit.php")
{
if (isset($_GET['id'])) { $current_page_id = intval($_GET['id']); }
else if (isset($_GET['pid'])) {
$current_topic_id = $db->query('SELECT topic_id FROM '.$db->prefix.'posts WHERE id=\''.intval($_GET["pid"]).'\'') or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error());
$tmp = $db->result($current_topic_id, 0);
$current_page_id = ($tmp != '') ? $tmp : '0' ;
}
else if (isset($_GET['tid']))
{ $current_page_id = intval($_GET['tid']); }
else if (isset($_GET['fid']))
{ $current_page_id = intval($_GET['fid']); }
else $current_page_id = 0;
}
else $current_page_id = 0;
if($pun_user['id'] > 1)
{
$db->query('UPDATE '.$db->prefix.'online SET current_page=\''.$current_page_full.'\', current_ip=\''.$current_ip.'\', current_page_id=\''.$current_page_id.'\' WHERE user_id=\''.$pun_user['id'].'\'') or error('Unable to update online list', __FILE__, __LINE__, $db->error());
}
else $db->query('UPDATE '.$db->prefix.'online SET current_page=\''.$current_page_full.'\', current_ip=\''.$current_ip.'\', current_page_id=\''.$current_page_id.'\' WHERE ident=\''.$current_ip.'\'') or error('Unable to update online list', __FILE__, __LINE__, $db->error());
// Fetch all online list entries that are older than "o_timeout_online"
$result = $db->query('SELECT * FROM '.$db->prefix.'online WHERE logged<'.($now-$pun_config['o_timeout_online'])) or error('Unable to delete from online list', __FILE__, __LINE__, $db->error());
while ($cur_user = $db->fetch_assoc($result))
{
// If the entry is a guest, delete it
if ($cur_user['user_id'] == '1')
$db->query('DELETE FROM '.$db->prefix.'online WHERE ident=\''.$db->escape($cur_user['ident']).'\'') or error('Unable to delete from online list', __FILE__, __LINE__, $db->error());
else
{
// If the entry is older than "o_timeout_visit", update last_visit for the user in question, then delete him/her from the online list
if ($cur_user['logged'] < ($now-$pun_config['o_timeout_visit']))
{
//$db->query('UPDATE '.$db->prefix.'users SET last_visit='.$cur_user['logged'].' WHERE id='.$cur_user['user_id']) or error('Unable to update user visit data', __FILE__, __LINE__, $db->error());
// MOD: MARK TOPICS AS READ - 1 LINE MODIFIED CODE FOLLOWS
$db->query('UPDATE '.$db->prefix.'users SET last_visit='.$cur_user['logged'].', read_topics=NULL WHERE id='.$cur_user['user_id']) or error('Unable to update user visit data', __FILE__, __LINE__, $db->error());
$db->query('DELETE FROM '.$db->prefix.'online WHERE user_id='.$cur_user['user_id']) or error('Unable to delete from online list', __FILE__, __LINE__, $db->error());
}
else if ($cur_user['idle'] == '0')
$db->query('UPDATE '.$db->prefix.'online SET idle=1 WHERE user_id='.$cur_user['user_id']) or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
}
}
}
So now, if 10+ users are online i sometimes have db errors like this
ERROR: deadlock detected
DETAIL: Process 38554 waits for ShareLock on transaction 29676567; blocked by process 38553.
Process 38553 waits for ShareLock on transaction 29676569; blocked by process 38554.
STATEMENT: DELETE FROM pun_online WHERE ident='?.?.?.?'
or
ERROR: deadlock detected
DETAIL: Process 673 waits for ShareLock on transaction 14821791; blocked by process 674.
Process 674 waits for ShareLock on transaction 14821789; blocked by process 673.
STATEMENT: UPDATE pun_online SET idle=1 WHERE user_id=?
i don't know if the bug is reproducible at vanilla punbb install, but if look at the queries in the errors i see that these are original punbb ones
can anyone help with debugging this or a solution ?
17 2005-04-28 00:43
Re: PunOnline 1.2.1 (13 replies, posted in PunBB 1.2 modifications, plugins and integrations)
2 Azakur4:
## * Changed lang file, LOOK it through!
18 2005-04-27 13:35
Re: PunOnline 1.2.1 (13 replies, posted in PunBB 1.2 modifications, plugins and integrations)
else if (!isset($lang_online[$user_data['current_page']])
change to:
else if (!isset($lang_online[$user_data['current_page']]))
i've missed bracket, when posting here
19 2005-04-27 02:48
Re: PunOnline 1.2.1 (13 replies, posted in PunBB 1.2 modifications, plugins and integrations)
else if ((@$lang_online[$user_data['current_page']]) == '')
echo"\t\t\t\t\t".'<td>'.$lang_online['Hiding Somewhere'].'</td>'."\n";
else
echo"\t\t\t\t\t".'<td><a href="'.$user_data['current_page'].'">'.$lang_online[$user_data['current_page']].'</a></td>'."\n";
replace with
else if (!isset($lang_online[$user_data['current_page']])
echo"\t\t\t\t\t".'<td>'.$lang_online['Hiding Somewhere'].'</td>'."\n";
else
echo"\t\t\t\t\t".'<td><a href="'.$user_data['current_page'].'">'.$lang_online[$user_data['current_page']].'</a></td>'."\n";
20 2005-04-20 06:36
Re: Integrated Punbb into your site? Post your link (60 replies, posted in PunBB 1.2 modifications, plugins and integrations)
22 2005-04-19 07:28
Re: PunBB Miniportal v1.2.x (128 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Connorhd
How I can separate news from one day, in index.php?
P.S. my bad english
http://hostel.nstu.ru/~xumuk/index.zip
???, ?????? ??? ????????? ????? ? ???????? ? ??????? ?????, ? ????? ???????? ???? ?????, ??????? ??? ??????
23 2005-04-19 07:18
Re: PunOnline 1.2.1 (13 replies, posted in PunBB 1.2 modifications, plugins and integrations)
??, ??? ?????
?????? ? ????? ???????
Edit:
done
http://www.punres.org/files.php?pid=65
24 2005-04-19 01:43
Re: PunOnline 1.2.1 (13 replies, posted in PunBB 1.2 modifications, plugins and integrations)
thx. uploaded to punres!
25 2005-04-18 08:55
Topic: PunOnline 1.2.1 (13 replies, posted in PunBB 1.2 modifications, plugins and integrations)
## Mod title: PunOnline
##
## Mod version: 1.2.1
## Works on PunBB: 1.2.*
## Release date: 2004-04-18
## Author: XuMiX/orig author Chippa (xumuk@ngs.ru)
##
## Description: Adds a list of where the users are on your site.
##
## Affected files: include/functions.php
##
## Affects DB: Yes
##
## DISCLAIMER: Please note that "mods" are not officially supported by
## PunBB. Installation of this modification is done at your
## own risk. Backup your forum database and any and all
## applicable files before proceeding.
##
##
## This has been supressed in 1.2.1 version, but the problem is still here.
## * Changed lang file, LOOK it through!
## * Fixed errors like "Notice: Undefined index: antileech.php in /full/path/to/online.php on line 56"
## * Changed '.$db->prefix.'online table -> "current_page" column increased to VARCHAR(100), to fit new data-storing format
## * Some cosmetic fixes
#