I have already released a mod like this months ago.
http://punbb.org/forums/viewtopic.php?id=3204

Blah..  sad

Rob

http://www.deejaysonline.com/images/bb.jpg

Error:

Parse error: parse error, unexpected '}' in /home/overnet/public_html/forum/search.php on line 669

here is 669:

}

Now then,

#
#---------[ 55. FIND ]-----------------------------------------------
#

<tr class="puntopic">
        <td class="puncon1cent"><?php echo $icon ?></td>
        <td class="puncon2"><?php echo $subject ?></td>
        <td class="puncon1"><?php echo $forum ?></td>
        <td class="puncon2"><?php echo pun_htmlspecialchars($search_set[$i]['poster']) ?></td>
        <td class="puncon1cent"><?php echo $search_set[$i]['num_replies'] ?></td>
        <td class="puncon2" style="white-space: nowrap"><?php echo '<a href="viewtopic.php?pid='.$search_set[$i]['last_post_id'].'#'.$search_set[$i]['last_post_id'].'">'.format_time($search_set[$i]['last_post']).'</a> '.$lang_common['by'].' '.pun_htmlspecialchars($search_set[$i]['last_poster']) ?></td>
    </tr>
<?php

            }
        }


#
#---------[ 56. AFTER, ADD ]--------------------------------------------------
#

}

So I did, 3 times Ive done this...

    </tr>
<?php

            }
        }
}

Wanna tell me whats wrong?

3

(4 replies, posted in PunBB 1.2 discussion)

Andy wrote:

On the front page of the site. "for a CN passport" <-- that be the one smile

Yep, thats the one...

4

(4 replies, posted in PunBB 1.2 discussion)

http://www.cactuz.nu/register.php

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.


I was gonna post my mod on that site, but, apparently not!

Rob

5

(1 replies, posted in PunBB 1.2 discussion)

Why is that part of the forum closed? I have released a newer version of Post Enhanced.

Check here!

Rob

Let me see if I can simplify this... Ok, heres the issue, in my classifieds script there is a provision for Registering. (Name and pass). What I want to do is use the punBB registrating instead. Also, if someone is logged into the forums, then goes to the classifieds, the script looks to see if they are logged in (to the punBB). I hope that makes it easier to understand.

Both my classifieds and image gallery use the same registrating and database, so they intergrate easily. It would be easier to switch them over to punBB's though.

Thanks,
Rob

Ok, heres what Im currently working on. I am porting a classifieds and image gallery to use with punBB and also woring on a portal for it. What I need to know is where/which file is the password in. You know, when you register, it goes in the SQL DBS. I need the code for it or tell me where its at so user wont have to register in the other mods Im working on. All I find is ref, to this:

if ($cookie['is_guest'] && $pun_config['p_guests_read'] == '0')
    message($lang_common['Login required']);

Please help..

EDIT: Would the following work?

$pun_root = './'; <-change to where the forum is?
require $pun_root.'include/common.php';


// If we are logged in, we shouldn't be here
if (!$cookie['is_guest'])
    header('Location: index.php');

Yes. Absolutly! As a matter of fact, thats very easy to do. Follow the instruction below and it will work with no problems.

Open viewtopic.php and look for the following:

// Display quick post if enabled

Scroll down to the following line:
<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']; ?>  

After add: <?php include("post_smile.php"); ?>

Next, look for the following:
<td class="puncon2"><textarea name="req_message" rows="7" cols="80"></textarea></td>

Replace with this:
<td class="puncon2"><?php include("post_bb.php"); ?><textarea name="req_message" id="post1" rows="7" cols="80"></textarea></td>

Upload viewtopic.php, your done!

Check http://www.deejaysonline.com/forum/viewtopic.php?id=3 to view a working version.

Rob

