<meta name="description" content="<p>Finalmente anche in Europa la serie di catalizzatori universali .<br /><br />Unici nel loro genere, costituiti da un unico guscio metallico che racchiude il cuore ceramico plasmato a dovere, senza saldature di legatura tra le parti.<br /><br /><a href='http://www.car-sound.com/02product/universal/549spun.a" />

It a html tag how i can remove it to description??? maybe in the meta.php file??

Thanks!!!!

fantasma wrote:

ok it work perfectly but i see the tag in the description meta

<br> <p> ecc

all the bbcode tag
i can leave it? Iwant that this mod show only the text

up this!!!

now i have this nice idea for add keyword for each post see below

A php programmer must make this only for the first new post (new discussion):

http://img63.imageshack.us/img63/6569/senzatitolo1sd6.png

Who can make it????

the best way for this SEO Mod Beta IS this:

Add general <meta name="Keywords" content= keyword /> in main.tpl.

After will modified meta.php on this:

<?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="' . parser_del_bbcode($description,350) . '" />';
    //echo '<meta name="description" content="Subjet:'.$postertag.'./..' . parser_del_bbcode($description,350) . '" />';
    }
}
?>

In header of your punbb you will show the Base title of board and the title of the single post, the general keyword, and the  meta description is the first 350 characters of the first post.

ok it work perfectly but i see the tag in the description meta

<br> <p> ecc

all the bbcode tag
i can leave it? Iwant that this mod show only the text

ok finally it work fine! well done, compliment for your mod, so i need keyword tag generator for each post!!!
Who have it ready???  smile

The Subject already show in title see below
<title>Magnaflow community Italia / [Tuning News]Anticipazioni sulla Grande Punto Abarth</title>

your file meta.php add this:
<meta name="description" content="Subject:[Tuning News]Anticipazioni sulla Grande Punto Abarth./.." />

i have add this in main.tpl
<meta name="Keywords" content="Magnaflow, video magnaflow, catalizzatori magnaflow, silenziatori omologati,

But i want that in <meta name="description" content= will show the first part of the post and no the title

I see this now
<meta name="description" content="Subject: and part of the subject, but i see the subject alrady in the title tag.
I want show first part of the first post
Any suggest?

i see only this in my head <meta name="description" content="..." />

mmmm so , i have insert in my main.tpl meta key and meta description, i must remove it??

yemgi wrote:

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="...' . parser_del_bbcode($description,350) . '" />';
    //echo '<meta name="description" content="Subjet:'.$postertag.'./..' . parser_del_bbcode($description,350) . '" />';
    }
}
?>

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

I do it but not work or i not understand how it work.

Hello my tuning friend!!!!! I have same tuning catalog and forum!! check the website in my details
Yuhu very nice!!! and the meta description for the post?

I know abotu i do for add this tag, but i'm not a php programmer.

I think that the meta description and meta key in each post i very useful for search engine, if used it in correct mode. Punbb need this mod, for me!

any help??

i have insert meta keyword and description general in main.tpl, yes it work, but i want insert it for each post, it very important for search engine, can help me to do it?

use it in header smile

Hello
I'm a SEO, and i use PunBB for my communities.

Few day ago i discovered a punbb forum that show in each post Meta Keyword and meta description, the description report the first part of the first post.( i have try to contact the admin of the forum but not have received reply)

Now i have tryed to do it, but with no good results.

Why we don't make a mod for this? It very important for search engine and i want implement this mod in my forum.
Please help me to create a SEO_mod for PunBB

619

(9 replies, posted in PunBB 1.2 show off)

you can dowbalod it on punres.org with psd file, the name is itablack
bye thank

620

(9 replies, posted in PunBB 1.2 show off)

see now www.punbb-italia.it

621

(9 replies, posted in PunBB 1.2 show off)

thanks!!!

622

(9 replies, posted in PunBB 1.2 show off)

Hello guys
like my theme at www.punbb-italia.it  ???

Bye

this italian community http://www.needforexhaust.com/board/index.php

See this italian site http://www.borse.it/forum/index.php 166521 users!!!!

625

(6 replies, posted in PunBB 1.2 show off)

i know your site, i'm member!!!! big_smile