SEO MOD

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
crazyleaf
Registered User
Posts: 4
Joined: Wed Jan 09, 2008 3:58 pm
Location: CrazyLeaf HQ

Re: SEO MOD

Post by crazyleaf »

Is there a fix for the pagination for 3.0.0 ?

The problem appears when you have a topic with many posts displayed on more than one page. So when you try to access let's say the 3rd page directly from topic view it redirects you to the correct page but with the php extention instead of html extention. This obviously gives a 404.
flipper242
Registered User
Posts: 7
Joined: Thu Jun 28, 2007 12:33 am
Location: Hamburg- Germany
Contact:

Re: SEO MOD

Post by flipper242 »

my fix is for the seo_modrc4 and work withe the phpbb 3 gold release ---> http://www.extrem-bodybuilding.de/forum


This code seems to make trouble in some installations
if you have an error like this:

Code: Select all

phpBB Debug] PHP Notice: in file /index.php on line 124: Undefined variable: root_data
try this (the var is not needed here )

index.php

Code: Select all

find:
'U_MARK_FORUMS'      => ($user->data['is_registered'] || $config['load_anon_lastread']) ? format_url('index', 'i' . $root_data['forum_id'], 0, "mark=forums") : '',

replace:
'U_MARK_FORUMS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? format_url('index', 'i', 0, "mark=forums") : '',
User avatar
lukak
Registered User
Posts: 47
Joined: Mon Jun 04, 2007 3:12 pm
Location: Piran, Slovenia
Contact:

Re: SEO MOD phpbb3portal integration

Post by lukak »

If someone wants to include it phpbb3portal. here are the changes:

open: /portal/block/recent.php
find:

Code: Select all

append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&t=' . $row['topic_id'])
you have to replace it 3x times!! :D
replace with:

Code: Select all

format_url($row['topic_title'], 't' . $row['topic_id'])
open: /portal/block/announcments.php
Find:

Code: Select all

append_sid($phpbb_root_path . 'viewtopic.' . $phpEx . '?t=' . $fetch_announcements[$i]['topic_id'] . '&f=' . $a_fid),
Replace with:

Code: Select all

format_url($fetch_announcements[$i]['topic_title'], 't' . $fetch_announcements[$i]['topic_id']),
open /portal/block/news.php
Find:

Code: Select all

append_sid($phpbb_root_path . 'viewtopic.' . $phpEx . '?t=' . $fetch_news[$i]['topic_id'] . '&f=' . $fetch_news[$i]['forum_id']),
you have to replace it 2x times!!
Replace with:

Code: Select all

format_url($fetch_news[$i]['topic_title'], 't' . $fetch_news[$i]['topic_id']),
Image
Aexo
Registered User
Posts: 20
Joined: Sun Dec 09, 2007 12:27 pm
Contact:

Re: SEO MOD

Post by Aexo »

hello
This mod is genial, but I have a problem

When a thread is too large, phpbb see a little number to indicate the page number of this thread. This number is finished in php when It must finish in html. If you change the .php to .html It's works.

example:
http://clubifone.com/configurar-mensaje ... t385s0.php

htacces is well, or I think so.

thanks all.

Support:
http://clubifone.com
phpbb 3.0.0
template Blue moon
flipper242
Registered User
Posts: 7
Joined: Thu Jun 28, 2007 12:33 am
Location: Hamburg- Germany
Contact:

Re: SEO MOD

Post by flipper242 »

@Aexo

did you read this thread??
Aexo
Registered User
Posts: 20
Joined: Sun Dec 09, 2007 12:27 pm
Contact:

Re: SEO MOD

Post by Aexo »

yes, but I'm not english and I don't understand so much, sorry. My problem is the same of 404 error?
flipper242
Registered User
Posts: 7
Joined: Thu Jun 28, 2007 12:33 am
Location: Hamburg- Germany
Contact:

Re: SEO MOD

Post by flipper242 »

ok once more:

the pagination bug (direct link to subsites of threads, where the extension ist .php but have to be .html)

Code: Select all

my solution for the pagination bug in rc4:

viewforum.php near line 640

find:
'U_LAST_POST' => $view_topic_url . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id'],

Replace:
'U_LAST_POST' => $view_topic_url . '#p' . $row['topic_last_post_id'],




functions_seo.php near line 290

find:
$append = '.' . $phpEx;



replace
$append = '.html';


Aexo
Registered User
Posts: 20
Joined: Sun Dec 09, 2007 12:27 pm
Contact:

Re: SEO MOD

Post by Aexo »

thanks, flipper242, I tried this before but didn't work. Now I see that I didn't edit funtions_seo.php

Work perfectly!! thanks all. It's great this mod!
User avatar
crazyleaf
Registered User
Posts: 4
Joined: Wed Jan 09, 2008 3:58 pm
Location: CrazyLeaf HQ

Re: SEO MOD

