For this you will have to ask the developers who created 1.3.
76 2009-02-17 23:11
Re: Why were group IDs changed between 1.2 and 1.3??? (1 replies, posted in PunBB 1.3 troubleshooting)
77 2009-02-17 23:10
Re: Replace date with Topic (28 replies, posted in PunBB 1.3 additions)
I think your best option is to make a folder called topic_title_on_index inside extensions/ and make a file (inside the folder) called manifest.xml and put the following in and try it out:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE extension SYSTEM "ext-1.0.dtd">
<!--
/**
* @copyright topic_title_on_index Copyright (C) 2008 hcs
* @copyright Copyright (C) 2008 PunBB, partially based on code copyright (C) 2008 FluxBB.org
* @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
* @package topic_title_on_index
*/
-->
<extension engine="1.0">
<id>topic_title_on_index</id>
<title>Topic title on forum index </title>
<version>1.0.0 Beta</version>
<description>Replace the Last Post link on the index page for the name of the topic instead of the date format.</description>
<author>hcs</author>
<minversion>1.3</minversion>
<maxtestedon>1.3.2</maxtestedon>
<hooks>
<hook id="in_qr_get_cats_and_forums"><![CDATA[
$query['SELECT'] .=', t.subject, u.id as poster_id';
$query['JOINS'][] = array(
'LEFT JOIN' => 'topics AS t',
'ON' => 'f.last_post_id=t.last_post_id'
);
$query['JOINS'][] = array(
'LEFT JOIN' => 'users AS u',
'ON' => 'f.last_poster=u.username'
);
]]></hook>
<hook id="in_start"><![CDATA[
function words($string, $words)
{
return implode(" ", array_slice(explode(' ', $string), 0, $words)) . '...';
}
function relative_time($timestamp)
{
$ago = ' temu';
$d = time() - $timestamp;
if ($d < 60)
if ($d==1)
return $d. " sekunde" .$ago;
elseif (($d%10)>=2 && ($d%10)<=4 && ($d < 12 || $d > 14))
return $d. " sekundy" .$ago;
else
return $d. " sekund" .$ago;
else
{
$d = floor($d / 60);
if($d < 60)
if ($d==1)
return $d. " minute" .$ago;
elseif (($d%10)>=2 && ($d%10)<=4 && ($d < 12 || $d > 14))
return $d. " minuty" .$ago;
else
return $d. " minut" .$ago;
else
{
$d = floor($d / 60);
if($d < 24)
if ($d==1)
return $d. " godzine" .$ago;
elseif (($d%10)>=2 && ($d%10)<=4 && ($d < 12 || $d > 14))
return $d. " godziny" .$ago;
else
return $d. " godzin" .$ago;
else
{
$d = floor($d / 24);
if($d < 7)
return $d." d".(($d==1)?'zień':'ni')." temu";
else
{
$d = floor($d / 7);
if($d < 4)
if ($d==1)
return $d. " tydzień" .$ago;
elseif (($d%10)>=2 && ($d%10)<=4 && ($d < 12 || $d > 14))
return $d. " tygodnie" .$ago;
else
return $d. " tygodni" .$ago;
}//Week
}//Day
}//Hour
}//Minute
}
$words = 4;
]]></hook>
<hook id="in_normal_row_pre_display"><![CDATA[
if(strpos($forum_page['item_body']['info']['lastpost'], $lang_index['No post info']) === false && strpos($forum_page['item_body']['info']['lastpost'], $lang_common['Never']) === false)
$forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_index['Last post'].'</span> <strong><a href="'.forum_link($forum_url['post'], $cur_forum['last_post_id']).'">'.forum_htmlencode(words($cur_forum['subject'], $words)).'</a></strong> <cite>'.relative_time($cur_forum['last_post']).' '.sprintf($lang_index['Last poster'], '<a href="'.forum_link($forum_url['user'], $cur_forum['poster_id']).'">'.forum_htmlencode($cur_forum['last_poster']).'</a>').'</cite></li>';
]]></hook>
</hooks>
</extension>
78 2009-02-17 23:07
Re: Install.php Translation Spanish 1.2 (2 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Ill see if I can get this added to the Spanish language pack that we have on the downloads section.
Thanks.
79 2009-02-17 23:05
Re: Curtailing Mod powers (6 replies, posted in PunBB 1.3 discussion)
The files you will need is viewpost.php and modarate.php.
You will need to look for where the code code the items you posted above are set, and in most cases remove the mod setting the the if statment.
80 2009-02-17 23:03
Re: Private forum (5 replies, posted in PunBB 1.3 discussion)
This is possible.
You would need to edit include/functions.php remove line 421 - 455 and replace with
// Index should always be displayed
$links['index'] = '<li id="navindex"'.((FORUM_PAGE == 'index') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['index']).'">'.$lang_common['Index'].'</a></li>';
if ($forum_user['is_guest'])
{
$links['register'] = '<li id="navregister"'.((FORUM_PAGE == 'register') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['register']).'">'.$lang_common['Register'].'</a></li>';
$links['login'] = '<li id="navlogin"'.((FORUM_PAGE == 'login') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['login']).'">'.$lang_common['Login'].'</a></li>';
}
else
{
if (!$forum_user['is_admmod'])
{
if ($forum_user['g_read_board'] == '1' && $forum_user['g_view_users'] == '1')
$links['userlist'] = '<li id="navuserlist"'.((FORUM_PAGE == 'userlist') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['users']).'">'.$lang_common['User list'].'</a></li>';
if ($forum_config['o_rules'] == '1' && (!$forum_user['is_guest'] || $forum_user['g_read_board'] == '1' || $forum_config['o_regs_allow'] == '1'))
$links['rules'] = '<li id="navrules"'.((FORUM_PAGE == 'rules') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['rules']).'">'.$lang_common['Rules'].'</a></li>';
if ($forum_user['g_read_board'] == '1' && $forum_user['g_search'] == '1')
$links['search'] = '<li id="navsearch"'.((FORUM_PAGE == 'search') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_common['Search'].'</a></li>';
$links['profile'] = '<li id="navprofile"'.((substr(FORUM_PAGE, 0, 7) == 'profile') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['user'], $forum_user['id']).'">'.$lang_common['Profile'].'</a></li>';
$links['logout'] = '<li id="navlogout"><a href="'.forum_link($forum_url['logout'], array($forum_user['id'], generate_form_token('logout'.$forum_user['id']))).'">'.$lang_common['Logout'].'</a></li>';
}
else
{
if ($forum_user['g_read_board'] == '1' && $forum_user['g_view_users'] == '1')
$links['userlist'] = '<li id="navuserlist"'.((FORUM_PAGE == 'userlist') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['users']).'">'.$lang_common['User list'].'</a></li>';
if ($forum_config['o_rules'] == '1' && (!$forum_user['is_guest'] || $forum_user['g_read_board'] == '1' || $forum_config['o_regs_allow'] == '1'))
$links['rules'] = '<li id="navrules"'.((FORUM_PAGE == 'rules') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['rules']).'">'.$lang_common['Rules'].'</a></li>';
$links['search'] = '<li id="navsearch"'.((FORUM_PAGE == 'search') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_common['Search'].'</a></li>';
$links['profile'] = '<li id="navprofile"'.((substr(FORUM_PAGE, 0, 7) == 'profile') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['user'], $forum_user['id']).'">'.$lang_common['Profile'].'</a></li>';
$links['logout'] = '<li id="navlogout"><a href="'.forum_link($forum_url['logout'], array($forum_user['id'], generate_form_token('logout'.$forum_user['id']))).'">'.$lang_common['Logout'].'</a></li>';
$links['admin'] = '<li id="navadmin"'.((substr(FORUM_PAGE, 0, 5) == 'admin') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['admin_index']).'">'.$lang_common['Admin'].'</a></li>';
}
}
81 2009-02-13 23:10
Re: switch from phpbb (12 replies, posted in PunBB 1.2 troubleshooting)
Please note that 1.3 does not have a sub forums mod.
82 2009-02-13 00:46
Re: Help with error. (11 replies, posted in PunBB 1.3 troubleshooting)
Yes we do. However as this isnt mainly a 1.3 Issue I dont know what to suggest. Sorry.
83 2009-02-10 10:17
Re: How to execute php code in main.tpl? (2 replies, posted in Discussions)
You cannot run plain PHP code in a .tpl files, You need to include a document.
For 1.2
<pun_include"">
For 1.3
<!--forum_include""--!>
Then put your file in include/user`
84 2009-02-07 20:09
Re: PunBB.NET beta (58 replies, posted in PunBB.NET discussion)
Working on .NET is a good side path for Punbb which has a rather large development team.
85 2009-02-06 16:40
Re: For how long is PunBB 1.2.x gonna be officially supported? (6 replies, posted in PunBB 1.2 discussion)
1.2 support will not be stopping, Im planning on keeping support for 1.2 where I can. 1.3 is the way to go, however due to the lack of extensions some may not feel the need to upgrade.
There is no urgancy for you to upgrade, so its up to you if you wish to keep on using 1.2.*.
86 2009-02-05 17:38
Re: Help with error. (11 replies, posted in PunBB 1.3 troubleshooting)
I looked on a forum and found the message above, The words in bold were the persons variables they were using. My advice is make sure that your variables dont remain null when you call the code out.
87 2009-02-05 14:49
Re: [request] Google Maps embed (7 replies, posted in PunBB 1.3 extensions)
You can use the google maps API to easlly get it working.
88 2009-02-05 14:47
Re: Help with error. (11 replies, posted in PunBB 1.3 troubleshooting)
I dont know how to fix this but looking around:
Your constructor for someclass is not setting the someobject member variable correctly, so it remains a null reference, which causes the error.
89 2009-02-05 14:32
Re: Migrating database from punbb 1.2.8 to 1.3 ? (5 replies, posted in PunBB 1.3 discussion)
Thank you
ps: I have once played tennis in croydon
Well you dont want to be here now, Weather is crap.
90 2009-02-05 14:05
Re: Migrating database from punbb 1.2.8 to 1.3 ? (5 replies, posted in PunBB 1.3 discussion)
Make sure you have a backup of your database and run admin/db_update.php (e.g. open http://example.com/myforums/admin/db_update.php in your browser).
91 2009-02-04 16:01
Re: 4294967294 uploaded files (12 replies, posted in PunBB 1.2 troubleshooting)
The upload feature is not a standard punBB feature, so someone has installed this. It might help if you talk to the developers of the code.
92 2009-02-04 14:48
Re: 4294967294 uploaded files (12 replies, posted in PunBB 1.2 troubleshooting)
What modification are you using?
93 2009-02-04 12:24
Re: Top tips for a beginner coder? (25 replies, posted in Programming)
Depends on what you want to learn to program.
A usefull site is www.w3schools.com Which has a number of programming languages in.
94 2009-02-04 12:22
Re: Possible to combine 2 databases? (5 replies, posted in Discussions)
The way this is possible is:
Have the both forums within the same table, but different prefix's
Create a script (which would be too hard) that will do for each row, insert it into the new db. You would have to do this for Users
It wouldnt be possible for Forums/Topics/Posts as the foreign keys will change and wont work.
95 2009-02-04 12:06
Re: 4294967294 uploaded files (12 replies, posted in PunBB 1.2 troubleshooting)
You need to be a little more clearer about what the situation is. What modifications do you have on your fourm?
96 2009-02-03 22:27
Re: PunBB.NET beta (58 replies, posted in PunBB.NET discussion)
Finnaly got my server working and I must say you guys have done a good job on it! You have done allot.
97 2009-02-03 14:11
Re: PunBB.NET beta (58 replies, posted in PunBB.NET discussion)
Do we not need the Database Schema ??
98 2009-02-03 14:11
Re: Need help on PunBB 1.2.17 (10 replies, posted in PunBB 1.2 troubleshooting)
For the first problem, I would look into making sure that the row in the database is correct, check to make sure it has a parent Id?
And at the moment there is no extension for subforums for 1.3, so you woudlnt have this option.
99 2009-02-03 00:20
Re: Upgrade to PHP5, Experiencing several errors (1 replies, posted in PunBB 1.3 troubleshooting)
By looking at the messages, I would make sure your server has access to read / write the files via chmod? Sometimes the permissions go walkabouts..
100 2009-02-02 18:03
Re: Logging In (8 replies, posted in PunBB 1.2 troubleshooting)
PunBB does not work with Firefox (not for me at least).
How can you say that? Sorry but you have notthing to prove that punbb dosnt work with firefox, Infact im sure most users user firefox. Fact arnt you even using Firefox to get on this punbb site?
Did you clear eveything, cache and cookies? Are you able to log into anther account on your forum?