| :: |
| Author |
Message |
HB. PR0

Joined: 26 Oct 2006 Posts: 62
|
Posted: Mon Oct 30, 2006 5:20 pm Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2 |
|
|
| Does anyone have any suggestions? |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
HB. PR0

Joined: 26 Oct 2006 Posts: 62
|
Posted: Mon Oct 30, 2006 6:38 pm Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2 |
|
|
| Thank you, now remember I'm using a older version of CH 2.1.1. I don't know if the older versions take care of the guest session. I guess I'll have to find out, but I did notice before installing the SID MOD, I did have SIDs for guests. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
HB. PR0

Joined: 26 Oct 2006 Posts: 62
|
Posted: Tue Oct 31, 2006 6:01 am Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2 |
|
|
Ok, it appears that I got the MOD to work, the only thing I've noticed is the index still reads index.php instead of index.html. I also noticed the files to edit read index.php, but I don't see that file to edit
| Quote: | ## Files To Edit: (5)
## .htaccess,
## index.php,
## includes/function.php,
## includes/session.php,
## viewtopic.php |
How can I get the index to display index.html instead of index.php? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
HB. PR0

Joined: 26 Oct 2006 Posts: 62
|
Posted: Tue Oct 31, 2006 10:00 am Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2 |
|
|
That would be great if you could send me the trick to achieve this. Or does it really make a difference SEO wise if the index reads index.php instead of not displaying index.php? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
yazerty PR1

Joined: 30 Oct 2006 Posts: 173
|
Posted: Thu Nov 02, 2006 8:56 am Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2 |
|
|
Hello dcz !
I'm reading the english board and I saw this, that could answer to a question I post in the french board :
| dcz wrote: | I am currently working on enhancing phpBB links and to organise the phpBB SEO Toolkit. I thought the next and previous topic links should not be shown to guest any more as they are duplicates, and that this change was to be added in this mod, as it requires very few changes.
Here is the code change that will be added to the next version, you can implement it now as it's final
| Code: |
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous");
$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next");
//
// Mozilla navigation bar
//
$nav_links['prev'] = array(
'url' => $view_prev_topic_url,
'title' => $lang['View_previous_topic']
);
$nav_links['next'] = array(
'url' => $view_next_topic_url,
'title' => $lang['View_next_topic']
);
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ($userdata['session_logged_in']) {
$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous");
$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next");
//
// Mozilla navigation bar
//
$nav_links['prev'] = array(
'url' => $view_prev_topic_url,
'title' => $lang['View_previous_topic']
);
$nav_links['next'] = array(
'url' => $view_next_topic_url,
'title' => $lang['View_next_topic']
);
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM |
 |
Is it normal that after that modification I always have the nav links, but linking to my board index when "login" as guest (links are ok when I'm login whith my profile ?
That will make no sense for guest visitors, don't you think :- ? They click on "prev/next" and aarrive on the board index ...
Isn't it possible to just link to the real url of the prev/next topic (without "view=" parameter in the url) ? |
_________________ L'insolite Yazerty.Net - Interprétation et signification des rêves |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
yazerty PR1

Joined: 30 Oct 2006 Posts: 173
|
Posted: Thu Nov 02, 2006 12:32 pm Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2 |
|
|
(croisements multilatéral de posts )
So, thank you for your answer. I made this :
| Code: | OPEN
viewtopic_boy.tpl
FIND
<td class="catHead" colspan="2" height="28"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a> </span></td>
REPLACE WITH
<td class="catHead" colspan="2" height="28">
<!-- BEGIN switch_user_logged_in -->
<span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a> </span>
<!-- END switch_user_logged_in -->
</td>
SAVE/UPLOAD |
This work very well : the members show the navigation links and the guests and spider bots see... nothing. I think this is more logic.
Mmm thanks to phpbb-SEO my board seems to be ready for a google rush now. Go google, Go ! |
_________________ L'insolite Yazerty.Net - Interprétation et signification des rêves |
|
| Back to top |
|
 |
HB. PR0

Joined: 26 Oct 2006 Posts: 62
|
Posted: Thu Nov 02, 2006 6:20 pm Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2 |
|
|
ok dcz, I'm really stumped here. You did help me get this working, but it was on my test site. Now I'm having problems installing this mod on my live board (different host).
What I've noticed is if I insert this line into the .htaccess I get a 500 error
| Code: | | Options +FollowSymlinks |
Does not having this line in the .htaccess affect anything? It appears to work otherwise |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
euroman PR0

Joined: 21 Oct 2006 Posts: 81
|
Posted: Thu Nov 23, 2006 12:24 pm Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2 |
|
|
I have simple mod rewrite. Now I would like to make a category in the forum. Can I do that just like that - or do I have to update something? Because I can understand there is a simple mod rewrite Category edition !?!
EDIT: I done it and it seemes fine. So the category hierachy mod is for forums within forums...? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
Posted: Thu Nov 23, 2006 5:30 pm Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2 |
|
|
Exactly
All phpBB function do work with the phpBB SEO mod rewrite, you can add categories forum and topics as you want.
As you find out, the special edition is meant for he categories hierarchy mod, which is actually allowing multi-level sub forums.
It's almost a phpBB fork since most of it is changed with this mod, so I would only recommend it if you need more than one sub forum level. Otherwise it would be a lot easier to deal with the simple sub forum mods.
++ |
_________________ 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 |
|
 |
|
|