Ah, ok, thanks![]()
This is a discussion on vBSEO Functions for Extensibility within the General Discussion forums, part of the vBSEO SEO Plugin category; Ah, ok, thanks...
Ah, ok, thanks![]()
Hi, möchte nicht drängeln.. aber kommt da noch was?Originally Posted by Philipp Herbers
![]()
Hey,
es tut mir leid, dass es solange dauert. Ich habe es soweit fertig übersetzt und warte nur noch auf ein OK vom vBSEO Germany Team. Ich habe leider die Datei nicht hier, da ich momentan keinen Rechner habe.
Sie kommt, sobald ich eine Rückmeldung bekomme
alles klar, die paar tage machen den bock jetzt auch nicht fett :P
danke nochmal!
Die deutsche Übersetzung ist nun verfügbar
A great one is the make_crawlable
As you can see, I am using it for a newsletter.PHP Code:if(include_once($vbulletin->options['bburl'].'/includes/functions_vbseo.php'))
$HTML_mailbody = make_crawlable($HTML_mailbody);
However - I need to have the full url in there. For the forum, I have the url's excluding the domain, but for the newsletter, I need the full url. Apart from doing some regex to add the domain, is there some code that I can use to temporarily set the variable for including the domain name????
Since the variable is a constant, I am not able to change it. The best I can do is temporaroly change the vbseocp options to have the domain in there.
T2DMan
Search engine optimize vBulletin - over 55001 views
or Contract me to onpage SEO your forum - experience the additional SERP improvements
Try this:
So, when config is included in functions_vbseo.php, the setting is already defined thus the new definition is ignored.PHP Code:define('VBSEO_USE_HOSTNAME_IN_URL', 1);
if(include_once($vbulletin->options['bburl'].'/includes/functions_vbseo.php'))
$HTML_mailbody = make_crawlable($HTML_mailbody);
Juan Muriente / Crawlability Inc.
Security bulletin - Patch Level for all supported versions released
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Of course! Thanks Juan.
Sometimes its good to have the other hat on and receive advice. Much appreciated.
T2DMan
Search engine optimize vBulletin - over 55001 views
or Contract me to onpage SEO your forum - experience the additional SERP improvements
You are welcome, Sir!
Juan Muriente / Crawlability Inc.
Security bulletin - Patch Level for all supported versions released
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
/ticker/ticker.php - $str contains html including <a href="/forums/showthread.php?t=xx">bla</a>
So I go:
But it doesnt workPHP Code:include_once '../forums/includes/functions_vbseo.php';
//is the following needed???
vbseo_get_options();
vbseo_prepare_seo_replace();
get_forum_info();
//create the string then ...
$str=make_crawlable($str);
In the process of making the string, a variable contains a url. So I tried vbseo_any_url($url) and that didnt work either.
Seems like there is an issue with items being outside the forum file structure(?) as I successfully did the make_crawlable with the newsletter example.
T2DMan
Search engine optimize vBulletin - over 55001 views
or Contract me to onpage SEO your forum - experience the additional SERP improvements
Hello Michael,
do you call ticker script from browser or command line? Please try it with full URL including domain name (<a href="http://..")
Oleg Ignatiuk / Crawlability Inc.
Security bulletin - Patch Level for all supported versions released
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
A trick for young players! My url's in this instance did not have quote around them, so your script was not able to find the url's. I added the quotes, and presto!!!
Had me running around in circles.![]()
T2DMan
Search engine optimize vBulletin - over 55001 views
or Contract me to onpage SEO your forum - experience the additional SERP improvements
Oh, now it's clear then![]()
Oleg Ignatiuk / Crawlability Inc.
Security bulletin - Patch Level for all supported versions released
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Btw, with vBSEO3.0.0+ you can use this:
instead of:PHP Code:vbseo_startup();
PHP Code:vbseo_get_options();
vbseo_prepare_seo_replace();
get_forum_info();
Oleg Ignatiuk / Crawlability Inc.
Security bulletin - Patch Level for all supported versions released
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
I was directed to this thread because I implemented some custom template changes and vbSEO urls were not showing up. I don't think I was very clear in my original question, but that's because I didn't know any better. As it turns out, you cannot put php into templates. What I did discover, however, is that if you make the URL's in custom templates look like they do in the out-of-the-box templates, vbSEO will replace them automatically.
The following code was in my custom template, which is a legacy mod recently ported to 3.6:
I changed it to:Code:$vboptions[bburl]/showthread.php?p=$post[postid]$thread[highlight]
This is the format used in the out of the box template and returns.Code:showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]
One problem I am having is that
does not get rewritten at all, although if you click on the link it gets redirected to the proper location. (vbSEO 3.0 RC3)Code:showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]?p=$post[postid]
Any ideas?
following up here...
I went into the search results out of the box template, and found the following url:
This one gets rewritten just fine as long as there are replies in a given thread. If there are no replies, it returns a non-rewritten url. It seems to work fine in the search page, just not in my custom template.Code:showthread.php?$session[sessionurl]p=$post[postid]$post[highlight]#post$post[postid]
Last edited by nevetS; 09-01-2006 at 02:44 PM. Reason: follow up