9
   

phpBB Search Engine Optimization - Sessions, static ( SEO )

 
 
RammsteinNicCage
 
  1  
Mon 15 Mar, 2004 07:42 pm
Craven, I noticed that you're up to 1.0.2 now, but in the readme file, you didn't put what the changes were in the history. I don't think I missed the post here where you described it (or did I?), so are these changes worthwhile or something like spelling errors?

Jennifer
0 Replies
 
Craven de Kere
 
  1  
Mon 15 Mar, 2004 08:45 pm
Good point. I need to document my code more carefully.

I'd planned to release a large number of updates last week but have become very busy.

If you have a copy of the mod you used I can point out the differences but if not you might just have to manually check for the changes.

But the next release will have better documentation.
0 Replies
 
ccb056
 
  1  
Tue 16 Mar, 2004 08:13 pm
How do I change the view latest posts url?
Hi, I've been running your mod for a while and I am quite pleased with it, however, I have one question. In index.php and viewform.php on the right there exists many links to the most recent threads. Instead of pointing to the last post, I would like it to point to the thread from the beginning. To put it simply, I want to be able to remove the studd after the #. How do I do that?

Thanks!
0 Replies
 
Craven de Kere
 
  1  
Wed 17 Mar, 2004 11:24 am
Welcome to A2K, ccb056.

