Quote from: Chopper on March 24, 2008, 09:11:39 AM
Didn't install for me :(
3. Execute Modification ./Themes/default/index.template.php Test failed
Quote from: rsw686 on March 23, 2008, 09:36:45 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1138)
Adds descriptive vBulletin style meta tags.
On the board index you have
Title: Forum Name - Index
Keywords: hard coded in template
Description: hard coded in template
On the message index you have
Title: Board Name - Forum Name
Keywords: Board Name, keywords hard coded in template
Description: Board Description
On the message display you have
Title: Topic Subject - Forum Name
Keywords: Topic Subject, keywords hard coded in template
Description: Topic Subject Board Name
Quote from: rsw686 on March 23, 2008, 09:36:45 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1138)
Adds descriptive vBulletin style meta tags.
On the board index you have
Title: Forum Name - Index
Keywords: hard coded in template
Description: hard coded in template
On the message index you have
Title: Board Name - Forum Name
Keywords: Board Name, keywords hard coded in template
Description: Board Description
On the message display you have
Title: Topic Subject - Forum Name
Keywords: Topic Subject, keywords hard coded in template
Description: Topic Subject Board Name
Quote from: rsw686 on March 24, 2008, 03:33:12 PM
I'm not sure why you would have html code in a meta description tag. But sure you just do \" to escape the quote. This is PHP's design. If you enclosed text in " you must escape those inside same goes if you enclose text with '. I might in the future add an admin panel section to define the keywords and board description.
Quote from: karlbenson on March 24, 2008, 03:14:44 PM
^ or he could use php function strip_tags first, then escape any remaining stuff like you said.
Quote from: Sincere on March 24, 2008, 04:41:07 PM
:) easy lazy-boy way to include pic thumbs for each forum on the board index...... :)
Quote from: rsw686 on March 27, 2008, 08:01:20 AM
I haven't forgotten about this, just been real busy. I'm actually working on improvements based on a forum with vBSEO installed.
I've also moved the hard coded keywords and description into the admin panel. This way they are easy to change. The end result will be
Title: Forum Name - Index
Keywords: your keywords
Description: your description
On the message index you have
Title: Board Name - Forum Name
Keywords: Board, Name, Board Name, your keywords
Description: Board Name - Board Description
On the message display you have
Title: Topic Subject - Forum Name
Keywords: Topic, Subject, Topic Subject, your keywords
Description: First 150 characters of post
Quote from: Sincere on March 27, 2008, 08:13:35 AM
this sounds great. is the attachment in the first post the updated version?
Quote from: rsw686 on March 27, 2008, 09:02:12 AMQuote from: Sincere on March 27, 2008, 08:13:35 AM
this sounds great. is the attachment in the first post the updated version?
No I stated I was working on it. It should be ready on Friday.
Quote from: rsw686 on March 27, 2008, 12:26:28 PM
I just uploaded version 1.1. Here's the changes.
- Add section on admin interface to define default keywords and description
- Properly handle BBC, HTML, and quotes
- Use beginning of post for description on the message display
- Improve formatting of keywords
Fatal error: Function name must be a string in forum/Packages/temp/dbmodify.php on line 15
Quote from: NIBOGO on April 05, 2008, 08:11:10 PM
works with smf 1.1.4?
Quote from: mastmast on May 11, 2008, 07:57:25 PM
what is doing exactlly?
Quote from: SONSiVRi on May 27, 2008, 03:29:01 PM
Mod for v1.1.x Forums,
I recompiled mod from beginning and I tested on 1.1.5, there is no error detected.
Installation file attached as below.
"rsw686"
*** I will be happy my nick included if you publish this mod.
*** I think its better to add random topic's subjects to the meta keywords when user browsing message index, not only user defined keywords.
Quote from: Pspuser007 on June 16, 2008, 12:11:49 PM
Hello!
When i am trying to install this mod at my forum(smf 1.1.5,theme mystic jade,TP 0.9. 8)
and i get this error:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg369.imageshack.us%2Fimg369%2F6254%2F98702268rd0.png&hash=dbe6d7d3d8acffdd0306a4b994053b54bf4b3485)
http://img369.imageshack.us/img369/6254/98702268rd0.png (http://img369.imageshack.us/img369/6254/98702268rd0.png)
What can i do??
Thank you for your time!
Quote from: Pspuser007 on June 16, 2008, 12:11:49 PM
Hello!
When i am trying to install this mod at my forum(smf 1.1.5,theme mystic jade,TP 0.9.8)
and i get this error:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg369.imageshack.us%2Fimg369%2F6254%2F98702268rd0.png&hash=dbe6d7d3d8acffdd0306a4b994053b54bf4b3485)
http://img369.imageshack.us/img369/6254/98702268rd0.png
What can i do??
Thank you for your time!
Quote from: NIBOGO on June 16, 2008, 08:16:07 PM
Is neccesary of you upload the file "Managesettings.php" to your Source Dir and edit the index.template of your theme
QuoteWhere to find Managesettings.php??AFAIK this file is 2.0 specific, so uploading it to 1.1.5 installation won't change a thing.
Quote from: Pspuser007 on June 17, 2008, 05:19:14 PM
OK i installed it.
But i think i understood the meta tags wrong.
Can you give some information about what the meta tags are and what do they help with?
I have searched at google but i would like just a simple answer.
Quote from: SONSiVRi on May 27, 2008, 03:29:01 PM
Mod for v1.1.x Forums,
I recompiled mod from beginning and I tested on 1.1.5, there is no error detected.
Installation file attached as below.
"rsw686"
*** I will be happy my nick included if you publish this mod.
*** I think its better to add random topic's subjects to the meta keywords when user browsing message index, not only user defined keywords.
Quote from: Bancherd on June 26, 2008, 06:27:16 PM
I put this to use(1.1.5), and within one week my post started to show up on google's search with the content of the post .. :D ..instead of the boiler-plate message "Please login...." ::)
The only problem I have now is that I use utf8-encoding and there are occasional strange ? symbols after parsing.....related to the smilies and which I have not been able to fix. >:( I think my problems could be related to the PHP's configuration(host uses 4.4.8?)....but no problems when I tried my codes on a local machines using XAMPP. :( Could someone please help? :D
Quote from: SONSiVRi on May 27, 2008, 03:29:01 PM
Mod for v1.1.x Forums,
I recompiled mod from beginning and I tested on 1.1.5, there is no error detected.
Installation file attached as below.
"rsw686"
*** I will be happy my nick included if you publish this mod.
*** I think its better to add random topic's subjects to the meta keywords when user browsing message index, not only user defined keywords.
Quote from: 58tbird on July 17, 2008, 02:27:41 AM
I tried to install, but the test failed for this file: ./Themes/default/index.template.php
I have attached a list of the mod packages I have installed. Any help you can provide will be greatly appreciated - thank you!
QuoteIn file $themedir/index.template.php
Find:
<meta name="description" content="', $context['page_title'], '" />
Replace with:
<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
Find:
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
Replace with:
<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />
QuoteIn file $themedir/index.template.php
Find:
<meta name="description" content="', $context['page_title'], '" />
Replace with:
';
echo (!empty($modSettings['meta_description'])) ? ' <meta name="description" content="'. $modSettings['meta_description'] .'" />' : '<meta name="description" content="'. $context['page_title'] .'" />
Find:
, '
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
Replace with:
;
echo (!empty($modSettings['meta_keywords'])) ? '
<meta name="keywords" content="'. $modSettings['meta_keywords'] .'" />' : '';
echo (!empty($modSettings['meta_copyright'])) ? '
<meta name="copyright" content="'. $modSettings['meta_copyright'] .'" />' : '';
echo (!empty($modSettings['meta_author'])) ? '
<meta name="author" content="'. $modSettings['meta_author'] .'" />' : '';
echo '
<?php
// Version: 1.1.5; index
/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.
The init sub template should load any data and set any hardcoded options.
The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.
The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.
The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.
The menu sub template should display all the relevant buttons the user
wants and or needs.
For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/
// Initialize the template... mainly little settings.
function template_init()
{
global $context, $settings, $options, $txt;
/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';
/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';
/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';
/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;
/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;
/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}
// The main sub template above the content.
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";
// ]]></script>
<title>', $context['page_title'], '</title>';
// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />';
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';
// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="', $scripturl, '?action=help" target="_blank" />
<link rel="search" href="' . $scripturl . '?action=search" />
<link rel="contents" href="', $scripturl, '" />';
// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';
// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';
// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';
// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
{
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
$options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
}
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';
function shrinkHeader(mode)
{';
// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';
echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";
current_header = mode;
}
// ]]></script>';
// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = ', empty($options['collapse_header_ic']) ? 'false' : 'true', ';
function shrinkHeaderIC(mode)
{';
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "', $context['session_id'], '");';
echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");
document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";
current_header_ic = mode;
}
// ]]></script>
</head>
<body>';
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">';
if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
echo '
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';
echo '
</td>
</tr>
</table>';
// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>';
if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', $context['user']['name'] , '</b></span>
</td>';
// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' , $context['current_time'], '</span>';
// this is the upshrink button for the user info section
echo '
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<td valign="top" colspan="2">
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
<tr>';
if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">', $context['user']['avatar']['image'], '</td>';
echo '
<td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">';
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';
}
// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];
// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b><br />';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';
// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
', $txt['totalTimeLogged1'];
// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];
// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
// --- Begin FlashChat Integration ---
// Do we need to display a list of the users in the chat?
// Are there users online?
if (!empty($modSettings['fc_showUsers']) && !empty($context['users_chat']))
echo '
', $txt['fc_users_online'], ': ', implode(', ', $context['list_users_chat']), '<br />';
// --- End FlashChat Integration ---
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="43200">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
<input type="submit" value="', $txt[34], '" /><br />
<span class="middletext">', $txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}
echo '
</td>';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '
</tr>
</table>
</td>
</tr>
</table>';
echo '
<table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', ' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>';
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>', $txt[102], '</b>: ', $context['random_news_line'], '</span>
</td>';
echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
<a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />
<input type="submit" name="submit" value="', $txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />';
// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
echo '
</form>
</td>
</tr>
</table>
</div>';
// Show the menu here, according to the menu sub template.
template_menu();
//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
//Tower left Ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';
unset($ads);
//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}
// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
}
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
</div>';
//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads = show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';
unset($ads);
//Close table for towerleft ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);
//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footerarea" style="text-align: center; padding-bottom: 1ex;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'right' : 'left', '">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
', theme_copyright(), '
</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';
// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';
// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[';
// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}';
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}';
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}
if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}';
echo '
// ]]></script>';
}
echo '
</div>';
// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>
<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=3469240;
var sc_invisible=1;
var sc_partition=38;
var sc_security="ee20bde0";
</script>
<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a href="http://www.statcounter.com/free_hit_counter.html" target="_blank"><img class="statcounter" src="http://c39.statcounter.com/3469240/0/ee20bde0/1/" alt="free web site hit counter" ></a></div></noscript>
<!-- End of StatCounter Code -->
</body></html>';
}
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context, $settings, $options;
echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
// Show the link, including a URL if it should have one.
echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' > ';
}
echo '</div>';
}
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if ($context['current_action'] == 'paypal')
$current_action = 'paypal';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
if ($context['current_action'] == 'chat')
$current_action = 'chat';
// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first = 'last';
$last = 'first';
}
else
{
$first = 'first';
$last = 'last';
}
// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' , $first , '"> </td>';
// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
</td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
</td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
</td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
</td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// FlashChat!
global $modSettings;
if ($context['user']['is_logged'])
echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
</td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Paypal Mod
if (($modSettings['payPalEnable']) && (allowedTo('payPal_view')))
echo ($current_action == 'paypal' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'paypal' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=paypal">' , $txt['payPal'] , '</a>
</td>' , $current_action == 'paypal' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'login' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
</td>' , $current_action == 'login' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'register' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// The end of tab section.
echo '
<td class="maintab_' , $last , '"> </td>
</tr>
</table>';
}
// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;
// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';
$button_strip[$key] = $buttons[$key];
}
if (empty($button_strip))
return '<td> </td>';
echo '
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '"> </td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' | ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '"> </td>';
}
?>
<meta name="description" content="', $context['page_title'], ' - ', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
<meta name="description" content="', $context['page_title'], ' - ', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />
Quote from: ge master on August 01, 2008, 11:33:40 PM
This seems like the mod of my dreams, but please clear up the confusion. I'm running 1.1.5 and there was a post here with a mod that will let me use this mod. Confusing? Well, what happened to the mod of the mod? Seems like a large demand for a non 2.0 compatible version. Did the author edit that post with the attachment? I can't find any links, downloads, info elsewhere. This has turned into a confusing thread imo. The author needs to clear this up, or at least include the mod to his mod. Anyone?
Quote from: Dr Web on August 01, 2008, 12:27:30 PM
Many thanks, chadon, it worked.
I have one question that is not totally related with this mod, but, maybe you or someone can help me, look at this piece of code that I have on my index.template.php and tell me if this small piece of code is ok this way, look specially this code:Code Select', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
QuoteI checked with mine and it seems ok, there is no tag error in my forum when I validated with w3.org
QuoteBoard, Name, Board Name, your keywords
function MetaTagsGenerateKeywords ($text)
{
$common_words = array('a', 'and', '&', 'at', 'as', 'for', 'it', 'in', 'of', 'on', 'or', 'quot', 'the', 'to', 'ir', 'bet', 'ne', 'taip');
$text = MetaTagsSpecialChars(str_replace(',', '', $text));
// Build array of the keywords without punctuation.
preg_match_all('/\w+/', $text, $keywords);
// Only one keyword, just return.
if(count($keywords[0]) == 1)
return $text;
// Remove any common words.
$i=0;
foreach($keywords[0] as $word)
{
if(in_array($word, $common_words))
unset($keywords[0][$i]);
$i++;
}
// Return the individual keywords along with the keyword string.
return implode(', ', $keywords[0]) . ', ' . $text;
}
function MetaTagsGenerateKeywords ($text)
{
$text = MetaTagsSpecialChars(str_replace(',', '', $text));
// Build array of the keywords without punctuation.
preg_match_all('/\w+/', $text, $keywords);
// Return the individual keywords along with the keyword string.
return $text;
}
Quote from: EdwinK on September 11, 2008, 12:41:19 PM
@bancherd: Any change of you posting that 1.1.6 version?
Quote from: brandonroy on September 12, 2008, 04:27:54 AM
I REALLY need this mod. I'm running SMF 1.1.6 and installed SONSiVRi's modified version, but there was an error in the installation for /Themes/default/index.template.php
I do not and have never had the easy edit meta mod installed on my forum.
Can I get some help?
Quote from: SONSiVRi on September 12, 2008, 05:52:24 AMI could help but I need your current code.
Paste your codes between line numbers 60 and 80 in /Themes/default/index.template.php.
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";
// ]]></script>
<title>', $context['page_title'], '</title>';
Quote from: SONSiVRi on September 13, 2008, 04:52:04 AM
brandonroy
Everything seems fine in index.template.php, required modifications were made as should be. It seems you tried the install this mod twice.
Quote from: brandonroy on September 13, 2008, 06:04:21 AMQuote from: SONSiVRi on September 13, 2008, 04:52:04 AM
brandonroy
Everything seems fine in index.template.php, required modifications were made as should be. It seems you tried the install this mod twice.
Well I uninstalled it after it said not to go ahead with the install because of the installation error. So what should I do? Try to install it again?
Quote from: SONSiVRi on September 13, 2008, 04:49:16 PMQuote from: brandonroy on September 13, 2008, 06:04:21 AMQuote from: SONSiVRi on September 13, 2008, 04:52:04 AM
brandonroy
Everything seems fine in index.template.php, required modifications were made as should be. It seems you tried the install this mod twice.
Well I uninstalled it after it said not to go ahead with the install because of the installation error. So what should I do? Try to install it again?
Use the mod parser (http://www.adrevenueshare.com/parser) and check those moddifications are present on your files.
There is not much changings (5 or 6), just check each modification and be sure search condition are present.
If its not (like index.template.php), then search replaced text and make it original (mod file contains it) back.
I can be more specific if you cant handle.
Quote from: rsw686 on September 18, 2008, 12:08:02 PM
The issue is the mod was designed for 2.0 and will not work with 1.1.x.
Quote from: SONSiVRi on September 18, 2008, 02:49:20 PMQuote from: rsw686 on September 18, 2008, 12:08:02 PM
The issue is the mod was designed for 2.0 and will not work with 1.1.x.
Why it cannot work on 1.1.x versions?
Quote from: SONSiVRi on September 18, 2008, 09:41:16 PM
ohh I was thinking about some special things exist and doesnt fit on 1.1.x versions. Cuz I already ported your mod into 1.1.x versions and its working couple of months. members used the ported version are says its well working also.
Quote from: Bancherd on September 19, 2008, 01:07:40 AM
I will certainly use the SMF2 version. Is it compatible with smf2beta4public? It is a VERY GOOD mod, thank you for sharing it.
Quote from: rsw686 on September 19, 2008, 08:47:25 PMQuote from: Bancherd on September 19, 2008, 01:07:40 AM
I will certainly use the SMF2 version. Is it compatible with smf2beta4public? It is a VERY GOOD mod, thank you for sharing it.
If is compatible with 2.0 Beta 4, however you will need to manually modify your index.template.php file. Due to the theme changes it doesn't automatically apply. Although it is a quick fix.
// Generate html-code for game
if ($game['gameType'] == 0)
$context['arcade']['game']['html'] = ArcadeFlashHtml($game, true, $message);
$context['meta_keywords'] = "keywords, inside, arcade, play, screen";
$context['meta_description'] = "Arcade play screen with modified meta info";
// Generate html-code for game
if ($game['gameType'] == 0)
$context['arcade']['game']['html'] = ArcadeFlashHtml($game, true, $message);
// meta description and keywords for the arcade game play screens
$context['meta_keywords'] = $game['name'];
$context['meta_description'] = "Play " . $game['name'] . " at " . $context['forum_name'];
$context['page_title'] = $txt['arcade_game_list'];
if (isset($category))
{
$catname_fortags = db_query("
SELECT catName
FROM {$db_prefix}arcade_categories
WHERE ID_CAT=$category", __FILE__, __LINE__);
$catname_fortags_fetched_array = mysql_fetch_assoc($catname_fortags);
$catname_fortags_fetched = preg_replace("/[^a-z0-9]/i", " ", $catname_fortags_fetched_array['catName']);
$context['page_title'] = $context['forum_name'] . " flash games arcade: " . $catname_fortags_fetched . " category";
$context['meta_description'] = "Flash games category: " . $catname_fortags_fetched . " at " . $context['forum_name'];
$context['meta_keywords'] = $catname_fortags_fetched;
}
else
{
$context['page_title'] = $txt['arcade_game_list'];
}
<meta name="description" content="', $context['page_title_html_safe'], '" />
<meta name="keywords" content="', $context['meta_keywords'], '" />
<meta name="description" content="', $context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />
Quote from: CraigPal on October 24, 2008, 01:56:04 AM
There doesn't seem to be an uninstaller with the 1.x hack. Will this present a problem when trying to upgrade to 2.0?
Quote from: worker on October 26, 2008, 11:25:19 AM
hi i want to install your mod on my smf 1.1.6 version is it posible and if it is ple explain how :)
thx.
Quote from: nay27uk on November 18, 2008, 07:52:00 AM
the installer trows up an eror for ManageSettings.php not found, i dont have a ManageSettings.php
i redownloaded a new compleate zip of SMF 1.1.7 just to sheck and its not in the original SMF package either.
What should i do
Quote from: ivo2296 on December 08, 2008, 02:02:52 PM
Does the mod reverse the modified database when uninstalled?
Quote from: rsw686 on December 08, 2008, 07:40:32 PMQuote from: ivo2296 on December 08, 2008, 02:02:52 PM
Does the mod reverse the modified database when uninstalled?
No but you can remove the two values (meta_description, meta_keywords) manually from the settings table. It leaves these values so you don't have to re-enter the data when upgrading.
Quote from: question on December 21, 2008, 05:00:32 PMFor the record its not my mod, I only ported it.
any help please ?
Quote from: SONSiVRi on December 22, 2008, 02:13:14 PM
For the record its not my mod, I only ported it.
errors occur when :
a- click on category:
Fatal error: require_once() [function.require]: Failed opening required '/MetaTags.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user/public_html/site/forum/Sources/MessageIndex.php on line 163
b- click on topic:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 4
File: /home/user/public_html/site/forum/Sources/MetaTags.php
Line: 45
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.
error log:
2: require_once(/MetaTags.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory
File: /home/user/public_html/site/forum/Sources/MessageIndex.php
Line: 163
Quote from: question on December 24, 2008, 10:04:36 PM
any idea ?
function MessageIndex()
{
global $sourcedir;
Quote from: ccraciun on December 25, 2008, 05:31:26 PM
Please tell if it's working well with 1.1.7.
I am very interested in using this mod with my forum, but i'll give it a try if at least someone would tell that he succeeded... thanks a lot!
Quote from: SONSiVRi on December 26, 2008, 01:07:51 PMI tried to installed it, but it gives me the following error; i didn't continued... any ideas?Quote from: ccraciun on December 25, 2008, 05:31:26 PM
Please tell if it's working well with 1.1.7.
I am very interested in using this mod with my forum, but i'll give it a try if at least someone would tell that he succeeded... thanks a lot!
Its working on my 1.1.7 perfectly. First backup, then hit try.
Quote from: ccraciun on December 28, 2008, 06:18:05 PMYou are using wrong file. You downloaded for smf 2.x, I ported it to smf 1.1.x versions. Its not officially release, I just made it myself. Here is link: http://www.simplemachines.org/community/index.php?topic=230321.msg1557714#msg1557714
I tried to installed it, but it gives me the following error; i didn't continued... any ideas?
I use 1.1.7, with the mods shown in attachement installed.
Thanks!
Quote from: SONSiVRi on December 29, 2008, 04:47:35 PMAhh.. thank you very much SONSiVRi! I was in the rush of quickly installing this great mod and didn't pay attention to details... ;)Quote from: ccraciun on December 28, 2008, 06:18:05 PMYou are using wrong file. You downloaded for smf 2.x, I ported it to smf 1.1.x versions. Its not officially release, I just made it myself. Here is link: http://www.simplemachines.org/community/index.php?topic=230321.msg1557714#msg1557714
I tried to installed it, but it gives me the following error; i didn't continued... any ideas?
I use 1.1.7, with the mods shown in attachement installed.
Thanks!
<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />', empty($context['robot_no_index']) ? '' : '
<meta name="description" content="', $context['page_title'], ' - ', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />', empty($context['robot_no_index']) ? '' : '
', empty($context['robot_no_index']) ? '' : '
Quote from: SONSiVRi on December 30, 2008, 02:00:07 PMOk, then it seems that the mod is perfectly working for me!
"ccraciun"
While installing, you need to edit custom theme index.template.php. You can test it while viewing the meta tags in your browser.
I can't answer your 1 2 3, I have no clear ideas about them.
You were asking "what is the purpose of the following line": that condition is for adding "no-follow" meta tag. Which is prevents search engines crawls duplicated pages (print, archieve, wap...). Value is set when those pages are viewing.
Quote from: SONSiVRi on December 31, 2008, 05:32:59 AMMany thanks for the valuable information!
...
Quote from: Dr Web on January 02, 2009, 05:25:26 PM
I installed this mod on my smf 2.0 b4 forum and it created a place to add Meta Description and Meta Keywords in Home ->Admin->Modifications->Miscellaneous, but, the 2.0 b4 version already have a place to insert keywords in Home->Admin->Features and Options->Layout, I have a problem, every time I insert a keyword on any of the places to insert keywords, it duplicates that keyword.
To solve the problem I want to delete the "Meta Keywords associated with the forum" feature on Home->Admin->Features and Options->Layout.
What is the piece of code that I need to delete and what is the file to delete it?
Thanks for any help, appreciated.
Quote
So what is the difference, when I would install this MOD ?
Quote from: Bancherd on January 24, 2009, 06:53:11 PM
Among other things, this mod generates keywords for your particular topic.
Quote from: SONSiVRi on July 22, 2008, 07:27:35 PMSorry SONSiVRi - I had trouble uninstalling the Easy Edit Meta Data mod because it failed the test for the ModSettings.php and Help.english.php files (all others were successful). Anyway, I ran out of time back then and then got on to other things, but now I'd like to try to complete the process of uninstalling it so I can install your version of the vBulletin Style Meta Tags mod for 1.1.7.
If you insist to apply subsequent mod (vBulletin Style Meta Tags), those 2 patterns wont be touched because "find" criteria doesnt match but the rest of "vBulletin Style Meta Tags" will be applied and it shown installed. After that you have to modify these patterns by yourself and make mod is running. To do that you need to download and edit "$themedir/index.template.php" by finding and replacing proper codes as you wrote above. But I think its the best way uninstall of "EASY EDIT META DATA". Because you dont need that one while you using "vBulletin Style Meta Tags". Both are working for same job and you only need one. I dunno what "EASY EDIT META DATA" mod does but I think "vBulletin Style Meta Tags" is automated version of it.
Quote1. Profile_Visitors 4.0
2. Page Number 2.0
3. Registered Links 1.0
4. Select All And Copy Code To Clipboard 1.2
5. Auto Embed Video/Audio Clips 3.1.2
6. Easy Edit Meta Data 1.0
7. nwsw.nwswAdminAttachAnything 1.1 RC3
8. Custom BBCode 2.00
9. Registration - Show Gender mod 1.0.0
10. Website Button 1.1.4 [ Apply Mod ]
11. FavIcon 1.1
12. Unique Hit Counter 1.0
13. SMF 1.0.14 / 1.1.6 Update 1.0
14. Reason For Editing Mod 1.14
15. BoardHover Mod 1.1.0
16. Custom Profile Field Mod 3.17
17. Bookmarks 1.1
18. vBulletin Style Meta Tags 1.1 [ Apply Mod ]
19. AdSense Section Targeting Mod 1.0
20. Related Topics 1.2.0
21. Ad Managment 2.3
22. Search Topic 1.01
23. URL Popup 1.0
24. Wrap Text Around Image 1.0
25. Member Notepad 1.0
26. Admin member list registration date 1.0
27. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0
28. Custom Action Mod 2.04
29. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0
30. Gender on Memberlist 1.0 [ Apply Mod ]
31. Enhance Recent Post 1.0
32. Social Bookmarks 1.1
33. NO Right Click 1.0
34. Image Thumbnail BBCode 1.0
35. Expand Pages Mod 1.0
36. SMF 1.1.4 Search "brd" Bug Fix (1.0.1) 1.0.1
37. Ellow yellow christmas edition smiley set 1.1
38. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0
39. Attachment Notice 1.0
40. SMF Sitemap 1.2.2
41. SMF 1.0.15 / 1.1.7 Update 1.0
42. Previous and Next Links for Page Index 1.0
43. Avatar on Member List 1.0 [ Apply Mod ]
44. Location on Member List 1.0
45. Users Online Today Mod 1.4.0
46. AvatarOnBoard 2.0 [ Apply Mod ]
47. Enhanced Password Reminder 1.0
48. EmailFlash 2.0
<file name="$sourcedir/ModSettings.php">
<!-- -->
<operation>
<search position="before"><![CDATA[ require_once($sourcedir . '/ManageServer.php');
$subActions = array(
'basic' => 'ModifyBasicSettings',]]></search>
<add><![CDATA[
'meta' => 'ModifyMetaSettings',
]]></add>
</operation>
<!-- -->
<operation>
<search position="before"><![CDATA[ $context['sub_template'] = 'show_settings';
$subActions = array(
'basic' => 'ModifyBasicSettings',]]></search>
<add><![CDATA[
'meta' => 'ModifyMetaSettings',
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ 'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl . '?action=featuresettings;sa=basic;sesc=' . $context['session_id'],
),]]></search>
<add><![CDATA[ 'meta' => array(
'title' => $txt['mods_cat_meta'],
'href' => $scripturl . '?action=featuresettings;sa=meta;sesc=' . $context['session_id'],
),
]]></add>
</operation>
<!-- -->
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Function to load template/modify meta settings
function ModifyMetaSettings()
{
global $context, $txt, $scripturl, $modSettings, $db_prefix, $helptxt;
$config_vars = array(
array('large_text', 'meta_description', '5', &$txt['meta_description'], 'meta_description'),
array('large_text', 'meta_keywords', '5', &$txt['meta_keywords'], 'meta_keywords'),
array('text', 'meta_author', '40', &$txt['meta_author'], 'meta_author'),
array('text', 'meta_copyright', '40', &$txt['meta_copyright'], 'meta_copyright'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
writeLog();
redirectexit('action=featuresettings;sa=meta');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=meta';
$context['settings_title'] = $txt['meta_mod'];
prepareDBSettingContext($config_vars);
}
]]></add>
</operation>
</file>
<file name="$languagedir/Help.english.php">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$helptxt['meta_description'] = 'You can enter a description of your board. If you leave it blank, your page title will appear in the description. <br/> It is recommended to keep it to less than 200 characters.';
$helptxt['meta_keywords'] = 'Enter your keywords spaced by commas eg house, car. <br/> It is recommended to keep it to less than 200 characters.';
$helptxt['meta_author'] = 'Put your name in the page. Not all search engines recognise this tag.';
$helptxt['meta_copyright'] = 'Put your copyright information in the meta data, use &copy; for the copyright symbol.';
]]></add>
</operation>
</file>
Quote from: zerog12avity on February 10, 2009, 12:28:27 PM
Not sure if the mod is working... How do I check? I went to [view source] on foxfire, but it is only showing the default keywords that I added in Feature and Option / Layout page. I installed package v. 1.1 into 2.0B4
here's my site www.homeowners411.com (http://www.homeowners411.com)
any help would be appreciated
Quote from: X3mE on February 22, 2009, 06:22:41 AM
It's working on RC1.
But I have a problem with description tags - I am getting weird non-unicode question marks in my descriptions sometimes for topic pages, I don't know what's causing them... Is there any solution?
Quote from: Bancherd on February 22, 2009, 09:57:16 PM
Perhaps we have different situations...I am using utf-8 and Thai-characters.....and php4.x....on SMF1.1.8. The first smileys does it every time. >:( So I thought it might have something to do with the parse_bbc function, but have not had much time to check into this...
However, I am seeing the same thing with SMF2RC1, so I might have to get serious about this and start digging. :P
Quote from: roberto174 on February 12, 2009, 07:38:52 PMQuote from: zerog12avity on February 10, 2009, 12:28:27 PM
Not sure if the mod is working... How do I check? I went to [view source] on foxfire, but it is only showing the default keywords that I added in Feature and Option / Layout page. I installed package v. 1.1 into 2.0B4
here's my site www.homeowners411.com (http://www.homeowners411.com)
any help would be appreciated
Same thing, doesnt work correctly, i'm using 2.0 RC1
It just changes the title of the page but no keywords and description tuning, nothing, still default behavior.
Quote from: sombra on March 19, 2009, 01:54:57 PM
no one? :(
$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $modSettings['meta_keywords'] : 'PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum';
Quote
You might try to remove this line from Subs.php :DCode Select$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $modSettings['meta_keywords'] : 'PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum';
Quote from: ccraciun on March 22, 2009, 01:46:11 PM
Any chance to have different meta description for each page with this mod? Now it uses the same description (from the first post of the topic) for all pages. I guess it would be best to take the description from the first post of each page.
Thanks!
Quote from: MRDJ on April 05, 2009, 02:20:55 PMIt's already exist, you just don't know where to look.
can this be some how can be made to work with 1.1.8 i would really love it
QuoteIt's already exist, you just don't know where to look.
http://www.simplemachines.org/community/index.php?topic=230321.msg1557714#msg1557714
Quote from: webrookie on April 23, 2009, 12:53:13 PM
Hi SONSiVRi
I tried to install the metatags_1.1_for_1.1.x into my smf 1.1.8. The test result showed succesful for others but failed for ./Themes/default/index.template.php.
I have the Ad Managment 2.3 mod only installed. default theme.
My index.template.php file is attached here.
Can you help me execute the mod. I have heard a lot about it and I am sure it will work great for me.
Quote from: webrookie on April 26, 2009, 08:04:34 AM
Hi SONSiVRi,
I made the amendments to the files as given out in install.xml and copied the MetaTags.php file to the /sources dir.
However then the forum boards pages are not loading but coming as blank.
In the file location the url comes as http://chemtopper.com/smf/index.php/board,2.0.html.
Can you help me out on this. Is there anything further to be done ?
My forum is located at
http://chemtopper.com/smf/index.php
Thanks
Quote from: webrookie on April 27, 2009, 01:44:24 PMAdmin => Basic Features => Meta Description & Meta Keywords
SONSiVRi,
Thanks a ton. I finally got it and have done the mod.
Just one question- where do I put 'my keywords' so that they can appear with the other keywords generated.
Its a great mod and promises a lot for me.
Quote from: SONSiVRi on April 28, 2009, 03:40:32 AMQuote from: webrookie on April 27, 2009, 01:44:24 PMAdmin => Basic Features => Meta Description & Meta Keywords
SONSiVRi,
Thanks a ton. I finally got it and have done the mod.
Just one question- where do I put 'my keywords' so that they can appear with the other keywords generated.
Its a great mod and promises a lot for me.
Quote from: Astral2000 on May 12, 2009, 05:51:03 PM
Ok heres where I'm at.
I am using 2.0 RC1. SimplePortal 2.1.1 and Extreme 6 theme.
SONSiVRi you where very helpful before and I hope you, or another member, can help further.
I did a part automatic and part manual install and the mod appears to be loaded fine in browse packages.
A couple of problems though.
1.The mod picks up meta keywords but only ones I enter in Admin / Configuration / Features and Options / Layout / Meta keywords associated with forum and shows them twice (duplicated) in view source. If I remove my keywords from the admin area then the default ones appear just once. Re insert my own and they appear twice again. I thought this mod applied its own kewords according to page?
2.The mod only changes description on the forum pages, which is great but my other pages, Gallery, Home, etc do not show any meta description at all.
I have added some code supplied by another member here that at least shows the page title for each page which is a lot better than nothing at all.
This is what I have in both my default theme and my custom theme in index template.php
<meta name="description" content="', $context['page_title'], ' - ', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />
Can anyone help me get this working right?
Thank you.
Quote from: Mai Pen Rai on May 14, 2009, 01:53:20 AM
I have the same problem, double sets of meta tags.
Any solution to be found?
Quote from: Mai Pen Rai on May 14, 2009, 01:53:20 AM
I have the same problem, double sets of meta tags.
Any solution to be found?
Quote from: Astral2000 on May 14, 2009, 01:21:36 PM
Are you using a custom theme Mai Pen Rai?
Anybody got any ideas at all?
<meta name="description" content="Wisin Y Yandel - La Revolucion (Completo) 2009 1. Intro 2. Quitame El Dolor 3. Encendio 4. Mujeres In The Club - Featuring 50 Cent 5. Ahi Voy" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum, " />
<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />
Quote from: Bancherd on March 20, 2009, 12:17:19 AMQuote from: sombra on March 19, 2009, 01:54:57 PM
no one? :(
You might try to remove this line from Subs.php :DCode Select$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $modSettings['meta_keywords'] : 'PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum';
<file name="$languagedir/Modifications.arabic-utf8.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['meta_description'] = 'Meta وصف';
$txt['meta_keywords'] = 'Meta كلمات بحث';]]></add>
</operation>
</file>
Quote from: sombra on May 19, 2009, 01:45:16 PMQuote from: Bancherd on March 20, 2009, 12:17:19 AMQuote from: sombra on March 19, 2009, 01:54:57 PM
no one? :(
You might try to remove this line from Subs.php :DCode Select$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $modSettings['meta_keywords'] : 'PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum';
this help me out im using smf 2. rc1 and it works fine
Quote from: oddman on May 28, 2009, 07:53:24 AMfor your forum version; 1.1.9 is ok to install.
Hi guys and girls.
Can anyone tell me if this mod works with 1.1.9 and a custome theme called Transient by: © 2009, Crip. I really want to get this sorted. I upgraded from 1.1.8 and thought that the upgrade was for 2.0 which i thought ment it would just upload and work...lol I was wrong.
Whats the best way to get this mod to work?
Any help thank you in advance.
Quote from: Astral2000 on June 05, 2009, 07:17:46 AMAs you said; this mod rips words off from posts and put those into meta tag keywords. As this simple.
Maybe someone can help me?.
This mod works for me in Extreme6 custom theme but on forum posts only. Any of my other pages i.e my bakers dozen mod pages or my gallery or Simple Portal home page just show my own default page title and my default meta keywords.
I guess what I'm asking, is this correct behaviour of this mod? just to modify text from forum posts and nothing else?
Anybody got any ideas how I can make this mod work on all my pages?
Thanks.
Quote
As you said; this mod rips words off from posts and put those into meta tag keywords. As this simple.
To using in your gallery for example, you need to write your own code that rips your media on gallery and put into meta tags. Same for portal main page; rips articles...
Quote from: Astral2000 on June 05, 2009, 06:54:21 PMHelp is ok but what you asking is taking over whole job, I have no time for that. It's too easy in fact, you will just modify existing codes according to your gallery.
Thanks SONSiVRi but writing code is way too complicated for me :( Can you please help me at all?
Quote
Help is ok but what you asking is taking over whole job, I have no time for that. It's too easy in fact, you will just modify existing codes according to your gallery.
Quote from: Realinfo on June 18, 2009, 10:42:54 PMJust change the "install for" area in xml file located in mod file. Mod is compatible with 1.1.9.
When u make it for SMF 1.1.9..............
Quote from: SONSiVRi on June 19, 2009, 05:25:31 PMQuote from: Realinfo on June 18, 2009, 10:42:54 PMJust change the "install for" area in xml file located in mod file. Mod is compatible with 1.1.9.
When u make it for SMF 1.1.9..............
Quote from: Realinfo on June 20, 2009, 04:32:28 AMI think half of this community is about "how to install manually", there are lots of info in "docs" section.Quote from: SONSiVRi on June 19, 2009, 05:25:31 PMQuote from: Realinfo on June 18, 2009, 10:42:54 PMJust change the "install for" area in xml file located in mod file. Mod is compatible with 1.1.9.
When u make it for SMF 1.1.9..............
No......... I'm Not getting it........ make me more clear about it.............
Quote from: Realinfo on July 01, 2009, 07:49:30 AMOhh my bad, I was thinking something else. This mod is originally published for 2.x family, and who was ported it to 1.1.x family is ME. dohh what a shame :) I even forgot my works. It is located here: http://www.simplemachines.org/community/index.php?topic=230321.msg1557714#msg1557714
ok, all files manually.......... ok.........
I'll try..............
Quote from: SONSiVRi on July 01, 2009, 01:47:03 PMQuote from: Realinfo on July 01, 2009, 07:49:30 AMOhh my bad, I was thinking something else. This mod is originally published for 2.x family, and who was ported it to 1.1.x family is ME. dohh what a shame :) I even forgot my works. It is located here: http://www.simplemachines.org/community/index.php?topic=230321.msg1557714#msg1557714
ok, all files manually.......... ok.........
I'll try..............
$context['meta_keywords'] = MetaTagsGenerateKeywords($topicinfo['subject']);
$context['meta_description'] = MetaTagsGenerateTeaser($topicinfo['ID_FIRST_MSG']);
Quote from: lninyo on July 18, 2009, 03:17:35 PMThis mod has only 1 file to works with custom theme, and yes you have to edit it for all theme files.
@SONSiVRi : Thanks for back-porting it to 1.1.9.
Can you please clarify what is the status of this mod for non-core themes? I'm running Kani. Do I have to update all the themes manually if using in 1.1.9. If so, could you kindly mention the pages that one needs to edit?
I changed description/keywords under "Features & Options" but it doesn't show up in my view source (maybe because I'm using Kani)
It would save some confusion if the mod authors mentioned the conditions underwhich a mod works for example ("works for core theme only, change manually for all others", "here is the path to manage this theme" etc.) just some friendly suggestion :)
Thanks again for porting!
<file name="$themedir/index.template.php">
<operation>
<search position="replace"><![CDATA[<meta name="description" content="', $context['page_title'], '" />]]></search>
<add><![CDATA[<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />]]></search>
<add><![CDATA[<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />]]></add>
</operation>
</file>
Quote from: SONSiVRi on July 20, 2009, 06:00:51 PM
We have two changings, and you need to apply those changins in your custom themes, all of them. You are applied keywords in features page but there is no code using them, until you embed above codes into your theme. Those codes will display it.
And why it's have to be manual changes on custom theme? Because as the name says; it is "custom", search pattern is different.
Quote from: lninyo on July 22, 2009, 07:13:57 PMI know I wasn't clear enough, if you stuck some points, feel free to ask.Quote from: SONSiVRi on July 20, 2009, 06:00:51 PM
We have two changings, and you need to apply those changins in your custom themes, all of them. You are applied keywords in features page but there is no code using them, until you embed above codes into your theme. Those codes will display it.
And why it's have to be manual changes on custom theme? Because as the name says; it is "custom", search pattern is different.
Thank you sir! you are very kind and patient! :)
Quote from: SAFAD on July 28, 2009, 04:57:33 AM
This Dpesn't Work Correctly
No Keywords
Quote from: akbora on July 30, 2009, 04:33:52 AM
Will be updated this mod to 2.x?
Quote from: NIBOGO on July 30, 2009, 03:34:42 PMQuote from: akbora on July 30, 2009, 04:33:52 AM
Will be updated this mod to 2.x?
There is a SMF 2.0 version attached in this topic, search it
Quote from: sombra on May 19, 2009, 01:45:16 PMQuote from: Bancherd on March 20, 2009, 12:17:19 AMQuote from: sombra on March 19, 2009, 01:54:57 PM
no one? :(
You might try to remove this line from Subs.php :DCode Select$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $modSettings['meta_keywords'] : 'PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum';
this help me out im using smf 2. rc1 and it works fine
<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="description" content="" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
Quote from: SONSiVRi on October 08, 2009, 10:54:18 AM
Filipina,
Did you set "Admin - > Features and Options - > Basic Features -> Meta Keywords" ?
Quote from: Filipina on October 10, 2009, 11:04:56 AMYou welcome. It happens, recently I forgot my own modification feature too.
wow did i miss that one... been so long forgot it was there.. thank you
<meta name="description" content="', $context['page_title'], '" /> <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<meta name="description" content="', $context['page_title_html_safe'], '" />
<meta name="keywords" content="', $context['meta_keywords'], '" />
Quote from: argimiro on October 10, 2009, 06:46:24 PMHave no idea about 2.x family, can't help there. I am happy with my little 1.1.9
It looks as if 2 RC1.2 has introduced some kind of vestigial attempt at coding support for meta keywords into admin --> layout --> features and options
Quote from: SONSiVRi on October 10, 2009, 02:03:47 PM
Never thought that, but it's not difficult to code. Parse meta-keyword into array by comma character, then loop through that array for duplicates, and eliminate if exist.
Quote from: SONSiVRi on October 11, 2009, 09:51:57 AM
Probably you have done something wrong. Because this mod is released for 2.X family, and nobody complained that situation before. You may check your files to inspect double installation.
<meta name="keywords" content="Aslantepe, n, aat, Alan, Aslantepe - İnşaat Alanı, aslantepe, ttarena, stadyum, stadium" />
function MetaTagsGenerateTeaser ($id_msg)
{
$sql = "SELECT body FROM smf_messages WHERE id_msg = ".$id_msg;
$res = mysql_query($sql);
$arRes = mysql_fetch_row($res);
$teaser = $arRes[0];
// Format as a plain text string.
$teaser = MetaTagsSpecialChars(str_replace('<br />', ' ', parse_bbc($teaser)));
// Less than the teasear limit, just return.
if(strlen($teaser) < 150)
return $teaser;
// Otherwise grab the teaser.
$teaser = substr($teaser, 0, 150);
return substr($teaser, 0, strrpos($teaser, ' '));
}
Quote from: gevv on January 12, 2010, 09:59:35 AM
Thanks Sonsivri
keyword to appear in Turkish characters can be done ?
Quote from: SONSiVRi on January 12, 2010, 03:00:31 PMQuote from: gevv on January 12, 2010, 09:59:35 AM
Thanks Sonsivri
keyword to appear in Turkish characters can be done ?
Unfortunately I didn't used this mod localized, so I didn't experience the error. But it has been discussed here, and even Turkish; http://www.simplemachines.org/community/index.php?topic=269271.msg1780089#msg1780089
also here; http://www.simplemachines.org/community/index.php?topic=348715.msg2365772#msg2365772
Quote from: akselsson on January 27, 2010, 11:24:03 AMThey just talked "I had problem" but others replied "we have same configuration as you but we don't have issues". Namely, there is no solution talked.Quote from: SONSiVRi on January 12, 2010, 03:00:31 PMQuote from: gevv on January 12, 2010, 09:59:35 AM
Thanks Sonsivri
keyword to appear in Turkish characters can be done ?
Unfortunately I didn't used this mod localized, so I didn't experience the error. But it has been discussed here, and even Turkish; http://www.simplemachines.org/community/index.php?topic=269271.msg1780089#msg1780089
also here; http://www.simplemachines.org/community/index.php?topic=348715.msg2365772#msg2365772
So they can obviously be done, but can you translate this solution to English? I'm having exactly the same problem with Finnish letters ä and ö.
Quote from: hugodiaz on January 28, 2010, 03:49:59 AMI am using it on my own 1.1.9, and its highly probably work on 1.1.11 too.
Has anyone been able to get this to work with 1.1.11?
I'd really like to install this or a similar mod, but I'm not going to upgrade to 2.0 just as yet. :(
Quote from: SONSiVRi on January 28, 2010, 05:48:50 AMThanks for the info, I'll try installing it and see if it works for me.Quote from: hugodiaz on January 28, 2010, 03:49:59 AMI am using it on my own 1.1.9, and its highly probably work on 1.1.11 too.
Has anyone been able to get this to work with 1.1.11?
I'd really like to install this or a similar mod, but I'm not going to upgrade to 2.0 just as yet. :(
Quote from: SONSiVRi on January 28, 2010, 05:47:49 AM
They just talked "I had problem" but others replied "we have same configuration as you but we don't have issues". Namely, there is no solution talked.
Quote from: SONSiVRi on January 28, 2010, 07:29:25 AM
Have no idea man. And please consider google stopped using meta tags while ranking the page.
http://googlewebmastercentral.blogspot.com/2009/09/google-does-not-use-keywords-meta-tag.html
Quote from: SONSiVRi on January 28, 2010, 07:29:25 AM
Have no idea man. And please consider google stopped using meta tags while ranking the page.
http://googlewebmastercentral.blogspot.com/2009/09/google-does-not-use-keywords-meta-tag.html
Quote
Yeap, keywords are no important anymore I've heard... Maybe it's good this way, then :P
Quote from: sid2varun on January 28, 2010, 01:45:03 PMQuote
Yeap, keywords are no important anymore I've heard... Maybe it's good this way, then :P
lol i just installed this mod manually on RC2 ... working perfectly
Quote from: sid2varun on January 29, 2010, 12:27:00 AM
see urself :D >> www.freakygurus.com
Quote from: akselsson on January 29, 2010, 05:03:30 AMQuote from: sid2varun on January 29, 2010, 12:27:00 AM
see urself :D >> www.freakygurus.com
Actually it's not working as intended :D You got the same problem than me in the beginning.
Go to a thread and see keywords line. It should be: Topic Subject, keywords hard coded in template
Let's take this http://www.freakygurus.com/index.php?topic=2466.0 (http://www.freakygurus.com/index.php?topic=2466.0) for example. In keywords line, it shows only keywords you have defined in your Admin panel, TWICE.
The current line is: <meta name="keywords" content="yahoo booters,booter,yahoobooter,yahoo booter,yahoo tools,yahoo crackers,downloads,yahoo,movies,ebooks,download,games,software,antivirus,proxy,servers, yahoo booters,booter,yahoobooter,yahoo booter,yahoo tools,yahoo crackers,downloads,yahoo,movies,ebooks,download,games,software,antivirus,proxy,servers" />
What it should be: <meta name="keywords" content="u can request for group membership, yahoo booters,booter,yahoobooter,yahoo booter,yahoo tools,yahoo crackers,downloads,yahoo,movies,ebooks,download,games,software,antivirus,proxy,servers" />
$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $smcFunc['htmlspecialchars']($modSettings['meta_keywords']) : 'PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum';
// 'Print' the header and board info.
$context['page_title'] = strip_tags($board_info['name']) . ' - ' . $context['forum_name'];
require_once($sourcedir . '/MetaTags.php');
$context['meta_description'] = MetaTagsSpecialChars($board_info['name'] . ' - ' . $board_info['description']);
$context['meta_keywords'] = MetaTagsGenerateKeywords($board_info['name']);
// 'Print' the header and board info.
$context['page_title'] = strip_tags($board_info['name']) . ' - ' . $context['forum_name'] . ' (Page: ' . $context['page_info']['current_page'] . ')';
require_once($sourcedir . '/MetaTags.php');
$context['meta_description'] = MetaTagsSpecialChars($board_info['name'] . ' - ' . $board_info['description']) . ' - Page ' . $context['page_info']['current_page'];
$context['meta_keywords'] = MetaTagsGenerateKeywords($board_info['name']) . ', Page ' . $context['page_info']['current_page'];
QuoteHi,
also, the smileys and non breaking spaces ( ) or other stuff like that, should not be included in the description as they're return like "�" (I'm on utf-8)
QuoteThanks Sonsivri
keyword to appear in Turkish characters can be done ?
(anahtar kelime bölümünde türkçe karakterlerin görünmesi için ne yapılabilir)
return str_replace('"', '"', strip_tags(html_entity_decode($text, ENT_QUOTES)));
return str_replace('"', '"', strip_tags(html_entity_decode($text, ENT_QUOTES, 'UTF-8')));
Quote from: irtiza104 on February 12, 2010, 04:20:15 PMIts should be located in your admin panel. Setting that originally belong to SMF, is used in board index.
How would i edit the keyword and description of the board index?
Quote from: bjraines on February 17, 2010, 05:56:37 PMI have ported it to 1.1.x family. And there is no any update made by me. Unless someone else didn't add some features in it.
I know there used to some support for SMF 1.x versions, is there an updated version. I absolutely love this mod
Quote from: bjraines on February 19, 2010, 10:13:42 AMI didn't upgrade my 1.1.9 to 1.1.11 yet, so I dunno whats the changes between those and why can't this mod apply. I wish I had a time to update my forum...
Thanks for replying, I found your original port ( 1.1.5, is there a more updated one) but I cannot get it installed on 1.1.11 (clean install with default template) I get an error on ./Sources/MessageIndex.php
Type Action Description
1. Execute Code dbmodify.php
2. Extract File ./Sources/MetaTags.php
3. Execute Modification ./Sources/MessageIndex.php Test successful
4. Execute Modification ./Sources/ModSettings.php Test successful
5. Execute Modification ./Sources/Display.php Test successful
[b]6. Execute Modification ./Themes/default/index.template.php Test failed[/b]
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
$context['meta_keywords'] = MetaTagsGenerateKeywords($topicinfo['subject']);
Quote from: azhriel on March 12, 2010, 12:56:17 AMYou can parse within download page, there is a dropdownbox to select your current version and it display parsing steps.
SONSiVRi,
i installed your version in my 1.1.8 and got this error... how could i resolve this... i really want this mod on my siteCode SelectType Action Description
1. Execute Code dbmodify.php
2. Extract File ./Sources/MetaTags.php
3. Execute Modification ./Sources/MessageIndex.php Test successful
4. Execute Modification ./Sources/ModSettings.php Test successful
5. Execute Modification ./Sources/Display.php Test successful
[b]6. Execute Modification ./Themes/default/index.template.php Test failed[/b]
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
I planned to manually install it but i dont know how to parse it on index.template.php
Quote- Compatibility 2rc3
- Moving the description field configuration above keywords
- Improved code generation for keywords:
----- Process lighter
----- Words <= 3 characters are automatically skipped in the keywords
----- You can customize the list of words that are ignored in the file metatags.php the varaible $common_words
----- Compatibility utf8 (éàé. ...)
- Added page number in the description
<meta name="description" content="Description of your site, visible only in index ^^" />
<meta name="keywords" content="board, smf, meta tags, visible in all page" />
<title>NameSite - Index</title>
<meta name="description" content="Name Board - this a Description for my new board for geek ... - Page 1" />
<meta name="keywords" content="Name, Board, Name Board, board, smf, meta tags, visible in all page" />
<title>Name Board - NameSite (Page: 1)</title>
<meta name="description" content="50 first lettres of this topic" />
<meta name="keywords" content="Title, topic, Titile topic, board, smf, meta tags, visible in all page" />
<title>Title topic - NameSite</title>
Quote from: Am' on March 14, 2010, 05:03:07 AM
Hello,
I allowed myself of hanged again the module to adapt to smf2 rc3, with some improvements and fix :Quote- Compatibility 2rc3
- Moving the description field configuration above keywords
- Improved code generation for keywords:
----- Process lighter
----- Words <= 3 characters are automatically skipped in the keywords
----- You can customize the list of words that are ignored in the file metatags.php the varaible $common_words
----- Compatibility utf8 (éàé. ...)
- Added page number in the description
I took the module only because it seems to be abandoned, if this is not the case please contact me so that I removed :P
Working:
Configure your meta as in the screenshot:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg62.imageshack.us%2Fimg62%2F5416%2Fcapturezv.png&hash=d44a3fd90f1a291d7d8965a8b61e8d2f5cc37d0b)
In the index of your forum, you will have the meta as follows:Code Select<meta name="description" content="Description of your site, visible only in index ^^" />
<meta name="keywords" content="board, smf, meta tags, visible in all page" />
<title>NameSite - Index</title>
In a board you will have the meta as follows:Code Select<meta name="description" content="Name Board - this a Description for my new board for geek ... - Page 1" />
<meta name="keywords" content="Name, Board, Name Board, board, smf, meta tags, visible in all page" />
<title>Name Board - NameSite (Page: 1)</title>
In a topic, you will have the meta as follows:Code Select<meta name="description" content="50 first lettres of this topic" />
<meta name="keywords" content="Title, topic, Titile topic, board, smf, meta tags, visible in all page" />
<title>Title topic - NameSite</title>
I hope you enjoy it, and thx google traduction ;)
Quote from: Royalduke on May 30, 2010, 04:47:35 PM
You all do realize that Meta tags don't matter these days?
Quote from: Royalduke on May 30, 2010, 04:47:35 PM
You all do realize that Meta tags don't matter these days?
Quote from: Alyen on June 20, 2010, 10:39:24 AM
I can only KeyWorks the default, do not leave the keys in the title or the name of the board.
look at the example:
http://www.xpzone.net/geral/sugestoes-de-tutoriais/
<meta name="description" content="Boa noite galera, Vou dar início a uma série de tutoriais desenvolvidos por mim para o fórum XPZone, mas falta idéias de tutoriais, caso você tenha" />
<meta name="keywords" content="server, servidores, mu online, cabel online, lineage 2, downloads, tutorial, designer, server file, portifolios, paginas de mu, server, servidores, mu online, cabel online, lineage 2, downloads, tutorial, designer, server file, portifolios, paginas de mu" />
Quote from: SONSiVRi on June 20, 2010, 02:10:05 PMQuote from: Alyen on June 20, 2010, 10:39:24 AM
I can only KeyWorks the default, do not leave the keys in the title or the name of the board.
look at the example:
http://www.xpzone.net/geral/sugestoes-de-tutoriais/
<meta name="description" content="Boa noite galera, Vou dar início a uma série de tutoriais desenvolvidos por mim para o fórum XPZone, mas falta idéias de tutoriais, caso você tenha" />
<meta name="keywords" content="server, servidores, mu online, cabel online, lineage 2, downloads, tutorial, designer, server file, portifolios, paginas de mu, server, servidores, mu online, cabel online, lineage 2, downloads, tutorial, designer, server file, portifolios, paginas de mu" />
Did you edited your custom theme if you have?
Quote from: Dr.IT on June 23, 2010, 06:36:26 AM
Is There AnyOne For Help
I Really Need Help
Quote from: Dr.IT on June 24, 2010, 12:51:22 PM
Hy SONSiVRi
Thanks
I Already Knows To Modify index.template.php Of My Current Theme Too
Thanks For Mention It
That's Shows You Completely Involved In Helping Others Seriously
I Like Your Guiding Style
Very Good
And
Very Very Very Thanks For Helping Me
Quote from: Dr.IT on June 24, 2010, 02:12:28 PM
New Problem???
I Did Not Find Setting For This Mod In ADMIN Panel
And When I Run
http://www.pharmaithorizon.com/dbmodify.php
I Got This Error
Notice: Undefined index: mytab_Custom_URL in /home/**********/public_html/Sources/Subs.php on line 3859
Notice: Undefined index: mytab_Custom_URL in /home/**********/public_html/Sources/Subs.php on line 3861
I Am Waiting!!!
Quote from: Dr.IT on June 24, 2010, 03:12:59 PM
Let Me Think
According To My Senses ManageSettings.php Is Associated With Showing Setting Panel In ADMIN Panel.
There Must Be Some Mistake Within It.
--
How I Can I Put dbmodify.php Manually And What Can Be Problem With Sub.php
Quote from: Alyen on June 25, 2010, 03:48:46 AM
I can only KeyWorks the default, do not leave the keys in the title or the name of the board.
look at the example:
http://www.xpzone.net/geral/sugestoes-de-tutoriais/
<meta name="description" content="Boa noite galera, Vou dar início a uma série de tutoriais desenvolvidos por mim para o fórum XPZone, mas falta idéias de tutoriais, caso você tenha" />
<meta name="keywords" content="server, servidores, mu online, cabel online, lineage 2, downloads, tutorial, designer, server file, portifolios, paginas de mu, server, servidores, mu online, cabel online, lineage 2, downloads, tutorial, designer, server file, portifolios, paginas de mu" />
Quote from: Dr.IT on June 25, 2010, 02:22:32 AMQuote from: Dr.IT on June 24, 2010, 03:12:59 PM
Let Me Think
According To My Senses ManageSettings.php Is Associated With Showing Setting Panel In ADMIN Panel.
There Must Be Some Mistake Within It.
--
How I Can I Put dbmodify.php Manually And What Can Be Problem With Sub.php
I Edit The ManageSetting.php Again And Its Works Now
Last Editing Was 100% Wrong
I Got The Setting In ADMIN Panel Now
--
I Still Want To Know
Is There Any Benefit Of Running dbmodify.php File And What Its Do?
Why When I Run It Its Shows Some Error Of Subs.php File
Actually There Is No Entry In Coding Of dbmodify.php Regarding To Subs.php
--
Why I Got Double,Duplicated Or Repeated Keywords
As
01,02,03 ,01,02,03
It Must Shows Only 01,02,03
--
Why In Board And Topic Page
Keywords Section Only Contains Main Keywords Which I Added In Setting In Meta Keywords
But Author Of This MOD Write In Description
Its Automatically Add Board And Topic Name In Keywords
But It Do Not Work
--
Did You Got My Questions!!!
Quote from: distante on July 15, 2010, 06:39:51 PM
This mod works with RC3? the DB format is the same?
Quote from: Am' on March 14, 2010, 05:03:07 AM
Hello,
I allowed myself of hanged again the module to adapt to smf2 rc3, with some improvements and fix :Quote- Compatibility 2rc3
- Moving the description field configuration above keywords
- Improved code generation for keywords:
----- Process lighter
----- Words <= 3 characters are automatically skipped in the keywords
----- You can customize the list of words that are ignored in the file metatags.php the varaible $common_words
----- Compatibility utf8 (éàé. ...)
- Added page number in the description
I took the module only because it seems to be abandoned, if this is not the case please contact me so that I removed :P
Working:
Configure your meta as in the screenshot:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg62.imageshack.us%2Fimg62%2F5416%2Fcapturezv.png&hash=d44a3fd90f1a291d7d8965a8b61e8d2f5cc37d0b)
In the index of your forum, you will have the meta as follows:Code Select<meta name="description" content="Description of your site, visible only in index ^^" />
<meta name="keywords" content="board, smf, meta tags, visible in all page" />
<title>NameSite - Index</title>
In a board you will have the meta as follows:Code Select<meta name="description" content="Name Board - this a Description for my new board for geek ... - Page 1" />
<meta name="keywords" content="Name, Board, Name Board, board, smf, meta tags, visible in all page" />
<title>Name Board - NameSite (Page: 1)</title>
In a topic, you will have the meta as follows:Code Select<meta name="description" content="50 first lettres of this topic" />
<meta name="keywords" content="Title, topic, Titile topic, board, smf, meta tags, visible in all page" />
<title>Title topic - NameSite</title>
I hope you enjoy it, and thx google traduction ;)
Quote from: distante on July 15, 2010, 06:39:51 PM
This mod works with RC3? the DB format is the same?
Quote from: DarkflameQ on August 18, 2010, 07:06:23 AM
I thought this mod was designed to show sites like this, did i assume incorrect or am i just doing something wrong?
Quote from: perfec2 on August 29, 2010, 04:46:58 AM
6. Execute Modification ./Themes/default/index.template.php Test failed
<meta name="description" content="', $context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />
Quote from: SONSiVRi on June 05, 2009, 01:11:26 PMQuote from: Astral2000 on June 05, 2009, 07:17:46 AMAs you said; this mod rips words off from posts and put those into meta tag keywords. As this simple.
Maybe someone can help me?.
This mod works for me in Extreme6 custom theme but on forum posts only. Any of my other pages i.e my bakers dozen mod pages or my gallery or Simple Portal home page just show my own default page title and my default meta keywords.
I guess what I'm asking, is this correct behaviour of this mod? just to modify text from forum posts and nothing else?
Anybody got any ideas how I can make this mod work on all my pages?
Thanks.
To using in your gallery for example, you need to write your own code that rips your media on gallery and put into meta tags. Same for portal main page; rips articles...
QuoteAdd section on admin interface to define default keywords and description
$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $smcFunc['htmlspecialchars']($modSettings['meta_keywords']) : '';
Quote from: Astra_200 on March 10, 2011, 06:53:30 PM
Many thanks Sirius OCTeam for the RC4 update, works great other than the mod repeats user keywords twice and does not allow post keywords to be shown.
I found the solution was to find and delete this line in Subs.phpCode Select$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $smcFunc['htmlspecialchars']($modSettings['meta_keywords']) : '';
You can see the difference using this site http://www.seocentro.com/tools/search-engines/metatag-analyzer.html (http://www.seocentro.com/tools/search-engines/metatag-analyzer.html)
Worked for me anyway.
Quote from: Astra_200 on March 10, 2011, 06:53:30 PM
Many thanks Sirius OCTeam for the RC4 update, works great other than the mod repeats user keywords twice and does not allow post keywords to be shown.
I found the solution was to find and delete this line in Subs.phpCode Select$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $smcFunc['htmlspecialchars']($modSettings['meta_keywords']) : '';
You can see the difference using this site http://www.seocentro.com/tools/search-engines/metatag-analyzer.html (http://www.seocentro.com/tools/search-engines/metatag-analyzer.html)
Worked for me anyway.
Quote from: zijO on September 20, 2011, 09:45:31 PM
SMF2.0
Any idea why i get
index.php?topic=1364.msg11378#msg11378
#msg11378 two times ? :o
Quote
./Themes/default/index.template.php
Find: [Select]
<meta name="description" content="', $context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
Replace With: [Select]
<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />
// ]]></script>'; echo ' <meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" /> <meta name="description" content="', $context['page_title_html_safe'], '" />', !empty($context['meta_keywords']) ? ' <meta name="keywords" content="' . $context['meta_keywords'] . '" />' : '', ' <title>', $context['page_title_html_safe'], '</title>'; // Please don't index these Mr Robot. |