I'll assume English isn't your first language, and restrain myself from flaming.

Anyway the mod you are after can be found [here].

227

(5 replies, posted in General discussion)

Why are you using 1.2.4? Thats asking to be "hacked".

228

(2 replies, posted in Programming)

You could set a timeout on the stream, obviously it is not ideal, but as far as im aware there isn't a way to check if there is data to be read or not.

http://uk.php.net/manual/en/function.st … imeout.php

229

(13 replies, posted in PunBB 1.2 bug reports)

you could solve catching f.u.c.k or f-u-c-k etc using a regex such as f[.-]?u[.-]?c[.-]?k, however im not sure if punbb censoring supports regex, or it would need to be hard coded in (in which case it would be more work).

You cannot simply be hacked because a file in writeable, fix whatever part of your site they exploited and you won't have any problems.

231

(4 replies, posted in PunBB 1.2 troubleshooting)

If you use firefox you can view cookies and only delete the appropriate one, instead of clearing the lot.

232

(4 replies, posted in PunBB 1.2 troubleshooting)

Clear your cookies.

StevenBullen wrote:

@Mediator!

You still doing these?

His last reply was around 2 months ago, so i'd assume not.

Mark wrote:

go to http://www.reinet.co.uk
in his announcement box, he has made it so when he posts in a certain forum it goes there aswell.

This is by no means a mod, but the basic procedure is remove the existing announcement stuff (except references within the template files). Then change header.php to include something along the lines of:

