how to make it like this demo http://phpbb3.phpbb-seo.net

phpBB SEO Premod for phpBB3 support forum.
This premodded version of phpBB3 includes the three different type of URL rewriting for phpBB3 by phpBB SEO. It comes with several other Search Engine Optimization mods installed.

Moderator: Moderators

Postby SeO » Thu Jan 08, 2009 1:03 pm

Update your SEO url mod to 0.4.8 and the .htaccess will generate the proper rewriterules ;)
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Advertisement

ok.. i will try to update

Postby adikwok » Thu Jan 08, 2009 1:36 pm

Thanks for your reply Seo
i will try to update to adv mod rewrite 0.4.8

if i got problem.. please help ..

regards,

adi kwok
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

my topic can not open.. after i install update adv mod 0.4.8

Postby adikwok » Fri Jan 09, 2009 6:03 am

dear sirs,..

please help..

i can not open any topic in my forum after i updated to adv mod 0.4.8

there is this message below :

Fatal error: Call to undefined method phpbb_seo::drop_sid() in /home/forumlow/public_html/lowongankerja/viewtopic.php on line 681

---------------------

how to make it right sir..?

and the "news" "site map" icon.. still can not be opened either

really need your guidance..

thanks and regards,

adi kwok
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

i can not find the edit code

Postby adikwok » Fri Jan 09, 2009 6:24 am

dear sirs..

how to change the must edit code.. if i can not find the whole code that must be edited like this below :

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

includes/functions_content.php

#
#-----[ FIND ]------------------------------------------
# NOTE : This part consists in removing the old code in get_username_string()

$profile_url = ($custom_profile_url !== false) ? $custom_profile_url . '&u=' . (int) $user_id : str_replace('={USER_ID}', '=' . (int) $user_id, $_base_profile_url);
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->set_user_url( strip_tags($username), $user_id );
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ REPLACE WITH ]------------------------------------------
# NOTE : This part consists in removing the old code in get_username_string()

$profile_url = ($custom_profile_url !== false) ? $custom_profile_url . '&u=' . (int) $user_id : str_replace('={USER_ID}', '=' . (int) $user_id, $_base_profile_url);

------------------------------------------------------------------------


#
#-----[ FIND ]------------------------------------------
# NOTE : This part consists in adding the new code in get_username_string()

if (empty($_base_profile_url))
{
$_base_profile_url = append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&u={USER_ID}');
}
$profile_url = ($custom_profile_url !== false) ? $custom_profile_url . '&u=' . (int) $user_id : str_replace('={USER_ID}', '=' . (int) $user_id, $_base_profile_url);

#
#-----[ REPLACE WITH ]------------------------------------------
# NOTE : This part consists in adding the new code in get_username_string()

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
/*if (empty($_base_profile_url))
{
$_base_profile_url = append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&u={USER_ID}');
}
$profile_url = ($custom_profile_url !== false) ? $custom_profile_url . '&u=' . (int) $user_id : str_replace('={USER_ID}', '=' . (int) $user_id, $_base_profile_url);*/
global $phpbb_seo;
$phpbb_seo->set_user_url( strip_tags($username), $user_id );
$profile_url = ($custom_profile_url !== false) ? $custom_profile_url . '&u=' . (int) $user_id : append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&u=' . (int) $user_id);
// www.phpBB-SEO.com SEO TOOLKIT END
-------------------------------------------------------------------


i can not find the complete code.. only a part of that code above..
how to replace.. and where to start to replace the code.. if i only find a part of that code above..


thank you and regards,

adi kwok
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

Postby dcz » Fri Jan 09, 2009 10:15 am

There are only very few edits in includes/functions_content.php and only concerns the get_username_string function, so the easiest way to make sure you have the required code would be to a) put bakc the original get_username_string function's code (taken from a vanilla phpBB file) and b) install the new code to add, which is for 0.4.8 :
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#

includes/functions_content.php

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

      if (empty($_base_profile_url))
      {
         $_base_profile_url = append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&u={USER_ID}');
      }
      $profile_url = ($custom_profile_url !== false) ? $custom_profile_url . '&u=' . (int) $user_id : str_replace('={USER_ID}', '=' . (int) $user_id, $_base_profile_url);

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

      // www.phpBB-SEO.com SEO TOOLKIT BEGIN
      /*if (empty($_base_profile_url))
      {
         $_base_profile_url = append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&u={USER_ID}');
      }
      $profile_url = ($custom_profile_url !== false) ? $custom_profile_url . '&u=' . (int) $user_id : str_replace('={USER_ID}', '=' . (int) $user_id, $_base_profile_url);*/
      global $phpbb_seo;
      $phpbb_seo->set_user_url( strip_tags($username), $user_id );
      $profile_url = ($custom_profile_url !== false) ? $custom_profile_url . '&u=' . (int) $user_id : append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&u=' . (int) $user_id);
      // www.phpBB-SEO.com SEO TOOLKIT END



++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby adikwok » Fri Jan 09, 2009 10:40 pm

dear dcz.. thank you for your reply..

i dont have vanilla phpbb.. i am using phpbb 3.0.3 prosilver style..
here is some of my get_username_string code :

