Oh, ok, is there a way to change this so it does trigger the notification mod?

oh there is a mod that enables users to get emailed when they receive a private message.

The option is on as default and users have to disable it in their profile if they don't want to be notified by email.

here is the link to the mod:  (translated from french as it is a french mod originally)

http://www.punres.org/viewtopic.php?pid=4643#p4643

How does this mass pm handle sending out the messages?  does it just send out the pm all at once to everyone or is there some kind of flood protection?

I have over 900 members...most of them have private message email notification enabled.

My webhost only allows around 500 emails an hour and only 100 a minute.

What will happen with regards to emails, does this mod pace itself at all?

My worry is that not everyone will get their email notification as my webhost has restrictions to avoid flooding/spamming.

good points.

by a malintentioned user you mean they could alter the browser side page source  to have a different name and then hit send and send someone else's name?

would they not need ftp access for this?

What I have been wanting to do for a while is for members to be able to open an account with punbb and then post comments in wordpress with that punbb account.

I don't think anyone has actually done this yet?  or if they have there not sharing it.

But I might have a workaround.  Now I am not a programmer so tell me if I'm being an idiot...but it might just work.

Basically what you could do is edit the comment code in WordPress like this...

First you edit the wordpress comment code by putting an if statement along these line:

if ($pun_user['is_guest']) {

echo "you must be logged in to comment on articles";
}
else
{
DISPLAY THE WORDPRESS COMMENT BOX IN THE NORMAL WAY
}

Now you edit the wordpress comment box in such a way that it doesn't give you the option to edit the name field (and you remove the need for the email address)...instead it grabs the name of the punbb member in question and forces that name to be sent to the wordpress db when you hit submit.

You could use this to grab the username:   pun_htmlspecialchars($pun_user['username'])

Now this may not work as you may not be able to call these punbb things inside the comment part of wordpress, and even if it does work it would be an ugly hack.  But until someone makes a proper bridge it might suffice.

Thoughts anyone?   Am I being a moron or might this work?

56

(26 replies, posted in PunBB 1.2 discussion)

this thread cracks me up...

Does anyone have a credit card that has like, 1 cent on it. And they don't need it??? I want to verify my paypal account and get a domain.

I really don't think anyone is going to give you a credit card to use...no matter how little money there is on it.

hey i'm sorry you are right the language file thingy does indeed work perfectly and easliy...for some reason I read a thread very similar to this one and the guy was saying that it diddn't work as expected

...but hey it works a treat, thanks.

i read on this forum somewhere that someone did that and it looked all wrong...there must be a better way of doing it

Hi

So I'm sure this has been asked before and i did search around but nothing was that helpful...

I also read the wiki but that only shows you how to put a background image underneath a link.

I want to know how i would make text links in punbb into images.

I would like to change certain links in punbb to png images.

For example maybe the post reply button or the email button(under peoples avatars) could become little icons of a envelope or something.

How should I get started...what is the correct way of doing this?



Thankyou

Nick

fixed it now...was the base.css file

in the section on special lists i had somehow messed it up and the syntax was wrong...diddn't notice though because ff and ie ignored the problem

all working fine now and i tested it with http://www.browsrcamp.com/

thanks for the help

Cool thanks for the help

im going through the page and cleaning it up...I did it a long time ago and havent noticed any trouble with it until now.

I havent found the solution to the problem yet but I'll post once I do find what it was.

thanks for the help

Ive fixed a few of the problems from your first post

Are you saying here:

You have *many* occurences of non-processed PunBB template tags in your code. Example:
Code:

</pun_footer></pun_main></pun_announcement>

that I don't need to close these...so I can just have <pun_footer> without the second </pun_footer>.

Cheers

Nick

Hi

I recently tested my site on a safari browser and I am getting strange line breaks between the menu items.

goto:

http://www.amateurillustrator.com/forums/

to see what it should look like (if you are on a mac use FF)

and this is what it looks like in Safari:

http://www.amateurillustrator.com/1165320746-full.jpg

Note the problem at the top and bottom.

Anyone know what tags are wrong...I know nothing about safari.

Thanks, Nick

i got it working thanks pogenwurst...yeah my testing server has issues with those Too many connect errors...once the host (which is mediatemple) has sorted them out I will move the whole site over to them.

