Gizzmo wrote:

is there an updated verson of this mod for 1.1.5? if so where can i download it.

Hi here http://jacobswell.nared.net/upload/bbcodeMOD1.0.2.rar you find last version (1.0.2) (thanks jacobswell) .This version should works "normal" in 1.1.5 but i dont test it .

Btw. I almost finish bbcode 2.0 beta version mod and i think u should wait for it ,beacouse old 1.X series had too many bugs in java script  i stop developing this mod . I need few days more to finish new java script and then i released it.

In 2.0 you find :
new script  (no more browser errors)
button status
Advanced mode (allows you to manually enter code.)
Simple mode (displays guides which assist you in formatting.)

shuron wrote:

can i have a correct mode in one pice?
please big_smile

Sure why not smile

http://jacobswell.nared.net/upload/bbcodeMOD1.0.2.rar

strategie wrote:

Hello:

I have foung some troubles installing punbb with IIS and I want to know..is punbb compatible with IIS?
If that's so...what are the steps to install punbb with IIS?

Thanks a lot.

punbb works fine with IIS .

Hi
Im very sorry about this but for now i can't share any of my mod's sad beacouse
i don't have any copy i lost it when my Hard drive is crash .But im really sure someone else can give u a copy .

Krapan wrote:

Maciek thanks for your help but page you were giving me couldn't be found.

Error 404 - file was not found

is it any other resource with this fix?

Sorry for that ,but i have some hosting problem right now sad ,anyway this is solution

Open index.php
in line 55 you find something like this

// Print the categories and forums
$extra_sql = ($cur_user['status'] < PUN_MOD) ? ' WHERE f.admmod_only=\'0\'' : '';

$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, f.closed FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id'.$extra_sql.' ORDER BY c.disp_position, c.id, f.disp_position') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());

replace this with

// Print the categories and forums
$extra_sql = ($cur_user['status'] < PUN_MOD) ? ' WHERE f.admmod_only=\'0\'' : '';

$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, f.closed, f.subject FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id'.$extra_sql.' ORDER BY c.disp_position, c.id, f.disp_position') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());

Now should works fine

catch17 wrote:

hello everybody,

I want to add one or two new links to the menu of my forum ( the area where home|user list|rules|...are set) - I searched the files of punbb but to my shame I counldn´t find the lines of code which are resposible for the menue sad

it would be very kind of you if you could tell me the files where I can find the menue-lines

thanxs -

include/functions.php

find

//
// Generate the "navigator" that appears at the top of every page
//
function generate_navlinks()
rADo wrote:

see
http://forum.blogcms.com/viewtopic.php?id=226
for more info

Now, there is new plugin NP_PunBB available for BLOG:CMS.

NP_PunBB plugin allows to integrate BLOG:CMS and PunBB forum software. It will automatically create users in PunBB database which will register in BLOG:CMS, with the same username, real name, password and email!

In plugin Options, you will have to specify connection options for PunBB database. You can also transfer all existing BLOG:CMS users to PunBB database.

Note for NucleusCMS users: this plugin is NucleusCMS-compatible as well.


Very nice :) , i test this when i find some extra free time

Krapan wrote:

i'm getting error!

couldn't fetch forum categories and forums

S**t i really forget about this hmm , this happens beacouse when i copy code into guide i use my test forum where i have more mod's and now your forum try find this database values smile .

Anyway there you find how fix that click

Meduza wrote:

Anyone that does know how to install this in punBB++, i dont like the BBCode buttons that is in there...

I don't see any problem to add this mod to punbb++ only few changes and should works :P . If you want i check and make guide how do this.

cuteseal wrote:

hey the downloaded zip file appears to be corrupt...

Edit:
Ok i put rar file i don't now why but all zip files looks like be a corupt .Only way is open it up using win rar .

zenz wrote:

can any buddy help me im olmoost finisht http://fun.zenz.nl/forum/

can you copy this code from your forum

<table class="punspacer" cellspacing="1" cellpadding="4">
    <tr>
        <td><b><a href="index.php"><?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?></a> / <?php echo $forum ?><?php if (isset($subject)) echo ' / '.pun_htmlspecialchars($subject) ?></b></td>
    </tr>
