It's in include/cache.php under "// Output quickjump as PHP code"

You can follow the method as explained on this page:
http://wiki.punres.net/Add_a_login_form_over_the_header

Just substitute whatever codes is shown in "login.php" with the quickjump menu code.

3

(2 replies, posted in PunBB 1.2 discussion)

Hi, see this topic:
http://punbb.informer.com/forums/topic/ … or-guests/

That's very strange. Which version of punbb are you using? Have you got any mods installed? Are you sure it's the "online" table?

From the punres wiki (which has unfortunately been disabled):

Add a logo to the header via css (From PunBB Resource Wiki)

This article explains how to add a logo to you header via CSS as shown in the image.

Make your logo with photoshop or any other suitable tool. Save it as

img/yourstylename/logo.gif

Add this to your style_cs.css:

/* header logo */
.pun H1 
{
/* your logo and position */
background-image: url(../../img/yourstylename/logo.gif);
background-repeat: no-repeat;
background-position: left; /* you set your logo position here */
display: block;
height: 70px; /* logo height in here add width: size px if u need*/
}
 
/*header title*/
.pun H1 span
{
/* your font style */
color: #0066B9;
font-size: 20px; /* title size */
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
text-transform: none ; /* transform text: uppercase, capitalise */
text-decoration: underline; /* decoration: none, overline */
 
/* position for your text (board title) with the logo */
position: absolute; 
top: 40px; 
left: 90px; 
}

Find: .pun H1 in stylename.css and remove the line.

This is really a nice little chat mod. I recently went through it's code and fixed many of the bugs mentioned in the AJAX Chat 1.2 thread on punres, e.g.:
*Some characters didn't display, e.g. + & etc. (had to use encodeURIComponent in javascript)
*Smilies didn't parse
*Fixed some queries
*Time now displayed in 24h format
*Fixed bug in style sheet (wrong comment character was used)

Just a pity the mod apparently uses up quite a bit of resources. Maybe I will update it later to make it more efficient.

My updated version can be downloaded here: modajaxchat-1.2.1.zip

Hi antonio, this should do the trick:

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

viewtopic.php


#
#---------[ 2. FIND (line: 244) ]---------------------------------------------
#

            if ($cur_post['url'] != '')
                $user_contacts[] = '<a href="'.pun_htmlspecialchars($cur_post['url']).'">'.$lang_topic['Website'].'</a>';


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

            if (!$pun_user['is_guest'])
                $user_contacts[] = '<a href="uploadimg_view.php?view=gallery&id='.$cur_post['poster_id'].'">'.'Gallery'.'</a>';

This will show a Gallery link for each user in viewtopic, but will not be visible for guests.

You will also have to edit uploadimg_view.php to allow all users to view each other's galleries. You can do this by deleting or commenting out the following two lines:

    if (!in_array($pun_user['g_title'], $Allow_Stats))
        message($lang_common['No permission']);

There were many bugs I fixed in the patch. Which version are you currently using?

I see your style is based on the Baby_is_back style. In that case, here is the solution:

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

style/imports/Baby_is_back_cs.css


#
#---------[ 2. FIND ]--------------------------------------------------------
#

/* Private messages */
#punmessage_send LI#navpm A,
#punmessage_list LI#navpm A,


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

/* Calendar */
#puncalendar LI#navextra1 A,

By the way: I see you are using an outdated version of the calendar. I've release a patch for the calendar on punres a while ago, which includes many fixes and improvements. You can download it here.

Actually very easy - you can just make use of the snippet() function found in diary_extern.php

Here it is:

function snippet($text,$length=20,$tail="...") {
    $text = trim($text);
    $txtl = strlen($text);
    if($txtl > $length) {
        for($i=1;$text[$length-$i]!=" ";$i++) {
            if($i == $length) {
                return substr($text,0,$length) . $tail;
            }
        }
        $text = substr($text,0,$length-$i+1) . $tail;
    }
    return $text;
}

The 'show all user's entries' page is supposed to be a compact view of that user's diary entries - that's why it does not include line breaks.

I also did not allow it to display img tag BBCode, since the idea was to display only one image per diary entry (the uploaded image).

