0
   

phpBB Search Engine Optimization - Sessions, static ( SEO )

 
 
Post: # 932,490
View Profile aalishan
 
  1  
Reply Sun 3 Oct, 2004 08:40 am
Thanks Craven,
I created a new topic http://www.able2know.com/forums/viewtopic.php?p=932489#932489 .
0 Replies
 
Post: # 933,889
View Profile ForLife
 
  1  
Reply Mon 4 Oct, 2004 08:16 am
HTACCESS
hello,

I've installed the following - stey by step
## MOD Title: Able2Know.com Search Engine Optimization 2.0.0
and
## MOD Title: phpBB static URLs mod_rewrite 1.0.0

Couple things I've experience.

#1. If I put the .htaccess file on the server, uploaded using ASCII, the whole site gets the "page not found" so the site would not even come up. If I remove the .htaccess, the site comes up fine.

#2. I can click on the forum categories, however, when I click on the forum, I get a "page not found" example: /forums/forum-3.html ... strange thing is, if I'm logged in as ADMIN, I can browse the pages, however, it's in DYNAMIC links...then I log out, go the the links again, then behold, I get the .html error pages again Smile

I don't know what in the world I did wrong here, any suggestions?

Thanks.
0 Replies
 
  1  
Reply Mon 4 Oct, 2004 10:52 pm
1) When you are logged in (as any user) the links are not static. This is by intent.

2) Your problem is either a) your server configuration precludes the re-writing altogether or b) you applied the .htaccess code incorrectly, such as by putting it in the wrong place.

Ask your host if mod_rewrite is available, and if it is make sure you do it right.

Personally, I suspect you might not be allowed to use mod_rewrite.
0 Replies
 
Post: # 935,770
View Profile Abbat
 
  1  
Reply Tue 5 Oct, 2004 06:48 am
Need help
The thing is, that after installing phpBB static URLs mod_rewrite 1.0.0, almost everething is ok, but every time, then i open new browser window & type an adress of my forum, at index page i see something like
forum-12.html&sid=5eaa3a1069a68172a0e1f1a43b3d6a6a, why this sid is added to forum-12.html and other forum-[numder] links at index page i dont know. Please help me to fix it.

P.S. I need to say, that if i make CTRL+F5, at index page, where first was something like forum-12.html&sid=5eaa3a1069a68172a0e1f1a43b3d6a6a, all turns ok, and all links are as they should be - forum-1.html, forum-2.html... etc.

Arrow Best regards, Abbat
0 Replies
 
Post: # 935,787
View Profile ForLife
 
  1  
Reply Tue 5 Oct, 2004 06:52 am
Craven,

With Regards to:
2) Your problem is either a) your server configuration precludes the re-writing altogether or b) you applied the .htaccess code incorrectly, such as by putting it in the wrong place.

Ask your host if mod_rewrite is available, and if it is make sure you do it right.

Personally, I suspect you might not be allowed to use mod_rewrite.


How would I know if mod_rewrite is available? Is there some test that I can do because the hosting company I'm with, doesn't even have a clue what htaccess is, much less about mod_rewrite. They more ignorant of this than I am Smile

Do you have a "step by step" procedure for the mod_rewrite?

Thanks.
0 Replies
 
  1  
Reply Tue 5 Oct, 2004 07:48 am
Put this in a file named phpinfo.php

Code:<?php

phpinfo();

?>


upload it to your root folder and browse to it. You'll get a ton of info. Do a search on the page for mod_rewrite and it'll either say on or off.
0 Replies
 
Post: # 935,911
View Profile ForLife
 
  1  
Reply Tue 5 Oct, 2004 07:57 am
Hello Joe,

Thanks for the help, I could not find mod_rewrite anywhere.

I found a bunch of other stuff, including:
mod_php4, apache_ssl, mod_setenvif, mod_so, mod_auth_dbm, mod_auth, mod_access, mod_alias, mod_userdir, mod_actions, mod_imap, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_mime, mod_log_referer, mod_log_agent, mod_log_config, mod_env, http_core

