| |
|
| :: |
| Author |
Message |
divinemanwah

Joined: 01 Apr 2008 Posts: 28
|
Posted: Thu Apr 03, 2008 5:06 am Post subject: Found A Bug In Dynamic Meta Tag Feature |
|
|
here is a sample "view source" code from my forum:
(i use phpbb3 premod)
| Code: | .
.
.
<meta name="title" content="Programmers' Talk : Structures and Files" />
<meta name="description" lang="en" content="Thiswasactuallyrequestedbyoneofourmembers,Imadealterationstothecodeandputstructuresandfilemanipulationinit.Note:Thisisnotmycode,Ionlymadethisasrequested.Hopeithelps!!ORIGINALCODE:/*Quiz1*/#in clude<stdio.h>#include<conio.h>floatprog1();prog2(floatq);floatprog1(){floata;clrscr();printf("Enteradecimalnumber:");scanf("%f",&a);returna;}prog2(floatq){floatb,c,d;b=q*.92;c=b/100;d=c*1.05;printf(" TaxableAmount:%.2f\n",b);printf("TaxRateforeach$100.00:1.05\n");printf("PropertyTax:%.2f\n",d);getch();return0;}main(){floatq;inta;do{clrscr();printf("Menu\n");printf("1-program1\n");printf("2-program 2\n");printf("3-exit\n");printf("Enteryourchoice:");scanf("%i",&a);switch(a){case1:{clrscr();q=prog1();printf("Yourroundeddecimal:%.2f",q);getch();}break;case2:{clrscr();printf("AssessedValue:");print f("\t\t\t");scanf("%f",&q);prog2(q);}break;}}while(a<3);getch();return0;}STRUCTUREDANDFILEMANIPULATED:/*Quiz1(ALTERED)*/#include<stdio.h>#include<conio.h>floatprog1();prog2(floatq);struct{floata,b,c,d ,q;inta2;/*Iadded"2"*/}prog_one,prog_two,main_struct;floatprog1(){clrscr();printf("Enteradecimalnumber:");scanf("%f",&prog_one.a);returnprog_one.a;}prog2(floatq){prog_two.b=q*.92;prog_two.c=prog_two. b/100;prog_two.d=prog_two.c*1.05;printf("TaxableAmount:%.2f\n",prog_two.b);printf("TaxRateforeach$100.00:1.05\n");printf("PropertyTax:%.2f\n",prog_two.d);getch();return0;}main(){FILE*fp;do{clrscr();pr intf("Menu\n");printf("1-program1\n");printf("2-program2\n");printf("3-savetofile\n");printf("4-exit\n");printf("Enteryourchoice:");scanf("%i",&main_struct.a2);switch(main_struct.a2){case1:{clrscr();m ain_struct.q=prog1();printf("Yourroundeddecimal:%.2f",main_struct.q);getch();}break;case2:{clrscr();printf("AssessedValue:");printf("\t\t\t");scanf("%f",&main_struct.q);prog2(main_struct.q);}break;cas e3:{clrscr();fp=fopen("C:\\BLAH.TXT","w");fprintf(fp,"Prog1Data:\nRoundeddecimal:%.2f\n\nProg2Data:\nAssessedValue:%f\nTaxableAmount:%.2f\nTaxRateforeach$100.00:1.05\nPropertyTax:%.2f\n",main_struct.q ,main_struct.q,prog_two.b,prog_two.d);fclose(fp);printf("FileSaved!");getch();}break;}}while(main_struct.a<4);getch();return0;}Iamverysorry,butmytimeisover...Iknowthatyoucanunderstandthesecodesandstu dyeverypart!!Youcandoit!!" />
<meta name="keywords" content="and, codes, time, one, hope, know, only, not, manipulation, was, that, this, you, the, can" />
<meta name="category" content="general" />
<meta name="robots" content="index,follow" /> |
you can see for yourself here:
http://www.itspot.co.cc/forums/programmers-talk/structures-and-files-t29.html
try to scroll upwards and you will see what i'm talking about... |
|
|
| Back to top |
|
 |
|
 |
divinemanwah

Joined: 01 Apr 2008 Posts: 28
|
Posted: Tue Apr 08, 2008 8:15 am Post subject: Re: Found A Bug In Dynamic Meta Tag Feature |
|
|
| anyone? |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3477
|
Posted: Tue Apr 08, 2008 8:52 am Post subject: Re: Found A Bug In Dynamic Meta Tag Feature |
|
|
You may want to get rid of the code tag's content as well, in includes/functions.php :
| Code: | | static $bbcode_strip = 'img|url|flash'; |
=>
| Code: | | static $bbcode_strip = 'img|url|flash|code'; |
Should prevent the code bbcode tag content to show up in the meta tags.
We are about to update the mod, to go with phpBB 3.0.1, we'll implement all known bug fixes, and I think this extra filter too. |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
divinemanwah

Joined: 01 Apr 2008 Posts: 28
|
Posted: Wed Apr 09, 2008 3:29 am Post subject: Re: Found A Bug In Dynamic Meta Tag Feature |
|
|
oh, thank you!! that solved my problem...
but what about this one....
| Code: | <meta http-equiv="imagetoolbar" content="no" />
<meta name="title" content="Forum Home" />
<meta name="description" lang="en" content="TheBSITCommunity-PUPT:Justthis.Noattachments." />
<meta name="keywords" content="Noattachments, Justthis, PUPT, TheBSITCommunity" /> |
as you can see, the description and the keywords are not separated by a space...
example:
| Code: | | <meta name="description" lang="en" content="TheBSITCommunity-PUPT:Justthis.Noattachments." /> |
should be
| Code: | | <meta name="description" lang="en" content="The BS IT Community - PUPT : Just this. Noattachments." /> |
and
| Code: | | <meta name="keywords" content="Noattachments, Justthis, PUPT, TheBSITCommunity" /> |
must be
| Code: | | <meta name="keywords" content="No attachments, Just this, PUPT, The BS IT Community" /> |
are those bugs? if so, will you include a fix for it in the upcoming 3.0.1?
thanks in advance!! cheers!!  |
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|