got it working by myself....


here is the a link to where u can see it in action:
http://www.amateurillustrator.com/forum … php?id=239

Just click on one of the uploaded images.


here is what i did to the "displays all image section" of image_upload.php

/*
********************************************************************************
** Displays all images that are currently attached to a post.
********************************************************************************
*/
function show_post_images($pid, $edit = false)
{
    global $pun_config, $lang_common;

    if (!check_mod_config())
        return;

    // Check if this post has images attached
    if (!is_dir($pun_config['iu_upload_path'].$pid))
        return;

    // Create an array of all image names for this post
    $images = get_dir_contents($pun_config['iu_upload_path'].$pid.'/thumbnails/');
    $image_count = count($images);

    $col = 0;
    $idx = 0;

    $column_count = $pun_config['iu_table_cols'];
    $column_width = floor(100/$column_count);
    $image_height = $pun_config['iu_thumb_height'];
    $row_height   = $image_height + 6;

    if ($edit)
        $row_height += 20;

    $output[] = '';

    if (!$edit)
        $output[] = "\t\t\t\t\t<br />";
    $output[] = "\t\t\t\t\t<div class='image_thumbnails'>";

    $output[] = "\t\t\t\t\t\t<fieldset>";
    $output[] = "\t\t\t\t\t\t\t<legend>$lang_common[Uploaded_Images]</legend>";

    while ($idx < $image_count) {

        $output[] = "\t\t\t\t\t\t\t<div class='image_row' style='height: ".
                    $row_height."px;'>";

        for ($col = 0; $col < $column_count; $col++, $idx++) {
            if ($col == $column_count - 1)
                $column_width--;    // Oh the wonderful IE CSS engine...

            if ($idx < $image_count) {
                $url_name = urlencode($images[$idx]);
                $output[] = "\t\t\t\t\t\t\t\t<span class='image_item' style='width: ".
                            $column_width."%; height: $image_height"."px;'>";

                            
echo '<div id="highslide-container"></div>';
                if (!$edit) $output[] = "\t\t\t\t\t\t\t\t\t<a href='showimage.php?".
                                        "pid=$pid&filename=$url_name' class='highslide' onclick='return hs.expand(this)' title='Click to enlarge' alt='Highslide JS'>";
                $output[] = "\t\t\t\t\t\t\t\t\t\t<span class='image_thumbnail' ".
                            "style=\"background-image: url('showimage.php?".
                            "pid=$pid&filename=$url_name&preview=true'); ".
                            ($edit ? '' : 'cursor: pointer;') . "\"></span>";
                if (!$edit) $output[] = "\t\t\t\t\t\t\t\t\t</a>";

                if ($edit)
                    $output[] = "\t\t\t\t\t\t\t\t\t<label for='delete_image_$idx'>".
                                "<input type='checkbox' name='delete_image[]' ".
                                "id='delete_image_$idx' value='".urlencode($images[$idx]).
                                "' /> Delete</label>";
                $output[] = "\t\t\t\t\t\t\t\t</span>";
            }

            if ($col == $column_count - 1)
                $column_width++;
        }

        $output[] = "\t\t\t\t\t\t\t</div>";
    }

    $output[] = "\t\t\t\t\t\t</fieldset>";
    $output[] = "\t\t\t\t\t</div>";
    $output[] = "\t\t\t\t\t<br />\n";

    echo implode("\n", $output);

}

66

(26 replies, posted in PunBB 1.2 show off)

got it working by myself....


here is the a link to where u can see it in action:
http://www.amateurillustrator.com/forum … php?id=239

Just click on one of the uploaded images.


here is what i did to the "displays all image section" of image_upload.php