I don't know what I need to do to get the mod_rewrite to work or even how to do it.

Thanks.
0 Replies
 
Post: # 935,946
View Profile ForLife
 
  1  
Reply Tue 5 Oct, 2004 08:27 am
Hello,

I figured it out. I had to do a few steps, but basically had to go into the server and remove the # in front of:
#LoadModule rewrite_module libexec/mod_rewrite.so

After that, I uploaded the .htacess file into the directory where I have the forum. If the .htaccess file is outside that directory, it will not work.

It's working like a charm Smile
0 Replies
 
  1  
Reply Tue 5 Oct, 2004 08:36 am
Your host gave you access to their httpd-config file??!!
0 Replies
 
Post: # 935,974
View Profile ForLife
 
  1  
Reply Tue 5 Oct, 2004 08:42 am
Hi Joe,

Yep, I didn't bother saying anything Smile

Like I said, they don't know what the heck their doing over there.
0 Replies
 
  1  
Reply Tue 5 Oct, 2004 01:53 pm
Re: Need help
Abbat wrote:
The thing is, that after installing phpBB static URLs mod_rewrite 1.0.0, almost everething is ok, but every time, then i open new browser window & type an adress of my forum, at index page i see something like
forum-12.html&sid=5eaa3a1069a68172a0e1f1a43b3d6a6a, why this sid is added to forum-12.html and other forum-[numder] links at index page i dont know. Please help me to fix it.

P.S. I need to say, that if i make CTRL+F5, at index page, where first was something like forum-12.html&sid=5eaa3a1069a68172a0e1f1a43b3d6a6a, all turns ok, and all links are as they should be - forum-1.html, forum-2.html... etc.

Arrow Best regards, Abbat


Install the SEO mod, and the SIDs will disappear for guests.
0 Replies
 
  1  
Reply Tue 5 Oct, 2004 11:33 pm
Can anyone do this for me for a fee? SEO for the forum.
0 Replies
 
Post: # 937,583
View Profile Abbat
 
  1  
Reply Wed 6 Oct, 2004 04:27 am
Craven de Kere, thanks :wink:
0 Replies
 
  1  
Reply Sat 9 Oct, 2004 11:19 pm
striperdawg wrote:
Can anyone do this for me for a fee? SEO for the forum.


I usually do this for a fee, but have been pretty busy recently.

Unless you want to wait a long time, I suggest trying to find someone at the phpbb site. In any case, they'd probably be cheaper.
0 Replies
 
Post: # 945,430
View Profile LocanT
 
  1  
Reply Sun 10 Oct, 2004 09:56 am
I have not been too successfull at getting google to index the site.(even with a decent number of links). It has started to- though it is listing them as (url left off)

url etc com/forum/post-1234.html
with no topic title or info form the post

However many others have indexed! including yahoo and with the titles and some post info. In these I now rank well for competetive search terms in them, so a big thanks Craven!

Couple of questions when you have a chance please.

I noticed that I got indexed by the likes of yahoo and others after doing a few manual pages with all the topics titles and links to them on one of the forums on a a A-Z type html page. keeping the links on each page down to about 50 or so.

Is this in your opinion worth doing for all the forums.

It is a bit of a pain to do(but not impossible at this early stage) and I would not want to do it long term, but I figure that if I get all the topics up and then do a last five posts using fetch all or like then it would be automated from there.

The other question was the fetch all you use here

How do you get it to read the html, I tried it but it reads and produces php links.

I know your very busy but any help would be appreciated.
0 Replies
 
Post: # 953,121
View Profile celcom
 
  1  
Reply Thu 14 Oct, 2004 02:00 am
1. rylforum dot com /forum-7.html
2. lionforum dot com /forum-1.html

both using the same seo script (phpBB) why the first one gv the below result and the 2nd didn't.

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

Edit (Moderator): Link removed.
0 Replies
 
Post: # 953,441
View Profile malneedi
 
  1  
Reply Thu 14 Oct, 2004 08:02 am
Not showing .html extension
Hi,