* @return string A string consisting of what is wanted based on $mode.
*/
function get_username_string($mode, $user_id, $username, $username_colour = '', $guest_username = false, $custom_profile_url = false)
{
global $phpbb_root_path, $phpEx, $user, $auth;
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpbb_seo;
// www.phpBB-SEO.com SEO TOOLKIT END

$profile_url = '';
$username_colour = ($username_colour) ? '#' . $username_colour : '';

if ($guest_username === false)
{
$username = ($username) ? $username : $user->lang['GUEST'];
}
else
{
$username = ($user_id && $user_id != ANONYMOUS) ? $username : ((!empty($guest_username)) ? $guest_username : $user->lang['GUEST']);
}

// Only show the link if not anonymous
if ($mode != 'no_profile' && $user_id && $user_id != ANONYMOUS)
{
// Do not show the link if the user is already logged in but do not have u_viewprofile permissions (relevant for bots mostly).
// For all others the link leads to a login page or the profile.
if ($user->data['user_id'] != ANONYMOUS && !$auth->acl_get('u_viewprofile'))
{
$profile_url = '';
}
else
{ // www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->set_user_url( strip_tags($username), $user_id );
// www.phpBB-SEO.com SEO TOOLKIT END
$profile_url = ($custom_profile_url !== false) ? $custom_profile_url . '&u=' . (int) $user_id : append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&u=' . (int) $user_id);
}
}
else
{
$profile_url = '';
}
---------------------------------------------------------------------------

please give guidance.. on how to make the update work..
and to make "news" and "site map" icon.. after i activated url rewriting in gym sitemaps..

which part of code above that i have to replace ?
or what to do.. if im using prosilver style
do i have to find vanilla phpbb ?

thank you and regards,

adi kwok
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

ps for the above message

Postby adikwok » Sat Jan 10, 2009 2:20 am

dear sirs..

i just realized that i use advance mod rewrite ver. 0.4.4
how to update to 0.4.8 ?

i read the update instruction is for 0.4.6 -> 0.4.8

is it able to update from 0.4.4 -> 0.4.8
using the same update instruction from 0.4.6 -> 0.4.8 ?

thank you sir..

regards,

adi kwok
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

Postby dcz » Sat Jan 10, 2009 9:58 am

Vanilla phpBB means a phpBB with no modification at all.

So you could just grabb the get_username_string function from a vanilla phpBB file and then mod it as if it was the first time installing the seo mod.

Then, about update, you'd rather do it in two steps, it's no that long. You can though update the phpbb_seo_class.php file directly from 0.4.4 to 0.4.8 since there is not code change list ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

could you please help with vanilla phpbb file ?

Postby adikwok » Sun Jan 11, 2009 1:22 pm

i didnt back up first.. before i install adv seo mod..
so now i dont have fresh include/functions_content.php file..
i only have file that had been modified..

could you please guide me.. where to get :

1. includes/function_content.php vanilla phpbb file
2. update instruction from adv seo mod 0.4.4 to adv seo mod 0.4.6 ?

thank you n regards..

adi kwok

ps : i still hope i can implement your seo technique in my web perfectly..
please guide me to be the best..
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

Postby dcz » Tue Jan 13, 2009 9:36 am

1) download the latest phpBB package from phpBB.com and you'll get one ;)

2) download the latest adv mod rewrite from here and you'll get all the update files from the previous version sin the contrib/old/ dir of the archive.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

still news & sitemaps didnt work after activate url rewr

Postby adikwok » Tue Jan 13, 2009 11:29 pm

dear sirs,.

i did this guidance below..

1. upload fresh includes/functions_content.php from vanilla phpbb 3.0.4
modified it as from 0.4.6 to 0.4.8 update instructions

2. modified adv mod rewrite from 0.4.4 => 0.4.6 =>0.4.8

now i can see my topics.. and there was no error message like before..

but.. unfortunately.. same things still happpened when i activate url rewriting from gym_sitemaps acp..

1. news page can not found
2. sitemaps page can not found
3. rss feeds page working ok
4. sitemap working ok..

what to do sir.. ?

here is my .htaccess below.. :

Options +FollowSymlinks
php_value display_errors on
# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

# You may need to un-comment the following line

# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ "http\:\/\/forumlowongan\.com\/lowongankerja" [R=301,L]
#####################################################
# PHPBB SEO REWRITE RULES - SIMPLE
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX
RewriteRule ^lowongankerja/lowongan-kerja\.html$ /lowongankerja/index.php [QSA,L,NC]
# FORUM
RewriteRule ^lowongankerja/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /lowongankerja/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^lowongankerja/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /lowongankerja/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^lowongankerja/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /lowongankerja/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^lowongankerja/([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /lowongankerja/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES THROUGH USERNAME
RewriteRule ^lowongankerja/member/([^/]+)/?$ /lowongankerja/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^lowongankerja/member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /lowongankerja/search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^lowongankerja/[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /lowongankerja/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^lowongankerja/post([0-9]+)\.html$ /lowongankerja/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^lowongankerja/active-topics(-([0-9]+))?\.html$ /lowongankerja/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^lowongankerja/unanswered(-([0-9]+))?\.html$ /lowongankerja/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^lowongankerja/newposts(-([0-9]+))?\.html$ /lowongankerja/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^lowongankerja/the-team\.html$ /lowongankerja/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

#####################################################
# GYM Sitemaps & RSS
# Global channels
RewriteRule ^lowongankerja/rss(/(news)+)?(/(digest)+)?(/(short|long)+)?/?$ /lowongankerja/gymrss.php?channels&$2&$4&$6 [L,NC]
# END GYM Sitemaps & RSS
#####################################################

#####################################################
# GYM Sitemaps & RSS
# Main feeds & channels
RewriteRule ^lowongankerja/rss(/(news)+)?(/(digest)+)?(/(short|long)+)?(/([a-z0-9_-]+))?/([a-z0-9_]+)\.xml(\.gz)?$ /lowongankerja/gymrss.php?$9=$8&$2&$4&$6&gzip=$10 [L,NC]
# Forum feeds
RewriteRule ^lowongankerja/[a-z0-9_-]*-f([0-9]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /lowongankerja/gymrss.php?$8=$1&$3&$5&$7&gzip=$9 [L,NC]
# Module feeds without ids
RewriteRule ^lowongankerja/([a-z0-9_-]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /lowongankerja/gymrss.php?nametoid=$1&$3&$5&$7&modulename=$8&gzip=$9 [L,NC]
# Google SitemapIndex
RewriteRule ^lowongankerja/sitemapindex\.xml(\.gz)?$ /lowongankerja/sitemap.php?gzip=$1 [L,NC]
# Forum sitemaps
RewriteRule ^lowongankerja/[a-z0-9_-]+-f([0-9]+)\.xml(\.gz)?$ /lowongankerja/sitemap.php?forum=$1&gzip=$2 [L,NC]
# Module sitemaps
RewriteRule ^lowongankerja/([a-z0-9_]+)-([a-z0-9_-]+)\.xml(\.gz)?$ /lowongankerja/sitemap.php?$1=$2&gzip=$3 [L,NC]
# END GYM Sitemaps & RSS
#####################################################

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^lowongankerja/([a-z0-9_-]+)(-([0-9]+))\.html$ /lowongankerja/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^lowongankerja/([a-z0-9_-]+)\.html$ /lowongankerja/viewforum.php?forum_uri=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################

how to make the news and sitemap icons work sir.. ?

those two icons rewrited not the same way as it rewrite rss feed
and sitemaps..

thank you sir...

regards,

adi kwok

ps : please take a look at my web -http://forumlowongan.com
because im not so good in english
thank you
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

please help sirs.. need your guidance

Postby adikwok » Thu Jan 15, 2009 10:02 am

need your guidance in the problem above sir..

where did i do wrong..?

how to fix it.. to implement your gym sitemap url rewriting perfectly sir ?

or .. should i submit anyway to google using sitemap.php
instead of sitemapindex.xml ?

im waiting for your guidance to move forward sir..

thank you and best regards,

adi kwok
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

please help.. im stuck in url rewriting gymsitemap

Postby adikwok » Sun Jan 18, 2009 10:56 am

dear sirs,..

please help..

i can not open any topic in my forum after i updated to adv mod 0.4.8

there is this message below :

Fatal error: Call to undefined method phpbb_seo::drop_sid() in /home/forumlow/public_html/lowongankerja/viewtopic.php on line 683

i did upadated advmod rewrite from 0.4.4 -> .0.4.6 -> 0.4.8
but still the same problem appear after i activate url rewriting in gymsitemap
if i deactivated it.. my forum goes fine..
everything works perfectly..

please help sirs..
i need your guidance to activate url rewriting in gymsitemap..
i have arrived this far here due to your humble guidance sirs..


thank you and best regards,

adi kwok
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

Postby SeO » Mon Jan 19, 2009 1:18 pm

Looks like you did not updated the added files but only performed the code changes.

Read the install and update files, you need to use the latest version of the added files as well (eg the acp file and phpbb_seo_class.php).
Once you'll have updated these, generate a new .htaccess and you'll be good to go ;)
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

glad to have your reply Seo

Postby adikwok » Tue Jan 20, 2009 6:15 am

dear sir..

i did update these files below :

includes/acp/acp_phpbb_seo.php
includes/acp/info/acp_phpbb_seo.php
language/en/acp/phpbb_seo.php
language/fr/acp/phpbb_seo.php
phpbb_seo/phpbb_seo_install.php


i upload it to my website..

now.. all icons works fine : "news, site map, rss, sitemap"

but i still can not open the topic sir..
same error appear :

Fatal error: Call to undefined method phpbb_seo::drop_sid() in /home/forumlow/public_html/lowongankerja/viewtopic.php on line 683

how to make it right sir.. ?

thank you and best regards,

adi kwok
adikwok
PR0
PR0
 
Posts: 95
Joined: Thu Nov 13, 2008 5:11 am

PreviousNext

Return to phpBB SEO Premod

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Google [Bot], MSN NewsBlogs and 3 guests