Advanced Meta Tags

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
Coert
Registered User
Posts: 151
Joined: Mon May 18, 2009 7:16 pm
Location: Switzerland

Re: Advanced Meta Tags

Post by Coert » Fri Mar 26, 2010 4:52 pm

Can't this MOD be updated?
Version: 3.0.8 | Template: Prosilver Special Edition | Language: English
PHP: 5.3.1 | Database: MySQL 5.1.41 | Apache: 2.2.14

Khamosh-Saya
Registered User
Posts: 871
Joined: Fri Nov 23, 2007 6:46 am
Location: UAE
Name: Jamshed Ansari
Contact:

Re: Advanced Meta Tags

Post by Khamosh-Saya » Fri Mar 26, 2010 9:47 pm

napus wrote:Try this one:

Code: Select all

UPDATE `phpbb_config` SET `config_value` =  '150' WHERE `phpbb_config`.`config_name` = 'keyword_word_count' LIMIT 1 ;
i tried this one it is executing but Keywords are not Updating
I tried 400 but I cant incress

User avatar
napus
Registered User
Posts: 128
Joined: Sat Apr 25, 2009 12:01 pm
Location: Poland
Contact:

Re: Advanced Meta Tags

Post by napus » Fri Mar 26, 2010 10:06 pm

Pure cache

Khamosh-Saya
Registered User
Posts: 871
Joined: Fri Nov 23, 2007 6:46 am
Location: UAE
Name: Jamshed Ansari
Contact:

Re: Advanced Meta Tags

Post by Khamosh-Saya » Sat Mar 27, 2010 4:19 pm

Not Working

apnaitaly
Registered User
Posts: 323
Joined: Tue Jun 30, 2009 6:13 pm

Re: Advanced Meta Tags

Post by apnaitaly » Fri Apr 09, 2010 3:00 pm

i have tried to install this mOd

i want to know is this edits is right for viewtopic.php & function.php

Viewtopic.php

TO

Code: Select all

page_header($topic_data['topic_title'] . ($start ? ' - ' . sprintf($user->lang['TITLE_PAGE_NUMBER'], floor($start / $config['posts_per_page']) + 1) : ''), true, $forum_id);

This

Code: Select all

page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title'], true, $forum_id, 'forum', $first_post_text);  // true, post_text added by Advanced Meta Tags MOD   

function.php

To

Code: Select all

function page_header($page_title = '', $display_online_list = true, $item_id = 0, $item = 'forum')

This

Code: Select all

function page_header($page_title = '', $display_online_list = true, $item_id = 0, $item = 'forum', $post_text = '') // true, post_text added by Advanced Meta Tags MOD


Thanks in advance
Last edited by apnaitaly on Tue Apr 27, 2010 9:32 pm, edited 1 time in total.

asmalik12
Registered User
Posts: 91
Joined: Fri Mar 27, 2009 3:26 pm
Location: Lahore, Pakistan
Contact:

Re: Advanced Meta Tags

Post by asmalik12 » Sat Apr 10, 2010 3:34 pm

hi,

I am facing the error in viewtopic.php

this is the original code: (no problem with this)

Code: Select all

page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title'], true, $forum_id);
code with error

Code: Select all

page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title'], true, $first_post_text, $forum_id);
but when i remove "$forum_id", it works fine.
"Think 100 times before you take a decision, But once that decision is taken, stand by it as one man." - Quaid-e-Azam

Image

asmalik12
Registered User
Posts: 91
Joined: Fri Mar 27, 2009 3:26 pm
Location: Lahore, Pakistan
Contact:

Re: Advanced Meta Tags

Post by asmalik12 » Sat Apr 10, 2010 3:42 pm

asmalik12 wrote:hi,

I am facing the error in viewtopic.php

this is the original code: (no problem with this)

Code: Select all

page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title'], true, $forum_id);
code with error

Code: Select all

page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title'], true, $first_post_text, $forum_id);
but when i remove "$forum_id", it works fine.
if anyone face the same problem, open functions.php and viewtopic.php and write the code in sequence like post text after true in both files and forum_id after both of them in both files.
"Think 100 times before you take a decision, But once that decision is taken, stand by it as one man." - Quaid-e-Azam

Image

User avatar
subzonline
Registered User
Posts: 91
Joined: Sun Mar 16, 2008 5:49 pm
Location: North London
Contact:

Re: Advanced Meta Tags

Post by subzonline » Mon Apr 12, 2010 11:42 am

Will the MOd work if you write those codes in sequence?
http://ukurbanmag.com - Urban music discussions, Downloads, News, Interviews and lots more

ranman1973
Registered User
Posts: 26
Joined: Mon Aug 17, 2009 6:59 pm
Contact:

Re: Advanced Meta Tags

Post by ranman1973 » Thu Apr 15, 2010 12:32 am

No problems installing this mod. Works great.

My concern is with the meta description. According to Google, a good meta description won't improve the ranking within the search results but will improve the click-thru rate. This happens when the description is used as the snippet in the search results.

I'm afraid that with the ugly formatting, the meta description, if used by Google as the snippet, will actually deter people from clicking on my page. And since the meta description is taken from the body of the topic, wouldn't it be better to just have no meta description at all and let the topic body serve as the snippet?

Example: Say I have a forum post that reads: "I really enjoy bicycle riding. I just learned how to ride and am now going to buy a bike for $300."

The description would come out like this: i really enjoy bicicle riding i just learned hot to ride and am now going to buy a bike for 300