First of all let me thank you for providing this useful mod. I made all the changes mentioned in the MOD , but I'm not able to see the topic pages as .html , they are still showing as .php , is there anything that I'm missing. Any help would be greatly appreciated.

Thanks

Suresh.
0 Replies
 
  1  
Reply Thu 14 Oct, 2004 11:50 pm
Not sure if its been done or not & a simple yes or no is all thats needed. I re-wrote parts of this so it only effects how guests view your site. The moving links around, removing links, removing moderators, page titles, etc.. If it has not been done & you want a copy to edit to your taste, let me know & i will gladly send it. Just thought i would let ya know. Thanks.
0 Replies
 
  1  
Reply Thu 14 Oct, 2004 11:58 pm
LocanT wrote:
I have not been too successfull at getting google to index the site.(even with a decent number of links). It has started to- though it is listing them as (url left off)

url etc com/forum/post-1234.html
with no topic title or info form the post


Google does this when they index or spider a page with said link and do not spider said page (for whataver reason, robot exclusion and SSL are common reasons).

Yahoo adds the anchor text they found the link with as the title.

Quote:
I noticed that I got indexed by the likes of yahoo and others after doing a few manual pages with all the topics titles and links to them on one of the forums on a a A-Z type html page. keeping the links on each page down to about 50 or so.

Is this in your opinion worth doing for all the forums.


Not manually, I'll release some code to do this for all the topics automatically when I get the chance.

Quote:
The other question was the fetch all you use here

How do you get it to read the html, I tried it but it reads and produces php links.

I know your very busy but any help would be appreciated.


I just changed it to output html links, I'll release code when I rewrite fetcj (which I plan to shortly).

celcom wrote:
1. rylforum dot com /forum-7.html
2. lionforum dot com /forum-1.html

both using the same seo script (phpBB) why the first one gv the below result and the 2nd didn't.

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.


Sounds like the mod_rewrite code is working on the first but not on the second.

If both are on the same server and both have mod_rewrite access then look into errors you may have made with the .htaccess code.

malneedi wrote:
Hi,

First of all let me thank you for providing this useful mod. I made all the changes mentioned in the MOD , but I'm not able to see the topic pages as .html , they are still showing as .php , is there anything that I'm missing. Any help would be greatly appreciated.

Thanks

Suresh.


The static urls only appear for guests, I bet you were logged in when you tested it.

aUsTiN-Inc wrote:
Not sure if its been done or not & a simple yes or no is all thats needed. I re-wrote parts of this so it only effects how guests view your site. The moving links around, removing links, removing moderators, page titles, etc.. If it has not been done & you want a copy to edit to your taste, let me know & i will gladly send it. Just thought i would let ya know. Thanks.


Feel free to post your code, I'd been thinking about making it a guest only change for many of the feature/link removals and may include code for this in a future version. But in case anyone is interested now your code may help them.
0 Replies
 
  1  
Reply Fri 15 Oct, 2004 12:24 am
I simply modified a fresh install, as alot of boards use custom scripts. So all you have to do is compare this to the original to find the differences. If there are typos etc, sorry, but the board i put it on is heavily modified & i tried to revert the codes back to default before building the new install.

