(2014-09-26, 01:10 PM)xpserkan Wrote: [ -> ]Hi AliReza_Tofighi,
Lex- (TagCloud v1.2) had a feature like this plugin.
<meta name="keywords" content="{$tag}" />
Is it possible to do this with your plugin?
Showthread template used for this meta tag would be very nice if we could.
See Examples:
I made several attempts, but none of it did not work.
<meta name="keywords" content="{$tag}" />
<meta name="keywords" content="{$tags}" />
<meta name="keywords" content="{$tag['thread']}" />
<meta name="keywords" content="{$thread['tag']}" />
<meta name="keywords" content="{$tags['thread']}" />
<meta name="keywords" content="{$thread['tags']}" />
Thank you, I'll work on it.
For add meta tag in inc/plugins/tags.php
find:
if($tags != '')
{
eval('$tags = "'.$templates->get('tags_box').'";');
}
}
$plugins->add_hook("index_start", "tags_index");
replace to:
$thread['tags_meta'] = htmlspecialchars_uni(implode(', ', $thread['tags']));
if($tags != '')
{
eval('$tags = "'.$templates->get('tags_box').'";');
}
}
$plugins->add_hook("index_start", "tags_index");
Now, Add this code to showthread:
<meta name="keywords" content="{$thread['tags_meta']}" />
Thank you,
There is also a problem.
I need to block Turkish UTF-8 characters.
Example: ÇŞÜĞI
In special characters to filter better.
Example:
@é"£~ş! '½ ^ # $% & () / {} [] \ *? - +' _<>|.:;,´€
(2014-09-29, 05:32 PM)xpserkan Wrote: [ -> ]Thank you,
There is also a problem.
I need to block Turkish UTF-8 characters.
Example: ÇŞÜĞI
In special characters to filter better.
Example:
@é"£~ş! '½ ^ # $% & () / {} [] \ *? - +' _<>|.:;,´€
You can change line 672:
$s = str_replace(array("`","~","!","@","#","$","%","^","&","*","(",")","_","+","-","=","\\","|","]","[","{","}",'"',"'",";",":","/","."," ",">","<"), ",", $s);
Turkish UTF-8 URL - Character Translation
Bkz:
https://github.com/ATofighi/MyBB-Tags/issues/33
/tag.php?name=çan
/tag.php?name=ırmak
/tag.php?name=güneş
/tag.php?name=şimşek
/tag.php?name=örnek
/tag.php?name=ülke
ç = c
ı = i
ğ = g
ş = s
ö = o
ü = u
Example:
function get_tags($str, $convert=false)
{
global $mybb, $db
if($convert)
{
$str = htmlentities($str);
}
$str = str_replace("ç","c", $str);
$str = str_replace("ı","i", $str);
$str = str_replace("ğ","g", $str);
$str = str_replace("ş","s", $str);
$str = str_replace("ö","o", $str);
$str = str_replace("ü","u", $str);
}
Result:
/tag.php?name=can
/tag.php?name=irmak
/tag.php?name=gunes
/tag.php?name=simsek
/tag.php?name=ornek
/tag.php?name=ulke
(2014-09-29, 04:49 PM)xpserkan Wrote: [ -> ] (2014-09-29, 03:29 PM)roy Wrote: [ -> ]hi,ı tried deactivated and activated 2-3 but forum display not shoved tags,and where is sitemap url?
thanks
Sitemap URL:
site-name.com/tag.php?action=sitemap-index
Thanks xpserkan,and forumdisplay not showed tags? (forumgörüntüleme)
Thank u brother solved now
(2014-09-29, 07:38 PM)roy Wrote: [ -> ]Thanks xpserkan,and forumdisplay not showed tags? (forumgörüntüleme)
Add to template: forumdisplay
{$tags}
wery thanks serkan for your help.
Can you please explain how to change background color of the actual tags or remove the tag altogether so just the words show up? I appreciate it.
Thanks
(2014-09-29, 08:39 PM)SteelCurtain Wrote: [ -> ]Can you please explain how to change background color of the actual tags or remove the tag altogether so just the words show up? I appreciate it.
Thanks
Hi SteelCurtain,
Home » Template Sets » Global Templates
tags_box