[request] today-yesterday mod with SEO?

Support for the phpBB2 SEO mods released in the phpBB2 SEO Toolikt forum.

Moderator: Moderators


[request] today-yesterday mod with SEO?

Postby Hannibal_King » Fri Jun 23, 2006 4:24 am

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/
Hannibal_King
PR0
PR0
 
Posts: 78
Joined: Thu Jun 22, 2006 1:34 pm

Advertisement

Postby dcz » Fri Jun 23, 2006 9:19 am

Hello,

Well, after I took a first look to this mod, I am really wondering what could not work with it in the phpBB SEO mods ?

have you tried any ?

If not, just perform local testings, but I don't see obvious reasons why it should cause problems here.

++
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Postby AmirAbbas » Fri Jun 23, 2006 9:40 am

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 :roll:
Last edited by AmirAbbas on Fri Jun 23, 2006 3:23 pm, edited 1 time in total.
User avatar
AmirAbbas
phpBB SEO Team
phpBB SEO Team
 
Posts: 534
Joined: Thu May 11, 2006 3:30 pm
Location: IRAN

Postby Hannibal_King » Fri Jun 23, 2006 2:12 pm

i am using SEO Advenced and it doesnt work :( what should i install from this site?
Hannibal_King
PR0
PR0
 
Posts: 78
Joined: Thu Jun 22, 2006 1:34 pm

Postby dcz » Fri Jun 23, 2006 2:21 pm

A link maybe ?

What's is happening and what makes you think it is the today / yesterday mod to do it ?

Some more information would help here to understand what's happening ;)
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Postby Hannibal_King » Fri Jun 23, 2006 5:34 pm

wat is happening? hmm, the link to the last topic in forum from index is not in html but is is normal in php :(
Hannibal_King
PR0
PR0
 
Posts: 78
Joined: Thu Jun 22, 2006 1:34 pm

Postby dcz » Fri Jun 23, 2006 5:44 pm

Oh I see, this must be because you are using the phpBB SEO Advanced mod Rewrite 0.0.1, isn't it ?

If so, just upgrade ;)

++
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Postby Hannibal_King » Sat Jun 24, 2006 4:35 am

hmm, i dont understand, upgrade to what?
Hannibal_King
PR0
PR0
 
Posts: 78
Joined: Thu Jun 22, 2006 1:34 pm

Postby AmirAbbas » Sat Jun 24, 2006 5:07 am

Hannibal_King wrote:hmm, i dont understand, upgrade to what?


you must upgrade your phpBB SEO Advanced mod Rewrite from version 0.0.1 to 0.0.2

check this link

phpBB SEO Advanced mod Rewrite V 0.0.2 :wink:
User avatar
AmirAbbas
phpBB SEO Team
phpBB SEO Team
 
Posts: 534
Joined: Thu May 11, 2006 3:30 pm
Location: IRAN

Postby Hannibal_King » Sat Jun 24, 2006 5:29 am

but i am using version 0.0.2 :(
Hannibal_King
PR0
PR0
 
Posts: 78
Joined: Thu Jun 22, 2006 1:34 pm

Postby dcz » Sat Jun 24, 2006 8:24 am

Hannibal_King wrote:but i am using version 0.0.2 :(


So you see info can be useful ;)

URL?
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Postby Hannibal_King » Sat Jun 24, 2006 12:47 pm

Hannibal_King
PR0
PR0
 
Posts: 78
Joined: Thu Jun 22, 2006 1:34 pm

Postby dcz » Sat Jun 24, 2006 1:10 pm

Hannibal_King wrote:url here: www.pc-corner.biz :roll:


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 ;)

++
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Postby Hannibal_King » Sat Jun 24, 2006 4:50 pm

OK, THX, if you will create some addon for this, please inform me :)
Hannibal_King
PR0
PR0
 
Posts: 78
Joined: Thu Jun 22, 2006 1:34 pm

Postby dcz » Sun Jun 25, 2006 2:16 pm

So, I think this will do :

Open :


Code: Select all
index.php


Find :

Code: Select all
                // append first 18 characters of topic title to last topic data
                if (strlen($forum_data[$j]['topic_title']) > 18) {


Before Add :

Code: Select all
                        // www.phpBB-SEO.com SEO TOOLKIT BEGIN
                        $seo_topic_name = $forum_data[$j]['topic_title'];
                        // www.phpBB-SEO.com SEO TOOLKIT END


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: Select all
//
// Start page proper
//


Before add :


Code: Select all
//
// Define censored word matches
//
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);


Find :

Code: Select all
                        // www.phpBB-SEO.com SEO TOOLKIT BEGIN
                        $seo_topic_name = $forum_data[$j]['topic_title'];
                        // www.phpBB-SEO.com SEO TOOLKIT END


Replace with :

Code: Select all
                        // 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


;)

++
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Next

Return to phpBB2 SEO MODS




Who is online

Users browsing this forum: No registered users and 1 guest