There's no "best" or "one-size-fits-all" solution for spam. Different forums deal with their spam problems in different ways, and rightly so.

In include/parser.php, change

    // Do the more complex BBCodes (also strip excessive whitespace and useless quotes)
    $a = array( '#\[url=("|\'|)(.*?)\\1\]\s*#i',
                '#\[url\]\s*#i',
                '#\s*\[/url\]#i',
                '#\[email=("|\'|)(.*?)\\1\]\s*#i',
                '#\[email\]\s*#i',
                '#\s*\[/email\]#i',
                '#\[img\]\s*(.*?)\s*\[/img\]#is',
                '#\[colou?r=("|\'|)(.*?)\\1\](.*?)\[/colou?r\]#is');

    $b = array( '[url=$2]',
                '[url]',
                '[/url]',
                '[email=$2]',
                '[email]',
                '[/email]',
                '[img]$1[/img]',
                '[color=$2]$3[/color]');

to

    // Do the more complex BBCodes (also strip excessive whitespace and useless quotes)
    $a = array( '#\[url=("|\'|)(.*?)\\1\]\s*#i',
                '#\[url\]\s*#i',
                '#\s*\[/url\]#i',
                '#\[email=("|\'|)(.*?)\\1\]\s*#i',
                '#\[email\]\s*#i',
                '#\s*\[/email\]#i',
                '#\[img\]\s*(.*?)\s*\[/img\]#is',
                '#\[wiki\](.*?)\[/wiki\]#',
                '#\[colou?r=("|\'|)(.*?)\\1\](.*?)\[/colou?r\]#is');

    $b = array( '[url=$2]',
                '[url]',
                '[/url]',
                '[email=$2]',
                '[email]',
                '[/email]',
                '[img]$1[/img]',
                '<a href="http://en.wikipedia.org/wiki/$1" alt="Wiki" target="_blank">$1</a><img src=http://en.wikipedia.org/wiki/external.png />',
                '[color=$2]$3[/color]');

@mystic (and thesaint if you use the above code): target="_blank" is invalid XHTML, I'm not sure if alt is a valid attribute for links but in any case using a title attribute instead of alt would make more sense, and you shouldn't direct link Wikipedia's image.

Matthias wrote:

Thank you very much!
Could you tell me if it works with allow_include_url = off?

It ought to, that solution was posted to address that issue.

Apparently, there's a Flashchat-PunBB integration class out there already.

330

(1 replies, posted in Feature requests)

Nope, this feature has come up several times before, and no one has implemented it.

331

(5 replies, posted in PunBB 1.2 troubleshooting)

His script is on this forum.

332

(1 replies, posted in PunBB 1.2 troubleshooting)

You just want to use a style of your own? Create it, upload it to the style directory, make it default through the admin interface, and delete the other styles if you do not wish your users to use them.

Please note that as far as I can remember, changing the default style does not change the style picked by users, so if any of your users have chosen styles through their profile display options and you delete said styles, they will have problems. You can fix this issue through the languages & styles plugin.

4. "Truncate" simply means to shorten a string (in this case, the topic subject and/or first message) if it exceeds a certain length. It would only affect display on the news page, not actually change the contents of the topic.

334

(1 replies, posted in General discussion)

Run an SQL query (through phpMyAdmin or similar) like "SELECT email FROM users".

335

(20 replies, posted in PunBB 1.2 troubleshooting)

Create a PHP file (say, phpinfo.php) that contains simply the following:

<?php
phpinfo();
?>

Then, upload it to your server and open it in your browser.

F.M wrote:

Hello, you guys have been so helpful so far. Is it possible for me to get the database structure for Punbb forum that i downloaded? Thank you

http://wiki.punres.org/Database_Tables_Reference

Edit this code in header.php to reflect what files you want the links shown on:

    if (in_array(basename($_SERVER['PHP_SELF']), array('index.php', 'search.php')))
        $tpl_temp .= "\n\t\t\t".'</ul>'."\n\t\t\t".'<ul class="conr">'."\n\t\t\t\t".'<li><a href="search.php?action=show_new">'.$lang_common['Show new posts'].'</a></li>'."\n\t\t\t\t".'<li><a href="misc.php?action=markread">'.$lang_common['Mark all as read'].'</a></li>'."\n\t\t\t".'</ul>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>';
    else
        $tpl_temp .= "\n\t\t\t".'</ul>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>';
Vanslyde wrote:

Well I meant the next Calendar release... since we're in thread Calendar 2.0 I figured out the next release would be 3.0... aaaanyway...

Ah, I see. My bad wink

Vanslyde wrote:

So I guess there's no more support for this mod until 3.0 (if any) gets released, right?

Thing is I'd like to try to implement it on my board, knowing that someone over here is available for help if needed...

1.3 wink

Anyway, if you decide to install this mod and you have trouble, post here and I'm sure that if someone reads it and knows how to help, he or she will.

It might look nice if you put a horizontal bar a bit in between the first and second posts of each topic.

341

(6 replies, posted in PunBB 1.2 troubleshooting)

If you have access to something like phpMyAdmin, manually edit the config value for the announcement in the database. Then, delete the files in your cache folder.

342

(35 replies, posted in General discussion)

Dr.Jeckyl wrote:

no i mean in a magazine i subscribe to. actually it's MaximumPC not a gaming mag. they have a 10-12 page ad in most every month. get's annoying. i'm actually kinda half kidding really. i've researched them and they seem to be one of the more reliable hosts.

I agree completely, those ads are atrocious.

There's been some discussion about MediaWiki integration at Punres, although I'm not quite sure whether that topic contains a workable solution.

A simple way might be to use Lightbox JS or similar, editing parser.php to make the [img] BBCode output an image tag wrapped with a hyperlink to the image with the "rel" attribute having the value "lightbox".

^ Lol, I forgot about the ever important step of adding the index. tongue

346

(13 replies, posted in PunBB 1.2 troubleshooting)

1. Your site's styling must be conflicting with the post status indicators' styling.

2. I see a border and I'm using Fx.

IDunno wrote:

BTW,  Smarty I noticed after installing this script, that I have a harder time moving around on my site. Does this plugin put a 'heavy load' on the server / database?

Just wondering....

Plugins are only run when you view them through the admin panel and I don't think that adding an index to the messages table has much affect on the speed of normal forum operations, so I doubt it's the plugin that's slowing things down.

348

(11 replies, posted in PunBB 1.2 discussion)

guardian34 wrote:

If KDE is on there, I never saw it. The machine just boots to an informational text screen.

At *only* 127 MB, I imagine that it's Ubuntu Server Edition or something. However I haven't used the image so I don't know.

349

(66 replies, posted in General discussion)

hcgtv wrote:
quaker wrote:

about 64 usb stick will work...

I think at least a 128mb stick would be needed.

Looking at my WinXP stack:
Apache: 15,298kb - minus the manual
MySQL: 28,157kb
PHP: 21,821kb
Total: 65,276kb

That'll leave plenty of room for your apps and database growth.

Looking at the prices, 128mb sticks are going for anywhere from $12 to $15 dollars.

Add in our time and effort, $49.95 out the door plus shipping and handling.

I'll get the ZedFiles division working on it right away wink

Using SQLite would lighten that load significantly. wink

If you have access to phpMyAdmin or similar, you can assign a default value to new_window_link (it's probably in the users table).