Page 4 of 18

Re: Advanced Meta Tags

Posted: Mon Aug 04, 2008 11:50 am
by updown
dr.death wrote:does not support utf8

http://de3.php.net/manual/en/function.s ... -count.php
so, if I understand this right, it would be possible by putting the special chars within the argument,

for example:

Code: Select all

$post_text = str_word_count($post_text, 1, 'äöüßÄÖÜáàâÁÀÂéèêÉÈÊóòôÓÒÔúùûÚÙÛ1234567890');
:?:

Re: Advanced Meta Tags

Posted: Wed Aug 06, 2008 7:14 am
by Dr.Death
But than you will miss all other UTF8 characters.... the should be another function be implemented...

Re: Advanced Meta Tags

Posted: Wed Aug 06, 2008 10:17 am
by MartectX
updown wrote:

Code: Select all

$post_text = str_word_count($post_text, 1, 'äöüßÄÖÜáàâÁÀÂéèêÉÈÊóòôÓÒÔúùûÚÙÛ1234567890');
This works wonders for about 98% of posts on my board, thanks!

Re: Advanced Meta Tags

Posted: Sun Aug 10, 2008 2:39 pm
by nano351
updown wrote:

Code: Select all

$post_text = str_word_count($post_text, 1, 'äöüßÄÖÜáàâÁÀÂéèêÉÈÊóòôÓÒÔúùûÚÙÛ1234567890');
This works pretty good. You'd think there'd be another function that would have utf-8 support

Re: Advanced Meta Tags

Posted: Sun Aug 10, 2008 4:27 pm
by hari_potar
Last mod that works there? Greeting and thanks in advance for your reply :)

Re: SEO Mod Confliction help

Posted: Mon Aug 11, 2008 3:57 pm
by drankur
microtekblue wrote:Hello,

First I installed Advance Meta Tags Mod.

And Now I am trying to Install SEO MOD.

The Problem is happening with the SEO Mod where on the VIEWTOPICS.PHP edit, on the last part of the mod sheet, it says to:

Find
Tip: This may be a partial find and not the whole line.

Code: Select All
page_header($user->lang['VIEW_TOPIC'] .' - ' . $topic_data['topic_title']);
Replace With
Tip: Replace the preceding line(s) to find with the following lines.

Code: Select All
page_header($topic_data['topic_title']);


The Problem is that when I found the appropriate code it has ALREADY been altered by Advance Meta Tags MOD.

Here what it said:

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

So how Do I work around this?

What line do I put there so that Both SEO MOD and Advance MetaTags Mod work correctly?

All Help and Suggestions would GREATLY be appreciated.

The forum in question is healthnutritionforum.com

Thank all for the help in advance.

Thank you.
sibaer wrote:I have the exact same problem :? , I installed first the SEO Mod, and now the Advanced Meta Tags mode. At first, I did not know what to do about this last line which should be replaced in viewtopic.php. There were no errors, but I suppose the mod did not actually work. ;)

Now I saw the last post and have included

Code: Select all

page_header($topic_data['topic_title']) ,true, $first_post_text); 
as you have suggested. Here's the error line I now get when running a topic:

Parse error: syntax error, unexpected ',' in /home/mtb96/public_html/forum/viewtopic.php on line 1605

Can you help, please? Thx :)

fix for this:

open viewtopic,php

find this:

Code: Select all

page_header($topic_data['topic_title']);
replace with:

Code: Select all

page_header($topic_data['topic_title'],true, $first_post_text); // true, post_text added by Advanced Meta Tags MOD);
its working, not affecting either seo mod nor AMT.
see this:

url of topic:
pagesource/keywords of that topic:
<meta name="keywords" content="india, won, its, first-ever, individual, olympic, gold, medal, day, abhinav, bindra, airrifle, shot, his, way, glory, giant, leap, history, bindras, historic, feat, makes, him, indias, first, medallist, bettering, the, silver, double, trap, shooter, rajyavardhan, singh, rathore, athens, ever, monday, with, thrilling, come-from-behind, victory, mens, metres, air, rifle, event, was, fourth, replace, these, keywords, with your own, keywords" />
<meta name="description" content="india won its first-ever individual olympic gold medal day abhinav bindra in m airrifle - shot his way to glory a giant leap to history bindra's historic feat makes him india's first individual gold medallist bettering the silver medal feat of double trap shooter rajyavardhan singh rathore in athens abhinav bindra won india's first ever individual olympic gold medal on monday with a thrilling come-from-behind victory in the men's metres air rifle event bindra was fourth after qualifying but had a brilliant final round and even hit a near perfect on his last visit to pull in front of henri hakkinen of finland who dropped to bronze with a poor final shot of how abhinav clinched gold that allowed china's zhu qinan the defending olympic champion and heavy favorite to pass him on his final shot and win the silver medal quot it's just great quot bindra said just before " />
i hope i helped :)

Re: Advanced Meta Tags