Removing the bookmark link (the portion after #) is easy but'I don't think that's what you want. That just makes the page scroll down to the bookmark.

Here's the address for your post.

viewtopic.php?p=603848#603848

Here's the address for the thread page:

viewtopic.php?t=15132&start=300

See the difference? "t" is topic and "p" is post. I suspect that you want to eliminate post links, not just remove the bookmark in the url.

Is that correct?
0 Replies
 
romans1423
 
  1  
Wed 17 Mar, 2004 03:31 pm
Any further development on this past v1.0.2?
0 Replies
 
Craven de Kere
 
  1  
Wed 17 Mar, 2004 03:33 pm
Yes, but it hasn't been released. I've got a lot going on and will release it when I have the time.
0 Replies
 
RammsteinNicCage
 
  1  
Wed 17 Mar, 2004 04:52 pm
The first instruction in 1.0.2 is to find

Code:$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';


What I was able to find was

Code:$last_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '" title="' . $lang['View_latest_post'] . '">' . $last_post_time . '</a>' . '<br />';


It looks like most of the differences are insignificant, although I don't know what the . before the = means. And, I'm wondering if I should keep the <br />.

PS, I couldn't find any other changes from 1.0.1 to 1.0.2....

Jennifer
0 Replies
 
Craven de Kere
 
  1  
Wed 17 Mar, 2004 05:08 pm
That might be a typo. I'll have to look into it.

1.0.1 to 1.0.2 might be mostly to comply with phpbb coding guidelines and may well be as insignificant as reordering all the find, replace code.

They required that I place it in the order that it appears in the original files so that automated tools like easy mod could be used.

But I doubt that was the only change and I bet there is something you missed.

Sorry taht the changelog wasn't documented very well. In my previous mods no real changes were made and the original code out of BETA stood.

In the future I'll document more carefully, though this will reduce the amount of code I release.
0 Replies
 
RammsteinNicCage
 
  1  
Wed 17 Mar, 2004 05:16 pm
Hmm, that's odd - when I was going through it, the find statements still started from the bottom of the pages.

Jennifer
0 Replies
 
ccb056
 
  1  
Wed 17 Mar, 2004 08:40 pm
Craven de Kere wrote:
Welcome to A2K, ccb056.

Removing the bookmark link (the portion after #) is easy but'I don't think that's what you want. That just makes the page scroll down to the bookmark.

Here's the address for your post.

viewtopic.php?p=603848#603848

Here's the address for the thread page:

viewtopic.php?t=15132&start=300

See the difference? "t" is topic and "p" is post. I suspect that you want to eliminate post links, not just remove the bookmark in the url.

Is that correct?


yes, that is correct
0 Replies
 
Craven de Kere
 
  1  
Wed 17 Mar, 2004 09:35 pm
Well, I don't have time to write the code but I can point you to what would need to be changed.

For example, on index.php there are queries for each DB type.

This is the default query:

Code: default:
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
FROM (( " . FORUMS_TABLE . " f
LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )
LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id )
ORDER BY f.cat_id, f.forum_order";
break;


The post ID needs to be tied to the topic ID so this query might have to be changed.

Then the link needs to be changed. Here's an example of the link:

Code:$last_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '" title="' . $lang['View_latest_post'] . '">' . $last_post_time . '</a>' . '<br />';
0 Replies
 
prep4usmle
 
  1  
Wed 17 Mar, 2004 10:50 pm
it would be nice to change p with t
Hi,
I noticed too few days ago this problem with search engines indexing the same content both with the post link viewtopic.php?p=xxx#xxx and the topic link viewtopic.php?t=xxx.

In fact I verified that the bots ingnore the #xxx after the post link and then if you have for example 2 posts (post2 and post3) in one topic (topic 1) then
- here it is how it looks to the visitor:
viewtopic?t=1
viewtopic?p=2#2
viewtopic ?p=2#2

but here it is how it it looks to the bot:
viewtopic?t=1
viewtopic?p=2
viewtopic ?p=2

And all 3 links have the same content or the same conent is presented with 3 different links.
Just type in you browser the last 3 links and you'll get too the same content. Doesn't look good at all.

Quickest fix: get a mod rewrite and then don't let the bots spider the post links with a robots.txt.

Hope it helps.
0 Replies
 
J R Miller
 
  1  
Thu 25 Mar, 2004 11:37 am
Good day,
I have implemented the current version of this optimization MOD and it works perfectly. I already note some increase in my Google rank value.
However, I do have one conflict with another MOD and I am hoping you can help me out.
I use a MOD called Simply Merge. Aparently, when I make the modification you suggest, it renders Simply Merge impotent. Here is the code for that MOD...
Code:##############################################################
## MOD Title: Simply Merge Threads
## MOD Author: Ptirhiik < [email protected] > (Pierre) http://www.rpgnet-fr.com
## MOD Description:
## This mod allows to merge two topics
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 10 Minutes
## Files To Edit:
## viewtopic.php
## includes/functions.php
## templates/subSilver/subSilver.cfg
##
## Included Files:
## lang_extend_merge.php
## merge.php
## merge_body.tpl
## merge_select_body.tpl
## topic_merge.gif
##
## --- lang settings ---
## mod-lang_settings/lang_extend_mac.php
##
## --- topics list ---
## mod-topics_list/functions_topics_list.php
## mod-topics_list/topics_list_box.tpl
##
## mod-topics_list/graph.gif/folder_announce_own.gif
## mod-topics_list/graph.gif/folder_announce_new_own.gif
## mod-topics_list/graph.gif/folder_own.gif
## mod-topics_list/graph.gif/folder_new_own.gif
## mod-topics_list/graph.gif/folder_hot_own.gif
## mod-topics_list/graph.gif/folder_new_hot_own.gif
## mod-topics_list/graph.gif/folder_lock_own.gif
## mod-topics_list/graph.gif/folder_lock_new_own.gif
## mod-topics_list/graph.gif/folder_sticky_own.gif
## mod-topics_list/graph.gif/folder_sticky_new_own.gif
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
##
## Author Notes:
## o To be able to edit your languages installed on the board, please install the administration
## language management tool included in the mod-lang_settings directory : MOD-lang_settings.txt
##
##############################################################
## MOD History:
##
## 2003-10-21 - Version 1.0.1
## - add the use of the lang settings
## - add the use of the topics list
## - fix the loose of poll while merging a poll to a topic without a poll
##
## 2003-07-27 - Version 1.0.0
## - first release
##
## 2003-07-12 - Version 0.0.1
## - first beta
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------------
#
copy lang_extend_merge.php to language/lang_english/lang_extend_merge.php
copy merge.php to merge.php
copy merge_body.tpl to templates/subSilver/merge_body.tpl
copy merge_select_body.tpl to templates/subSilver/merge_select_body.tpl
copy topic_merge.gif to templates/subSilver/images/topic_merge.gif
#
#-----[ COPY ]------------------------------------------------
#
# this part is relative to the lang_settings mod
#
copy mod-lang_settings/lang_extend_mac.php to includes/lang_extend_mac.php
#
#-----[ COPY ]------------------------------------------------
#
# this part is relative to the topics list mod
#
copy mod-topics_list/functions_topics_list.php to includes/functions_topics_list.php
copy mod-topics_list/topics_list_box.tpl to templates/subSilver/topics_list_box.tpl
copy mod-topics_list/graph.gif/folder_announce_own.gif to templates/subSilver/images/folder_announce_own.gif
copy mod-topics_list/graph.gif/folder_announce_new_own.gif to templates/subSilver/images/folder_announce_new_own.gif
copy mod-topics_list/graph.gif/folder_own.gif to templates/subSilver/images/folder_own.gif
copy mod-topics_list/graph.gif/folder_new_own.gif to templates/subSilver/images/folder_new_own.gif
copy mod-topics_list/graph.gif/folder_hot_own.gif to templates/subSilver/images/folder_hot_own.gif
copy mod-topics_list/graph.gif/folder_new_hot_own.gif to templates/subSilver/images/folder_new_hot_own.gif
copy mod-topics_list/graph.gif/folder_lock_own.gif to templates/subSilver/images/folder_lock_own.gif
copy mod-topics_list/graph.gif/folder_lock_new_own.gif to templates/subSilver/images/folder_lock_new_own.gif
copy mod-topics_list/graph.gif/folder_sticky_own.gif to templates/subSilver/images/folder_sticky_own.gif
copy mod-topics_list/graph.gif/folder_sticky_new_own.gif to templates/subSilver/images/folder_sticky_new_own.gif
#
#-----[ OPEN ]------------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : merge -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=split&sid=" . $userdata['session_id'] . '"><img src="' . $images['topic_mod_split'] . '" alt="' . $lang['Split_topic'] . '" title="' . $lang['Split_topic'] . '" border="0" /></a> ';
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : merge -----------------------------------------------------------------------------------
//-- add
$topic_mod .= '<a href="' . append_sid("merge.$phpEx?" . POST_TOPIC_URL . '=' . $topic_id) . '"><img src="' . $images['topic_mod_merge'] . '" alt="' . $lang['Merge_topics'] . '" title="' . $lang['Merge_topics'] . '" border="0" /></a> ';
//-- fin mod : merge -------------------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
# This part can already be existing : if so, just skip it
#
//-- mod : language settings -----------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
//
// Set up style
//
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
# This part can already be existing : if so, just skip it
#
//-- mod : language settings -----------------------------------------------------------------------
//-- add
include($phpbb_root_path . './includes/lang_extend_mac.' . $phpEx);
//-- fin mod : language settings -------------------------------------------------------------------

#
#-----[ FIND ]------------------------------------------------
#
}

if ( empty($template) )
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
# This part can already be existing : if so, just skip it
#
//-- mod : language settings -----------------------------------------------------------------------
//-- add
include($phpbb_root_path . './includes/lang_extend_mac.' . $phpEx);
//-- fin mod : language settings -------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : topics list -----------------------------------------------------------------------------
//-- mod : merge -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : merge -----------------------------------------------------------------------------------
//-- add
$images['topic_mod_merge'] = "$current_template_images/topic_merge.gif";
//-- fin mod : merge -------------------------------------------------------------------------------
//-- mod : topics list -----------------------------------------------------------------------------
//-- add
$images['folder_global_announce'] = "$current_template_images/folder_announce.gif";
$images['folder_global_announce_new'] = "$current_template_images/folder_announce_new.gif";
$images['folder_global_announce_own'] = "$current_template_images/folder_announce_own.gif";
$images['folder_global_announce_new_own'] = "$current_template_images/folder_announce_new_own.gif";
$images['folder_own'] = "$current_template_images/folder_own.gif";
$images['folder_new_own'] = "$current_template_images/folder_new_own.gif";
$images['folder_hot_own'] = "$current_template_images/folder_hot_own.gif";
$images['folder_hot_new_own'] = "$current_template_images/folder_new_hot_own.gif";
$images['folder_locked_own'] = "$current_template_images/folder_lock_own.gif";
$images['folder_locked_new_own'] = "$current_template_images/folder_lock_new_own.gif";
$images['folder_sticky_own'] = "$current_template_images/folder_sticky_own.gif";
$images['folder_sticky_new_own'] = "$current_template_images/folder_sticky_new_own.gif";
$images['folder_announce_own'] = "$current_template_images/folder_announce_own.gif";
$images['folder_announce_new_own'] = "$current_template_images/folder_announce_new_own.gif";
//-- fin mod : topics list -------------------------------------------------------------------------
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM

Can you tell me one of two things. Is it possible to still implement all of your suggestions and to somehow get this MOD to work? If not, can you tell me which portion of your optimization MOD I must uninstall to get this one to work again. I hate to uninstall any of your awesome suggestions, but I find far too much use for Simply Merge to abandon it.
Thanks for your help.
Joe
0 Replies
 
steveorg
 
  1  
Thu 25 Mar, 2004 12:02 pm
Can signatures for guest views be retained?
For some of my forums I plan on having experts moderate specific sub-forums. Part of my pitch to these experts is that the links to their site will help their search rankings. Because of this, I'd like to preserve the ability to retain signatures and the www profile button for guest views. Is there a way that I can do that?
0 Replies
 
Craven de Kere
 
  1  
Thu 25 Mar, 2004 01:31 pm
I'll get back to you guys on the weekend.
0 Replies
 
J R Miller
 
  1  
Thu 25 Mar, 2004 01:42 pm
Great thanks! I appreciate the help!
0 Replies
 
Craven de Kere
 
  1  
Thu 25 Mar, 2004 01:49 pm
JR,

I gotta warn you right now that my support for other people's code is very very limited (i.e. I don't) because of time constraints and that I can only give pointers on what to do and can't get bogged down working on mod compatibility.
0 Replies
 
