7,176

(16 replies, posted in PunBB 1.2 troubleshooting)

install_mod for which mod?
And might I suggest using this mod instead of PunPoll, since PunPoll was made for 1.1.x

Mmm, what's the URL to your site?

7,178

(8 replies, posted in Programming)

favicon.ico is the filename smile
More info: http://www.thesitewizard.com/archive/favicon.shtml

7,179

(16 replies, posted in PunBB 1.2 troubleshooting)

Are you viewing a specific page when you get that error?

Did you edit post.php? The form must be named spelling_mod.

This is in your forum. You have a spelling folder there (or you should)

1 sig/user/page for 1.2.5:

#
#---------[ 1. OPEN ]---------------------------------------------------------
#

    viewtopic.php

#
#---------[ 2. FIND ]---------------------------------------------
#
    // Do signature parsing/caching
    if ($cur_post['signature'] != '' && $pun_user['show_sig'] != '0')
    {
        if (isset($signature_cache[$cur_post['poster_id']]))
            $signature = $signature_cache[$cur_post['poster_id']];
        else
        {
            $signature = parse_signature($cur_post['signature']);
            $signature_cache[$cur_post['poster_id']] = $signature;
        }
    }

#
#---------[ 3. REPLACE WITH ]------------------------------------------------------
#
    // Do signature parsing/caching
    if ($cur_post['signature'] != '' && $pun_user['show_sig'] != '0')
    {
        if (!isset($signature_cache[$cur_post['poster_id']]))
        {
            $signature = parse_signature($cur_post['signature']);
            $signature_cache[$cur_post['poster_id']] = $signature;
        }
    }

Ah, that was a problem with the original thing I posted I think
If line 185 is

$table_prefix = $db_prefix

Just add a ; after it smile

OK, found the issue. I'll edit the fix into my original post as well.

Open post.php
FIND
$form = '<form id="post" method="post" action="post.php?action=post&tid='.$tid.'" onsubmit="this.submit.disabled=true;if(process_form(this)){return true;}else{this.submit.disabled=false;return false;}">';
REPLACE WITH
$form = '<form name="spelling_mod" id="post" method="post" action="post.php?action=post&tid='.$tid.'" onsubmit="this.submit.disabled=true;if(process_form(this)){return true;}else{this.submit.disabled=false;return false;}">';
FIND
$form = '<form id="post" method="post" action="post.php?action=post&fid='.$fid.'" onsubmit="return process_form(this)">';
REPLACE WITH
$form = '<form name="spelling_mod" id="post" method="post" action="post.php?action=post&fid='.$fid.'" onsubmit="return process_form(this)">';

Open spelling/spellmessage.js
The code should be as follows:

// --------------------------------------------------------------------
// phpSpell Javascript (For the PHPBB Message Document)
//
// This is (c)Copyright 2003, Team phpSpell.
// --------------------------------------------------------------------
        var ie4 = (document.all) ? 1:0;
        var gecko=(navigator.userAgent.indexOf('Gecko') > -1) ? 1:0;
        var op6=(navigator.userAgent.indexOf('Opera/6') > -1) ? 1:0;
        var op7=(navigator.userAgent.indexOf('Opera/7') > -1) ? 1 : (navigator.userAgent.indexOf('Opera 7') > -1) ? 1:0;
        var ns4=(navigator.userAgent.indexOf('Mozilla/4.7') > -1) ? 1:0;
        var sf=(navigator.userAgent.indexOf('Safari') > -1) ? 1:0;
        if (op7) ie4 = 0;
        if (sf) {
          ie4 = 0;
          gecko = 1;
        }


        var LinkToField = "";

        function openspell()
        {
          height = 391;
          width = 555;
          if (ie4) LinkToField = self.spelling_mod.req_message;
          if (gecko) {
            LinkToField = parent.document.spelling_mod.req_message;
            height = height + 6;
          }
          if (op6) {
             LinkToField = document.forms[0].req_message;
             height = height + 10;
             width = width + 10;
          }
          if (op7) LinkToField = document.forms[0].req_message;

          if (!(op6 || gecko || ie4 || op7)) {
            alert("phpSpell only supports one of the following browsers:\nOpera 6+, Netscape 6+, Mozilla 1+, Internet Explorer 4+, Safari");
          } else {
            if (LinkToField.value.length == 0) return;
            directory = "spelling/";
            k = openspell.arguments.length;
            if (k == 1) directory = "";
            win1=window.open(directory+"phpSpell.html","spellcheckwin",'resizable=no,width='+width+',height='+height);
            if (win1.opener == null) win1.opener = self;
          }
          return (false);
        }

        function Opera_Get_Link() {
          return (LinkToField);
        }

Hopefully I didn't miss anything this time

Meh, time for me to test it I guess

Gardell wrote:

This is very nice. One of the things I think should be intergrated in PunBB stock.