Posted: Mon Aug 11, 2008 11:49 pm
by dv-design
i downloaded this mod and it worked great for my home page, even within categories and topics...but once you are in a post it keywords things like,
the, world, quot, buring, has, changed, while, term, still, simply, means, copying, information,...
And the meta description isnt much better....

Is there not a filter to filter out words from at least the keywords like "the"? And woulnt it make sence to focus on the title of the posts for both keywords and description?

For instance, of the above keywords it list would you ever guess the titel of the topics was...

"Burning and "Authoring" a DVD"

had it simply added 'buring' 'authoring' and 'dvd' as keywords and filtered out 'and and 'a' from the title alone i would have been infinatly better off.

I dont want to sound ungrateful, because this saved me a bit of time fidning and editing keyowrds for a few main/repetative pages. Is the problem i explained above a common issue or did i miss something?

Re: Advanced Meta Tags

Posted: Thu Aug 14, 2008 3:21 pm
by Galaxy21
The idea of this mod is quite good.
But how could the mod be approved by the MOD-Team if it doesn't have UTF-8 support - wich is an essential part of phpbb3?

I guess HoL is busy with other things then comming up with a fix... :(

Re: Advanced Meta Tags

Posted: Thu Aug 14, 2008 7:14 pm
by ChriZathens
Perhaps try something like

Code: Select all

$post_text			= utf8_normalize_nfc($post_text)
Just an idea, i don't have this installed, sorry

Re: Advanced Meta Tags

Posted: Thu Aug 14, 2008 8:04 pm
by Galaxy21
I tried something like this. The problem is the 2nd line of that code:

Code: Select all

		$post_text = strtolower(strip_tags($post_text));
		$post_text = str_word_count($post_text, 1);
str_word_count messes up the UTF-8 string (because UFT-8 is not supported by that function) even if you normalize correctly it in the first line of this code using something like utf8_case_fold_nfc.

Re: Advanced Meta Tags

Posted: Sun Aug 17, 2008 6:17 pm
by looker1
Ugh... installed this mod and get this error when I go to ACP Board Settings- any thoughts on what I can do to fix?

Code: Select all

[phpBB Debug] PHP Notice: in file /adm/index.php on line 291: Undefined index: use_dynamic_description
[phpBB Debug] PHP Notice: in file /adm/index.php on line 292: Undefined index: use_dynamic_description
[phpBB Debug] PHP Notice: in file /adm/index.php on line 273: Undefined index: description_word_count
[phpBB Debug] PHP Notice: in file /adm/index.php on line 273: Undefined index: global_keywords
[phpBB Debug] PHP Notice: in file /adm/index.php on line 291: Undefined index: use_dynamic_keywords
[phpBB Debug] PHP Notice: in file /adm/index.php on line 292: Undefined index: use_dynamic_keywords
[phpBB Debug] PHP Notice: in file /adm/index.php on line 273: Undefined index: keyword_word_count
[phpBB Debug] PHP Notice: in file /adm/index.php on line 291: Undefined index: append_global_keywords
[phpBB Debug] PHP Notice: in file /adm/index.php on line 292: Undefined index: append_global_keywords
[phpBB Debug] PHP Notice: in file /adm/index.php on line 291: Undefined index: append_keywords_first
[phpBB Debug] PHP Notice: in file /adm/index.php on line 292: Undefined index: append_keywords_first
[phpBB Debug] PHP Notice: in file /adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)

Re: Advanced Meta Tags

Posted: Thu Aug 21, 2008 7:15 pm
by DeathValley
Thanks!

Re: Advanced Meta Tags

Posted: Thu Sep 04, 2008 12:22 am
by Vysse
ok so iv been using phpbb for a few months now and finally got a server. for the past few weeks iv been doing mod after mod after mod. i just finished installing the SEO mod and the Advanced Meta Tags mod. now anytime i go to certain areas in my acp i get blank pages. i tried putting an htaccess file under forums/adm to show the php errors with no results. any ideas on how i can fix this?

Re: Advanced Meta Tags

Posted: Thu Sep 04, 2008 3:30 pm
by MartectX
Vysse wrote:i just finished installing the SEO mod and the Advanced Meta Tags mod. now anytime i go to certain areas in my acp i get blank pages. i tried putting an htaccess file under forums/adm to show the php errors with no results. any ideas on how i can fix this?
This indicates problems with language files. Check if you forgot a comma somewhere or saved the files with BOM.

Re: Advanced Meta Tags

Posted: Mon Sep 08, 2008 7:54 pm
by Frenchiexno1
I am also getting a problem in the ACP Board Settings section. I have checked and I have updated the Board.php to the letter as in the install guide. But every time I add this file it messed up the ACP console.

Code: Select all

[phpBB Debug] PHP Notice: in file /adm/index.php on line 149: Cannot modify header information - headers already sent by (output started at /language/en/acp/board.php:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 151: Cannot modify header information - headers already sent by (output started at /language/en/acp/board.php:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /language/en/acp/board.php:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /language/en/acp/board.php:1)