1 2009-07-06 04:48
Re: How to remove (Page 1) from page title? (9 replies, posted in PunBB 1.3 discussion)
2 2009-07-06 04:46
Topic: [Release] No (Page 1) in Title (2 replies, posted in PunBB 1.3 extensions)
Strips annoying (Page 1) from all forum page titles
Example: "Topic/Forum/etc (Page 1) - Forum Title" becomes "Topic/Forum/etc - Forum Title".
3 2009-07-05 05:36
Re: How to remove (Page 1) from page title? (9 replies, posted in PunBB 1.3 discussion)
I think I've figured out how to do it. I'm new to PunBB extensions, so I hope knowledgeable people will let me know any corrections that should be made. It seems to work for me, though.
--removed--
4 2009-07-04 05:31
Re: [release] Favorite topic (25 replies, posted in PunBB 1.3 extensions)
Great extension.
I noticed that the search results page for favorites didn't "match" the subscriptions page, so I tweaked the extension as follows, and thought I'd share back.
Added to manifest.xml:
<hook id="sf_fn_generate_search_crumbs_start"><![CDATA[
if ($action == 'show_favorite')
{
if (file_exists($ext_info['path'].'/lang/'.$forum_user['language'].'/'.$ext_info['id'].'.php'))
{
include_once $ext_info['path'].'/lang/'.$forum_user['language'].'/'.$ext_info['id'].'.php';
}
else
{
include_once $ext_info['path'].'/lang/English/'.$ext_info['id'].'.php';
}
$forum_page['crumbs'][] = $lang_favorite_topic['Favorites'];
$forum_page['items_info'] = generate_items_info($lang_search['Topics found'], ($forum_page['start_from'] + 1), $num_hits);
$forum_page['main_head_options']['defined_search'] = '<span'.(empty($forum_page['main_head_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_search['User defined search'].'</a></span>';
return true;
}
]]></hook>
<hook id="sf_fn_no_search_results_start"><![CDATA[
if ($action == 'show_favorite')
{
if (file_exists($ext_info['path'].'/lang/'.$forum_user['language'].'/'.$ext_info['id'].'.php'))
{
include_once $ext_info['path'].'/lang/'.$forum_user['language'].'/'.$ext_info['id'].'.php';
}
else
{
include_once $ext_info['path'].'/lang/English/'.$ext_info['id'].'.php';
}
message($lang_favorite_topic['No favorites'], $forum_page['search_again'], $lang_favorite_topic['Favorites']);
return true;
}
]]></hook>
Added to $lang_favorite_topic in English favorite_topic.php:
'Favorites' => 'Favorites',
'No favorites' => 'You have no favorite topics.',
5 2009-07-04 02:19
Re: How to remove (Page 1) from page title? (9 replies, posted in PunBB 1.3 discussion)
I think you have to make an extension, see function generate_crumbs() in include/functions.php.
6 2009-06-08 07:42
Re: [release] Impoved online list (61 replies, posted in PunBB 1.3 extensions)
Tried to install version 1.3 of the extension on PunBB 1.3.4:
Loading of extension "online_plus" failed.
Element extension/hooks/hook has content which does not end in PHP mode.
I traced it to the fact that you make use of at least one short open PHP tag in the extension, and I have short open tags disabled.
7 2009-06-08 06:56
Re: [Release] Subforums (60 replies, posted in PunBB 1.3 extensions)
The problem regarding the categories is because of the JavaScript you're using:
function changeParent(cat_name, parent_name) {
if (document.getElementsByName(parent_name)[0].value == 0)
document.getElementsByName(cat_name)[0].disabled=false;
else
document.getElementsByName(cat_name)[0].disabled=true;
}
Disabled means its value isn't sent, and then you've got the following code:
if (isset($_POST['add_forum']) && !empty($_POST['set_parent']) && empty($_POST['add_to_cat']))
$_POST['add_to_cat'] = 1;
--snip--
Nevermind, the solution I posted here wouldn't work, as the select element doesn't understand the readonly attribute.
--snip--
Cheers.
8 2008-05-18 04:34
Re: Can we get the PunBB.org domain back? (20 replies, posted in Feature requests)
I'm rather confused as to the domain change too. I understand having the new owners host it. So why not host it on their server, keep the old domain, and have a "hosted by" link/graphic in a prominent but undistracting place?
9 2007-06-29 02:21
Re: Database help needed (quick) (8 replies, posted in PunBB 1.2 troubleshooting)
Does it...?
Yep. It's a no-brainer.
10 2006-12-31 11:48
Re: Moderator Groups Why? (2 replies, posted in PunBB 1.2 discussion)
Private forums for that group, for example.
11 2006-10-05 02:16
Re: Copyright message still has 2005 (11 replies, posted in PunBB 1.2 bug reports)
most companies I've worked w/ have used the notation © first pub date - current date.
I'm most familiar with that as well.
But, copyright doesn't expire until 70 years after the death of the author, regardless of the date on it, so it's just an aesthetic thing, rather than an enforcable disclaimer.
12 2006-09-26 06:01
Re: Is PunBB poisoned NULL byte vulnerability? (4 replies, posted in PunBB 1.2 discussion)
13 2006-09-26 05:57
Re: The supposed "poison NULL byte vulnerability" (8 replies, posted in News)
14 2006-08-26 01:44
Re: Help! My PunBB Mailer has just been exploited (14 replies, posted in PunBB 1.2 bug reports)
It would be helpful if you simply added this as a permission (no minimum posts, just a checkbox). That way, you could only allow trusted members (people that have been around for more than 5 minutes...) to use the mailer at all.
This _exact_ same thing happened on the Textpattern support forum. I've had to turn it off for everyone except a few people that must have this ability.
15 2006-03-12 18:15
Re: [release] AP_Forum_cleanup (21 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Okay, thanks.
16 2006-03-12 03:21
Re: [release] AP_Forum_cleanup (21 replies, posted in PunBB 1.2 modifications, plugins and integrations)
This plugin doesn't appear to be doing anything. I can load it up, click the various buttons, I get told the sync is done, and it redirects me.
But then I check and see nothing was updated. For example, I've got one user where his post count is 1, but he's actually got no posts anymore. After I syncronize the user post counts, his still remains as 1.
I don't get any warnings or errors. My error reporting and logs are turned on and working properly (double-checked).
I tried running the SQL query through phpMyAdmin:
CREATE TEMPORARY TABLE IF NOT EXISTS user_posts SELECT poster_id, count(*) as posts FROM posts GROUP BY poster_id;
UPDATE users, user_posts SET num_posts = posts WHERE id = poster_id;
It runs without error, but still doesn't appear to do anything.
PunBB 1.2.11, PHP 4.3.9, MySQL 4.1.7
I know, doesn't give you much to go on. Any ideas?
17 2004-12-24 01:25
Re: PunBB 1.2 - What's to come (300 replies, posted in PunBB 1.2 discussion)
Well, at the "worst" it could be a new year's gift, right?