| :: |
| Author |
Message |
Hannibal_King PR0

Joined: 22 Jun 2006 Posts: 78
|
Posted: Fri Jun 23, 2006 4:24 am Post subject: [request] today-yesterday mod with SEO? |
|
|
Hello,
can someone make some addon for SEO to work with this mod? ( http://www.phpbbstyles.com/viewtopic.php?t=5464 )
Mod description:
This mod will make the Today and Yesterday show up in place of the Date for the corresponding days. Also adds the linked title of the last topic replied to in each forum.
Demo fo the today-yesterday mod can be found here: http://www.phpbbstyles.com/ |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Fri Jun 23, 2006 9:40 am Post subject: Re: [request] today-yesterday mod with SEO? |
|
|
im using this mod with simple rewrite mod
it doesn't cause any problem
i have combined it with a part of able2know mod
it works perfectly  |
_________________ چهار گوش - طراحی وب - مجله طراحی وب
Last edited by AmirAbbas on Fri Jun 23, 2006 3:23 pm; edited 1 time in total |
|
| Back to top |
|
 |
Hannibal_King PR0

Joined: 22 Jun 2006 Posts: 78
|
Posted: Fri Jun 23, 2006 2:12 pm Post subject: Re: [request] today-yesterday mod with SEO? |
|
|
i am using SEO Advenced and it doesnt work what should i install from this site? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
|
| Back to top |
|
 |
Hannibal_King PR0

Joined: 22 Jun 2006 Posts: 78
|
Posted: Fri Jun 23, 2006 5:34 pm Post subject: Re: [request] today-yesterday mod with SEO? |
|
|
wat is happening? hmm, the link to the last topic in forum from index is not in html but is is normal in php  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
|
| Back to top |
|
 |
Hannibal_King PR0

Joined: 22 Jun 2006 Posts: 78
|
Posted: Sat Jun 24, 2006 4:35 am Post subject: Re: [request] today-yesterday mod with SEO? |
|
|
| hmm, i dont understand, upgrade to what? |
|
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
|
| Back to top |
|
 |
Hannibal_King PR0

Joined: 22 Jun 2006 Posts: 78
|
Posted: Sat Jun 24, 2006 5:29 am Post subject: Re: [request] today-yesterday mod with SEO? |
|
|
but i am using version 0.0.2  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
|
| Back to top |
|
 |
Hannibal_King PR0

Joined: 22 Jun 2006 Posts: 78
|
Posted: Sat Jun 24, 2006 12:47 pm Post subject: Re: [request] today-yesterday mod with SEO? |
|
|
url here: www.pc-corner.biz  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
Posted: Sat Jun 24, 2006 1:10 pm Post subject: Re: [request] today-yesterday mod with SEO? |
|
|
Ok now I see.
This is a topic URL, not a post.
But this mod is not performing the censor check, so as is, it's not valuable as it can output duplicates. In case a part of a topic title was censored, this mod will output the uncensored one
So please do think about the last touch while I'll work on it and release an add on.
Anyway, it's no big deal at all to wait a bit since the vanilla phpBB URLs should be disallowed by robots.txt, it'll just be better after it will fully work
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
Hannibal_King PR0

Joined: 22 Jun 2006 Posts: 78
|
Posted: Sat Jun 24, 2006 4:50 pm Post subject: Re: [request] today-yesterday mod with SEO? |
|
|
OK, THX, if you will create some addon for this, please inform me  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
Posted: Sun Jun 25, 2006 2:16 pm Post subject: Re: [request] today-yesterday mod with SEO? |
|
|
So, I think this will do :
Open :
Find :
| Code: | // append first 18 characters of topic title to last topic data
if (strlen($forum_data[$j]['topic_title']) > 18) { |
Before Add :
Note that this won't use the phpBB censor system.
To activate it, it's a bit heavier, but won't output banned words (thus no dupes), do the following in addition (still in index.php) :
Find :
| Code: |
//
// Start page proper
// |
Before add :
| Code: | //
// Define censored word matches
//
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word); |
Find :
Replace with :
| Code: | // www.phpBB-SEO.com SEO TOOLKIT BEGIN
$forum_data[$j]['topic_title'] = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $forum_data[$j]['topic_title']) : $forum_data[$j]['topic_title'];
$seo_topic_name = $forum_data[$j]['topic_title'];
// www.phpBB-SEO.com SEO TOOLKIT END |
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
|
|