/*
********************************************************************************
** Displays all images that are currently attached to a post.
********************************************************************************
*/
function show_post_images($pid, $edit = false)
{
    global $pun_config, $lang_common;

    if (!check_mod_config())
        return;

    // Check if this post has images attached
    if (!is_dir($pun_config['iu_upload_path'].$pid))
        return;

    // Create an array of all image names for this post
    $images = get_dir_contents($pun_config['iu_upload_path'].$pid.'/thumbnails/');
    $image_count = count($images);

    $col = 0;
    $idx = 0;

    $column_count = $pun_config['iu_table_cols'];
    $column_width = floor(100/$column_count);
    $image_height = $pun_config['iu_thumb_height'];
    $row_height   = $image_height + 6;

    if ($edit)
        $row_height += 20;

    $output[] = '';

    if (!$edit)
        $output[] = "\t\t\t\t\t<br />";
    $output[] = "\t\t\t\t\t<div class='image_thumbnails'>";

    $output[] = "\t\t\t\t\t\t<fieldset>";
    $output[] = "\t\t\t\t\t\t\t<legend>$lang_common[Uploaded_Images]</legend>";

    while ($idx < $image_count) {

        $output[] = "\t\t\t\t\t\t\t<div class='image_row' style='height: ".
                    $row_height."px;'>";

        for ($col = 0; $col < $column_count; $col++, $idx++) {
            if ($col == $column_count - 1)
                $column_width--;    // Oh the wonderful IE CSS engine...

            if ($idx < $image_count) {
                $url_name = urlencode($images[$idx]);
                $output[] = "\t\t\t\t\t\t\t\t<span class='image_item' style='width: ".
                            $column_width."%; height: $image_height"."px;'>";

                            
echo '<div id="highslide-container"></div>';
                if (!$edit) $output[] = "\t\t\t\t\t\t\t\t\t<a href='showimage.php?".
                                        "pid=$pid&filename=$url_name' class='highslide' onclick='return hs.expand(this)' title='Click to enlarge' alt='Highslide JS'>";
                $output[] = "\t\t\t\t\t\t\t\t\t\t<span class='image_thumbnail' ".
                            "style=\"background-image: url('showimage.php?".
                            "pid=$pid&filename=$url_name&preview=true'); ".
                            ($edit ? '' : 'cursor: pointer;') . "\"></span>";
                if (!$edit) $output[] = "\t\t\t\t\t\t\t\t\t</a>";

                if ($edit)
                    $output[] = "\t\t\t\t\t\t\t\t\t<label for='delete_image_$idx'>".
                                "<input type='checkbox' name='delete_image[]' ".
                                "id='delete_image_$idx' value='".urlencode($images[$idx]).
                                "' /> Delete</label>";
                $output[] = "\t\t\t\t\t\t\t\t</span>";
            }

            if ($col == $column_count - 1)
                $column_width++;
        }

        $output[] = "\t\t\t\t\t\t\t</div>";
    }

    $output[] = "\t\t\t\t\t\t</fieldset>";
    $output[] = "\t\t\t\t\t</div>";
    $output[] = "\t\t\t\t\t<br />\n";

    echo implode("\n", $output);

}

67

(26 replies, posted in PunBB 1.2 show off)

this is a cool feature i just added if anyone is interested...go to my forum and drag the mouse over any external link:

http://www.amateurillustrator.com/forum … .php?id=28

try the websites under peoples avatars

ive already installed it...just wanted to know how hard it would be to do this little mod of a mod

69

(2 replies, posted in PunBB 1.2 discussion)

yep i got eas bbcode done

now for image upload....any ideas?

70

(26 replies, posted in PunBB 1.2 show off)

I would love to have highslide working with image upload so you don't have to open the image upload gallery page thingy...it just zooms the thumbnails using highslide:

anyone want to code this?

I posted this wish in the image upload thread too:
http://punbb.org/forums/viewtopic.php?pid=82390#p82390

Sorry for the double post - I posted this at PunRes too--- I'm never sure which one to use.


how hard would it be to get image upload to work with highslide:  http://vikjavev.no/highslide/

All it requires is the url of the thumbnail and the url of the large image...

So what I was thinking it would be wrapped around the thumbnail and then when you click on it it would open the large image directly.

I have highslide working with cpmfetch (a coppermine mod) inside my punbb forum here:

http://www.amateurillustrator.com/forums/

Just click on the thumbnails at the top to see the zoom effet.

I explain how I did it here:

http://punbb.org/forums/viewtopic.php?id=12768

This would be a cool feature I think.

is there a mod out there that allows members to reply to individual posts so that a thread can go off in tangents... many fourms have this feature.

so if someone wants to just reply to something that one users says they can underneith that post.

