vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Replace Local Links With Title (https://vborg.vbsupport.ru/showthread.php?t=100449)

Jafo232 11-08-2005 10:00 PM

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. :)

C_P 11-09-2005 11:54 AM

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

Quote:

Originally Posted by michaelbenson
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.

C_P 11-09-2005 12:10 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/showthr...1929#post11929

Jafo232 11-09-2005 12:17 PM

Quote:

Originally Posted by C_P
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

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

C_P 11-09-2005 12:21 PM

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

Quote:

Originally Posted by C_P
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).


All times are GMT. The time now is 09:22 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08462 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete