376

(55 replies, posted in Supported extensions)

Seduxen, can you please post in english! Or use punbb.ru ...

377

(2 replies, posted in General discussion)

Kevmau5 wrote:

Also, Would PunBB support, Instant Chat.    Like msn instant messenger style, only it's, PunBB style instead?

http://punbb.informer.com/forums/topic/ … messenger/

Kevmau5 wrote:

Would PunBB support mobile format for a webpage/forum.

There's currently no clean fix for that here I believe...

Ok, I have say 30-40 posts I want to submit to stopforumspam at a go (so not submitting one by one manually, which involves 6 mouse clicks for each submission).
The posts are all in pun_approval filter.

Should this be done by ticking each post and then using foreach ?

[code=php]
foreach($myarray as $myvariable)
{
  echo "$myvariable, ";
}
[/code]


I can also just export the ip, username and email to a .csv file - but then how to submit ?


I was also shown this over in another forum

[code=php]
$url = "http://www.stopforumspam.net/api.php?username={spammer}&f=serial";
$sql = "SELECT username FROM forum WHERE spammer = 'yes'";
$erg = mysql_query($sql);
while ( $row = mysql_fetch_assoc($erg) ) {
  $spammer = urlencode(trim($row['username']));
  $url_jetzt = str_replace('{spammer}',$spammer,$url);
  $data = file_get_contents($url);
}
echo 'fertsch'; 
[/code]

379

(5 replies, posted in PunBB 1.3 discussion)

I'm not aware of any such extension...
Yes, I was suggesting you use group images, if it works...

Will be good if you find the mod code and post it here for anyone who wants to help...

http://punbb.informer.com/forums/post/137892/#p137892

RE: rank images: please follow up or request further info in the thread above...
Thanks.
Closed.

381

(2 replies, posted in PunBB 1.3 discussion)

http://punbb.informer.com/forums/post/137892/#p137892

Please follow up or request further info in the thread above...
Thanks.
Closed.

382

(5 replies, posted in PunBB 1.3 discussion)

Hi,
there's this extension that needs some tweaking....

Rich Pedley wrote:

Group Images

Adds images for user groups based on number of posts. Several images are included, but you can easily add more.

[code=xml]<?xml version="1.0" encoding="UTF-8"?>

