View Full Version : Replace Local Links With Title
Jafo232
11-08-2005, 10:00 PM
Please note, this hack is NO LONGER SUPPORTED. I have built a new mod that accomplishes the same thing but the method is completely different. To avoid confusion, I just created a new mod. You can find the new mod here:
https://vborg.vbsupport.ru/showthread.php?p=1322843
CHANGELOG:
1.01
Added support for threads with the newpost and lastpost attributes in the query string.
Made matches less greedy.
-----------------------------------
I wish I could come up with a better name for this plugin..
Basically what this does is if someone posts a link in a thread that links to a thread in your forum, it will replace the link text with the title of that thread.
For example:
https://vborg.vbsupport.ru/showthread.php?t=83252
Would automatically be displayed as:
Hacks should be released in ONE ZIP file please (https://vborg.vbsupport.ru/showthread.php?t=83252)
This is for version 3.5.x and should work for future versions unless they move hooks around.
As far as support, I will reply to this thread when I can.
Installation is simple, go to your admin cp, click plugin system, click download/upload plugin and upload the attached plugin.
NOTE: The second xml file (vbulletin-plugins-anon.xml) is ONLY needed for the anonymizer hack. If you have that hack installed, then use the second file, otherwise, use the first. Only install the second file IF you use the anonymizer hack. It is either or, don't install both!
Also note if you have other plugins that alter links other than the anonymizer, such as mods that make your links look like html pages, or in anyway alters links entered into posts, then this will probably not work for you.
The only other thing you should do after that is CLICK INSTALL. :)
Hmm, not sure if it is because we use the anonymiser plug in but no go at my site using 3.51
Jafo232
11-09-2005, 11:56 AM
Not sure what that anonymiser plugin is, but make sure you enable this plugin, and that you are using LOCAL links. It will not link titles to other forums, just your own.
Jafo232
11-09-2005, 11:59 AM
You should also note that it will not parse titles if someone links to a particular post in a thread, only if they link to the thread itself.
michaelbenson
11-09-2005, 12:00 PM
Thanks for this, will this replace links already posted before applying the plugin?
Jafo232
11-09-2005, 12:01 PM
Thanks for this, will this replace links already posted before applying the plugin?
Yes it will. It does not modify any database data, it parses it after it is retrieved.
The plug in defaults to Active. The link I added was the title thread of another internal forum. See my example here
http://www.cpfools.com/forum/showthread.php?p=11929#post11929
Jafo232
11-09-2005, 12:17 PM
The plug in defaults to Active. The link I added was the title thread of another internal forum. See my example here
http://www.cpfools.com/forum/showthread.php?p=11929#post11929
I think this is because of your anonymizer hack, because if you look at the link in that thread:
http://www.cpfools.com/forum/showthread.php?t=4281
The actual link is:
http://www.anonym.to/?http://www.cpfools.com/forum/showthread.php?t=4281
Which will mean nothing to the plugin. The plugin will search for the setting you have for Forum URL in your vbsettings and ignore all other URL's. The only way that MIGHT work, and I am not sure is if you change your Forum URL setting to:
http://www.anonym.to/?http://www.cpfools.com/forum
That is what I suggested in first post. May need to add a *Won't work with anonymizer plug in.
Good mod though.
Jafo232
11-09-2005, 12:27 PM
That is what I suggested in first post. May need to add a *Won't work with anonymizer plug in.
Good mod though.
I am not familiar with the anonymizer hack, but I modified the original plugin and attached it to the mod post up top. Try that one, it should work for you (vbulletin-plugins-anon.xml).
New plug in with Anon add-in worked like a charm! Clicked install
Lea Verou
11-09-2005, 12:54 PM
Thanks m8! This looks awsome!! :D
Lea Verou
11-09-2005, 12:56 PM
Btw did you start coding the plugin from the me irc hack? :p
Jafo232
11-09-2005, 01:00 PM
Btw did you start coding the plugin from the me irc hack?
Yeah, I was tinkering with that hack because it is broken (see my post in that thread). It gave me the inspiration for writing this hack.
Lea Verou
11-09-2005, 01:02 PM
Sorry for a 3rd post but this plugin has quite a lot of bugs...
1. If you want another text displayed and not the title it doesn't appear, only the link does.
2. Sometimes it does not parse the URL
for these reasons I will disable the plugin but I will not click uninstall cause I hope these will be fixed and I want to be notified :)
Lea Verou
11-09-2005, 01:03 PM
Yeah, I was tinkering with that hack because it is broken (see my post in that thread). It gave me the inspiration for writing this hack.
Lol, I did the same thing with another hack of mine (the custom smilie bbcode) so I remembered the variables, lol. Gotcha! :p
Jafo232
11-09-2005, 01:03 PM
Sorry for a 3rd post but this plugin has quite a lot of bugs...
1. If you want another text displayed and not the title it doesn't appear, only the link does.
2. Sometimes it does not parse the URL
Can you either post or PM me an example? I cannot replicate what you mean..
Lea Verou
11-09-2005, 01:09 PM
Can you either post or PM me an example? I cannot replicate what you mean..
Write for example "blah blah" and then select it, click the url button and enter the thread url. If you post you'll see that "blah blah" is lost and replaced with the link of the thread.
As for the other bug I don't know when it happens :( It seems to occur randomly but quite often... :(
Jafo232
11-09-2005, 01:11 PM
Write for example "blah blah" and then select it, click the url button and enter the thread url. If you post you'll see that "blah blah" is lost and replaced with the link of the thread.
As for the other bug I don't know when it happens :( It seems to occur randomly but quite often... :(
Are you using the anonymizer version? I just tried highlighting text, and entering the link, and it works fine for me.
Jafo232
11-09-2005, 01:12 PM
Otherwise my guess is, it is conflicting with another plugin you have that uses the postbit_display_complete hook..
Lea Verou
11-09-2005, 01:13 PM
Are you using the anonymizer version? I just tried highlighting text, and entering the link, and it works fine for me.
Nope, I'm using the normal version.
I wish I could give you the url for it but my Testing board is hidden from normal members and also I have disabled the plugin...
Do you have a board in which I could try to replicate the problem? :)
The only hack I have in that hook is mine and I'm sure it doesn't conflict as it's totaly different (it parses the bbcode [smilie=1,2,3] for example)
Jafo232
11-09-2005, 01:17 PM
Do you have a board in which I could try to replicate the problem? :)
[smilie=1,2,3] for example)
Shot you a PM. :)
croportal
11-09-2005, 03:22 PM
it doesnt working
http://www.croportal.net/forum/showthread.php?p=26281#post26281 see this
GamerzWorld
11-09-2005, 03:31 PM
Nope not working for me either on Vbulletin 3.5 :(
Boofo
11-09-2005, 05:18 PM
Isn't this variable used by a few other plug-ins?
$mepattern
I think Dean's meIRC hack used that for one, doesn't it? I could be wrong, though. ;)
rb290
11-09-2005, 05:29 PM
hmm dont think it worked
gotta enable it anywhere ?
rb290
11-09-2005, 05:48 PM
oh does this work for 3.5 ?
A little clearification.
1. I am running it fine in 3.5.1
2. Regarding this quote NOTE: The second xml file (vbulletin-plugins-anon.xml) is ONLY needed for the anonymizer hack. If you have that hack installed, then use the second file, otherwise, use the first. Only install the second file IF you use the anonymizer hack. It is either or, don't install both!
You only need the second xml file IF you are also anonymizing internal links.
i.e. have http://www.anonym.to/? located in Local addresses are not anonymized If you leave this option blank, the value for vBulletin Options Cookie Domain will be used
area of the Link Anonymizer
Lea Verou
11-09-2005, 06:45 PM
Isn't this variable used by a few other plug-ins?
$mepattern
I think Dean's meIRC hack used that for one, doesn't it? I could be wrong, though. ;)
Boofo I've already asked that above, lol
Boofo
11-09-2005, 08:03 PM
Boofo I've already asked that above, lol
You asked if anything conflicted with this. I was pointing out what it MIGHT be. ;)
Jafo232
11-09-2005, 08:36 PM
it doesnt working
http://www.croportal.net/forum/showthread.php?p=26281#post26281 see this
Because you are using another hack to make your pages look like html pages. It conflicts with the hack.
This will only parse links that look like so:
http://yourdomain.com/path/to/your/forum/showthread.php?t=3123
In otherwords, if you have another plugin that parses or in any other way alters links, this plugin will not work.
Jafo232
11-09-2005, 09:41 PM
Most of the problems people seemed to be having was when using goto=lastpost or goto=newpost attributes in the query string, which the original hack would not parse.
Added support for these in the hack and speeded up the match routine to make them more greedy.
If you have version 1.0, just uninstall that plugin, and reinstall 1.01.
Casperddc
11-09-2005, 10:01 PM
Put it on the boards this morning - thanks!
Jafo232
11-14-2005, 10:05 AM
It should just be noted that if you have a hack that already alters links in some sort of way, this might not work for you (except anonymizer).
revlisoft
11-29-2005, 05:42 AM
Is there a fix available for when there are 2 links in the same post? When that happens the following link gets it's title replaced too.
AshokForums.com
11-29-2005, 07:49 PM
Wow brilliant!! Thanks.. just what i needed!
bplinson
11-30-2005, 09:31 AM
Installed. Working Good
Ramsesx
11-30-2005, 03:09 PM
Hm, it doesn't show in the plugins system, what name should it have, Replace Local Links With Title ?
Mastar
12-01-2005, 04:19 PM
Hm, it doesn't show in the plugins system, what name should it have, Replace Local Links With Title ?
And is there any settings for it? Don't see it either!
Mastar
12-04-2005, 10:32 PM
It works with the annoy links, nice!
there's a bug
test
http://www.gossiprocks.com/forum/showthread.php?t=650
http://www.gossiprocks.com/forum/showthread.php?t=4537
http://www.gossiprocks.com/forum/showthread.php?t=5509
http://www.gossiprocks.com/forum/showthread.php?t=5274
produces
The Haiku Thread
The Haiku Thread
The Haiku Thread
The Haiku Thread
you can't post more than 1 link in a post...
bplinson
12-05-2005, 05:11 AM
It worked on my forum for a day and now seems to not work. Any idea what would cause that?
Ramsesx
12-09-2005, 01:20 AM
It's working very nice and save me lot of work, thank you Jafo, the mistake first I made was to try it with a post link instead a thread link.
there's a bug
test
http://www.gossiprocks.com/forum/showthread.php?t=650
http://www.gossiprocks.com/forum/showthread.php?t=4537
http://www.gossiprocks.com/forum/showthread.php?t=5509
http://www.gossiprocks.com/forum/showthread.php?t=5274
produces
The Haiku Thread
The Haiku Thread
The Haiku Thread
The Haiku Thread
you can't post more than 1 link in a post...
Yea, noticed that too today... bummer... uninstalled...
FleaBag
12-12-2005, 09:59 AM
Jafo 232, any chance of a fix for the above mentioned error? I would love to get this installed! :)
rabid dingo
12-14-2005, 09:21 PM
I'm disabling until the multiple links per post error is fixed.
Hi there, I rewrote the plugin a bit. I changed the error with multiple links per post. Also I changed the way of replacing the local links. In my plugin they are only replaced, if no explicit title has been set. See the screenshots for more info on that :)
Ramsesx
12-17-2005, 12:57 PM
thanks, how do I make it, uninstall the previous and after install your file?
schöne Seite übrigens, ist das vbadvanced cmps?
you may uninstall the previous or disable it, as you like :)
Ne, die hp ist nicht an das Forum angebunden. Wir hatten vorher phpBB, das war angebunden
Drago912
12-17-2005, 02:49 PM
you may uninstall the previous or disable it, as you like :)
Ne, die hp ist nicht an das Forum angebunden. Wir hatten vorher phpBB, das war angebunden
what is the name of the previous plug-in, I cant find it in the list of plug-ins I have installed??
Smiry Kin's
12-17-2005, 05:59 PM
Very wicked, nice work!
what is the name of the previous plug-in, I cant find it in the list of plug-ins I have installed??
Original Plugin is called "Title_Replace"
Drago912
12-19-2005, 01:17 PM
Thanks very much........:)
MrNase
12-25-2005, 01:25 PM
Too bad it isn't working with vBSEO :(
I guess I have to suggest something like this to the devs :)
onkel.joi
01-01-2006, 04:10 PM
workin on 3.5.2 ?
Not working for me
Xplorer4x4
01-06-2006, 07:55 AM
Hi there, I rewrote the plugin a bit. I changed the error with multiple links per post. Also I changed the way of replacing the local links. In my plugin they are only replaced, if no explicit title has been set. See the screenshots for more info on that :)
I cant get yours or the one above to work on 3.5.3.
I cant get yours or the one above to work on 3.5.3.
I'm running 3.5.3 since shortly after release and I must say it's still working.
Xplorer4x4
01-08-2006, 09:25 PM
I'm running 3.5.3 since shortly after release and I must say it's still working.
I will test it again, but not working for me.
installed and workin on 3.5.3
is it possbile to do this for showpost and forumdisplay scripts?
vietkieu_cz
02-05-2006, 06:53 AM
it does not work for me, i'm running vbb 3.5.3 :???
Tralala
02-08-2006, 08:37 AM
The original didn't work for me, it just made multiple posts with a single (unchanged) URL.
Hi there, I rewrote the plugin a bit. I changed the error with multiple links per post. Also I changed the way of replacing the local links. In my plugin they are only replaced, if no explicit title has been set. See the screenshots for more info on that :)
I tried this one too, (after removing the other.) Still no go. Local URLS just stay he same. I, too, am on 3.5.3. Any clues?
Ok, i figured out, that my fixed plugin doesn't work if you use the WYSIWYG editor to post. It only works if the normal or enhanced editor is being used. So I just fixed the fixed version again, and it should work now. It now replaces links like the original version does, so it will also replace links if you set a title for them.
Ramsesx
02-27-2006, 12:48 PM
Ok, that's it. Thank you very much jj :)
Working on 3.5.0
I don't use the WYSIWYG editor to post, but on 3.5.4 it doesn't work.
Tralala
02-27-2006, 01:49 PM
Ok, i figured out, that my fixed plugin doesn't work if you use the WYSIWYG editor to post. It only works if the normal or enhanced editor is being used. So I just fixed the fixed version again, and it should work now. It now replaces links like the original version does, so it will also replace links if you set a title for them.
Thanks, I tried again but it still didn't work. Running 3.5.3 over here. I even switched from WYSIWYG editor to Standard, and I still couldn't get it to work. Posted messages with local links didn't change.
Could you give some more info? I cannot help you that way...
Here you can see it workin on a vb 3.5.4 which is not mine/ours:
http://www.checkmag.de/showthread.php?p=1984#post1984
Tralala
02-27-2006, 05:56 PM
Could you give some more info? I cannot help you that way...
Here you can see it workin on a vb 3.5.4 which is not mine/ours:
http://www.checkmag.de/showthread.php?p=1984#post1984
Oh, I'm sure it works for some folks. What more info would you like? I installed the hack, I posted a link of a forum thread, and it doesn't get the "title," it just stays as the full URL. I tried it with the "Insert Hyperlink" button as well as just pasting in the URL and letting VB parse it as a hyperlink.
I tried it in both the vB default skin as well as my 3rd party add-on. Tried it with the Enhanced Editor as well as the Standard. On Mac OS X running Safari.
Maybe you can post a link to the specific test thread in your forum?
Tralala
02-27-2006, 07:48 PM
Maybe you can post a link to the specific test thread in your forum?
It's a private forum; I'll set up a test thread though and PM you login details if you'd like.
Same here... its on my password protected test forum...
Tralala
02-28-2006, 02:33 AM
You know, I was thinking, maybe that's why it's not working! My forum is private, and guests cannot see forums nor view threads.
Does this hack resolve the URL "externally" or something? That would explain why it only works on public forums.
No, the URL is resolved by reading the vbulletin setting bburl. And it is working on a localhost installation also.
truCido
03-02-2006, 02:51 PM
is there anywhere of making this work in signatures?
truCido
03-02-2006, 08:20 PM
Also I'm getting the below error on some posts :
Warning: preg_replace(): Unknown modifier '/' in /includes/class_postbit.php(279) : eval()'d code on line 10
The only obvious thing that I can see is that there is a forum link and a external link in the same post nothing obvious apart from that?
Ok I've found that if I have the forum link and an external link on the same line then it causes this error (not sure it it works with 2 of the same)
linksysinfo
07-23-2006, 03:39 PM
I have one problem with this. if i post 2 different links in the same post the title of each link are both the same title, even though the link in bb code is correct.
dont post two different links on the same forum or else you'll end up getting duped links. this seems to be broken.
Jarllax
07-24-2006, 09:07 AM
Cool hack, thanks!
ragtek
07-29-2006, 05:15 PM
Works this with 3.6?
By me the Link dont change
big dan
07-30-2006, 02:01 PM
Just what I've been looking for. Thanks for the plugin! :)
FleaBag
07-30-2006, 03:21 PM
Has anyone managed to get this running on 3.6?
wrang
08-01-2006, 03:56 AM
It dosent work with 3.5.4. When i put some more links in a new mess it links to the same adress.
It dosent work with 3.5.4. When i put some more links in a new mess it links to the same adress.
SME PROBLEM HERE. Pitty it is great hack.
This would have much much more install if there is a way to work with URLRewrite...
big dan
11-01-2006, 01:49 PM
Works on 3.6.2 just fine, for me.
ragtek
11-01-2006, 05:18 PM
makes this for every link an query?
if in a posting are 20 links this will be 20 extralinks or?
Switch02
11-17-2006, 02:28 PM
sorry but work in 3.6.3 ?
bollie
04-04-2007, 09:32 AM
Work not for 3.6.5
Req https://vborg.vbsupport.ru/showthread.php?t=143865
home9000
04-10-2007, 06:44 AM
it's work 3.6.5 but when i put some more links in a new mess it links to the same address.
Smiry Kin's
08-16-2007, 12:29 AM
Doesnt work f or me on 3.6.8 anyone got a working verson?
rainyleaves
08-19-2007, 04:46 PM
Doesnt work f or me on 3.6.8 anyone got a working verson?
Me too. VB3.6.8
Please got a working verson 3.6.8....
Jafo232
08-22-2007, 03:10 AM
I will no longer be supporting this mod here, please bury in the graveyard.
Actually I made something else that does this too, and it better and works with ease:
https://vborg.vbsupport.ru/showthread.php?p=1322843
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.