vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Total Support Team Launches DeskPro New vBSEO Discount Level for Network Builders vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

vBSEO Functions for Extensibility

This is a discussion on vBSEO Functions for Extensibility within the General Discussion forums, part of the vBSEO SEO Plugin category; vBSEO Functions for Extensibility There are several vBSEO functions that can be used by external scripts. NOTE: Always include the ...

Go Back   vBulletin SEO Forums > vBSEO SEO Plugin > General Discussion

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  7 links from elsewhere to this Post. Click to view. #1  
Old 10-30-2005, 07:16 PM
Juan Muriente's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Juan Carlos Muriente
Join Date: Jun 2005
Location: Puerto Rico
Posts: 12,721
vBSEO Functions for Extensibility

vBSEO Functions for Extensibility
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';
1. Use the following function to convert text to the vBSEO format. This is useful for custom (non-vBulletin) urls.
Code:
$seo_title = vbseo_filter_text($title); // " A simple example here!" => "simple-example-here"
Also discussed here: Custom Addons Rewrite

2. To create vB URLs, the following calls are required (these should be executed *once*):
Code:
vbseo_get_options();
vbseo_prepare_seo_replace();
vbseo_get_forum_info();
3. The following function returns the vBSEO URL for the forum specified by id:
Code:
$forumurl = vbseo_forum_url($forumid, $pagenum);
4. This function returns the vBSEO URL for the thread based on the *associated array fetched from the database (db record)*:
Code:
$threadurl = vbseo_thread_url_row($threadrow, $pagenum);
where $threadrow is
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);
6. This function returns the vBSEO URL for the member list:
Code:
$memberlisturl = vbseo_memberlist_url($letter, $pagenum);
7. This function allows the rewritting of a dynamic URL with the corresponding SEO URL (including custom rewrite rules applied).
Code:
vbseo_any_url($url)
For instance, if the following CRR is defined:
Quote:
'index.php?page=(w+)$' => 'page-$1.html'
The following function call can be used:
Quote:
$seourl = vbseo_any_url('index.php?page=news'); // $seourl = 'page-news.html'
This function will allow to integrate side rewrites with CRRs better (including sitemap hack additions).

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);
example:
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);
$spec can be either:
'new' - new post URL
'last' - last post URL
'next' - next thread URL
'prev' - previous thread URL
__________________
Juan Muriente / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.


Last edited by Oleg Ignatiuk; 11-16-2007 at 04:37 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 10-31-2005, 12:21 AM
acers's Avatar
Senior Member
vBSEO Pre-Release Team
 
Real Name: Ajay
Join Date: Jul 2005
Location: India
Posts: 477
Send a message via MSN to acers
Re: vBSEO Functions for Extensibility

awesome list.. juan.. brilliant
will help a lot for the custom hacks i am doing for my site ..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 10-31-2005, 05:06 PM
Senior Member
vBSEO Pre-Release Team
 
Real Name: Mike Simonds
Join Date: Oct 2005
Location: Texas
Posts: 214
Send a message via AIM to msimonds Send a message via MSN to msimonds Send a message via Yahoo to msimonds
Re: vBSEO Functions for Extensibility

this is great Juan but can it be used if the scripts are in the root! as is with mine?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #4  
Old 10-31-2005, 05:38 PM
Juan Muriente's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Juan Carlos Muriente
Join Date: Jun 2005
Location: Puerto Rico
Posts: 12,721
Re: vBSEO Functions for Extensibility

The functions referenced here create vB URLs only. From this point, they should work fine no matter where the scripts reside
__________________
Juan Muriente / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #5  
Old 11-16-2005, 10:06 PM
Senior Member
 
Join Date: Nov 2005
Posts: 165
Re: vBSEO Functions for Extensibility

Hi Juan,

Maybe yo can give me some additional help here. I have a page located a domain.com/directory/page.php and my forums are at domain.com/forum/. page.php includes vb functions with global.php and others as needed. So I can add the include for the functions_vbseo.php no problem but what would this actually look like for this page?
Code:
$seotitle = vbseo_filter_text($title); // " A simple example here!" => "simple-example-here"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #6  
Old 11-17-2005, 07:48 PM
Juan Muriente's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Juan Carlos Muriente
Join Date: Jun 2005
Location: Puerto Rico
Posts: 12,721
Re: vBSEO Functions for Extensibility

Quote:
Originally Posted by reefland
Hi Juan,

Maybe yo can give me some additional help here. I have a page located a domain.com/directory/page.php and my forums are at domain.com/forum/. page.php includes vb functions with global.php and others as needed. So I can add the include for the functions_vbseo.php no problem but what would this actually look like for this page?
Code:
$seotitle = vbseo_filter_text($title); // " A simple example here!" => "simple-example-here"
Since your are rewritting vB URLs, you should use direct functions like:
  • vbseo_forum_url
  • vbseo_thread_url_row
  • vbseo_member_url_row
  • vbseo_memberlist_url.
The vbseo_filter_text() function is used to manually construct URLs for non-vB pages.

Also, with new vBSEO 2.2.1 it is possible to create CRR for non-vB folders.
__________________
Juan Muriente / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #7  
Old 11-28-2005, 08:42 PM
Juan Muriente's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Juan Carlos Muriente
Join Date: Jun 2005
Location: Puerto Rico
Posts: 12,721
Re: vBSEO Functions for Extensibility

Added function #7 (available in vBSEO 2.3.0 and up)
__________________
Juan Muriente / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #8  
Old 02-25-2006, 10:06 PM
Member
 