Post by crazyleaf »

In 3.0.0 there is no such line in viewforum.php but doesn't matter because all you need to do is replace that line in functions_seo.php .
Aexo
Registered User
Posts: 20
Joined: Sun Dec 09, 2007 12:27 pm
Contact:

Re: SEO MOD

Post by Aexo »

ok.

a cuestion: What is the root/adm/mods/seo_mod_version.php?
what does it do?
I haven't got that folder in adm. Is it to see this mods in acp? or to see in foot?
seqwence
Registered User
Posts: 34
Joined: Tue Feb 13, 2007 8:20 am

Re: SEO MOD

Post by seqwence »

If there is any new version, you'll know this by force of this file.
flipper242
Registered User
Posts: 7
Joined: Thu Jun 28, 2007 12:33 am
Location: Hamburg- Germany
Contact:

Re: SEO MOD

Post by flipper242 »

@crazyleaf

???? a litle quote of viewforum.php

Code: Select all

.....'S_POST_GLOBAL'			=> ($row['topic_type'] == POST_GLOBAL) ? true : false,
			'S_POST_STICKY'			=> ($row['topic_type'] == POST_STICKY) ? true : false,
			'S_TOPIC_LOCKED'		=> ($row['topic_status'] == ITEM_LOCKED) ? true : false,
			'S_TOPIC_MOVED'			=> ($row['topic_status'] == ITEM_MOVED) ? true : false,

			'U_NEWEST_POST'			=> $view_topic_url . '&view=unread#unread',
			'U_LAST_POST'			=> $view_topic_url . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id'],
			'U_LAST_POST_AUTHOR'	=> get_username_string('profile', $row['topic_last_poster_id'], $row['topic_last_poster_name'], $row['topic_last_poster_colour']),
			'U_TOPIC_AUTHOR'		=> get_username_string('profile', $row['topic_poster'], $row['topic_first_poster_name'], $row['topic_first_poster_colour']),
			'U_VIEW_TOPIC'			=> $view_topic_url,
			'U_MCP_REPORT'			=> append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=reports&mode=reports&f=' . $forum_id . '&t=' . $topic_id, true, $user->session_id),
			'U_MCP_QUEUE'			=> $u_mcp_queue,.......
yes this change is not necessary for the direct pagination, but if you dont change this you have a problem with the last user post in viewforum.php! Produced links like this :
http://www.extrem-bodybuilding.de/forum ... 01#p161601

result a 404 error!!
K E L L I N A
Registered User
Posts: 54
Joined: Tue Jul 18, 2006 3:25 pm

Re: SEO MOD

Post by K E L L I N A »

Has anyone fixed the problem with the "Go to page" and Next/Previouse And the Page Number Links in the actual post if it has more then one page?

If so whats the fix?

thanks
braianz
Registered User
Posts: 45
Joined: Thu Apr 20, 2006 2:04 am

Re: SEO MOD

Post by braianz »

fix the mark all forum read bug please!!
braianz
Registered User
Posts: 45
Joined: Thu Apr 20, 2006 2:04 am

Re: SEO MOD

Post by braianz »

flipper242 wrote:@crazyleaf

???? a litle quote of viewforum.php

Code: Select all

.....'S_POST_GLOBAL'			=> ($row['topic_type'] == POST_GLOBAL) ? true : false,
			'S_POST_STICKY'			=> ($row['topic_type'] == POST_STICKY) ? true : false,
			'S_TOPIC_LOCKED'		=> ($row['topic_status'] == ITEM_LOCKED) ? true : false,
			'S_TOPIC_MOVED'			=> ($row['topic_status'] == ITEM_MOVED) ? true : false,

			'U_NEWEST_POST'			=> $view_topic_url . '&view=unread#unread',
			'U_LAST_POST'			=> $view_topic_url . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id'],
			'U_LAST_POST_AUTHOR'	=> get_username_string('profile', $row['topic_last_poster_id'], $row['topic_last_poster_name'], $row['topic_last_poster_colour']),
			'U_TOPIC_AUTHOR'		=> get_username_string('profile', $row['topic_poster'], $row['topic_first_poster_name'], $row['topic_first_poster_colour']),
			'U_VIEW_TOPIC'			=> $view_topic_url,
			'U_MCP_REPORT'			=> append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=reports&mode=reports&f=' . $forum_id . '&t=' . $topic_id, true, $user->session_id),
			'U_MCP_QUEUE'			=> $u_mcp_queue,.......
yes this change is not necessary for the direct pagination, but if you dont change this you have a problem with the last user post in viewforum.php! Produced links like this :
http://www.extrem-bodybuilding.de/forum ... 01#p161601

result a 404 error!!
Ok, i fixed the pagination bug, the mark all forums read i dont fix :S

puts this link : forum.com/index-i
Locked

Return to “[3.0.x] MOD Database Releases”