1 (edited by Rob 2004-05-16 20:08)

Topic: Post Enhancer - By 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

Every time you think you've made it idiot proof, along comes a better idiot.

2

Re: Post Enhancer - By Rob

The smileys look good, but i would replace the buttons for bold, italic etc. Just to keep te board more text than icon based.

3 (edited by Frank H 2004-01-28 13:50)

Re: Post Enhancer - By Rob

Looks nice smile
(now I can scrap one of my projects on todo list, thanks http://warthog.campus.luth.se/Frank/div/smilies/thumbsup3d.gif smile)

Re: Post Enhancer - By Rob

Yeah! Great! i follow the instructions, and it`s work ok for me!
1 question: you plane to make the same thing in Quick reply?:)

5 (edited by Rob 2004-03-08 01:38)

Re: Post Enhancer - By Rob

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

Every time you think you've made it idiot proof, along comes a better idiot.

Re: Post Enhancer - By Rob

is it 1.1.2 compatible?

Re: Post Enhancer - By Rob

FrankH: Worked fine in PunBB++, only had to change the textarea name in the javascript section.

Re: Post Enhancer - By Rob

ok thanks

nice (better than those buttons I had done) smile

Re: Post Enhancer - By Rob

Nice, works beautifully (and I also added it in edit.php) big_smile

10

Re: Post Enhancer - By Rob

Good stuff!

Re: Post Enhancer - By Rob

Hmm, this mod isn't on Punres :/

"Programming is like sex: one mistake and you have to support it for the rest of your life."

12

Re: Post Enhancer - By Rob

#---------[ 1. UPLOAD ]--------------------------------------------------------
#

    post_bb.php to /
    post_smile.php to /
    folder post to /img/
#
#---------[ 2. OPEN ]----------------------------------------------------------
#

    post.php


#
#---------[ 3. FIND (line: 455) ]-----------------------------------------------
#

    <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']; ?>  

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

    <?php include("post_smile.php"); ?>

#
#---------[ 5. FIND (line: 457) ]----------------------------------------------------------
#

    <td class="puncon2"> <textarea name="req_message" rows="20" cols="95" tabindex="<?php echo $cur_index++ ?>"><?php echo $quote ?></textarea></td>

#
#---------[ 6. REPLACE with ]-----------------------------------------------
#

    <td class="puncon2"><?php include("post_bb.php"); ?><textarea name="req_message" id="post1" rows="20" cols="95" tabindex="<?php echo $cur_index++ ?>"><?php echo $quote ?></textarea></td>

#
#---------[ 7. SAVE/UPLOAD ]--------------------------------------------------
#

This here above is token from the install-guide (as I call it 2day tongue ) .

If I get this right (its written in some sort of telegram-style ) the steps should be like this (correct me for I might be mistaken )  :

1- Upload 3 files , the first 2 into the usual forum main dir. ? And then the last one in the forum/img directory ?

2- Open the post.php file that was already made with the implementation of the punbb forum ?

3,4 - I should find line 455 of the post.php file and add this line afterwards :
<?php include("post_smile.php"); ?>

5,6- I should find line 457 and replace it with another line that was given in the doc. ?

7- I should save and upload the newly manipulated post.php and overwrite the old one on the server . This should not affect the posts that people have made earlier on .

This took me 5 minutes to find out what it said .

** suggestion **

Maybe you should explain more details in the install-description ? The PunBB-installation was very easy due to the fact that it had a document understandable for even the most total n00bs on this planet (including me some time ago) .

I would suggest (do not see this as a offensive attack or anything) to rewrite the installation-guide so that even the total n00b understands it .

I'm thinking of trying this one on my forum as well . big_smile

Good luck on future projects m8 ... and keep modding big_smile

Re: Post Enhancer - By Rob

Well.. The "installation guide" is pretty much a standard. So if we want to change it, we have to change the standard I think. But it's a good idea to have some more information.

14

Re: Post Enhancer - By Rob

Whats nice?

15

Re: Post Enhancer - By Rob

Meilad wrote:

To the point. Jansson there was an error in the coding of the post enhancer as I suspected.

Last I checked, Rob made this Post Enhancer. Check the read me, the subject of this thread, or the first post author. Jansson was just commenting on the install instructions, since they look the same for every mod.

16

Re: Post Enhancer - By Rob

it doesn't work under OPERA. sh@t

17

Re: Post Enhancer - By Rob

I'd love to use this mod, but I see it's quite old.
Any such project for 1.2.5?

Re: Post Enhancer - By Rob

http://punres.org/desc.php?pid=50