Real Name: gringo
Join Date: Sep 2005
Location: Deutscheland
Posts: 61
Re: vBSEO Functions for Extensibility

Hallo, wäre jemand so freundlich und würde das übersetzen? Danke
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #9  
Old 02-27-2006, 09:05 AM
Philipp Herbers's Avatar
vBSEO Staff
 
Real Name: Philipp Herbers
Join Date: Sep 2005
Location: Meppen, Germany
Posts: 5,370
Re: vBSEO Functions for Extensibility

Hallo,

Quote:
Originally Posted by dongdong
Hallo, wäre jemand so freundlich und würde das übersetzen? Danke
ich kann es gerne in den nächsten Tagen übersetzen
__________________
Philipp Herbers / Crawlability Inc.
Support Team gibt neues Supportsystem frei Verbesserter Support für unsere Kunden

vBSEO 3.2.0 freigegeben - Maximale Optimierung für Ihren Web-Traffic! Über 100 weitere SEO Optimierungen

6X Traffic - $1400 in einem Tag durch vBSEO! Stellen Sie sich vor, was die patentierte vBSEO Technologie für Sie tun kann.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #10  
Old 02-27-2006, 08:24 PM
Member
 
Real Name: gringo
Join Date: Sep 2005
Location: Deutscheland
Posts: 61
Re: vBSEO Functions for Extensibility

vielen dank phillipp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #11  
Old 03-17-2006, 02:43 PM
KW802's Avatar
Senior Member
vBulletin HackervBSEO Pre-Release TeamBig Board Administrator
 
Real Name: Kevin
Join Date: Jan 2006
Posts: 155
Re: vBSEO Functions for Extensibility

For function #4 listed above, vbseo_thread_url_row, is there also a way of getting the 'new post' version as well? In specific, the 'Newest Post in Thread' Redirect URL Format version? (Even though last-post and new-post have in the same name in the vbseocp menu, it's the new-post format I'm after.)

Thanks,
Kevin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #12  
Old 03-17-2006, 04:24 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,597
Re: vBSEO Functions for Extensibility

Hello Kevin,

we will include a special function for this in vBSEO2.4.1: vbseo_thread_url_row_spec($thread_row, $spec);
Updated tutorial: vBSEO Functions for Extensibility

thank you for suggestion!
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #13  
Old 03-17-2006, 04:34 PM
KW802's Avatar
Senior Member
vBulletin HackervBSEO Pre-Release TeamBig Board Administrator
 
Real Name: Kevin
Join Date: Jan 2006
Posts: 155
Re: vBSEO Functions for Extensibility

Quote:
Originally Posted by Oleg Ignatiuk
we will include a special function for this in vBSEO2.4.1: vbseo_thread_url_row_spec($thread_row, $spec);
Excellent, thank you. In my replacement version of external.php for the RSS2 specs I use the "&goto=newpost" version of the thread for 'link' tag and the normal thread URL for the 'guid' tag.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #14  
Old 03-18-2006, 04:23 PM
Senior Member
 
Join Date: Sep 2005
Posts: 126
Re: vBSEO Functions for Extensibility

[quote=Juan Muriente]4. This function returns the vBSEO URL for the thread based on the *associated array fetched from the database (db record)*:
Code:
$threadurl = vbseo_thread_url_row($threadrow, $pagenum);
where $threadrow is
array(
'threadid'=>xxx,
'title'=>xxx,
....
);
Where can I get more information about that array?! I cannot get that function to work ;(

Tobi
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #15  
Old 03-18-2006, 04:32 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,597
Re: vBSEO Functions for Extensibility

Hello Tobi,

this is an array retrieved with mysql_fetch_array() function from "thread" db table.
Here is an example:
PHP Code:
$getthreads $db->query("
SELECT *
FROM " 
TABLE_PREFIX "thread
WHERE threadid=123
"
);
$threadrow $db->fetch_array($getthreads);

$threadurl vbseo_thread_url_row($thread_row); 
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.vbseo.com/f2/vbseo-functions-extensibility-1662/

Posted By For Type Date
vbSEO and vbGallery - PhotoPost Community This thread Refback 05-20-2008 10:57 AM
Compatibility With Vbseo? - BBpixel Forum This thread Refback 04-02-2008 02:39 PM
Digg Display & Digg Count - Page 2 - vBulletin.org Forum This thread Refback 01-17-2008 07:26 PM
TNX + vBulletin - Page 2 - TNX Support forums This thread Refback 10-21-2007 07:28 AM
Compatibility With Vbseo? - BBpixel Forum This thread Refback 02-02-2007 10:57 PM
SEO for Articles - MadeByMary This thread Refback 01-31-2007 07:26 AM
DownloadsII - Page 59 - vBulletin.org Forum This thread Refback 12-07-2006 12:51 PM
FPS_EXTERNAL.PHP -- New options added & RSS compliant version of external.php - vBulletin.org Forum This thread Refback 10-09-2006 11:04 PM

Similar Threads

Thread Thread Starter Forum Replies Last Post
vBSEO 2.4.0 Released - Includes Google AdSense Targeting Feature! Juan Muriente vBSEO Announcements 74 05-20-2006 10:29 PM
vBSEO 2.0 RC7 Released Juan Muriente vBSEO Announcements 17 09-09-2005 12:00 AM


All times are GMT -4. The time now is 11:07 PM.


Powered by vBulletin Version 3.8.0 Beta 4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.