Someone has made it possible to work SyntaxHighlighter on the PunBB engine?

2

(8 replies, posted in PunBB 1.2 discussion)

How to add a condition for display ads only on the home page and in the forums?

3

(6 replies, posted in PunBB 1.2 troubleshooting)

Encoding forum win-1251, and encoding site, which i insert code - utf-8.

I think you need to do a complete copy extern.php such extern2.php and add a file conversion Windows> utf.

Give what functions to add and where to write to a file?

Thank you.

The example you poor that generates a lot queries.

It is very exact. Indeed, there is no latin characters in the file name will be replaced by "-" or "_". This applies not only to Russian language, but also in German, French etc.

6

(6 replies, posted in PunBB 1.2 troubleshooting)

How? Give option to display the contents extern.php encoded utf-8.

7

(6 replies, posted in PunBB 1.2 troubleshooting)

I want I can give to all sites rss content in different encoding. For example, both in the win-1251, and utf-8 How does one do that?

Koos
I made a translation into Russian language. get

I have thought, and have decided to suggest you to add to the mod function of replacement "not latin" characters.

Table matches for the Russian language is attached. get

Just propose to change the structure of such:

Name | Size | Type | Date Modified | Code | Edit
user | 1KB | PNG | 25.04.07 17:06:39 | Get | Delete

9

(6 replies, posted in PunBB 1.2 troubleshooting)

Display data in an arbitrary encoding (such as UTF), how?

The column with " User ID " in statistics seems to me is not necessary, and it should be cleaned.


Than use of such long address is caused. And the variable in the address meets two times.
/uploadimg_view.php?id=2&username=maximum&view=gallery

Can simplify the address up to.
/uploadimg_view.php?id=2

This is a very bad mod. sad I have long tried to understand from the outside, which I have a forum error. It emerged that the mod conflicts with the base. This is somewhat dependent on "topic last post".

?he example can be found here: http://wpforum.ru/forum1.html
Go to the 2, 3, 4, etc. page the forum.

Time (s)      Query
0.00382     SELECT u.*, g.*, o.logged, o.idle FROM wpforum_users AS u INNER JOIN wpforum_groups AS g ON u.group_id=g.g_id LEFT JOIN wpforum_online AS o ON o.user_id=u.id WHERE u.id=2
0.03392     UPDATE wpforum_online SET logged=1176875345 WHERE user_id=2
0.01296     SELECT * FROM wpforum_online WHERE logged<1176875045
0.00207     SELECT f.forum_name, f.redirect_url, f.moderators, f.num_topics, f.sort_by, fp.post_topics FROM wpforum_forums AS f LEFT JOIN wpforum_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=1) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND f.id=1
0.00465     SELECT COUNT(id) FROM wpforum_reports WHERE zapped IS NULL
0.00791     SELECT id, poster, subject, posted, last_post, last_post_id, last_poster, num_views, num_replies, closed, sticky, moved_to FROM wpforum_topics WHERE forum_id=1 ORDER BY sticky DESC, last_post DESC LIMIT 5, 5
0.03608     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00807     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00260     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00250     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00283     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00287     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00252     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00272     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00245     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00342     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00280     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00205     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00393     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00244     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00277     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00256     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00263     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00240     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00277     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00264     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00258     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00295     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00318     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00348     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00421     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00465     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00506     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00509     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00222     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00311     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00303     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00196     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00310     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00141     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00265     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00161     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00170     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00181     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00162     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00181     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00210     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00145     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00167     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00197     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00156     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00128     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00125     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00175     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00171     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00194     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00159     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00184     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00189     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00143     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00249     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00157     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00149     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00152     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00139     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00160     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00153     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00186     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00173     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00167     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00169     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00147     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00185     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00148     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00399     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00142     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00187     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00197     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00173     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00172     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00165     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00179     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00174     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00208     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00171     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00169     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00172     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00156     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00187     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00163     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00163     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00177     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00170     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00175     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00159     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00130     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00163     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00159     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00177     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00179     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00147     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00161     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00141     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00153     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00164     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00140     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00186     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00164     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00160     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00174     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00169     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00191     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00155     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00158     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00161     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00165     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00196     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00159     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00160     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00156     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00149     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00174     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00198     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00175     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00169     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00184     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00206     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00189     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00193     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00211     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00165     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00424     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00260     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00134     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00218     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00228     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00217     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00171     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00173     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00179     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00167     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00172     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00140     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00157     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00178     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00243     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00128     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00150     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.03009     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00228     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.01357     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.02206     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00430     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00430     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00225     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00181     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00201     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00167     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00143     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00164     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00140     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00483     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00180     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00176     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00182     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00156     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00154     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00162     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00257     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00177     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00158     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00161     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00168     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00143     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00145     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00175     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00197     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00173     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00244     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00201     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00164     SELECT id, topic_id FROM wpforum_posts WHERE id=0
0.00170     SELECT id, topic_id FROM wpforum_posts WHERE id=0
Total query time: 0.52423 s

Best fashion, but the replacement tags "p" and "br" is wrong. See how it works : http://wpforum.ru/topic148.html

Don't work, why? sad

Wow!

It is required to lead references to single messages to a following kind.

viewtopic.php?tid=$1#p$2 ($2 = post count)

It is necessary to make editing of next lines for this purpose.

index.php : 111

$last_post = '<a href="viewtopic.php?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'">'.format_time($cur_forum['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_forum['last_poster']).'</span>';

viewforum.php : 148

$last_post = '<a href="viewtopic.php?pid='.$cur_topic['last_post_id'].'#p'.$cur_topic['last_post_id'].'">'.format_time($cur_topic['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['last_poster']).'</span>';

viewtopic.php : 314

<h2><span><span class="conr">#<?php echo ($start_from + $post_count) ?> </span><a href="viewtopic.php?pid=<?php echo $cur_post['id'].'#p'.$cur_post['id'] ?>"><?php echo format_time($cur_post['posted']) ?></a></span></h2>

That should turn out.

http://maxm.ru/content/2006/punbb_1.png

What it is necessary to replace to receive such kind of the reference?