The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
SEO Smart Links for vBulletin
Hello, im requesting modification from Wordpress (look here: http://imageshack.us/photo/my-images...ptionsalf.jpg/ ). Any1 can made simple mod for vBulletin?
I know that similar mod is available (https://vborg.vbsupport.ru/showthread.php?t=237479), but is simplest and have bug. Author dont fixing it. |
#2
|
||||
|
||||
Have you ever used the "Replacement variable manager" in your Admin CP / Styles?
You can do this stuff with that. For example you can set it to replace all occurrences of the word "Amazon" with <a href="http://www.amazon.com">Amazon</a> so they'd become links. |
#3
|
|||
|
|||
Thank You. Its working but adding meta descripiton in header.
Look at screen: And second problem - this replace all "Alfa Romeo 156", including this words in topic name and navbar. How to fix it? |
#4
|
||||
|
||||
ahhh yeah I see... Unfortunately if using replacement variables they will work everywhere, I guess I didn't have "Amazon" in my header at the time.
You could do a custom plugin on the hook postbit_display_complete with php code: PHP Code:
There are various ways of coding this but the easiest is just to copy and paste additional lines for as many sites as you have, such as: PHP Code:
This could be an interesting mod- is the only one out there really that buggy? |
#5
|
|||
|
|||
Thank You very much! I didnt know that its simple!
But I have one problem. when I set: Code:
$find = 'Alfa Romeo 156'; $replace = '<a href="http://www.forum.alfaholicy.org/156/">Alfa Romeo 156</a>'; $post['message'] = str_ireplace ($find, $replace, $post['message']); $find = 'Alfa 156'; $replace = '<a href="http://www.forum.alfaholicy.org/156/">Alfa 156</a>'; $post['message'] = str_ireplace ($find, $replace, $post['message']); $find = '156'; $replace = '<a href="http://www.forum.alfaholicy.org/156/">156</a>'; $post['message'] = str_ireplace ($find, $replace, $post['message']); I can fix it with simple IF php function? EDIT And how fix it: I have 2 replace for Alfa Romeo's models: Alfa Romeo GT Alfa Romeo GTV And this script replace only 'Alfa Romeo GT' in phrase 'Alfa Romeo GTV' too |
#6
|
||||
|
||||
Yes that would complicate things. I'll see if I can work on a solution.
|
#7
|
||||
|
||||
Getting everything to work as expected actually turned out to be pretty challenging but I think I've got all the bugs worked out.
I have released it as a mod here: https://vborg.vbsupport.ru/showthread.php?t=263699 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|