You are welcome![]()
This is a discussion on vBSEO Functions for Extensibility within the General Discussion forums, part of the vBSEO SEO Plugin category; You are welcome...
You are welcome![]()
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
is there any way to generate the "Display Social Bookmarking Icons" ?
In my site's main page i grab the news from the forums, i want to include the "Social Bookmarking Icons" In every news post
Take a look you will understand what i mean 3D Accelerator
3D Accelerator www.3dacc.net
Maximize your computer performance experience
Currently social bookmarking icons are only available on showthread pages.
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Thanks for your reply.
The "currently" gives me some hopes it will be included in the future.
3D Accelerator www.3dacc.net
Maximize your computer performance experience
What's wrong with this code?
Just writes out http://www.wirelessforums.org/showthread.php?t=22520PHP Code:include_once MY_DIR . '/includes/functions_vbseo.php';
vbseo_startup();
echo vbseo_any_url("http://www.wirelessforums.org/showthread.php?t=22520");
This function works only in the case if thread info exists in the cache (when thread URL with that ID was used earlier) or for the URLs created by Custom Rewrite Rules. Normally thread URLs should be created with vbseo_thread_url_row() function.
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Hi,
I read all pages of this thread and read the issues concerning vbseo_thread_url_row_spec, too.
But it does not want to work for me
my source code ...
The output isPHP Code:public function loadLastThreads($countThreads) {
if(!$this->intValidator->isValid($countThreads)) {
return false;
}
$sql = "SELECT title, threadid, lastpostid
FROM
" . $this->config->db_forums->prefix . "thread
WHERE 1
AND open = 1
AND visible = 1
AND forumid IN(" . $this->config->lastForumThreads->forumIDs . ")
ORDER BY lastpost DESC
LIMIT 0, " . $countThreads;
$tmpLastThreads = $this->db->fetchAll($sql);
/*
* If the vBSEO functions are avaiable the URL is generated by the respective function, else it is done within a view script.
*/
foreach($tmpLastThreads as $key => $thread) {
if(function_exists('vbseo_thread_url_row_spec')) {
$threadUrlInfo = array(
'threadid' => $thread['threadid'],
'title' => $thread['title']
);
$this->lastThreads[$key]['url'] = vbseo_thread_url_row_spec($threadUrlInfo , 'last');
# debug output and exit the script
echo 'the generated vBSEO URL ';
Zend_Debug::dump($this->lastThreads[$key]['url']);
exit();
}
else {
$this->lastThreads[$key] = $thread;
}
}
unset($tmpLastThreads);
}
Yeah!Code:the generated vBSEO URL string(0) ""
I surely include the function and call the vbseo_startup() function.
PHP Code:/*
* include vBSEO functionality
*/
include DG_ROOT_DIR . '/public/forums/includes/functions_vbseo.php';
vbseo_startup();
So, do I use the function in a wrong way?
My URLs have the following structure /forums/{threadid},{title}
so I do not have to pass more data than threadid and thread title .. ?!
I really thank you! It's 6.27 in the morning .. and I'm tired
Regards, Ben.
Hello,
you should also include forumid in the thread array.
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
The array parameter is provided to the thread_url function only, other functions have fixed parameters.
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Ah, I see. Issue solved.![]()
Oleg, is there a function for reverse lookup?
I have the vbseo generated forum url(or thread url) but specifically forum which will not have the forumid, and i want to get the forumid from that url? How to go about it?
Currently there are no externally accessible functions for that.
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.6.0 GOLD Released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
How can I check if vBSEO is installed (apart from checking if the include-file exists, as I do not want to do that)?
I assume it is a vBulletin pruduct, but what is the product id?
The product id is: crawlability_vbseo