View Single Post
  #2  
Old 02-01-2009, 05:56 PM
yabsoft yabsoft is offline
 
Join Date: Jun 2006
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upgrade guide for YABBSEO Lite v1.1:

BACKUP OLD INSTLLATIONS ARE ABSOLUTELTLY NECCESSARY!

Quote:
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
Quote:
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
Quote:
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
Quote:
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:
PHP Code:
array (
'script' => '',
'fragment' => 'goto_threadtools',
'query' => 
array (
'nojs' => '1',
), 
),
Quote:
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
PHP Code:
array (
'"' => '',
'\'' => '',
), 
Quote:
The array holds the special chars and their correpondences in english to convert.
keyword_separator: - or _ or other symbol
Quote:
The separator will be used to separator the keywords in static forum urls
seourl_stopwords:
PHP Code:
array (
=> 'an',
=> 'a',
=> 'on',
=> 'to',
), 
Quote:
This is an array to hold the common words you want to remove from the static forum urls.
redirect_externalurl: 1 or 0
Quote:
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
PHP Code:
array (
=> 'yabsoft.com',
=> 'www.yabsoft.com',
=> '127.0.0.1',
), 
Quote:
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

Quote:
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
PHP Code:
'template' => 
    array (
      
'showthreadpage' => 'f{forum_id}-{forum_title}/{thread_title}-{thread_id}-page{thread_page}.html',
      
'showthread' => 'f{forum_id}-{forum_title}/{thread_title}-{thread_id}.html',
      
'showthreadnew' => 'f{forum_id}-{forum_title}/{thread_title}-{thread_id}-newpost.html',
      
'showthreadpost' => 'f{forum_id}-{forum_title}/{thread_title}-{thread_id}-p{post_id}.html#post{post_id}',
      
'forumdisplaypage' => 'f{forum_id}-{forum_title}/index{forum_page}.html',
      
'forumindex' => 'forumindex.html',
      
'forumdisplay' => 'f{forum_id}-{forum_title}',
      
'member' => 'members/{username}.html',
      
'memberlistpage' => 'memberlists/{member_page}.html',
      
'memberlistltr' => 'memberlists/{letter}.html',
      
'memberlistltrpage' => 'memberlists/{letter}-{member_page}.html',
      
'memberlist' => 'memberlists',
    ), 
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.

Quote:
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.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01373 seconds
  • Memory Usage 1,829KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php
  • (12)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete