9
   

phpBB Search Engine Optimization - Sessions, static ( SEO )

 
 
Craven de Kere
 
  1  
Wed 4 Aug, 2004 03:53 pm
Make sure the switches are on their own lines.
0 Replies
 
FoulFoot
 
  1  
Wed 4 Aug, 2004 09:54 pm
They are.
0 Replies
 
saghir69
 
  1  
Thu 5 Aug, 2004 01:40 pm
Craven de Kere wrote:
saghir69 wrote:
any ideas?


Yes, put it in the right place, looks like you have already figured it out.


yeah i've worked it out! thanks !
0 Replies
 
calicoguy
 
  1  
Fri 6 Aug, 2004 11:54 am
I'm having the following issue with part of the hack. I'm running the fisubsilversh template and cannot find the following lines of code in viewtopic_body.tpl

Code:#
#-----[ FIND ]------------------------------------------
#

<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>

#
#-----[ REPLACE WITH ]------------------------------------
#
<td align="right" valign="top" nowrap="nowrap">
<!-- BEGIN switch_user_logged_in -->
{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span>
<!-- END switch_user_logged_in -->
</td>

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

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

#
#-----[ REPLACE WITH ]------------------------------------
#

<!-- 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 -->


This is what my viewtopic_body.tpl looks like...

Code:<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="maintitle" valign="top"> <a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></td>
<td class="gensmall" align="right" valign="bottom"><a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><br />
<strong>{S_WATCH_TOPIC}</strong></td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td nowrap="nowrap"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" /></a><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{L_POST_REPLY_TOPIC}" hspace="8" title="{L_POST_REPLY_TOPIC}" /></a></td>
<td width="100%" class="nav"><a href="{U_INDEX}">{L_INDEX}</a> » <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
<td nowrap="nowrap" class="nav">{PAGINATION}</td>
</tr>
</table>
{POLL_DISPLAY}
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<th width="150" height="28">{L_AUTHOR}</th>
<th width="100%">{L_MESSAGE}</th>
</tr>
<!-- BEGIN postrow -->
<tr>
<td valign="top" align=center class="{postrow.ROW_CLASS}" rowspan="2"><span class="name"><a name="{postrow.U_POST_ID}" id="{postrow.U_POST_ID}"></a><strong>{postrow.POSTER_NAME}</strong></span><br />
<span class="postdetails">
{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />
{postrow.POSTER_JOINED}<br />
<a href="search.php?search_author={postrow.POSTER_NAME}" class="postdetails">{postrow.POSTER_POSTS}</a><br />
{postrow.POSTER_FROM}</span><br />
<img src="images/spacer.gif" alt="" width="150" height="1" />
</td>
<td class="{postrow.ROW_CLASS}" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="postdetails"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" /></a>{L_POSTED}:
{postrow.POST_DATE}</td>
<td align="right" valign="top" nowrap="nowrap">{postrow.QUOTE_IMG}{postrow.EDIT_IMG}<a href="#top"><img src="templates/fisubsilversh/images/icon_up.gif" alt="{L_BACK_TO_TOP}" width="16" height="18" title="{L_BACK_TO_TOP}" class="imgtopic" /></a>{postrow.DELETE_IMG}{postrow.IP_IMG}</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" class="postbody">
<hr />
{postrow.MESSAGE}</td>
</tr>
<tr>
<td height="40" valign="bottom" class="genmed">{postrow.SIGNATURE}<span class="postdetails">{postrow.EDITED_MESSAGE}</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="bottom" nowrap="nowrap" class="{postrow.ROW_CLASS}">{postrow.PROFILE_IMG}{postrow.PM_IMG}{postrow.EMAIL_IMG}{postrow.WWW_IMG}{postrow.AIM_IMG}{postrow.YIM_IMG}{postrow.MSN_IMG}{postrow.ICQ_IMG}</td>
</tr>
<tr>
<td class="spacerow" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<!-- END postrow -->
<tr>
<td colspan="2" align="center" class="cat">
<form method="post" action="{S_POST_DAYS_ACTION}">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="gensmall">{L_DISPLAY_POSTS}:  </td>
<td>{S_SELECT_POST_DAYS} </td>
<td>{S_SELECT_POST_ORDER} </td>
<td><input type="submit" value="{L_GO}" class="catbutton" name="submit" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td nowrap="nowrap"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" /></a><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{L_POST_REPLY_TOPIC}" hspace="8" title="{L_POST_REPLY_TOPIC}" /></a></td>
<td width="100%" class="nav"><a href="{U_INDEX}">{L_INDEX}</a> » <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
<td nowrap="nowrap" class="nav">{PAGINATION}</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><br />
<br />
{JUMPBOX}<br />
<br />
{S_TOPIC_ADMIN}</td>
<td class="gensmall" align="right" valign="top"><strong>{S_WATCH_TOPIC}</strong><br />
<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><br />
{S_AUTH_LIST}</td>
</tr>
</table>


Is there anything I can do to make this work? Sorry fot the long post.
0 Replies
 
Craven de Kere
 
  1  
Fri 6 Aug, 2004 04:34 pm
Hi, here are custom find/replace codes for your template:


Find:

Code:{JUMPBOX}<br />



Replace:

Code:<!-- BEGIN switch_user_logged_in -->
{JUMPBOX}<br />
<!-- END switch_user_logged_in -->



Find:

Code:<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><br />
{S_AUTH_LIST}



Replace:

Code:<!-- BEGIN switch_user_logged_in -->
<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><br />
{S_AUTH_LIST}
<!-- END switch_user_logged_in -->


Regards
0 Replies
 
calicoguy
 
  1  
Fri 6 Aug, 2004 09:01 pm
Worked like a charm thanks. If I could I'd like to bother you with one more question. Don't you just love n00bs?

I've noticed on your site that when you are not logged in...the links for memberlist/usergroups/profiles...etc are not visable. What can I edit to get the same result.

Again thanks for your help!!!
0 Replies
 
Craven de Kere
 
  1  
Fri 6 Aug, 2004 10:25 pm
Basically you just need to wrap them with the user logged in switches.
0 Replies
 
Joe Belmaati
 
  1  
Sat 7 Aug, 2004 02:56 am
Craven,
I have user_logged_in switches in many places in my template files, and I was wondering whether you have any experience with how much a switch slows down the page load speed..?
0 Replies
 
cellardoor
 
  1  
Sat 7 Aug, 2004 07:02 pm
Hi, thanks for sharing the hack. It took me a while but I got it up and running.


I have 1 question if you do not mind.

I wondered what was the use of this bit.


Quote:


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

//
// Find which forums are visible for this user
//

#
#-----[ BEFORE, ADD ]------------------------------------
#

/*/




Thanks!
0 Replies
 
ckacey
 
  1  
Sat 7 Aug, 2004 07:49 pm
will this work with the viewtopic I asked about earlier? or do you need me to repost it? or do I have to fend for my self (say it aint so joe Crying or Very sad)

Craven de Kere wrote:
Hi, here are custom find/replace codes for your template:


Find:

Code:{JUMPBOX}<br />



Replace:

Code:<!-- BEGIN switch_user_logged_in -->
{JUMPBOX}<br />
<!-- END switch_user_logged_in -->



Find:

Code:<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><br />
{S_AUTH_LIST}



Replace:

Code:<!-- BEGIN switch_user_logged_in -->
<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><br />
{S_AUTH_LIST}
<!-- END switch_user_logged_in -->


Regards
0 Replies
 
Craven de Kere
 
  1  
Sun 8 Aug, 2004 03:07 am
Joe Belmaati wrote:
Craven,
I have user_logged_in switches in many places in my template files, and I was wondering whether you have any experience with how much a switch slows down the page load speed..?


I don't believe it should make a significant difference, but then again, I've not ever gone really wild with them.

You can test it with some page generation tests.

cellardoor wrote:

I wondered what was the use of this bit.


The addition is a beginning of a code comment and the subsequent change adds the ending comment.

That makes all code between them commented out.

ckacey wrote:
will this work with the viewtopic I asked about earlier? or do you need me to repost it? or do I have to fend for my self (say it aint so joe Crying or Very sad)


What I posted was custom find/replace instructions for a specific template.

I looked up your posts and the only thing I think is unresolved is likely just an error on your part in the mod application (like your earlier issue, which was resolved simply by following the instructions more carefully).

Thing is, I think it may well be wholly unrelated to this mod, and may be an error you made on another one. The lines referenced in the error message are not for any code that this mod deals with.
0 Replies
 
cellardoor
 
  1  
Sun 8 Aug, 2004 04:57 am
Thanks very much for your reply craven.

Excuse me though, shouldn't this be /* and */? When I use /*/ it comments out everything after it even if I put in a subsequent /*/???


My chunk of code now looks like this....

Quote:


/*
//
// Obtain list of moderators of each forum
// First users, then groups ... broken into two queries
//
$sql = "SELECT aa.forum_id, u.user_id, u.username
FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g, " . USERS_TABLE . " u
WHERE aa.auth_mod = " . TRUE . "
AND g.group_single_user = 1
AND ug.group_id = aa.group_id
AND g.group_id = aa.group_id
AND u.user_id = ug.user_id
GROUP BY u.user_id, u.username, aa.forum_id
ORDER BY aa.forum_id, u.user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql);
}

$forum_moderators = array();
while( $row = $db->sql_fetchrow($result) )
{
$forum_moderators[$row['forum_id']][] = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '">' . $row['username'] . '</a>';
}
$db->sql_freeresult($result);

$sql = "SELECT aa.forum_id, g.group_id, g.group_name
FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g
WHERE aa.auth_mod = " . TRUE . "
AND g.group_single_user = 0
AND g.group_type <> " . GROUP_HIDDEN . "
AND ug.group_id = aa.group_id
AND g.group_id = aa.group_id
GROUP BY g.group_id, g.group_name, aa.forum_id
ORDER BY aa.forum_id, g.group_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql);
}

while( $row = $db->sql_fetchrow($result) )
{
$forum_moderators[$row['forum_id']][] = '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=" . $row['group_id']) . '">' . $row['group_name'] . '</a>';
}
$db->sql_freeresult($result);
*/



Thank you Craven.
0 Replies
 
Craven de Kere
 
  1  
Sun 8 Aug, 2004 05:11 am
cellardoor wrote:

Excuse me though, shouldn't this be /* and */?


It makes no difference. The way it's currently being used is that way merely because of John Abela's choice in style (index.php mod listing removal is his code).

In this thread I posted code to do it a different way, and make the mod listing available for logged in users.

A future version will incorporate it.

Quote:
When I use /*/ it comments out everything after it even if I put in a subsequent /*/???


No, that's why there are two of them. It's confusing but the phpBB mod validation team demanded that I do it that way (before, adds) instead of the way I had had it listed (which was a simple replace of the whole block of code with a commented out block).

Ultimately I gave up on getting it validated with them, as I don't have the time to make all the changes they mandate and quite frankly if people don't find it that's fine with me, I just make it available in case people want it and do find it.
0 Replies
 
azz
 
  1  
Sun 8 Aug, 2004 07:13 am
Hi CDK

Would this:
Code:
/forums/profile*.php$


in the robots.txt stop all of the profiles being indexed? If not would you please let me know what to add? Thanks!
0 Replies
 
Craven de Kere
 
  1  
Sun 8 Aug, 2004 07:19 am
Just use:

/forums/profile.php$
0 Replies
 
azz
 
  1  
Sun 8 Aug, 2004 09:59 am
Thanks!
0 Replies
 
Joe Belmaati
 
  1  
Tue 10 Aug, 2004 12:52 am
Craven,
thank you very much for your reply. As for getting this mod validated, my personal belief is that this mod should be part of the standard phpBB distribution (along with the extreme styles mod), perhaps with an option to turn mod_rewrite off in the ACP for people without mod_rewrite installed on their server.

Again, before I had it installed the bots would sniff around the front door, and then leave.

Very Happy
0 Replies
 
Craven de Kere
 
  1  
Tue 10 Aug, 2004 03:41 am
Joe Belmaati wrote:
As for getting this mod validated, my personal belief is that this mod should be part of the standard phpBB distribution (along with the extreme styles mod), perhaps with an option to turn mod_rewrite off in the ACP for people without mod_rewrite installed on their server.

Again, before I had it installed the bots would sniff around the front door, and then leave.

Very Happy


The extreme styles mod, if it's the one I have in mind, will be aped somewhat by the phpBB group. They have indicated improvements on their templating engine and probably plan to address speed concerns. I just don't know what extent they will be able to improve the speed.

As to SEO, they plan to incorporate a different approach to it with 2.2.X, it's not that bad but IMO is not optimal.

Basically, they will include support for session control for specific user agents.

So you would be able to determine that user agent x (e.g. the Googlebot) will be able to browse without URL sessions.

I dislike the approach, as it requires spiders to be targeted and not a blanket invidation to spiders that I currently favor.

In the future spiders may stop using distinctive agent names to combat cloaking, and rely exclusively on robot.txt for their rules to obey.

If that kind of thing happens, then the method phpBB decides to use will no longer work.

Furthermore, the addressing of sessions, while important, is not as comprehensive a solution as I would like.

The good news is that in my new job (started yesterday) I will be working with SEO full time, and fortunately the company wants me to develop a user-community in addition to all the other sites.

I'll choose phpBB, of course, and will then have some time to improve my mods, and publish them.
0 Replies
 
Joe Belmaati
 
  1  
Tue 10 Aug, 2004 12:47 pm
I will be glued to this thread......BTW, are you relying solely on your server-log to monitor bot-traffic, or do you have a bot manager installed? I am using a MOD call "MANAGE BOTS" and it seems to be working ok..
0 Replies
 
ckacey
 
  1  
Tue 10 Aug, 2004 02:13 pm
I concur this is a great mod, I haven't even finished installing it and my server is reporting that Google and MSN have finally gone further into my site than the front portal page Very Happy, though they [google] did de-list me (lets hope that's temporary I know it wasn't something I did because they still display the adsense ads)
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 0.07 seconds on 11/26/2024 at 08:42:23