Code:
##############################################################
## MOD Title: Able2Know.com Search Engine Optimization 2.0.0
## MOD Author: Craven de Kere (N/A) http://www.Able2Know.com
## MOD Description: The definitive guide to phpBB SEO
## This mod not only removes session IDs for all search engines and adds static URLs
## but it also includes many other changes that will help increase your search engine
## rankings by reducing pagerank drain and greatly improving keyword relevancy.
## Check http://www.able2know.com/forums/about15132.html
## for the latest version or to get help with this MOD
##
## MOD Version: 2.0.0
##
## Installation Level: (Advanced)
## Installation Time: 15 Minutes
## Files To Edit: index.php, sessions.php, viewforum.php, search.php, viewtopic_body.tpl, overall_header.tpl,
## lang_main.php, index_body.tpl
## Included Files: n/a
##############################################################
## Author Notes:
## Use this MOD on phpBB versions 2.0.6+ Lower versions will have some differences so see the help thread.
## This MOD will make the following changes.
## 1) Remove the "View Latest Post" icon and link on index.php (Craven de Kere)
## 2) Make the date of the last post link to the last post like the icon did on index.php (Craven de Kere)
## 3) Unlink the username of the last post on index.php (Craven de Kere)
## 4) Remove listing of moderators on index.php (AbelaJohnB)
## 5) Remove session IDs for all search engine spiders (Darlantan)
## 6) Unlink the username of the last post on viewforum.php (Craven de Kere)
## 7) Remove the "View Latest Post" icon and link on viewforum.php (Craven de Kere)
## 8) Make the date of the last post link to the last post like the icon did on viewforum.php (Craven de Kere)
## 9) Unlink the author username on viewforum.php (Craven de Kere)
## 10) Remove signatures for guest views (Craven de Kere)
## 11) Remove avatars for guest views (Craven de Kere)
## 12) Remove personal info (Profile, IM, PM, AIM, etc) for guest views (darbyrob)
## 13) Unlink the username of the last post on search.php (Craven de Kere)
## 14) Remove the "View Latest Post" icon and link on search.php (Craven de Kere)
## 15) Make the date of the last post link to the last post like the icon did on search.php (Craven de Kere)
## 16) Unlink the author username on search.php (Craven de Kere)
## 17) Link the user post count to a search of the user's posts (Craven de Kere)
## 18) Make Auth list on viewtopic.php invisible to search engines (Craven de Kere)
## 19) Make the previous and next topic links invisible to search engines (Craven de Kere)
## 20) Removes the sitename from page titles, improving keyword weight (Craven de Kere)
## 21) Change the page title of the index page to a hardcoded site name because of the site name removal (Craven de Kere)
## 22) Hide forum stats from guests and spiders (Craven de Kere)
## 23) Static URLs with mod_rewrite, see the included file (Craven de Kere)
##
## For an additional tutorial on preventing IP addresses from being logged see:
## http://www.able2know.com/forums/about22586.html
##
##############################################################
## MOD History:
##
## 2004-04-10 - Version 2.0.0
## - Introduced mod_rewrite capabilities.
## - Changed Index name to site name.
## - Hide viewonline stats on index page from guests.
## - Pre-modded files removed.
## 2003-11-24 - Version 1.0.2
## - Corrected typos and created pre-modded files
## 2003-11-17 - Version 1.0.1
## - Changed the way some lines are commented out
## - Changed the page titles on viewtopic.php and viewforum.php
##
## 2003-11-15 - Version 1.0.0
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#

index.php

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

$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>';

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

if ($userdata['user_id'] != ANONYMOUS)
{
$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>';
}

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

'<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ';

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

( ($userdata['user_id'] == ANONYMOUS) ? $forum_data[$j]['username'] : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '">' . $forum_data[$j]['username'] . '</a> ');

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

$last_post = $last_post_time . '<br />';

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

($userdata['user_id'] == ANONYMOUS) ? $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 />' : $last_post = $last_post_time . '<br />';
#
#-----[ FIND ]------------------------------------------
#

//
// Obtain list of moderators of each forum
// First users, then groups ... broken into two queries
//

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

if($userdata['user_id'] != ANONYMOUS)
{

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

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

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

}

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

'L_MODERATOR' => $lang['Moderators'],

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

'L_MODERATOR' => (!$userdata['user_id'] == ANONYMOUS) ? '' : $lang['Moderators'],

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

if ( count($forum_moderators[$forum_id]) > 0 )
{
$l_moderators = ( count($forum_moderators[$forum_id]) == 1 ) ? $lang['Moderator'] : $lang['Moderators'];
$moderator_list = implode(', ', $forum_moderators[$forum_id]);
}
else
{
$l_moderators = ' ';
$moderator_list = ' ';
}

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

if ($userdata['user_id'] != ANONYMOUS)
{
if ( count($forum_moderators[$forum_id]) > 0 )
{
$l_moderators = ( count($forum_moderators[$forum_id]) == 1 ) ? $lang['Moderator'] : $lang['Moderators'];
$moderator_list = implode(', ', $forum_moderators[$forum_id]);
}
else
{
$l_moderators = ' ';
$moderator_list = ' ';
}
}

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