Maybe there is a mod out there already but I couldn't find it by searching.

I have this installed on my site and it works great in the quick reply and post except that when I go to edit post, none of the buttons work.

To test this out you can use my testing server:

//edited out by me - don't want google indexing it//

not sure why this is happening, i have a lot of mods and the like...but it is strange right?  does anyone else have this problem?

74

(26 replies, posted in PunBB 1.2 show off)

it is missing my css class called photoclip...you should add this to main.tpl too in the css section:

thats if you want it to look like mine:

img.photoclip { position: inherit; margin: 0 1px; border: solid 0 #000000; height: auto; overflow: hidden; padding: 0; }
.photoclip { color: white; text-align:left; font-size: 9px; font-family: "Trebuchet MS", Geneva, Arial, Helvetica, SunSans-Regular, sans-serif; line-height: 9px; text-align: left; list-style: none; text-indent: 0; overflow: hidden; vertical-align: top; margin: 0px 0 0; padding: 0; display: inline-table; white-space: normal; }

.photoclip a:link {font-size: 9px; text-decoration: none;}
.photoclip a:link:hover {font-size: 9px; text-decoration: none;}
.photoclip a:visited {font-size: 9px; text-decoration: none;}
.photoclip a:visited:hover {font-size: 9px; text-decoration: none;}

75

(26 replies, posted in PunBB 1.2 show off)

someone requested the code via email so here it is:

make a file called "something.php" stick this code in it:

<?php                
require_once "../cpmfetch/cpmfetch.php";
$objCpm = new cpm("../galleries");

$styleguide = array(
            //"TABLESTYLE" => "photoclip",
            //"rowstyle" => "photoclip",
            "cellstyle" => "photoclip",
            //"linkstyle" => "photoclip",
            "alttag" => "Click on thumbnail to see full-sized image",
            "imagestyle" => "photoclip",
            "cellattributes" => array('align' => 'center', 'width' => '100', 'height' => '100'),
            'imagelink' => 'large',
            'subtitle' => '<a href="http://www.amateurillustrator.com/galleries/displayimage.php?pos=-%i">%o</a>',
            "linkstyle" => 'highslide" onclick="return hs.expand(this)" onmouseover="self.status=\'Click to enlarge thumbnail\'; return true;');
            $objCpm->cpm_viewRandomMedia(1,7, $styleguide); 
            $objCpm->cpm_close();
?>

and then upload it to the folder: punbb/include/user/

then stick this code in your main.tpl file:

<script type="text/javascript" src="./highslide/highslide.js"></script>


    <script type="text/javascript">    
    hs.graphicsDir = './highslide/graphics/';
    window.onload = function() {
        hs.preloadImages();
    }
</script>

</div><div id="highslide-container"></div>
<pun_include "something.php"></pun_include>

and this bit of css in the stylesheet of your main tplfile:

<style type="text/css">
* {
    font-family: Verdana, Helvetica;
    font-size: 10pt;
}
.highslide {
    cursor: url(highslide/graphics/zoomin.cur), pointer;
    outline: none;
}
.highslide img {
    border: 2px solid gray;
}
.highslide:hover img {
    border: 2px solid silver;
}

.highslide-image {
    border-bottom: 1px solid white;
}
.highslide-image-blur {
}
.highslide-caption {
    display: none;
    
    border-bottom: 1px solid white;
    font-family: Verdana, Helvetica;
    font-size: 10pt;
    padding: 5px;
    background-color: silver;
}
.highslide-loading {
    display: block;
    color: white;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    padding: 3px;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    background-color: black;
    
    padding-left: 22px;
    background-image: url(highslide/graphics/loader.gif);
    background-repeat: no-repeat;
    background-position: 3px 1px;
    
}

a.highslide-credits,
a.highslide-credits i {
    padding: 2px;
    color: silver;
    text-decoration: none;
    font-size: 10px;
}
a.highslide-credits:hover,
a.highslide-credits:hover i {
    color: white;
    background-color: gray;
}
.highslide-display-block {
    display: block;
}
.highslide-display-none {
    display: none;
}
</style>

You must of course have cpmfetch already installed at your root directory and highslide installed at your forum directory...it doesn't really matter where you have them installed as long as you set the paths to them correctly.

Hope this helps.