![]() |
Replace Local Links With Title
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 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
|
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.
|
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.
|
Thanks for this, will this replace links already posted before applying the plugin?
|
Quote:
|
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/showthr...1929#post11929 |
Quote:
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. |
Quote:
|
New plug in with Anon add-in worked like a charm! Clicked install
|
Thanks m8! This looks awsome!! :D
|
Btw did you start coding the plugin from the me irc hack? :p
|
Quote:
|
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 :) |
Quote:
|
Quote:
|
Quote:
As for the other bug I don't know when it happens :( It seems to occur randomly but quite often... :( |
Quote:
|
Otherwise my guess is, it is conflicting with another plugin you have that uses the postbit_display_complete hook..
|
Quote:
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) |
Quote:
|
|
Nope not working for me either on Vbulletin 3.5 :(
|
Isn't this variable used by a few other plug-ins?
PHP Code:
|
hmm dont think it worked
gotta enable it anywhere ? |
oh does this work for 3.5 ?
|
A little clearification.
1. I am running it fine in 3.5.1 2. Regarding this quote Quote:
i.e. have Quote:
area of the Link Anonymizer |
Quote:
|
Quote:
|
Quote:
This will only parse links that look like so: http://yourdomain.com/path/to/your/f...ead.php?t=3123 In otherwords, if you have another plugin that parses or in any other way alters links, this plugin will not work. |
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. |
Put it on the boards this morning - thanks!
|
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).
|
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.
|
Wow brilliant!! Thanks.. just what i needed!
|
Great idea! Thanks. :)
|
Installed. Working Good
|
Hm, it doesn't show in the plugins system, what name should it have, Replace Local Links With Title ?
|
Quote:
|
All times are GMT. The time now is 10:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|