'MODERATORS' => $moderator_list,

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

'MODERATORS' => ($userdata['user_id'] == ANONYMOUS) ? '' : $moderator_list,

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

'L_MODERATOR' => $l_moderators,

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

'L_MODERATOR' => ($userdata['user_id'] == ANONYMOUS) ? '' : $l_moderators,

#
#-----[ OPEN ]------------------------------------------
#

includes/sessions.php

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

$SID = 'sid=' . $session_id;

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

if ( $userdata['session_user_id'] != ANONYMOUS ){
$SID = 'sid=' . $session_id;
} else {
$SID = '';
}

#
#-----[ OPEN ]------------------------------------------
#

viewforum.php

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

$page_title = $lang['View_forum'] . ' - ' . $forum_row['forum_name'];

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

($userdata['user_id'] != ANONYMOUS) ? $page_title = $lang['View_forum'] . ' - ' . $forum_row['forum_name'] : $page_title = $forum_row['forum_name'];

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

$last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $topic_rowset[$i]['id2']) . '">' . $topic_rowset[$i]['user2'] . '</a>';

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

if ($userdata['user_id'] != ANONYMOUS)
{
$last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $topic_rowset[$i]['id2']) . '">' . $topic_rowset[$i]['user2'] . '</a>';
}
else
{
$last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : $topic_rowset[$i]['user2'];
}

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

$last_post_url = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $topic_rowset[$i]['topic_last_post_id']) . '#' . $topic_rowset[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>';

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

if ($userdata['user_id'] != ANONYMOUS)
{
$last_post_url = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $topic_rowset[$i]['topic_last_post_id']) . '#' . $topic_rowset[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>';
}
#
#-----[ FIND ]------------------------------------------
#

$last_post_time = create_date($board_config['default_dateformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']);

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

if ($userdata['user_id'] != ANONYMOUS)
{
$last_post_time = create_date($board_config['default_dateformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']);
}
else
{
$last_post_time = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $topic_rowset[$i]['topic_last_post_id']) . '#' . $topic_rowset[$i]['topic_last_post_id'] . '" title="' . $lang['View_latest_post'] . '">' . create_date($board_config['default_dateformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']) . '</a>';
}

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

$topic_author = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $topic_rowset[$i]['user_id']) . '">' : '';
$topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? $topic_rowset[$i]['username'] : ( ( $topic_rowset[$i]['post_username'] != '' ) ? $topic_rowset[$i]['post_username'] : $lang['Guest'] );

$topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : '';

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

if ($userdata['user_id'] != ANONYMOUS)
{
$topic_author = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $topic_rowset[$i]['user_id']) . '">' : '';
$topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? $topic_rowset[$i]['username'] : ( ( $topic_rowset[$i]['post_username'] != '' ) ? $topic_rowset[$i]['post_username'] : $lang['Guest'] );

$topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : '';
}
else
{
$topic_author = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '' : '';
$topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? $topic_rowset[$i]['username'] : ( ( $topic_rowset[$i]['post_username'] != '' ) ? $topic_rowset[$i]['post_username'] : $lang['Guest'] );

$topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '' : '';
}

#
#-----[ OPEN ]------------------------------------------
#

viewtopic.php

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

$page_title = $lang['View_topic'] .' - ' . $topic_title;

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

($userdata['user_id'] != ANONYMOUS) ? $page_title = $lang['View_topic'] .' - ' . $topic_title : $page_title = $topic_title;


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

$user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] ) ? $postrow[$i]['user_sig'] : '';


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

if ($userdata['user_id'] != ANONYMOUS)
{
$user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] ) ? $postrow[$i]['user_sig'] : '';
}
else
{
$user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] && $userdata['session_logged_in'] ) ? $postrow[$i]['user_sig'] : '';
}

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

if ( $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] )

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

($userdata['user_id'] != ANONYMOUS) ? $seo_on = 1 : $seo_on = '';
if ( $seo_on )

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