</table>

<?php echo $form."\n" ?>
    <input type="hidden" name="form_sent" value="1">
    <input type="hidden" name="form_user" value="<?php echo (!$cookie['is_guest']) ? pun_htmlspecialchars($cur_user['username']) : 'Guest'; ?>">
    <table class="punmain" cellspacing="1" cellpadding="4">
        <tr class="punhead">
            <td class="punhead" colspan="2"><?php echo $action ?></td>
        </tr>
        <tr>
            <td class="puncon1right" style="width: 140px; white-space: nowrap"><b><?php echo $lang_common['Username'] ?></b>  </td>
            <td class="puncon2"> <?php echo (!$cookie['is_guest']) ? pun_htmlspecialchars($cur_user['username']) : '<input type="text" name="req_username" size="25" maxlength="25" tabindex="'.($cur_index++).'">'; ?></td>
        </tr>
<?php if ($cookie['is_guest']): ?>        <tr>
            <td class="puncon1right" style="width: 140px; white-space: nowrap"><b><?php echo $lang_common['E-mail'] ?></b>  </td>
            <td class="puncon2"> <input type="text" name="req_email" size="50" maxlength="50" tabindex="<?php echo $cur_index++ ?>"></td>
        </tr>
<?php endif; ?><?php if (isset($fid)): ?>        <tr>
            <td class="puncon1right" style="width: 140px; white-space: nowrap"><b><?php echo $lang_common['Subject'] ?></b>  </td>
            <td class="puncon2"> <input type="text" name="req_subject" size="80" maxlength="70" tabindex="<?php echo $cur_index++ ?>"></td>
        </tr>
<?php endif; ?>        
<tr>
<td class="puncon1right" style="width: 140px; white-space: nowrap"><b><?php echo $lang_common['BBCode'] ?></b>  </td>
<td class="puncon2"><?php include("include/bb_code.php"); ?></td>
</tr>
<tr>
<td class="puncon1right" style="width: 140px; white-space: nowrap">
<b><?php echo $lang_common['Message'] ?></b>  <br><br>
<a href="help.php#bbcode" target="_blank"><?php echo $lang_common['BBCode'] ?></a>: <?php echo ($pun_config['p_message_bbcode'] == '1') ? $lang_common['on'] : $lang_common['off']; ?>  <br>
<a href="help.php#img" target="_blank"><?php echo $lang_common['img tag'] ?></a>: <?php echo ($pun_config['p_message_img_tag'] == '1') ? $lang_common['on'] : $lang_common['off']; ?>  <br>
<a href="help.php#smilies" target="_blank"><?php echo $lang_common['Smilies'] ?></a>: <?php echo ($pun_config['o_smilies'] == '1') ? $lang_common['on'] : $lang_common['off']; ?>  
</td>
<td class="puncon2"> <textarea name="req_message" rows="20" cols="95" tabindex="<?php echo $cur_index++ ?>"><?php echo $quote ?></textarea></td>
</tr>

It should be betwen line439-477 and paste on this or my forum thanks.

anothertester wrote:
Maciek wrote:

Ok try this 1.0.2 version.

ok, tested it. now i'm getting:

Line: 164
Char: 9
Error: 'document.input.mode' is null or not an object
Code: 0

