Since the \w does 0-9a-zA-Z and _ but doesn't do -, what should be used instead.
e.g. in the url:
What CRR should be used to extract "user-name"?Code:script.php?param=user-name
("user-name" was created by vbseo_filter_text())
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; Since the \w does 0-9a-zA-Z and _ but doesn't do -, what should be used instead. e.g. in the url: ...
Since the \w does 0-9a-zA-Z and _ but doesn't do -, what should be used instead.
e.g. in the url:
What CRR should be used to extract "user-name"?Code:script.php?param=user-name
("user-name" was created by vbseo_filter_text())
You can use this:
[\w\-]
Oleg Ignatiuk / Crawlability Inc.
Sneek Preview Video of the new Control Panel
vBSEO 3.5 RC2 (Final)- Released for your Evaluation
Based on your suggestion this is the CRR (left side)
This is the urlCode:'^trainingblog\.php\?username=(\w\-+)$'
It's not being rewritten?Code:trainingblog.php?username=user-name
It would be:
'^trainingblog\.php\?username=([\w\-]+)$'
Oleg Ignatiuk / Crawlability Inc.
Sneek Preview Video of the new Control Panel
vBSEO 3.5 RC2 (Final)- Released for your Evaluation
That's got it, thanks.
Perhaps it would be wise to put that in the CRR usage post. I doubt I'm the only one who's had issues with \w not picking up the -
I'm using this to build up the links to the lastest post in a thread, but it doesn't work correctly:
Code:$sql = "select * from FP_thread where threadid = ".$row["threadid"]; $row2 = mysql_fetch_array(mysql_query($sql,$link2)); $url_seo = "http://www.foropymes.es/foro/".vbseo_thread_url_row_spec($row2, VBSEO_URL_THREAD_LASTPOST);
It gives us this link (which doesn't lead to latest post, just the first):
AYUDAS: Planificando una nueva empresa - FORO PYMES
Inside the forum we can see this link that works:
AYUDAS: Planificando una nueva empresa - Página 2 - FORO PYMES
Any hint about how to fix it?
btw:
The first page with the documentation of this page you have 'last' (which doesn't work) instead of VBSEO_URL_THREAD_LASTPOST .
Thanks for your help!![]()
That URL format (VBSEO_URL_THREAD_LASTPOST) corresponds to showthread.php?t=X&goto=lastpost and recent vBulletin versions do not support "goto lastpost" URLs anymore.
Oleg Ignatiuk / Crawlability Inc.
Sneek Preview Video of the new Control Panel
vBSEO 3.5 RC2 (Final)- Released for your Evaluation
how can i get blog entry urls ?
http://domain/forums/blog.php?b=359
to
http://domain/forums/blogs/entrytitle
is there any vbseo_blog_url_row() ? or anything like that ???
I try this with no success :(
<?
include_once 'includes/functions_vbseo.php';
vbseo_startup();
$conex = mysql_connect("localhost","user","password");
$bd = mysql_select_db("database");
$sql = 'SELECT * FROM vbblog where state="visible" AND TO_DAYS(NOW()) - TO_DAYS(FROM_UNIXTIME(dateline)) = 1 ORDER BY dateline DESC';
$consulta = mysql_query($sql);
while ($fila = mysql_fetch_array($consulta)) {
$test = vbseo_blog_url(VBSEO_URL_BLOG_ENTRY, array('b'=>$fila['blogid']));
echo "<a href=\"$test\" target=\"_blank\">$fila[title]</a><br>";
}
?>
Mert Gökçeimam / Crawlability Inc.
Yeni vBSEO Kontrol Paneli ve vBSEO 3.5 Yayın Tarihleri
vBSEO 3.5 Beta 2 Yayınlandı - vBulletin 4 Uyumlu!
Kişisel Sitem : Felsefe - Kültür merkeziniz
Mert,
I know but i send everyday a newsletter to my users and i want know how can i change this code
to get vbseo url's instead of use standart url'sPHP Code:<?
include_once 'includes/functions_vbseo.php';
vbseo_startup();
$conex = mysql_connect("localhost","user","password");
$bd = mysql_select_db("database");
$sql = 'SELECT * FROM vbblog where state="visible" AND TO_DAYS(NOW()) - TO_DAYS(FROM_UNIXTIME(dateline)) = 1 ORDER BY dateline DESC';
$consulta = mysql_query($sql);
while ($fila = mysql_fetch_array($consulta)) {
$test = vbseo_blog_url(VBSEO_URL_BLOG_ENTRY, array('b'=>$fila['blogid']));
echo "<a href=\"$test\" target=\"_blank\">$fila[title]</a><br>";
}
?>
Hello Marcus,
try this:
PHP Code:while ($fila = mysql_fetch_array($consulta)) {
$vbseo_gcache['blog'][$fila['blogid']] = $fila;
$test = vbseo_blog_url(VBSEO_URL_BLOG_ENTRY, array('b'=>$fila['blogid']));
echo "<a href=\"$test\" target=\"_blank\">$fila[title]</a><br>";
}
Oleg Ignatiuk / Crawlability Inc.
Sneek Preview Video of the new Control Panel
vBSEO 3.5 RC2 (Final)- Released for your Evaluation
MAN,
WORKED 100% THANKS A LOT
uhuhhu![]()
You are welcome!![]()
Oleg Ignatiuk / Crawlability Inc.
Sneek Preview Video of the new Control Panel
vBSEO 3.5 RC2 (Final)- Released for your Evaluation