In the admin panel, ban *.ru domains
102 2007-10-09 09:05
Re: Chat Rooms and feedback? (2 replies, posted in PunBB 1.2 modifications, plugins and integrations)
You are using a hosted service so I am not sure you can install whtever you want. You'd better ask punbb-hosting support
103 2007-10-06 18:58
Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post (43 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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
104 2007-10-06 10:58
Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post (43 replies, posted in PunBB 1.2 modifications, plugins and integrations)
have you done the modifications in viewtopic.php?
105 2007-10-06 10:51
Re: Free PunBB Hosting (4 replies, posted in PunBB 1.2 show off)
email fishing maybe ...
106 2007-10-05 21:09
Re: Deleting spam users (3 replies, posted in PunBB 1.2 discussion)
yes you can
107 2007-10-05 18:14
Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post (43 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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
108 2007-10-05 15:26
Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post (43 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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
109 2007-10-05 15:22
Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post (43 replies, posted in PunBB 1.2 modifications, plugins and integrations)
It works for me, I see:
<meta name="description" content="Subject:Arriva anche in Italia la nuova serie di catalizzatori Magnaflow./.." />
110 2007-10-05 15:10
Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post (43 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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) . '" />';
111 2007-10-05 14:38
Re: TinyMCE WYSIWYG editor for PunBB (10 replies, posted in PunBB 1.2 modifications, plugins and integrations)
try puntoolbar
112 2007-10-05 14:23
Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post (43 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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
113 2007-10-04 21:55
Re: [SEO_mod for PunBB] Meta Keyword and meta description for each post (43 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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 2007-10-02 21:56
Re: Give your suggestions (8 replies, posted in PunBB 1.2 show off)
the url is forums no forum
115 2007-10-02 09:36
Re: how to link login of punbb to applications (4 replies, posted in PunBB 1.2 modifications, plugins and integrations)
by reading the documentation for a start
116 2007-10-01 08:35
Re: image resizing (10 replies, posted in PunBB 1.2 troubleshooting)
in base.css, remove
img.postimg {
max-width:100%;
}
117 2007-09-29 19:36
Re: Move Post 1.3 + Merge Topics (121 replies, posted in PunBB 1.2 modifications, plugins and integrations)
You have to create the file ./lang/Polish/movepost.php
copy the one that is in the English folder and translate it to Polish
118 2007-09-28 22:43
Re: Corrections in the arcade (4 replies, posted in PunBB 1.2 troubleshooting)
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.
119 2007-09-28 21:09
Re: e-mail address shown after registration (3 replies, posted in PunBB 1.2 troubleshooting)
you need an email address to send the email otherwise it will be rejected by most hosts
120 2007-09-28 21:07
Re: How do I sent an e-mail to every member? (3 replies, posted in PunBB 1.2 troubleshooting)
you have to get the plugin from Punres first
121 2007-09-27 18:47
Re: TPL-Engine?!? (6 replies, posted in Feature requests)
PunBB already uses templates
122 2007-09-25 19:58
Re: Move Post 1.3 + Merge Topics (121 replies, posted in PunBB 1.2 modifications, plugins and integrations)
it will be in the next release of Move Post. You can test it there : http://georezo.net/demo
login/pass: demo/demo
123 2007-09-22 19:39
Re: Need to force a break in the breadcrumbs, what do I do? (7 replies, posted in PunBB 1.2 troubleshooting)
in admin options, X = <br /> where X is the place in the links list.
or directly in functions.php, in generate_nav_links()
124 2007-09-21 12:14
Re: mail (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 2007-09-20 22:09
Re: punbb db tables (5 replies, posted in PunBB 1.2 discussion)
you can empty these 3 tables, if you empty the database, you will lose everything