// START SUBST - <pun_announcement>
if ($pun_config['o_announcement_board'] != '-1' && $pun_user['g_read_board'] != '0')
{
    ob_start();

?>
<div id="announce" class="block">
    <h2><span><?php echo $lang_common['Announcement'] ?></span></h2>
    <div class="box">
        <div class="inbox">
            <?php    
            
    $result = $db->query('SELECT t.id, t.subject, t.closed, p.poster, p.poster_id, p.message, p.hide_smilies, p.posted, u.group_id AS g_id, g.g_title FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'posts AS p ON p.topic_id=t.id AND p.posted=t.posted INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id INNER JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id WHERE t.moved_to IS NULL AND t.forum_id='.$pun_config['o_announcement_board'].' ORDER BY t.posted DESC LIMIT 1') or error('Unable to fetch announcement', __FILE__, __LINE__, $db->error());

    $announcement = $db->fetch_assoc($result);
        
    if ($pun_config['o_censoring'] == '1')
    {
        $announcement['subject'] = censor_words($announcement['subject']);
        $announcement['message'] = censor_words($announcement['message']);
    }
    
    $announcement['poster'] = '<span class="'.strtolower(str_replace(' ', '', $announcement['g_title'])).'"><a href="'.PUN_ROOT.'profile.php?id='.$announcement['poster_id'].'" class="username"><strong>'.pun_htmlspecialchars($announcement['poster']).'</strong></a></span>';
        
    $announcement['message'] = parse_message($announcement['message'], $announcement['hide_smilies']);
    $announcement['closed'] = $announcement['closed'] != '1' ? '<a href="'.PUN_ROOT.'view'.($announcement['question'] != '' ? 'poll' : 'topic').'.php?id='.$announcement['id'].'">View Comments</a>' : '';
    
    echo '<div class="center"><strong>'.pun_htmlspecialchars($announcement['subject']).'</strong> - Posted By '.$announcement['poster'].' ('.format_time($announcement['posted']).') '.$announcement['closed'].'</div><br/>'."\n".$announcement['message'].'<br/>'."\n";

            ?>
        </div>
    </div>
</div>
<?php

    $tpl_temp = trim(ob_get_contents());
    $tpl_main = str_replace('<pun_announcement>', $tpl_temp, $tpl_main);
    ob_end_clean();
}
else
    $tpl_main = str_replace('<pun_announcement>', '', $tpl_main);
// END SUBST - <pun_announcement>

As you can see this will require a config value 'o_announcement_board', containing the forum_id of the board to export the announcement from, or -1 to turn it off.

Hope that helps.

234

(7 replies, posted in PunBB 1.2 discussion)

PunBB Migration Tool

The PunBB Migration Tool is a utility for migrating to PunBB from a series of other forum software. It works by converting the database from the source forum into a PunBB database. The migration tool has been developed by David Djurbäck (a.k.a. Chacmool). In it's current version, the tool supports conversion from the following forum/CMS software:

    * Invision Power Board 1.3
    * Invision Power Board 2.0
    * MiniBB 1.7d
    * phpBB 2.0
    * PHPNuke 7.4
    * vBulletin 3.0.0
    * YabbSE 1.5.5
    * SMF 1.0.5
    * SimpleBoard 1.7d
    * PHP-Fusion

*  PunBB Migration Tool 1.4.0 - Updated 2005-09-30.

As far as security goes, PunBB 1.2.10 has no known exploits for it, and if any appear im sure they will be patched and a new version + change log released within a couple days.

235

(16 replies, posted in Feature requests)

It could easily replace the ICQ field, i haven't ran into anyone that uses ICQ for months.

below that add

$links[] = '<li id="navirc"><a href="irc://irc.stealingyour.info/stolennet">IRC</a>';

to add a normal link, or

if (!$pun_user['is_guest'])
    $links[] = '<li id="navirc"><a href="irc://irc.stealingyour.info/stolennet">IRC</a>';

to add a link only visible to members.

There is a time limit in the user group setup, after this time limit has passes they cannot edit the subject.

238

(7 replies, posted in PunBB 1.2 discussion)

One big pro is punbb has a very helpful community and an active development team, meaning if you have problems or need help with any modification, you can almost always get what you need here.

Guests use user_id 1, so no you cannot change it.

##
##        Mod title:  Simple Gallery
##
##      Mod version:  1.0
##   Works on PunBB:  1.2.*
##     Release date:  13/01/06
##           Author:  Reines
##
##      Description:  Adds a very simply gallery with minimal configuration to your site.
##
##       Affects DB:  No
##
##   Affected files:  None
##
##            Notes:  Install a link to this gallery using the extra menu items in the admin panel.
##
##       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.
##

Very simple mod, the gallery root should probably be stored in the database not hard coded, but it didn't seem worth the effort since its such a basic mod.

[Download]
[Demo]

241

(6 replies, posted in Programming)

......

242

(19 replies, posted in PunBB 1.2 show off)

I Recently passed ownership my old punbb site (http://reinet.co.uk) over to a friend. It was ranked 4th on PunBBig for posts/topics, and 1st for topic & post growth. I replaced this site with a new one (http://www.stealingyour.info), mainly based around programming, computer graphics, but with a fairly large gaming and general discussion area too. It has been up for around 9 days now, and already has:

Board Stats wrote:

Members: 1190
Total topics: 1466
Total posts: 19535

so im hoping it will grow into another large and active site.

Below is a list of modifications i have made, bold indicates not finished or things still to do.

Mods Made wrote:

- Skins
  - Light
  - Dark (i suck at css so haven't got around to it yet)
- PMs
- Ability to choose link target
- Polls
- Image verification
  - Install GD library
  - Verification on registration
- Group colours & Info
  - admin colour
  - mod colour
  - user group info
- Edit Messaging Profile
  - irc
  - google-talk
  - remove jabber
- Anti referer URL tags
- Adverts
  - Affiliates
  - Google adverts
  - Paypal donate
- Post author in seperate column
- Portal
  - navigation
  - statistics
  - announcements
  - affiliates
- IP => Country lookup
- Ban logs
- Code Syntax colouring (mod i used has bugs in it, need fixing when i get time)
  - cpp
  - java
  - php
  - ini
  - apache
  - mysql
  - vbnet
  - pascal
  - mirc
  - tcl
- Remove censoring
- Remove announcement
- IRC
  - server listings
  - java chat applet
- RSS announcement feeds
- Downloads
  - downloads plugin
  - ability to limit users bandwidth usage
  - anti-leech
  - descriptions of downloads (haven't got around to finishing yet)

Some of these are based off mods found here/punres and edited/rewritten to suit my needs, and others i made myself.

Any feedback/comments would be nice (:

URL: http://www.stealingyour.info

Edit: Yes im aware it isn't 100% valid XHTML ): I will try sort that at some point, but it isn't my strong point.

243

(45 replies, posted in News)

Thanks, upgrade wasn't a problem at all.

livatlantis wrote:

This is amazing! I never thought updating would be so easy... Rickard, I must say, PunBB is awesome! So fast, customizable and... easy. I'm sure this is a easy update, but I'm proud: http://www.powerofmetal.net/forum/ wink

Thanks!

Nice skin (:

Show us the lines around 511 please

you could use a .htaccess?

Lol yea, i had ignored it and put the blame on something i had messed up when editing stuff, or a mod i had installed - but if its happening here i guess it's a proper bug

Yea i have noticed that afew times on my forums too, and although not vital - it can be annoying tongue

248

(101 replies, posted in PunBB 1.2 discussion)

CodeXP wrote:

Here's another tweak, this time it's one that everyone should add(?):

1. Open register.php

2. Find, line 80:

else if (isset($_POST['form_sent']))
{

3. After, add:

    confirm_referrer('register.php');

4. Save & upload.

The refferer is rather simple to fake, but it's still something to consider just the same.

that will cause problems for anyone trying to register using norton internet suite, installing the image verification mod. (posted somewhere on the modification board) would be alot more secure.

249

(2 replies, posted in General discussion)

I'll give it a try, thanks

250

(2 replies, posted in General discussion)

Well i have been having some bad hosting experiences recently, so thought maybe i should seek some advice. I have a large PunBB forum (http://reinet.co.uk) which has on average 50-150 users online at a time, out of a total of around 3000 registered users.

I was hosted with ehostpros.com for awhile, and to be fair the service and hosting was fairly good. I suffered afew DDoS attacks, but continued on there. Around 3 months ago they suspended my hosting with the reason "your site uses too many httpd connections and is causing the server to run slow". I looked around for a couple days, and bought a server from jhservers.com. After waiting 7 days for it to be setup, and a further 5 days to aquire extra IPs for nameservers, i moved there. That lasted for almost a month, until one day apache just died, quickly followed by the full server. After submitting a couple support tickets and having them closed my server being fixed, or any explination i gave up there and moved back to ehostpros (who had unsuspended me account after i moved off it). This lasted for another month or so, until they resuspended it for the same reason and told me i would need to purchase a dedicated server off them to continue there (which i don't plan on because they are a rip off). I then tried a server from managed.com - this one was setup nice and fast, and looked promising. After a couple days there though i noticed speeds were terrible, the 100mbps port i was paying for was providing download speeds of under 20kbps at times, and even loading php pages was slow. I am still there just now, and suffering from random connection time outs and problems. Also to make things worse i just noticed today that managed.com are ranked as the 2nd top offender in spamhaus.org.

I want to get away from managed.com as quickly as possible, but my budget is fairly limited and as i am starting Uni in 2 weeks i will probably not be up to monitoring and maintaining a dedicated server - but shared hosting providers are refusing to host my forums because they are too big*.

Any suggestions would be much appreciated, as i really don't want to end up going from host to host finding each to be as bad as the last ):

* Rank 2 for topics (rank 1 for topic growth) in PunBBig and rank 4 for posts (rank 3 for post growth).