Ugly! Not likely to get a lot of click-thru's if Google uses the meta description as the snippet.

I am torn: Do I remove the meta description all together? My preference would be to just keep certain punctuation such as commas, periods, dashes, semicolons and capitalization in the description.

Has anyone modified the page_header() function so the meta description is a little prettier? I was thinking one solution might be to keep the post_text as is but just remove undesireables such as white space, carriage returns, smilies.
Thanks,
Randy, Moderator, Priceline Forum

ranman1973
Registered User
Posts: 26
Joined: Mon Aug 17, 2009 6:59 pm
Contact:

Re: Advanced Meta Tags

Post by ranman1973 » Thu Apr 15, 2010 7:23 pm

ranman1973 wrote:
Has anyone modified the page_header() function so the meta description is a little prettier?
Not being a PHP coder, I was hoping someone would respond but I got impatient and decided to try it myself. I changed the Advanced Meta Tag code in page_header() function in the includes/functions.php file to the following:

Code: Select all

    // Advanced Meta Tags MOD
	$page_keywords = $config['global_keywords'];
	$page_description = $config['site_desc'];
	
	if (!empty($post_text))
	{
		//for the description, I want to leave strip out tags but leave in puctuation
		$description_text = strip_tags($post_text);
		$description_text = str_word_count($description_text,1,'1234567890-=[]\\;\',./~!@#$%^&*()_+{}|:"?');
		
		//for the keywords, I want to convert to lower case and strip out symbols
		$post_text = strtolower(strip_tags($post_text));
		$post_text = str_word_count($post_text, 1, '1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ/$');

		if ($config['use_dynamic_keywords'])
		{
			$count = 0;
			$page_keywords = array();
			foreach ($post_text as $word)
			{
				$word = str_replace("'", '', $word);
				
				if (strlen($word) > 2)
				{
					if (!empty($page_keywords) && in_array($word, $page_keywords))
					{
						continue;
					}
					$page_keywords[] = $word;
					$count++;
				}
				
				if ($count == $config['keyword_word_count'])
				{
					break;
				}
			}
			$config_keywords = ($config['append_global_keywords']) ? $config['global_keywords'] : '';
			$page_keywords = ($config['append_keywords_first']) ? $config_keywords . ', ' . implode(', ', $page_keywords) : implode(', ', $page_keywords) . ', ' . $config_keywords;
		}
		
		if ($config['use_dynamic_description'])
		{
			$count = 0;
			$page_description = '';
			foreach ($description_text as $word)
			{
				$page_description .= $word . ' ';
				$count++;
				
				if ($count == $config['description_word_count'])
				{
					break;
				}
			}
		}
	}	//end of Advanced Meta Tag mod
Works great! Have a look at the source code for this forum post.

Thanks again for a sweet mod!
Thanks,
Randy, Moderator, Priceline Forum

FF27
Registered User
Posts: 52
Joined: Tue Mar 24, 2009 6:01 pm
Contact:

Re: Advanced Meta Tags

Post by FF27 » Sun Apr 18, 2010 12:20 am

I have installed this mod and fix this : http://www.phpbb.com/community/viewtopi ... #p12550125
But now i doesnt see anything. No Errors , No Box in Topics , No Tags ... .
can someone help me?
http://keeperboard.ohost.de
For all Football and Mini Games Fans!

asmalik12
Registered User
Posts: 91
Joined: Fri Mar 27, 2009 3:26 pm
Location: Lahore, Pakistan
Contact:

Re: Advanced Meta Tags

Post by asmalik12 » Wed Apr 21, 2010 11:54 am

this is showing the first small letter. The mod should show first capital letter. For e.g.

search "Pakistan vs Australia Bouncer Series cricpak"

you will find the first letter to be small letter

like "pakistan" instead of "Pakistan"
subzonline wrote:Will the MOd work if you write those codes in sequence?
yeah, its working fine.
"Think 100 times before you take a decision, But once that decision is taken, stand by it as one man." - Quaid-e-Azam

Image

asmalik12
Registered User
Posts: 91
Joined: Fri Mar 27, 2009 3:26 pm
Location: Lahore, Pakistan
Contact:

Re: Advanced Meta Tags

Post by asmalik12 » Tue Apr 27, 2010 3:48 pm

how to remove words like "the", "that", "there" etc.?
"Think 100 times before you take a decision, But once that decision is taken, stand by it as one man." - Quaid-e-Azam

Image

olsserik
Registered User
Posts: 155
Joined: Tue Aug 21, 2007 6:18 am

Re: Advanced Meta Tags

Post by olsserik » Wed Apr 28, 2010 9:32 am

asmalik12 wrote:how to remove words like "the", "that", "there" etc.?
Hi,
Yes, I would also like to have that ability!
Ok, maybe it´s not that big issue nowadays to bother about meta keywords but if it could be taken care of easy, why not?

I wonder if this snippet could be used for this. Phpbb does already have the function in search_ignore_words.php I guess. The question is how to implement to this mod, and keywords in particular?

Maybe we can build something together?

Code: Select all

include('language/' .$config['default_lang']. '/search_ignore_words.php');
$sql = "SELECT  word_count, word_text	FROM " . SEARCH_WORDLIST_TABLE . " 
	WHERE word_text NOT IN ('".implode('\', \'', $words)."')	
	ORDER BY  word_count DESC";
	
$result = $db->sql_query_limit($sql, 5);

Locked

Return to “[3.0.x] MOD Database Releases”