101

(5 replies, posted in PunBB 1.2 discussion)

In the admin panel, ban *.ru domains

You are using a hosted service so I am not sure you can install whtever you want. You'd better ask punbb-hosting support

the script removes the BBcode, there should not be any html in the description. <br> is not a valid tag, I don't know where it comes from

have you done the modifications in viewtopic.php?

105

(4 replies, posted in PunBB 1.2 show off)

email fishing maybe ...

106

(3 replies, posted in PunBB 1.2 discussion)

yes you can

I am not the author of this mod.
ok, here is the complete process:

#
#---------[ 1. open ]-----------------------------------------------------
#

include/template/main.tpl

#
#---------[ 2. find ]-----------------------------------------------------
#
<pun_head>

#
#---------[ 3. add after ]------------------------------------------------
#
<pun_include "meta.php">

#
#---------[ 4. open ]-----------------------------------------------------
#
viewtopic.php

#
#---------[ 5. find ]-----------------------------------------------------
#
// Perform the main parsing of the message (BBCode, smilies, censor words etc)

#
#---------[ 6. add before ]-----------------------------------------------------
#


if($post_count == 1) $description = $cur_post['message'];


##---------[ 7. create meta.php with the following content ------------------
#


<?php

function parser_del_bbcode($text, $size){
    global $pun_config;

    if ($pun_config['o_censoring'] == '1')
        $text = censor_words($text);

    // ending html tags into line breaks
    $text=preg_replace('#\[(hide|url|img|quote)\](.*?)\[/(hide|url|img|quote)\]#s','',$text);
    $text=preg_replace('#\[quote=(?:.*?)\](.*?)\[/quote\]#s','',$text);
    $text=preg_replace('#\[(url|color|email)=(?:.*?)\](.*?)\[/(url|color|email)\]#s','$2',$text);
    // remove other bbcode tags
    $text=preg_replace('#\[(.*?)\]#s','',$text);
    // remove newlines
    $text=preg_replace('# +#s',' ',$text);
    $text=preg_replace('#\n#s','',$text);
    $text=str_replace('"',"'",$text);

    return substr($text, 0, $size);
}

if ($pun_user['is_guest'] &&  $footer_style == 'viewtopic')
{  $postertag=$cur_topic['subject'];
$postertag=str_replace('"',"'",$postertag);

    echo '<meta name="description" content="Subject:'.$postertag.'./..' . parser_del_bbcode($description,350) . '" />';

}else{
echo '<meta name="description" content="'.$page_title.'" />';
}
?>

##---------[ 7. upload meta.php- ------------------
#
include/user/meta.php

The description does not appear as it should, I will check it at home as the code I  gave is a modified one for my site

It works for me, I see:
<meta name="description" content="Subject:Arriva anche in Italia la nuova serie di catalizzatori Magnaflow./.." />

strange, replace:

    echo '<meta name="description" content="...' . parser_del_bbcode($description,350) . '" />';
    //echo '<meta name="description" content="Subjet:'.$postertag.'./..' . parser_del_bbcode($description,350) . '" />';

by

echo '<meta name="description" content="Subject:'.$postertag.'./..' . parser_del_bbcode($description,350) . '" />';

try puntoolbar

metas are only for the search engines so they only appear for guests. If you are logged in, you will not be able to see them in the page source

It is useless for SEO, it just helps for readbility in the search results.

to do it, create meta.php in /include/user/ with the following content:

<?php

function parser_del_bbcode($text, $size){
    global $pun_config;

    if ($pun_config['o_censoring'] == '1')
        $text = censor_words($text);

    // ending html tags into line breaks
    $text=preg_replace('#\[(hide|url|img|quote)\](.*?)\[/(hide|url|img|quote)\]#s','',$text);
    $text=preg_replace('#\[quote=(?:.*?)\](.*?)\[/quote\]#s','',$text);
    $text=preg_replace('#\[(url|color|email)=(?:.*?)\](.*?)\[/(url|color|email)\]#s','$2',$text);
    // remove other bbcode tags
    $text=preg_replace('#\[(.*?)\]#s','',$text);
    // remove newlines
    $text=preg_replace('# +#s',' ',$text);
    $text=preg_replace('#\n#s','',$text);
    $text=str_replace('"',"'",$text);

    return substr($text, 0, $size);
}

if($pun_user['is_guest'])
{
    if ($footer_style == 'viewtopic')
    {
        $postertag=$cur_topic['subject'];
        $postertag=str_replace('"',"'",$postertag);
        echo '<meta name="description" content="Subjet:'.$postertag.'./..' . parser_del_bbcode($description,350) . '" />';
    }
}
?>

and in your main.tpl  add <pun_include "meta.php"> before </head>

114

(8 replies, posted in PunBB 1.2 show off)

the url is forums no forum

by reading the documentation for a start

116

(10 replies, posted in PunBB 1.2 troubleshooting)

in base.css, remove

img.postimg {
max-width:100%;
}

You have to create the file ./lang/Polish/movepost.php
copy the one that is in the English folder and translate it to Polish

I think it should be in /lang/Language/arcade.php to change the message
You should get more answers on the mod's topic on Punres.

you need an email address to send the email otherwise it will be rejected by most hosts

you have to get the plugin from Punres first wink

121

(6 replies, posted in Feature requests)

PunBB already uses templates

it will be in the next release of Move Post. You can test it there : http://georezo.net/demo
login/pass: demo/demo

in admin options, X = <br /> where X is the place in the links list.
or directly in functions.php, in generate_nav_links()

124

(2 replies, posted in PunBB 1.2 troubleshooting)

mailing options are in Administration > Options
to install language packs, just upload them in the lang folder via FTP

125

(5 replies, posted in PunBB 1.2 discussion)

you can empty these 3 tables, if you empty the database, you will lose everything