##########################################################
##
##        Mod title:  Post Enhancer
##
##      Mod version:  2.0
##   Works on PunBB:  1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4+
##     Release date:  05-16-2004
##           Author:  Rob (admin@directhost.us)
##
##      Description:  This mod adds clickable bbcode images
##                    and smileys which inputs the correct 
##                    bb code and smiles in the message box. 
##                    Now includes adaptation for Quick Post.
##                    
##          Updated:  Now includes clickable images for 
##                    MoreBB by Wout Kramer.
##                    Also includes a better formatted 
##                    help.php as I had trouble with the 
##                    one included with MoreBB. 
##
##   Affected files:  post.php, viewtopic.php
##
##   Optional files:  help.php, only if MoreBB mod is installed!
## 
## Affected folders:  img
##
##       Affects DB:  No
##
##            Notes:  This is my first PunBB mod. ;)
##
##       DISCLAIMER:  Note that "mods" are not officially 
##                    supported by PunBB. Installation of 
##                    this modification is done at your
##                    own risk. Backup any applicable files 
##                    before proceeding.
##
##########################################################

Download the newest mod here
Download the old mod here

Sample
http://www.deejaysonline.com/images/bb.jpg

This is an updated version that includes support for MoreBB. I hope you find this useful.

Rob

I am planning on releasing an addition to the post.php. Hard for me to explain, but you can see in the picture what it is exactly. It is very easy to install and just requires very little change in the post.php.

And yes, btw, it does work. You can try it out here

http://www.deejaysonline.com/images/bb.jpg

Rob

11

(3 replies, posted in PunBB 1.2 troubleshooting)

I fixed it. Seems the following was NOT in the en_common.php:

'BBCode'                    =>    'BBCode',
'img tag'                    =>    '[img] tag',
'Smilies'                    =>    'Smilies',

So I put it in there.

Rob

12

(3 replies, posted in PunBB 1.2 troubleshooting)

Ive just upgraded to 1.1 from 1.0.. Now I have a problem..

This is all thats showing up:

Message 

: on 
: on 
: on

It should be like this:

Message 

BBCode: on 
[img] tag: on 
Smilies: on   

Is there a issue with the post.php?

Rob

13

(1 replies, posted in PunBB 1.2 discussion)

im running so it seems, ver 1.0.1, what do i need to do to run ver 1.1.1? I dont want to have to redo my database...

Rob

Im using punBB 1.1 and PunPoll-v1.2, when I run install_mod.php, all I get is a blank screen, nothing, nada... WTF? Got any suggestions? I noticed that there is the following:

    $config = array(
        'o_polls'            => "'1'",
        'o_poll_change'    => "'1'",
        'o_poll_multi'        => "'0'",
        'p_guests_poll'    => "'0'"
    );

My database prefix is foo_ .. you think changing the array would work?

I have NOT edited the affected files yet.

Rob

I know under the admin, you can specify rules. Exactly what are these for? Im hoping its for reading prior to registration, if so, why doesnt it show them? If not, why doesnt the Rules link show up in the navigation menu?

Rob

Nevermind, I forgot to tick the box to allow rules to work, doh!

Now this is a cool mod.. Definatly am using this one. Thanks

Any idea on how to have only registered users to be able to view a specific catagory?

That way guests can still view all the catagories/topics but not ones that the admin chooses to be viewable by reg. users only. Would be nice to have this.


Edit...

http://punbb.org/forums/viewtopic.php?id=2443 looks ok, but it would be a pain in the arse to add people is the membership gets huge....

Would be nice if you could actually download the mod. The site that its on goes around in circles. Just post a direct link it the mod.... geez

Cactuz wrote:
Mako wrote:

I will recode this mod when the new version of PunBB debuts.

It's time for that now.

NEW VERSION? I just got through hacking the hell outta this version... Its perfectly matched and intergrated to my site. Cant ya just email me the one for this version?

Someone repost that mod, I need it. The link to it does not work.

Warning: main(src/mods.php) [function.main]: failed to open stream: No such file or directory in /www/root/punres/index.php on line 104

Fatal error: main() [function.require]: Failed opening required 'src/mods.php' (include_path='.:/usr/local/lib/php') in /www/root/punres/index.php on line 104