IMO it would be much better if, rather then global moderators, there simply was a moderator flag in groups that let you saw "the people in this group can be moderators of forums" (or a forum permission setting per group that says the users of the group are mods).

7,187

(11 replies, posted in PunBB 1.2 show off)

Child Super Models by ScottyWZ
    0     46     Yesterday 06:14 PM by ScottyWZ
LivePornStarOnCam by ScottyWZ
    0     9     Today 09:42 AM by ScottyWZ
Notice the difference in view count? tongue

New post it is

Note that you do this at your own risk. I have tested this and found it to work. If you encounter problems, tell me about them so that I can correct them for other people

1. Open common/spell_config.php
2. Comment the line that says 
$Spell_Config['DB_Type'] = 'PHPBB'; 
and add a line that says 
$Spell_Config['DB_Type'] = 'PunBB';
3. Find
  if (isset($Spell_Config['DB_Type']) && $Spell_Config['DB_Type'] == 'MySQL') {
    include 'spell_MySQL.php';
  }

Add after
  if (isset($Spell_Config['DB_Type']) && $Spell_Config['DB_Type'] == 'PunBB') {

    require '../config.php';
    $Spell_Config["DB_Username"] = $db_username;
    $Spell_Config["DB_Password"] = $db_password;
    $Spell_Config["DB_Database"] = $db_name;
    $Spell_Config["DB_Host"] = $db_host;
    // This is used in some others, but it looks like this is unset in the file: odd
    $table_prefix = $db_prefix;

    include 'spell_MySQL.php';
  }
4. Change any other settings and save.
5. Upload all the files in the common & native_mysql directory to the forum/spelling directory
6. Go to http://www.yourwebsite.com/forum/spelling/spell_admin.php
7. Install any dictionaries you want.
8. Delete any file ending with .dic on the server (to free up disk space)
9. Delete the spell_admin.php file off the server.
10. Open up include/template/main.tpl (PunBB) and find
<pun_head>
Add after
<script language='javascript' src='spelling/spellmessage.js'></script>
11. Open up post.php and find
<p><input type="submit" name="submit" value="<?php echo $lang_common['Submit'] ?>" tabindex="<?php echo $cur_index++ ?>" accesskey="s" /><input type="submit" name="preview" value="<?php echo $lang_post['Preview'] ?>" tabindex="<?php echo $cur_index++ ?>" accesskey="p" /><a href="javascript:history.go(-1)"><?php echo $lang_common['Go back'] ?></a></p>
Replace it with
<p><input type="submit" name="submit" value="<?php echo $lang_common['Submit'] ?>" tabindex="<?php echo $cur_index++ ?>" accesskey="s" /><input type="submit" name="preview" value="<?php echo $lang_post['Preview'] ?>" tabindex="<?php echo $cur_index++ ?>" accesskey="p" /><input type="button" value="Spell Check" onclick="openspell();" /><a href="javascript:history.go(-1)"><?php echo $lang_common['Go back'] ?></a></p>
12. Follow the final steps outlined in this post: http://punbb.org/forums/viewtopic.php?pid=42055#p42055

Ooh, something to do! big_smile

Oh, and w00t: 501 posts without me realizing it big_smile

Edit:

OK, instructions (modified from the MySQL ones they give):

Edit2: I forgot a bit, sorry wink

7,190

(4 replies, posted in PunBB 1.2 troubleshooting)

I'm wasn't, but I'll take a look: I thought I fixed that bit
Upon looking at my code, I realize that's the old splittopic mod smile
When GUI said he was working on one, I deleted my copy there. I just happen to have the files lying around, and if you want I can email them to you.

Edit: Taking a look at the code, there might be some issues. I haven't put it through a lot of testing, although I just ironed out a bunch of possible issues. It's really a "use at your own risk" type of thing smile

7,191

(4 replies, posted in PunBB 1.2 troubleshooting)

There's a split topic mod made for 1.1.5
I think someone else created one for 1.2, but I can't find the URL

Well, if you manually inserted it into the database, it wouldn't know to cache it.
But it's easy to fix: just rebuild the search index

Mmm, so much for that tongue

I like a script better, because you'll never need to run the script again anyway smile
A plugin I consider something I would want to use more than once tongue

It would work, but a script that can do it automatically is better IMO smile

I just found a script that does this for PHPBB
http://www.typo.nl/misc/merge_phpbb.phps

Would anyone be interested in me trying to write a similar script for PunBB (except perhaps with an interface you can put the info in, rather then having to edit the script)?

7,197

(12 replies, posted in PunBB 1.2 discussion)

He wants to integrate it wink

7,198

(25 replies, posted in Feature requests)

Removing the URLs isn't the same as removing the feature, people could still edit

7,199

(4 replies, posted in General discussion)

That is my new favorite site big_smile

7,200

(12 replies, posted in PunBB 1.2 discussion)

Simple quick answer: Yes, I think so smile
And don't trust what PHPBB people mark critical to be the only critical stuff, "arbitrary file unlink" sounds rather scary to me tongue