Ok. Is good. More extensions you get in my forum, punbb.INFO.
Is your forum fully translated into Turkish? Where did you download the translation? Share it
You are not logged in. Please login or register.
PunBB Forums → Posts by PanBB.Ru
Ok. Is good. More extensions you get in my forum, punbb.INFO.
Is your forum fully translated into Turkish? Where did you download the translation? Share it
I was not at the forum then...sorry
Sempai, here it would be useful that our new extension, which allows you to read new posts before adding your message.
Reading Messages Before Sending
I understand that this refers to the sale of the software itself, and not to what you earn on the forum through advertising.
Hi
Could I use punbb in commercial website? what is GNU license ? If I modified and used in proprietary software is there any problem?
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
Updated. Add Custom Error Page.
For this create new page, for example name - 404.php:
<?php
if (!defined('FORUM_ROOT'))
define('FORUM_ROOT', './');
require FORUM_ROOT.'include/common.php';
if ($forum_user['g_read_board'] == '0')
message($lang_common['No view']);
// Load the index.php language file
require FORUM_ROOT.'lang/'.$forum_user['language'].'/index.php';
// Setup main heading
$forum_page['main_title'] = forum_htmlencode($forum_config['o_board_title']);
define('FORUM_ALLOW_INDEX', 1);
define('FORUM_PAGE', 'index');
require FORUM_ROOT.'header.php';
// START SUBST - <!-- forum_main -->
ob_start();
?>
<div class="main-head">
<h2 class="hn"><span>Ошибка - 404</span></h2>
</div>
<div class="main-content main-message">
<p>Такой страницы не существует. </p>
<p>Возможно вас заинтересуют следующие темы.</p>
<p>здесь можно вывести самые горячие темы форума или другую полезную и интересную информацию. На некоторых сайтах, я заметил, многие пользователи выводят карту сайта.</p>
</div>
<?php
$tpl_temp = forum_trim(ob_get_contents());
$tpl_main = str_replace('<!-- forum_main -->', $tpl_temp, $tpl_main);
ob_end_clean();
// END SUBST - <!-- forum_main -->
// START SUBST - <!-- forum_info -->
ob_start();
if (file_exists(FORUM_CACHE_DIR.'cache_stats.php'))
include FORUM_CACHE_DIR.'cache_stats.php';
// Regenerate cache only if the cache is more than 30 minutes old
if (!defined('FORUM_STATS_LOADED') || $forum_stats['cached'] < (time() - 1800))
{
if (!defined('FORUM_CACHE_FUNCTIONS_LOADED'))
require FORUM_ROOT.'include/cache.php';
generate_stats_cache();
require FORUM_CACHE_DIR.'cache_stats.php';
}
$stats_list['no_of_users'] = '<li class="st-users"><span>'.sprintf($lang_index['No of users'], '<strong>'.forum_number_format($forum_stats['total_users']).'</strong>').'</span></li>';
$stats_list['newest_user'] = '<li class="st-users"><span>'.sprintf($lang_index['Newest user'], '<strong>'.($forum_user['g_view_users'] == '1' ? '<a href="'.forum_link($forum_url['user'], $forum_stats['last_user']['id']).'">'.forum_htmlencode($forum_stats['last_user']['username']).'</a>' : forum_htmlencode($forum_stats['last_user']['username'])).'</strong>').'</span></li>';
$stats_list['no_of_topics'] = '<li class="st-activity"><span>'.sprintf($lang_index['No of topics'], '<strong>'.forum_number_format($forum_stats['total_topics']).'</strong>').'</span></li>';
$stats_list['no_of_posts'] = '<li class="st-activity"><span>'.sprintf($lang_index['No of posts'], '<strong>'.forum_number_format($forum_stats['total_posts']).'</strong>').'</span></li>';
?>
<div id="brd-stats" class="gen-content">
<h2 class="hn"><span><?php echo $lang_index['Statistics'] ?></span></h2>
<ul>
<?php echo implode("\n\t\t", $stats_list)."\n" ?>
</ul>
</div>
<?php
if ($forum_config['o_users_online'] == '1')
{
// Fetch users online info and generate strings for output
$query = array(
'SELECT' => 'o.user_id, o.ident',
'FROM' => 'online AS o',
'WHERE' => 'o.idle=0',
'ORDER BY' => 'o.ident'
);
$result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
$forum_page['num_guests'] = $forum_page['num_users'] = 0;
$users = array();
while ($forum_user_online = $forum_db->fetch_assoc($result))
{
if ($forum_user_online['user_id'] > 1)
{
$users[] = ($forum_user['g_view_users'] == '1') ? '<a href="'.forum_link($forum_url['user'], $forum_user_online['user_id']).'">'.forum_htmlencode($forum_user_online['ident']).'</a>' : forum_htmlencode($forum_user_online['ident']);
++$forum_page['num_users'];
}
else
++$forum_page['num_guests'];
}
$forum_page['online_info'] = array();
$forum_page['online_info']['guests'] = ($forum_page['num_guests'] == 0) ? $lang_index['Guests none'] : sprintf((($forum_page['num_guests'] == 1) ? $lang_index['Guests single'] : $lang_index['Guests plural']), forum_number_format($forum_page['num_guests']));
$forum_page['online_info']['users'] = ($forum_page['num_users'] == 0) ? $lang_index['Users none'] : sprintf((($forum_page['num_users'] == 1) ? $lang_index['Users single'] : $lang_index['Users plural']), forum_number_format($forum_page['num_users']));
//Кто онлайн сегодня - добавлено из расширения
$online_today_query = array(
'SELECT' => 'id, username',
'FROM' => 'users',
'WHERE' => 'last_visit>'.strtotime(gmdate("M d Y")),
'ORDER BY' => 'username'
);
$online_today_result = $forum_db->query_build($online_today_query);
$online_today = array();
while(list($ot_id, $ot_username) = $forum_db->fetch_row($online_today_result))
$online_today[] = '<a href="'.forum_link($forum_url['user'], $ot_id).'">'.$ot_username.'</a>';
?>
<div id="brd-online" class="gen-content">
<h3 class="hn"><span><?php printf($lang_index['Currently online'], implode($lang_index['Online stats separator'], $forum_page['online_info'])) ?></span></h3>
<?php if (!empty($users)): ?>
<p><?php echo implode($lang_index['Online list separator'], $users) ?></p>
<?php if(!empty($online_today)) echo '<h3 class="hn"><span> Сегодня нас посетили: '.implode(', ', $online_today).'</span></h3>'; ?>
<?php endif; ($hook = get_hook('in_new_online_data')) ? eval($hook) : null; ?>
</div>
<?php
}
$tpl_temp = forum_trim(ob_get_contents());
$tpl_main = str_replace('<!-- forum_info -->', $tpl_temp, $tpl_main);
ob_end_clean();
// END SUBST - <!-- forum_info -->
require FORUM_ROOT.'footer.php';
Rename the file .HTACCES.DICT on .htaccess
Go to options of SEO and set in field URL of file 404.php
Thx.
In the future version I'll take your favors
Chat was updated.
+ Compatibility with smileys for BB codes
+ Sending a message in the mini-chat by pressing CTRL + ENTER
+ Chat miniblock optimized
The option to customize the location of smiles is added to the extension. So far, only above and below, later I'll add more to the left. Download at the top.
Pan Smiles extension - adds a block of animated smilies next to the bb codes.
The extension has been made some changes for better display on the mobile version of the forum, as well as a limited output of smiles. In the original smileys scattered all over the screen.
Download extension Pan Smiles
Ask questions to the developer.
So, the extension Pan Subscriptions is the management of your subscriptions on the PunBB forum. After installing the extension, a new item appears in the main menu - Subscriptions. When you click, the page appears. Or several pages with your subscriptions to topics.
The extension is basic, other interesting and convenient options will be added along the way.
Download extension Pan Subscriptions для PunBB 1.4
More info on topic.
Updated extension to 0.4.8
+ Added date setting supported in all, even the most ancient browsers.
+ Fixed errors of undetermined variables.
More info on our Forum
Pan Moderator (pan_moderator) - Allows you to moderate the names of the authors of posts, post the date and date of registration.
Create functions for modifying the user's registration date, the publication date of messages and topics, as well as reassigning message authors.
As we develop, we will add various useful functions. Write your wishes, we will necessarily consider them
SEO Optimizations For PunBB is an extension with various features to improve the optimization of the forum.
Its peculiarity is that the settings allow you to connect only the necessary functions and disable those that are not used.
Add meta tags
Managing robots.txt
Clickable status bar
Ability to remove the word (Page 1) from the title
Image Optimization, automatically added the ALT attribute
Checks the lower case of headers
Check the name of the added topic for uniqueness, comparing with the topics from the database.
Download Pan SEO.
In my opinion, someone has already inquired about this ...
zetrader, Look this extension Pan SEO
After install go to settings && check
SEO URL TopicIf the link is wrong do redirect to curent url.
It is?
посмотрите как работают функции send_forum_subscriptions() и send_subscriptions()
send_forum_subscriptions() - срабатывает при добавлении новой темы
send_subscriptions() - при добавлении нового сообщения в соответствующую тему.
Что бы проверяло на новые сообщения по всему форуму, нужно добавить запросы в БД. Лучше для этого написать расширение. Хотя не понятно, почему изначально это небыло реализовано в PunBB
Если топик переносится в другой форум, то подписка остается на эту же тему. Смотрите в Базе Данных. Там только две таблицы
1 подписки на форумы forum_subscriptions
2 подписки на темы subscriptions
в таблицах только два столбика ID пользователя и ID форума или топика.
Если у вас не приходят письма, то вероятно что проблема в чем то другом
This is a lot of work that can not be done for free. To begin with, you need to repay the debt, what you promised. After that, I'll tell you how much it will cost.
yes, but i will spend a lot of time to rewrite it for you.
i have many Forms and sub form , when i enable this extension display only first form on my forms how can display all forms ?
thanks
This extension is not compatible with sub_forums. It has to be rewrite of change.
HTML:
<button class='red' id='js-button'>Нажать</button>
CSS:
.red {
color: red;
}
.green {
color: green
}
JavaScript:
$('#js-button').on('click', function(){
if ($(this).hasClass('red')) {
$(this).removeClass('red').addClass('green').html('Ещё раз');
return
}
$(this).removeClass('green').addClass('red').html('Нажать');
});
See up. I have edited the file. Is working.
//OLD CODE
// $forum_page['post_ident']['byline'] = '<span class="post-byline">'.sprintf((($cur_post['id'] == $cur_topic['first_post_id']) ? $lang_topic['Topic byline'] : $lang_topic['Reply byline']), '<strong>'.forum_htmlencode($cur_post['username']).'</strong>').'</span>';
//NEW CODE
{
$realname = $cur_post['realname'] != '' ? forum_htmlencode($cur_post['realname']) : forum_htmlencode($cur_post['username']);
$forum_page['post_ident']['byline'] = '<span class="post-byline">'.sprintf((($cur_post['id'] == $cur_topic['first_post_id']) ? $lang_topic['Topic byline'] : $lang_topic['Reply byline']), (($forum_user['g_view_users'] == '1') ? '<a title="'.sprintf($lang_topic['Go to profile'], forum_htmlencode($cur_post['username'])).'" href="'.forum_link($forum_url['user'], $cur_post['poster_id']).'">'.$realname.'</a>' : '<strong>'.$realname.'</strong>')).'</span>';
}
PunBB Forums → Posts by PanBB.Ru
Powered by PunBB, supported by Informer Technologies, Inc.