if ( $poster_id != ANONYMOUS )
{
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");

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

if ( $poster_id != ANONYMOUS && $userdata['session_logged_in'] )
{
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");

#
#-----[ OPEN ]------------------------------------------
#

search.php

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

$last_post_url = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['topic_last_post_id']) . '#' . $searchset[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>';

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

if ($userdata['user_id'] != ANONYMOUS)
{
$last_post_url = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['topic_last_post_id']) . '#' . $searchset[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>';
}

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

$last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $searchset[$i]['id2']) . '">' . $searchset[$i]['user2'] . '</a>';

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

if ($userdata['user_id'] != ANONYMOUS)
{
$last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $searchset[$i]['id2']) . '">' . $searchset[$i]['user2'] . '</a>';
}
else
{
$last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : $searchset[$i]['user2'];
}

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

$last_post_time = create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']);

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

if ($userdata['user_id'] != ANONYMOUS)
{
$last_post_time = create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']);
}
else
{
$last_post_time = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['topic_last_post_id']) . '#' . $searchset[$i]['topic_last_post_id'] . '">'. create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']) . '</a>';
}

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

$topic_author = ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $searchset[$i]['user_id']) . '">' : '';
$topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? $searchset[$i]['username'] : ( ( $searchset[$i]['post_username'] != '' ) ? $searchset[$i]['post_username'] : $lang['Guest'] );

$topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : '';
#
#-----[ REPLACE WITH ]------------------------------------
#

if ($userdata['user_id'] != ANONYMOUS)
{
$topic_author = ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $searchset[$i]['user_id']) . '">' : '';
$topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? $searchset[$i]['username'] : ( ( $searchset[$i]['post_username'] != '' ) ? $searchset[$i]['post_username'] : $lang['Guest'] );

$topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : '';
}
else
{
$topic_author = ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '' : '';
$topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? $searchset[$i]['username'] : ( ( $searchset[$i]['post_username'] != '' ) ? $searchset[$i]['post_username'] : $lang['Guest'] );

$topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '' : '';
}

#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/viewtopic_body.tpl

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

{postrow.POSTER_POSTS}

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

<a href="search.php?search_author={postrow.POSTER_NAME}" class="postdetails">{postrow.POSTER_POSTS}</a>

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

#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/overall_header.tpl

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

<title>{SITENAME} :: {PAGE_TITLE}</title>

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

<title>{PAGE_TITLE}</title>

#
#-----[ OPEN ]------------------------------------------
#

/language/lang_english/lang_main.php

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

$lang['Index'] = 'Index';

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

$lang['Index'] = 'YOUR SITE NAME';

#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/index_body.tpl

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

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
</td>
</tr>
<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
</table>

<table width="100%" cellpadding="1" cellspacing="1" border="0">
<tr>
<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>

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

<!-- BEGIN switch_user_logged_in -->
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
</td>
</tr>
<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
</table>

<table width="100%" cellpadding="1" cellspacing="1" border="0">
<tr>
<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>
<!-- END switch_user_logged_in -->

# Some have asked to be able to donate to show support for this free mod.
# This last change is OPTIONAL and adds a link to your forum footer to show support.
# You are perfectly free to use this code without the link.

#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/overall_footer.tpl

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

Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a>

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

<a href="http://www.able2know.com/" target="_blank" class="copyright">Ask an Expert</a>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
0 Replies
 
 

Related Topics

Need a bit of Google advice - Question by bible quizzer
using the knowledge base mod - Discussion by khisanthax
A2K has gone static..cool.. - Discussion by Monger
benefits from sub-domains - Discussion by khisanthax
search engines and categories? - Discussion by khisanthax
phpBB Search Engine Optimization - Discussion by Etherfast
SEO Mod + PHPBB 2.0.10 index file - Discussion by coeus
Help-SEO-Affiliates - Discussion by Exploitx
how to use allinanchor? - Discussion by khisanthax
 
Copyright © 2009 Horizontal Verticals :: Page generated in 0.34 seconds on 11/08/2009 at 05:38:31 Top End