(i'm using ie6 + latest updates)

I don't have any idea way this happens hmm i have same problem sometimes have this error sometimes not sad , i check script when i get more free time )

cuteseal wrote:

Hey cool!  Exactly what I wanted!

However, the link to download produces:
"The file 'config.php' doesn't exist or is corrupt. Please run install.php to install PunBB first."

Any alternative site?

Srry i update my forum its ok right now .

jacobswell wrote:

one more bug patch.
if you use netscape, when you write a littel, you can't insert bbcode at the first position.
in function pastecode you can see the code

    else if(moz && messageBox.selectionEnd) {

change like this:

    else if(moz) {

Ok i update MOD :) thanks again for help

/*
+--------------------------------------------------------------------------
|   PunBB code buttons 1.0.2 
|   ========================================
|   By Maciej Ziolkowski
|   http://pubbmod.wz.cz/forum
|   ========================================
|   Time: Mon, 14-o6-2004 10:08:30 GMT+1
|   Email: admin@amberapple.pl
+---------------------------------------------------------------------------
|   Modified by Jacobswell
|   http://jacobswell.nared.net/
+---------------------------------------------------------------------------
*/
anothertester wrote:

getting now

Line: 173
Char: 9
Error: 'document.input.mode' is null or not an object
Code: 0

although script works ok. still it would be nice if this bug will be fixed..

thanks folks for this nice mod and for your great work!

Ok try this 1.0.2 version.

jacobswell wrote:

I've changed some code, and it work fine!

var normalmode = false;

//--------------------------------------------
// Set radio button status 
//--------------------------------------------
prep_mode();

function cookieVal(cookieName) {
    thisCookie = document.cookie.split("; ");
    for (i=0; i<thisCookie.length; i++) {
        if (cookieName == thisCookie[i].split("=")[0]) {
            return thisCookie[i].split("=")[1];
        }
    }
    return "";
}

function prep_mode() {
    expireDate = new Date;
    expireDate.setMonth(expireDate.getMonth()+6);

    theMode = cookieVal("cb_mode");
    if ( theMode == "normal" ) {
        document.input.mode[0].checked = true;
        document.input.mode[1].checked = false;
        normalmode = true;
    } else {
        document.input.mode[0].checked = false;
        document.input.mode[1].checked = true;
        normalmode = false;
        theMode = "advanced";
    }
    document.cookie = "cb_mode="+theMode+"; path=/; expires=" + expireDate.toGMTString();
}

function changeMode(newMode) {
    expireDate = new Date;
    expireDate.setMonth(expireDate.getMonth()+6);
    document.cookie = "cb_mode="+newMode+"; path=/; expires=" + expireDate.toGMTString();
    if(newMode == "normal") {
        normalmode = true;
    } else {
        normalmode = false;
    }
}

variable normalmode should be declared first!

Yes u have right :) . Anyway thanks for modification i go sleep right now but when i weak up i update script .

Rickard wrote:

Not only is she beautiful, but she can sing too! There's nothing sexier than girls who can sing.

I must agree :)

testa wrote:

getting
'document.input.mode' is null or not an object

post.php line: 173 char: 3


after installing. dunno what went wrong... maybe some typo i did during copy-paste?

ok you have error and what's happen ? script works or not i get this error sometimes but script works fine . Please give me more info.

This Mod adds lasts post topic to each forum on the index page


adds lasts post topic to each forum on the index page
topic title with more then 20 chars are cut off
mouseover info displays the full title


download

18

(8 replies, posted in PunBB 1.2 troubleshooting)

Anyway this MOD is not finish yet .
Must add few things :

topic title with more then 20 chars are cut off
mouseover info displays the full title

all info you find here

19

