Please try to replace $db-> with $vbulletin->db->
vBulletin 4, the most powerful community software + vBSEO 3.5, the ultimate SEO solution = Your ultimate platform for 2010 and beyond. Click below to learn more.
This is a discussion on vBSEO Functions for Extensibility within the General Discussion forums, part of the vBSEO SEO Plugin category; Please try to replace $db-> with $vbulletin->db->...
Please try to replace $db-> with $vbulletin->db->
Oleg Ignatiuk / Crawlability Inc.
Sneek Preview Video of the new Control Panel
vBSEO 3.5 RC2 (Final)- Released for your Evaluation
Is there a way to get the original link back?
In example:
www.mydomain.tld/forum/thread-title.html
to
www.mydomain.tld/forum/showthread.php?id=???
I need it for two extensions, who both work with the original thread and post id.
Please try this:
$vbseo_arr['thread_id'] should contains thread ID.Code:<?php $vbseo_url_ = 'http://www.mydomain.tld/forum/thread-title-id.html'; $vbseo_arr = vbseo_check_url('VBSEO_URL_THREAD', $vbseo_url_); print_r($vbseo_arr); ?>
Oleg Ignatiuk / Crawlability Inc.
Sneek Preview Video of the new Control Panel
vBSEO 3.5 RC2 (Final)- Released for your Evaluation
Hmm, it doesn't work as i thought.
For testing, i included it as a plugin at the global_complete hook.
I placed the $vbseo_arr[thread_id] but it seems to be empty all the time.
What exactly is the code you use?
Oleg Ignatiuk / Crawlability Inc.
Sneek Preview Video of the new Control Panel
vBSEO 3.5 RC2 (Final)- Released for your Evaluation
Here's my code:
In the navbar Template (just for testing) i put this code:Code:Plugin: vBSEO Test Hook: global_complete Code: $link = 'http://www.my-domain.com/forum/board-support/1-first-thread.html'; $container = vbseo_check_url('VBSEO_URL_THREAD', $link);
Thanks in advance for your help!Code:<hr /> SEO: $container[thread_id] <hr />![]()
Please try to remove forums path and keep only:
PHP Code:$link = 'board-support/1-first-thread.html';
Oleg Ignatiuk / Crawlability Inc.
Sneek Preview Video of the new Control Panel
vBSEO 3.5 RC2 (Final)- Released for your Evaluation
Nope, nothing!Doesn't work!
I just tried and it worked fine for me. Please try print_r($container) to see if there is anything returned.
Oleg Ignatiuk / Crawlability Inc.
Sneek Preview Video of the new Control Panel
vBSEO 3.5 RC2 (Final)- Released for your Evaluation
I guess I'm missing something but cannot figure out what
$seo_txt only outputs the letter 'a' from $video[description]);
Code:include_once 'includes/functions_vbseo.php'; vbseo_startup(); $seo_txt = vbseo_filter_text($video[description]);
That did work, it was just a typo
the output however had hyphen's and removed short words, is that the way it works with description/text?
example:
"All the silly things that happen in the football field"
output
"all-silly-things-happen-football-field"
That is our stopwords removal feature.
Thanks Joe,
I would like to get a word limited pagetext output like you have at the top of threads, is that possible with something else?
It's ok, did it with php
What do you think is a good word count for meta description?Code:if ( strlen( $seo_txt) > 25 ) { $seo_txt = explode( ' ',$seo_txt); $seo_txt = array_slice( $seo_txt, 0, 25 ); $seo_txt = implode( ' ', $seo_txt) . '...'; }
how to use it with java script code than does not rewrite the links any hel pls:
Code:<!-- for (var x in threads) { document.writeln("» <a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><br />(by: "+threads[x].poster+")<br /><br />"); } //-->