There are several vBSEO functions that can be used by external scripts.
NOTE: Always include the functions_vbseo.php file. Since it may already be included, the following statement should be used:
Code:
include_once 'includes/functions_vbseo.php';
Code:
$seo_title = vbseo_filter_text($title); // " A simple example here!" => "simple-example-here"
2. To create vBulletin URLs, the following calls are required (these should be executed *once*):
Code:
vbseo_get_options();
vbseo_prepare_seo_replace();
get_forum_info();
Code:
$forumurl = vbseo_forum_url($forumid, $pagenum);
Code:
$threadurl = vbseo_thread_url_row($threadrow, $pagenum);
array(
'threadid'=>xxx,
'title'=>xxx,
....
);
5. This function returns the vBSEO URL for the member profile based on the user id and username:
Code:
$memberurl = vbseo_member_url_row($userid, $username);
Code:
$memberlisturl = vbseo_memberlist_url($letter, $pagenum);
Code:
vbseo_any_url($url)
Quote:
| 'index.php?page=(w+)$' => 'page-$1.html' |
Quote:
| $seourl = vbseo_any_url('index.php?page=news'); // $seourl = 'page-news.html' |
These are the most useful functions. If you are doing a specific hack (or modification) and need more insight don't hesitate to ask
We'll be launching an enhanced API, but that's further down the road
Update (supported in vBSEO2.4.1+)
8. This function allows to replace META tags with custom value:
Quote:
| vbseo_replace_meta($metaname, $meta_content); |
vbseo_replace_meta('keywords', 'keywords replacement');
9. This function returns the specific vBSEO URL for the thread based thread row:
Quote:
| $threadurl_spec = vbseo_thread_url_row_spec($thread_row, $spec); |
'new' - new post URL
'last' - last post URL
'next' - next thread URL
'prev' - previous thread URL
No comments:
Post a Comment