<extension engine="1.0">
    <id>egroups_imgs</id>
    <title>Group Images Beta</title>
    <version>0.5</version>
    <description>WARNING: use at your own risk (written for 1.3 beta) Adds images for user groups based on number of posts. Set images on the Users > Groups page. Set number to display on the Users > Ranks page.</description>
    <author>Rich Pedley</author>
    <minversion>1.3 Beta</minversion>
    <maxtestedon>1.3 Beta</maxtestedon>
    <install><![CDATA[
        if (!array_key_exists('o_egroup_imgs', $forum_config)){
            $forum_db->query("INSERT INTO ".$forum_db->prefix."config (conf_name, conf_value) VALUES ('o_egroup_imgs', '1')");
            $forum_db->add_field('groups', 'g_img', 'VARCHAR(255)', '');
            $forum_db->add_field('ranks', 'img', 'VARCHAR(2)', '');
        }
    ]]>
    </install>
    <uninstall><![CDATA[
        $forum_db->query("DELETE FROM ".$forum_db->prefix."config WHERE conf_name = 'o_egroup_imgs'");
        $forum_db->drop_field($forum_db->prefix.'groups', 'g_img');
        $forum_db->drop_field($forum_db->prefix.'ranks', 'img');
    ]]>
    </uninstall>
    <hooks>
        <hook id="agr_start, ark_start"><![CDATA[
        if(file_exists($ext_info['path'].'/lang/'.$forum_user['language'].'.php'))
            require $ext_info['path'].'/lang/'.$forum_user['language'].'.php';
        else
            require $ext_info['path'].'/lang/English.php';
        ]]>
        </hook>

        <hook id="ark_add_rank_qr_add_rank"><![CDATA[
            $group_image=$_POST['new_group_image'];
            $query['INSERT'].=', img';
            $query['VALUES'].=',\''.$forum_db->escape($group_image).'\'';
        ]]>
        </hook>

        <hook id="ark_update_qr_update_rank"><![CDATA[
            $group_image=$_POST['group_image'][$id];
            $query['SET'].=",img='".$forum_db->escape($group_image)."'";
        ]]>
        </hook>   
        <hook id="ark_pre_add_rank_submit"><![CDATA[
        ?>
        <div class="mf-field select">
            <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span class="fld-label"><?php echo $lang_eg_imgs['Rank Images']; ?></span></label><br />
            <span class="fld-input"><select id="fld<?php echo $forum_page['fld_count'] ?>" name="new_group_image">
            <option value="">0</option>
            <?php
            for($i=1;$i<=10;$i++){
                echo '<option value="'.$i.'">'.$i.'</option>'."\n";
            }
            ?>
            </select>
            </span>
        </div>
        <?php
       
        ]]>
        </hook>
        <hook id="ark_pre_edit_cur_rank_submit"><![CDATA[
        ?>
        <div class="mf-field select">
            <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span class="fld-label"><?php echo $lang_eg_imgs['Group Image']; ?></span></label><br />
            <span class="fld-input"><select id="fld<?php echo $forum_page['fld_count'] ?>" name="group_image[<?php echo $cur_rank['id'] ?>]">
            <option value="">0</option>
            <?php
            for($i=1;$i<=10;$i++){
                $sel='';
                if($cur_rank['img']==$i) $sel=' selected="selected"';
                echo '<option value="'.$i.'"'.$sel.'>'.$i.'</option>'."\n";
            }
            ?>
            </select>
            </span>
        </div>
        <?php
        ]]>
        </hook>
        <hook id="agr_add_end_qr_add_group"><![CDATA[
            $group_image=$_POST['group_image'];
            $query['INSERT'].=', g_img';
            $query['VALUES'].=',\''.$forum_db->escape($group_image).'\'';
        ]]>
        </hook>

        <hook id="agr_edit_end_qr_update_group"><![CDATA[
            $group_image=$_POST['group_image'];
            $query['SET'].=",g_img='".$forum_db->escape($group_image)."'";
        ]]>
        </hook>   
        <hook id="agr_add_edit_group_pre_basic_details_fieldset_end"><![CDATA[
        function get_group_icons(){
            global $ext_info;
            $eranks = array();
            if($handle = opendir($ext_info['path'].'/icons/')){
                /* This is the correct way to loop over the directory. */
                while (false !== ($file = readdir($handle))) {
                    if($file!='.' && $file!='..')
                        $eranks[]=$file;
                }
                closedir($handle);
            }
            return $eranks;
        }
        $group_icons=get_group_icons();
        ?>
        <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">       
        <div class="sf-box select">
            <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span class="fld-label"><?php echo $lang_eg_imgs['Group Image']; ?></span></label><br />
            <span class="fld-input"><select id="fld<?php echo $forum_page['fld_count'] ?>" name="group_image">
            <option value=""><?php echo $lang_eg_imgs['None']; ?></option>
            <?php
            $group_icon_options='';
            foreach ($group_icons as $k){
                $sel='';
                if($group['g_img']==$k) $sel=' selected="selected"';
                $group_icon_options.='<option value="'.$k.'"'.$sel.' style="background: url('.$ext_info['url'].'/icons/'.$k.') no-repeat center left;padding-left:12px;">'.$k.'</option>'."\n";
            }
            echo $group_icon_options;
            ?>
            </select>
            </span>
        </div>
        </div>
        <?php
        ]]>
        </hook>
       
        <hook id="vt_qr_get_posts"><![CDATA[
            $query['SELECT'].=', g.g_img AS groupimage';
            $gresult=$forum_db->query("SELECT min_posts, img FROM ".$forum_db->prefix."ranks ORDER BY min_posts DESC");
        ]]></hook>
       
        <hook id="vt_row_pre_post_actions_merge"><![CDATA[
            if ($cur_post['poster_id'] > 1 && $cur_post['groupimage']!='' && !isset($groupicon[$cur_post['poster_id']])){
                while ($granks = $forum_db->fetch_assoc($gresult)){
                    //reset just in case..
                    $rank_markup='';
                    if(intval($cur_post['num_posts']) >= intval($granks['min_posts'])){
                        for($i=1;$i<=intval($granks['img']);$i++){
                            $rank_markup.='<img src="'.$ext_info['url'].'/icons/'.$cur_post['groupimage'].'" height="10" width="10" style="margin-left:1px;" alt="" />';
                        }
                        $rank_icon_splice = array('rankicon'=>'<li class="userrankicon">'.$rank_markup.'</li>');
                        if (isset($forum_page['author_ident']['avatar'])){
                            array_splice($forum_page['author_ident'], 3, 0, $rank_icon_splice);
                        }else{
                            array_splice($forum_page['author_ident'], 2, 0, $rank_icon_splice);
                        }
                        break;
                    }
                }
                //reset array and set this user as being parsed
                mysql_data_seek($gresult,0);
                $groupicon[$cur_post['poster_id']]='set';
            }
        ]]></hook>
    </hooks>
</extension>
[/code]

Turn off registrations?!  -  Never! smile
I have captcha turned off (doesn't really make a difference anyway) and guest posting allowed.
There's just those comments, and they're easy to deal with thanks to pun_approval. Business as usual for the site. No-one visiting the site even knows that I have spammers smile Now all I need is for the comments by that spammer to be auto-deleted, so I don't need to spend 30seconds a day cleaning them out...

I have sites that have the powered by hidden - spammers still find them.
I think it has a lot to do with pagerank and activity... unless you're telling me that the moment you turned off just the powered by, suddenly spammers disappeared?

384

(1 replies, posted in PunBB 1.3 troubleshooting)

Can you use the default htaccess and see if it works?

385

(3 replies, posted in PunBB 1.3 troubleshooting)

Are you using the default style Oxygen?
What other extensions have you installed?

On my website I've got a  spammer posting  30-40 replies to topics... daily... I have guest posting enabled BUT
I also have pun_approval activated and actually just go to phpmyadmin (as there's no deleting of multiple message at a time in pun_approval) and delete them a dozen at a time there (3 seconds work)...

But what I'd like to do is query a list of @domain addresses (.txt or .csv)  so that posts emanating from those domains I choose and add to list are automatically deleted...   Reason --> This particular spammer just uses @google.com email addresses - so not even possible...? (it's just googlemail.com, gmail.com isn't it?)

So something LIKE this in a manifest... ? (based on Grez's URL Checker extension...)

    function domaincheck($domain, &$errors, $text = "") {
        global $ext_info, $forum_user, $forum_db, $forum_url;

        $filename = $ext_info['path'].'/domains.csv';
        $handle = fopen($filename, "r");
        $content = fread($handle, filesize($filename));

don't know how to implement the deleting though...

Where did you put it?
How did you install it?
What version PunBB are you using?
On what environment?
Do you have a live board (link?)
Have you changed the style?

Check if you see it with the default style. This will only work with boards PunBB 1.3.x.

388

(3 replies, posted in Feature requests)

Just saw this by chance,
there's an extension called "Silence" that would be what you need.... obviously a bit late, I'll close this topic though and let any further questions be addressed in the "Silence" topic...
http://punbb.informer.com/forums/topic/ … e-silence/

389

(49 replies, posted in General discussion)

Nice tool, btw

Hidden Topics: Extension/plugin - you have nothing
Message Rating:  Extension/plugin - you have nothing
IP Blocking: is possible via bans page

Updates Notifications :  There's an alert when admin logs in, you have it as nothing at the moment in your db
Supported Forum Migration: As it's possible for most boards to be migrated to Phpbb and PunBB supports migration from Phpbb it's something that probably isn't a factor that should stop anyone converting?

just noticed PunBB gets 1/3 for installation - and it's probably due to those two points?
I agree it could be easier of course and it's not as good as Phpbb - but 1/3... :S

390

(5 replies, posted in General discussion)

Thanks for that.
BTW:

  • Is it possible that you do not weigh or rank ease of adding mods (or in our case one-click-extensions) in general in your reviews?

  • I've found that being able to quickly port, disable an extension is a valuable time-saver that doesn't get enough recognition IMO....

  • I also think in general it would be interesting to know how well a forum ranks for available number of mods&extensions and support for them.

  • Also  interesting: How does a forum software rank for spam protection. For example having a CAPTCHA (a criteria you list) can be of no use if it's too easy, but can also be very annoying if it's too hard...

Just wondering if this would work well if a forum is getting hit by proxies?
And would one add it too header or index?

[code=php]
<?php

/**
* Block Proxy Script
* Copyright 2009 - www.pgmr.co.uk - contact@pgmr.co.uk
*/

function checkProxy {
if($_SERVER['HTTP_X_FORWARDED_FOR'] || $_SERVER['HTTP_X_FORWARDED'] || $_SERVER['HTTP_FORWARDED_FOR'] || $_SERVER['HTTP_CLIENT_IP'] || $_SERVER['HTTP_VIA']) {
die('No proxies allowed');
}
}

?>
[/code]


Edit: It seems this may catch a bit too much I was told...

wink no need to sulk, it's a fair point about the searching (in general) and if you find a solution please share it ?! smile

+1

Think it's a good idea. Can't code it though sad

394

(85 replies, posted in Supported extensions)

I was just trying to set that new members who are posting for 1st time, need post approval.
Problem is: the place to set if user group needs approval is not somewhere where minimum number of posts can be entered.
In ranks one can enter how many posts a user needs to attain the rank...

Is there someway to make it so that when the user posts first time, the message will need to be approved? (without manually changing group?) Or that ranks can be edited for post approval....?

Or am I missing something?

Small bug: Just noticed it shows more than 25 last entries. Here for example over 35! Good news: It's working well!

Another issue that needs adressing;

If I catch a spammer using URL   
badurl.com/bad

then ban
badurl.com

it doesn't catch anything if they use  badurl.com/2bad  (example)

396

(10 replies, posted in PunBB 1.3 extensions)

Same as with video image big_smile

http://punbb.informer.com/forums/post/134398/#p134398


But there should be a good way to do this via the extension...
I saw the Extended BBCode extension has all the images in the extension folder plus the new ones... and then adds code in manifest.xml to choose that folder...

397

(8 replies, posted in PunBB 1.3 bug reports)

Can you use this BBcode buttons
http://punbb.informer.com/wiki/_media/p … _1.3.5.zip

and report the code you use that gives you truncated messages.

Thanks

Edit:
I'm starting to think it might be the pun_stop_bots ??

Thanks, yes probably a bug with an extension, i.e. it not taking into account another possibly.
But I had a similiar problem with the latest  BBCode buttons extension - can you try and disable that and enable the others again. I'm curious...

Okay, next step smile

Which extensions do you have installed?

Also maybe upload this userlist.php
http://punbb.informer.com/wiki/_media/p … st.php.zip

Just to be sure you're using one that I know works...

400

(0 replies, posted in Discussions)

Today I stumbled across this top ten list of forum software.
http://www.rivmedia.co.uk/ten-of-the-be … p-perl/369

PunBB was named in 3rd place behind just PhpBB and SMF  smile

If you find reviews or important lists PunBB isn't on, make sure to point PunBB out to them!