But if you really want to do that do that, here is how (but I don't recommend it):

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

diary.php


#
#---------[ 2. FIND (line: 737) ]---------------------------------------------
#

//============= START PARSER =============
...
...
...
//============= END PARSER =============


#
#---------[ 3. REPLACE WITH ]---------------------------------------------------
#

    // Perform the main parsing of the message (BBCode, smilies, censor words etc)
    $text = parse_message($text, 0);
    echo $text;


#
#---------[ 4. FIND (line: 312) ]---------------------------------------------
#

//============= START PARSER =============
...
...
...
//============= END PARSER =============


#
#---------[ 5. REPLACE WITH ]---------------------------------------------------
#

    // Perform the main parsing of the message (BBCode, smilies, censor words etc)
    $text = parse_message($text, 0);

Update available that fixes many bugs and vulnerabilities in the Private Message mod for punbb 1.2.

Click here for more details.

Automatic Image Upload with Thumbnails 1.3.6beta now available.

Click here for more details.

You might be able to make use of the diary_extern.php page I created for this mod. It can display the latest 5/10/15 etc diary entries on any page. With some simple modifications you would be able to set it to display the latest diary entries of each user in their profile.

##
##        Mod title:  User Stats
##
##      Mod version:  1.0
##   Works on PunBB:  1.2.*
##     Release date:  2008-07-16
##           Author:  Koos (pampoen10@yahoo.com)
##
##      Description:  Adds functionality for tracking visitors
##                    to your forum.
##
##   Affected files:  index.php
##                    viewtopic.php
##                                     
##       Affects DB:  New table:
##                       'userstats'
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

I have made this mod a while ago to track visitors to my forum - and thought I should share it.

Features:
* Displays a simple log of visitors to your forum, showing the following details: Date, Username, Userip, Browser, Operating System, Country
* Can set max number of entries, each time replacing the oldest entry when the max is reached. This is especially an important feature for me, since I only wanted to see the list of the most recent visitors.
* The visits of registered users are highlighted
* The search terms the visitor used to find the tracked page is shown in brackets where applicable
* Can choose whether bots (like googlebot or yahoo!slurpbot) should be tracked
* Holding your mouse pointer over the icon on the very left of each entry will display the title of the page from where the visitor was tracked - together with a link.

Screenshot

Download from punres.org

User Diaries v1.1.1 now available. There was a bug to fix on the diary edit page. Also make a change in how the small envelope shown next to the diary poster's name is displayed. Now it will display correctly in all style sheets.

Calendar Categories Add-on v1.1.1 now available.

Here are the changes made:

## CHANGELOG:

## v1.1.1   : [2008-07-16]
1. Fixed a bug which made it impossible to add events if there is only one calendar category.

2. Updated the get_resolution.php script so that it will now work in PHP5 - but turned it off by default, since it might still not work on some servers. Can be turned on in the Calendar Settings in the Admin control panel.

3. Now possible to enable/disable the 'Days to view' drop down menu on the 'day view' page in the Calendar Settings in the Admin control panel.

4. Some other minor changes.

The following topic might be of interest to you:
http://punbb.informer.com/forums/topic/ … e-message/

IMPORTANT UPDATE - V1.3.5 RELEASED

Thanks for the feedback. Peter Österberg contacted me last year about this vulnerability which was found in v1.3.2 and confirmed in v1.3.3. I attempted to fix it in v1.3.4, but there are some things I missed.  This is indeed a very serious vulnerability - and I have now released v1.3.5. Everyone should update to this version. Download from punres.org

I have also created the file uploadimg_check.php which will check for potentially harmful files that were uploaded with previous versions and give you the option to delete them. Click here to download it. Note that you must be logged in as Admin to use it.

User Diaries v1.1.0 now available. See changelog above for changes.

User Diaries v1.0.1 now available. Made a few fixes and improvements. Thanks to D.S. Denton for the Russian lang file. Also updated the French lang file.

22

(6 replies, posted in PunBB 1.2 troubleshooting)

margeryred wrote:

I have a secured board and only approved members have "official" access to it.
Is there anyway I can view or track the users to see who signed on when?

I made such a mod for myself a while ago. Send me an email - will give you more info then.

Automatic Image Upload with Thumbnails 1.3.4 now available. I would advice everyone to update - since this release includes an important vulnerability fix. Here are some of the changes made in this version:

* Rewrote the "uploadimg.php" page
* Fixed a vulnerability
* All pages now valid XHTML 1.0 Strict
* Stats totals now also include thumb size

##
##        Mod title:  User Diaries
##
##      Mod version:  1.1.1
##   Works on PunBB:  1.2.*
##     Release date:  2008-07-16
##           Author:  Koos (pampoen10@yahoo.com)
##
##      Description:  Allows users to post diaries with images.
##
##   Affected files:  none
##                                     
##       Affects DB:  New tables:
##                       'diary'
##                       'diary_perms'
##                       'diary_reports'
## 
##            Notes:  Requires the GD library on your Web server. Script can
##                    upload JPEG, PNG AND GIF images.
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
################################################################################
## CHANGELOG:
## 1.1.1 : fixed a bug on the edit page
##         minor style change
## 1.1.0 : can now edit your diary entries
##         added BBCode functionality
## 1.0.1 : some minor fixes and improvements
##         made changes to the English lang file
## 1.0   : initial release 
################################################################################

I have finally completed the User Diaries mod which I have been working on for some time now. Happy to say that it turned out the way I intended. The idea was to keep it simple - and make it easy to navigate. Thanks to those who helped test the pre-release version.

Features:
* All pages valid XHTML strict
* Valid RSS 2.0 feed for all user diaries
* Can upload images with diary entries
* Easy to install and uninstall
* Users can report diary entries
* Permission control
* Diary statistics for admin

Download from punres.org

Smartys wrote:

Because it's not used? wink

I think it would have been nice to have it there - just for completeness. Why return the correct $pun_user['g_id'] for messages when your are logged in - but have it empty instead of 3 when you're a guest? Some modifications I have done looks at $pun_user['g_id'] when messages are displayed.