View Single Post
  #2  
Old 01 Feb 2009, 19:56
yabsoft yabsoft is offline
 
Join Date: Jun 2006
Upgrade guide for YABBSEO Lite v1.1:

BACKUP OLD INSTLLATIONS ARE ABSOLUTELTLY NECCESSARY!

Before you upgrade, you need know we have changed the product id of YABBSEO Lite to be "yabbseo" in v1.1(in v1.0 and v1.0.1, it was yabbseolite). So a product import from vBulletin CP will create a new product, not upgrading your YABBSEO lite v1.0 or 1.0.1.
So for upgrading YABBSEO v1.0 or v1.0.1 to v1.1, you can follow the following steps:
1. Disable the YABBSEO v1.0 or v1.0.1
2. Upload all scripts in YABBSEO v1.1 to your server to overwrite all of your old files.
3. Import the product-YABBSEO-Lite.xml from vBulltein > Plugins.
4. If you have modified yabbseo/data/config.php, you donot need upload the new config.php in the downloaded YABBSEO Lite v1.1 to overwite your modified config.php in the step 2.
5. Check if YABBSEO v1.1 is working fine with your forum. If it is OK, you can delete YABBSEO v1.0 or 1.0.1 which is already disabled in step 1.


Explanation of some sections of config.php:

GLOBAL Configuration in yabbseo/data/config.php:

absolutebburl: 1 or 0
1: your domain will be automatically added in all forum urls:
forum/f_id/t_id.html -> http://yourdomain.com/forum/f_id/t_id.html.
0: YABBSEO will detect the relative urls to be absolute one:
images/buttons/xxx.gif -> /forum/images/buttons/xxx.gif
301_redirect: 1 or 0
1: Redirect dynamically urls to the static ones:
showthread.php?t=x to http://yourdomain.com/forum/f_id/t_id.html
redirect_showthreadpost: 1 or 0
1: redirect showthread.php?p=id to http://yourdomain.com/forum/f_id/t_id.html#postid
or http://yourdomain.com/forum/f_id/t_i..._x.html#postid if the post is not on the first page.
nofollowurls:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

),
The above options are the criterons to detect which urls to add "nofollow" attribute:
script: the php script name or html file name
fragment: the parts after #
query: an array which holds the parameters in the forum urls.

The above example will match the urls like this:

.*.*?nojs=1#goto_threadtools
specialchars_convert

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The array holds the special chars and their correpondences in english to convert.
keyword_separator: - or _ or other symbol
The separator will be used to separator the keywords in static forum urls
seourl_stopwords:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This is an array to hold the common words you want to remove from the static forum urls.
redirect_externalurl: 1 or 0
Convert the external urls on your forum to something like this:
http://externalsite.com to http://yoursite.com/bbredir.php?url=...ternalsite.com
exclusive_externalurls

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This is an array to hold the urls which are not to be converted as above if redirect_externalurl is enabled, for example your friend sites.
post_parseurl: 0 or 1

If this option is enabled(=1), YABBSEO will try to parse all forum links by even query the database to get the information. By default, this is turned off: since YABBSEO can parse every normal forum links. Some links could not be parsed in rare cases: you use cite another dynamically thread url in your current thread, the cited dynamically url could not be parsed by default. But this will redirect to the static one after users click it.
Url Template Setting in yabbseo/data/config.php
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The array holds the static url templates which be automatically loaded for the dynamical url according to its key: for example, the template
'forumdisplay' => 'f{forum_id}-{forum_title}',
will be used for all dynamically urls of forumdiaplay.php.

You can modify the above templates to get your cutomised template, but you must be care about the order of templates. The order of templates in the array is just the order to match each static url: for example, a static forum url "f1-main-forum.html" is passed, YABBSEO will try to follow the order of templates in array to match the the url "f1-main-forum.html". Once one template(for example,f{forum_id}-{forum_title}) matches the url, the corresponding {forum_id} and {forum_title} will be extracted. But it is important to note that different orders may give the chances that the incorrect template matches the url before YABBSEO tries to use "f{forum_id}-{forum_title}" to match it.

Last edited by yabsoft; 02 Nov 2009 at 22:04.
Reply With Quote