(8 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:

I just tried the code and had no problems with it smile

You mean works good .... no double post ,subject and other strange things?
Mac can you send me your post.php on email.

20

(2 replies, posted in Feature requests)

What do you guys think about a forum announcements ? general announcements on index.php and forum announcements on viewforum.php

21

(8 replies, posted in PunBB 1.2 troubleshooting)

Mac wrote:

Hi
Thanks for answer and help .
I test your code right now and i must say it's works but i have one small problem hmm.
When i post new topic i have double subject in viewforum.php sad anyway take a look at screen .

image

Hmm i don't have idea right now ,but when i get access to my serwer smile i find bug. Anyway i find your topic about this click and i send email to Simple Exploding Man i give him my code meyby he find solutions fasters if not when i back (1-2 days) to home i find solutions .

22

(8 replies, posted in PunBB 1.2 troubleshooting)

Hmm i can't test this code but u can try

in functions.php

//
// Update posts, topics, last_post, last_post_id and last_poster for a forum (redirect topics are not included)
// If $transaction == PUN_TRANS_END, this function will end the current transaction
//
function update_forum($forum_id, $transaction = 0)
{
    global $db;

    $result = $db->query('SELECT COUNT(id), SUM(num_replies) FROM '.$db->prefix.'topics WHERE moved_to IS NULL AND forum_id='.$forum_id) or error('Unable to fetch forum topic count', __FILE__, __LINE__, $db->error());
    list($num_topics, $num_posts) = $db->fetch_row($result);

    $num_posts = $num_posts + $num_topics;        // $num_posts is only the sum of all replies (we have to add the topic posts)

    $result = $db->query('SELECT last_post, last_post_id, last_poster, subject FROM '.$db->prefix.'topics WHERE forum_id='.$forum_id.' AND moved_to IS NULL ORDER BY last_post DESC LIMIT 1') or error('Unable to fetch last_post/last_post_id/last_poster', __FILE__, __LINE__, $db->error());
    if ($db->num_rows($result))        // There are topics in the forum
    {
        list($last_post, $last_post_id, $last_poster, $subject) = $db->fetch_row($result);

        $db->query('UPDATE '.$db->prefix.'forums SET num_topics='.$num_topics.', num_posts='.$num_posts.', last_post='.$last_post.', last_post_id='.$last_post_id.', last_poster=\''.addslashes($last_poster).'\', subject=\''.addslashes($subject).'\' WHERE id='.$forum_id, $transaction) or error('Unable to update last_post/last_post_id/last_poster', __FILE__, __LINE__, $db->error());
    }
    else    // There are no topics
        $db->query('UPDATE '.$db->prefix.'forums SET num_topics=0, num_posts=0, last_post=NULL, last_post_id=NULL, last_poster=NULL, subject=NULL WHERE id='.$forum_id, $transaction) or error('Unable to update last_post/last_post_id/last_poster', __FILE__, __LINE__, $db->error());
}

in index.php

// Print the categories and forums
$extra_sql = ($cur_user['status'] < PUN_MOD) ? ' WHERE f.admmod_only=\'0\'' : '';

$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, f.closed, f.subject FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id'.$extra_sql.' ORDER BY c.disp_position, c.id, f.disp_position') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());


AND THIS

// If there is a last_post/last_poster.
    if ($cur_forum['last_post'] != '')
        $last_post = '<a href="viewtopic.php?pid='.$cur_forum['last_post_id'].'#'.$cur_forum['last_post_id'].'">'.format_time($cur_forum['last_post']).'</a><br>'.$lang_common['by'].'  '.pun_htmlspecialchars($cur_forum['last_poster']).'<br>'.$lang_common['in'].' '.pun_htmlspecialchars($cur_forum['subject']);
    else
        $last_post = ' ';

Now u must use something like phpmyadmin and add one field [ subject VARCHAR 255 null ] in forums table . i'm not 100% sure about this but should work's.

23

(1 replies, posted in PunBB 1.2 discussion)

Xin wrote:

Hi
I download punbb 2 day's ago and i must say ... great job
but meyby someone have mod to add last topic subject to last post row on index.php something like this

-------------------------
topic date                 
topic subject             
author                                 
--------------------------

now we have

---------------------------                     
topic date
author
---------------------------

i'm not too good with php and mysql but i see when i click on date i go to last topic i look to code but i don't now how display last subject.
Anyway meyby someone now site with punbb mod's i try punres but it's not works(meyby there i find answer how display last subject ).
Thanks for any help

Regards Piotr

Ps. Sorry for my english.

I want create mod like you search to my forum ,but not now meyby in july sad .If i create this i post info on this forum you must wait , but meyby someone else help you.
Btw. Rickard meyby you add this to punbb 1.2 ?

Mac wrote:
Rickard wrote:

It should be $_SERVER, not $SERVER. Do you have any idea how long it took me to notice that? hmm

sorry my fault i change this and forget  ,but this not work anyway.

Hi
Strange ,i use Rickard guide few minutes ago and works fine click
but when i try this in my localhost (windows2003 +php4.3.7 and mysql MySQL 4.1 ) it's not work's tongue ,meyby there is some problem .

More info and upgrade file (only for text version) you can find here

guest status display bug fixed