J R Miller
 
  1  
Thu 25 Mar, 2004 02:16 pm
I understand and appreciate any amount of reasonable help you can offer. I know it is not your responsibility to help me here, I just love both MODs and would like to use yours to the fullest extent.
Even if you can only point out which part of your MOD I need to reverse to make the other one work that would be helpful.
Thanks,
Joe
0 Replies
 
Craven de Kere
 
  1  
Thu 25 Mar, 2004 02:22 pm
My suggestion is to totally reverse my mod, my next release will be modular and will allow you to select specific changes to make in the SEO.
0 Replies
 
J R Miller
 
  1  
Thu 25 Mar, 2004 02:30 pm
Ok, thanks for your suggestion. I hate to uninstall all the work for one thing, so I may just try and figure out where you MOD address topic ID "$topic_id" which is where I think the problem is located.
thanks again.
Joe
0 Replies
 
 

Related Topics

SEO - Going from 0 PR on up - Discussion by jespah
How Rich Pins work ??? - Question by OnceUponAtime
Need a bit of Google advice - Question by bible quizzer
Google Indexing Issue - Question by brainstudioz
Bing Search results - Discussion by iankyra
What is best way for Off-Page seo in 2017? - Question by honesttravel1
 
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 7.38 seconds on 11/28/2024 at 04:50:14