Page 40 of 77

Re: SEO MOD

Posted: Sat Jun 21, 2008 12:21 pm
by p0Wer
rwap01 wrote:
p0Wer wrote:I really don't know if I should install this mod. Theoretically, it sounds great. I tried installing it a while back but totally messed my board up, but I am willing to try again.

To the above poster, what are all those fixes for? What do they do?

Thanks
If you are careful following the instructions for installation and double check the lines where you place additional / replacement code, you should be fine.

However, there are numerous bugs in the original code, which is why I have listed all of the essential fixes to overcome the bugs and ensure that your board operates as it did before implementing the MOD.

I have emailed Handyman to ask him to incorporate these within the release and re-upload the MOD, but alas he just tells people to read through this forum!!
Okay cool. Wht do your bug fixes actually fix? Are they MAJOR bugs?

Re: SEO MOD

Posted: Sat Jun 21, 2008 3:25 pm
by rwap01
p0Wer wrote:
rwap01 wrote:
p0Wer wrote:I really don't know if I should install this mod. Theoretically, it sounds great. I tried installing it a while back but totally messed my board up, but I am willing to try again.

To the above poster, what are all those fixes for? What do they do?

Thanks
If you are careful following the instructions for installation and double check the lines where you place additional / replacement code, you should be fine.

However, there are numerous bugs in the original code, which is why I have listed all of the essential fixes to overcome the bugs and ensure that your board operates as it did before implementing the MOD.

I have emailed Handyman to ask him to incorporate these within the release and re-upload the MOD, but alas he just tells people to read through this forum!!
Okay cool. Wht do your bug fixes actually fix? Are they MAJOR bugs?
None of them are MAJOR bugs - they mainly ensure that all links work correctly in email notifcations, and when viewing topics (such as view latest post) etc... They are however, considered essential if the SEO MOD is to run properly.

Re: SEO MOD

Posted: Sat Jun 21, 2008 10:18 pm
by p0Wer
I was just wondering, if I was to install SEO URL's to the forum, would a NON SEO URL still point to "topic x" as well as the SEO URL pointing to "topic x"?

Re: SEO MOD

Posted: Sun Jun 22, 2008 1:57 am
by LXscope
Thanks for the MOD!!!

This was the first ever mod I have installed at all (including on phpBB) and had no problems at all!

Great work! I am looking forward to seeing results!

Re: SEO MOD

Posted: Sun Jun 22, 2008 1:54 pm
by rwap01
p0Wer wrote:I was just wondering, if I was to install SEO URL's to the forum, would a NON SEO URL still point to "topic x" as well as the SEO URL pointing to "topic x"?
Yes, both methods of referring to a topic work - the seo version will look something like:

www.yourforum.com/forums/topic-title-t30.html

compared to the normal link:
www.yourforum.com/forums/viewtopic.php?f=20&t=30

But both would work if entered into the browser.

Re: SEO MOD

Posted: Sun Jun 22, 2008 7:44 pm
by rwap01
rwap01 wrote:
Milkin wrote:Thanks for this MOD Handyman.
Thanks to everyone with all the fixes and help.
I worked my way through the last 39 pages and now have this SEO MOD installed & working with all bugs fixed except for one small issue:
When a user sends a topic to a friend using the "E-mail friend" link, that person recieves the email ok but the link back to the topic is like this example:

./test-page-etc.html

when the link in the email should be something like:

hxxp://www.myDomain.com/test-page-etc.html (this is not a working link)

Any help would be great.
Thanks.
Yes, I can confirm this problem as well - not sure why - memberlist.php does not appear to be able to pick up the PHPBB_ROOT_PATH and so, sets $phpbb_root_path to './'

Hmm - I am puzzled here - anyone got some bright ideas?
OK - it looks as though PHPBB_ROOT_PATH may not actually be defined within v3.0.1 of phpBB.com (although it was in RC5)

There is however, a quick and dirty solution to this problem which I have used:

In memberlist.php find:

Code: Select all

$user->setup(array('memberlist', 'groups'));
Add after that line:

Code: Select all

$forum_folder = (strlen($config['script_path']) > 1) ? $config['script_path'] . '/' : '/' ; 

Then find the lines:

Code: Select all

$messenger->assign_vars(array(
	'TOPIC_NAME'	=> htmlspecialchars_decode($row['topic_title']),
                'U_TOPIC'		=> format_url($row['topic_title'], "t$topic_id")
);
Replace this with:

Code: Select all

                        $topic_seo_link=  format_url($row['topic_title'], "t$topic_id");
                        $topic_seo_link = str_replace('./',$config['server_protocol'].$config['server_name'].$forum_folder,$topic_seo_link);
                        $messenger->assign_vars(array(
							'TOPIC_NAME'	=> htmlspecialchars_decode($row['topic_title']),
                            'U_TOPIC'		=> $topic_seo_link)
						);

Re: SEO MOD

Posted: Sun Jun 22, 2008 8:53 pm
by p0Wer
rwap01 wrote:
p0Wer wrote:I was just wondering, if I was to install SEO URL's to the forum, would a NON SEO URL still point to "topic x" as well as the SEO URL pointing to "topic x"?
Yes, both methods of referring to a topic work - the seo version will look something like:

http://www.yourforum.com/forums/topic-title-t30.html

compared to the normal link:
http://www.yourforum.com/forums/viewtopic.php?f=20&t=30

But both would work if entered into the browser.
Awesome! Thanks.

Re: SEO MOD

Posted: Mon Jun 23, 2008 11:01 pm
by iraqi
Handyman` wrote:
319 wrote:What's about Russian language. If the topic manes is russian. Will SEO be working good?
This MOD uses UTF8, so it works with all languages.
arabic language too ?

Re: SEO MOD

Posted: Tue Jun 24, 2008 12:06 am
by r4dsking
What could be causing this, in my pages it has page 1,2,3,4,5 each of these pages ends in .php instead of html

so the title is like seo-mod.php instead of seo-mod.html, but once you click into the post the pages 1,2,3,4,5 are correct and are .html on the end.

Re: SEO MOD

Posted: Wed Jun 25, 2008 2:51 am
by thenewshmoo_1
Is there any way to remove the '.html' from the end of the URLS?

I am getting the topic headings in the url but i want a nice slash at the end like permalinks.

Re: SEO MOD

Posted: Wed Jun 25, 2008 5:58 pm
by azzam
Is there nay bugs in this mod?

Should i install this mod or from phpbb-seo.com

Which one will be better?

Thank you

Re: SEO MOD

Posted: Thu Jun 26, 2008 3:52 am
by sniper910
where exactly do these files go when i dl it?

Re: SEO MOD

Posted: Fri Jun 27, 2008 3:04 am
by thenewshmoo_1
there should be an xml file that you open up. It contains instructions on which of your phpbb files to amend. This took me about 45 minutes of careful editing to get it to work, i am quite slow so it may take you 15 minutes or so as the mod suggests. There are 2 files which you need to upload, the rest of the installation takes the form of editing of existing phpbb files.

There is a list of fixes a few pages back, essential fixes for known issued with this modification.

I can testify that this mod, when properly installed, and the fixes applied, works very well.

If you want to see the results, my forum link is below. When you click on a topic, the topic heading words are displayed in the URL; this improves search engine ranking. The main fixes that you need to apply (detailed on a few pages back, all on one post (i think called 'essential fixes')) are for pageination, viewing last post for a topic and one for a javascript input box which allows you to jump between pages without going through them sequentially. There are a few others also which I cant recall.

If you have a vanillia installation of phpbb 3, maybe it would be alot easier for people if they could just download the amended files rather than editing it themselves?

I would be happy to send my amended files to anyone if they need it.

One thing to note, make sure you backup all your files using the ACP>system>backup.

Download this file to your desktop, in the event of you misediting a file, you will be able to restore your phpbb system. It might be worth going on to your database server and dumping that as well in case. I havent used the restore facility yet.

http://www.pandorasboxing.com

Re: SEO MOD

Posted: Fri Jun 27, 2008 10:27 am
by bluecafez
everything is almost ok. but i getting 2 problems.

if i edit includes/functions.php file the board index link does not work.

Open: includes/functions.php
Find
Tip: This may be a partial find and not the whole line.

Code:Select All

Code: Select all

global $_SID, $_EXTRA_URL;
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all

global $phpbb_root_path, $phpEx;

	if ($url === "{$phpbb_root_path}index.$phpEx")
	{
		return append_sid($phpbb_root_path);
	}
but the line is:

Code: Select all

global $_SID, $_EXTRA_URL, $phpbb_hook;
so should i put the after this full line? or after

Code: Select all

global $_SID, $_EXTRA_URL,
so i don't edited functions.php file.but everything working fine.


second problem:
if i want to go second page of a topic i get error.
like:

Code: Select all

http://sitename/forum/it-t1293s15.php
but if i use:

Code: Select all

http://sitename/forum/it-t1293s15.html
it works.how to solve this please help me.

Re: Bugs and bug fix compilation.

Posted: Fri Jun 27, 2008 10:50 am
by bluecafez
rwap01 wrote:
flycker wrote: Second, bugs without a bug fix:

1. - "Page 2 of 4" (javascript) doens't work:
1.1 Image
1.2 Image
1.3 Go to "http://new1.myforum.com/&start=10" a "404 - Not Found" page.
I have managed to fix this bug, as follows:

In the styles/prosilver/template folder:
Find the following lines in forum_fn.js

Code: Select all

function jumpto()
{
	var page = prompt(jump_page, on_page);

	if (page !== null && !isNaN(page) && page > 0)
	{
		document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
	}
}
Replace with:

Code: Select all

function jumpto(base_url,seo_ext)
{
	var page = prompt(jump_page, on_page);

	if (page !== null && !isNaN(page) && page > 0)
	{
		document.location.href = base_url.replace(/&/g, '&') + 's' + ((page - 1) * per_page) + seo_ext;
	}
}
Find the following text in viewtopic_body.html (appears twice)

Code: Select all

<a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">
Replace with the following (both times):

Code: Select all

<a href="#" onclick="jumpto('{BASE_URL}','{TOPIC_SEO_EXT}'); return false;" title="{L_JUMP_TO_PAGE}">
Find the following text in viewforum_body.html (appears twice)

Code: Select all

<a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">
Replace with the following (both times):

Code: Select all

<a href="#" onclick="jumpto('{BASE_URL}','{TOPIC_SEO_EXT}'); return false;" title="{L_JUMP_TO_PAGE}">
Note the need to purge the cache in order for your forum to see the updated template.
In includes/functions_seo.php, find the line:

Code: Select all

$tpl_prefix . 'PER_PAGE'	=> $per_page,
And add below this line:

Code: Select all

$tpl_prefix . 'TOPIC_SEO_EXT'   => $append,
flycker wrote: Second, bugs without a bug fix:

2. - Unread orange icon (When you are viewing a forum and there are unread threads you can click on the little orange)
2.1 Image
2.2 Go to "http://new1.myforum.com/sdfsdfs-t9.html ... ead#unread" a "404 - Not Found" page.
I have also found the fix for this bug:
In viewforum.php Find:

Code: Select all

'U_NEWEST_POST'			=> $view_topic_url . '&view=unread#unread',
Change to:

Code: Select all

'U_NEWEST_POST'			=> $view_topic_url . '-view=unread#unread',
Are there any more bugs remaining?
on viewttopic_body.html there is no such kind of line:

Code: Select all

<a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">
I use Serenity Green skin. there are no forum_fn.js. what should i do?