Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Title Tag Fetcher (Auto Replace URL with Titletag) Details »»
Title Tag Fetcher (Auto Replace URL with Titletag)
Version: 1.5c, by exportforce exportforce is offline
Developer Last Online: Jul 2016 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.x Rating:
Released: 08-30-2008 Last Update: 08-31-2008 Installs: 89
Uses Plugins
 
No support by the author.

Hi there.

Since I needed a new URL Autotext Generator, I always loved the prework of Jafo232 and his Replace URL's With Page Title.
I just did some modifications on this Mod and for some forseeing mistypings, I also leaned out the checking of the "www" if given.

For those who don't know that mod it's quite simple:
If you post an URL in the Forums, this Mod just loads the <title>XXXXXX</title> out of the linked website.

The title won't be read if the following conditions occur:
  • The linked page simply has no <title>-Tag
  • The page is down or the <title>-Tag is not being found within the first 60 seconds
  • The <title>-Tag is not being found within the first 1000 lines of code.
Installation:
Just import the XML via the ACP and thats all.

Uninstall:
Just kill it out of your ACP.

01.09.2008 Update
Fixed Typo which got us a parse error

Download Now

File Type: zip Title Tag Replacer.zip (1.4 KB, 812 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 08-15-2014, 01:03 PM
MaXimus MaXimus is offline
 
Join Date: Nov 2011
Location: Dubai, U.A.E.
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work with vb 3.8.8?
Reply With Quote
  #73  
Old 08-15-2014, 01:20 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it should.
Reply With Quote
Благодарность от:
MaXimus
  #74  
Old 08-15-2014, 02:26 PM
MaXimus MaXimus is offline
 
Join Date: Nov 2011
Location: Dubai, U.A.E.
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I imported it into my vb 3.8.8 forum and it DID work

but the moment I imported it I got some mysql error which was too quick for me to even see to copy/paste here
Reply With Quote
  #75  
Old 08-15-2014, 03:40 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MaXimus View Post
I imported it into my vb 3.8.8 forum and it DID work

but the moment I imported it I got some mysql error which was too quick for me to even see to copy/paste here
As long as the mod works, and you get no other errors, I would not worry to much about it.
Reply With Quote
  #76  
Old 08-21-2014, 02:14 PM
darnoldy darnoldy is offline
 
Join Date: Dec 2004
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have opened up the xml file in a text editor. I can't say that I fully understood the code—i'm not very fluent in php.

However, I assume that this script could be modified to also get the open graph meta data and display that within a post?
Reply With Quote
  #77  
Old 04-05-2015, 05:58 PM
GigaSb GigaSb is offline
 
Join Date: Aug 2006
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Evoklub View Post
During install, I got this message:



After that, install is successfull, but the mod doesn't work.

Can you help me?
got this error too, any chance to get help ?
Reply With Quote
  #78  
Old 05-03-2015, 10:09 AM
Darkman7030 Darkman7030 is offline
 
Join Date: Nov 2014
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

true it is also possible to thread title display instead Title Tag?
Reply With Quote
  #79  
Old 09-04-2015, 04:48 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you upgrade to higher versions of PHP after upgrading to VB 3.8.9 and find this mod is causing deprecation warnings edit the Title_Replace plugin in plugin manager.

Find the code (at the very bottom):
Code:
	$messagetext = preg_replace(
		'#(^|\[/(' . $skiptaglist . ')\])(.*(\[(' . $skiptaglist . ')|$))#siUe',
		"convert_url_to_bbcode_callback_auto_title('\\3', '\\1')",
		$messagetext
	);
And replace it with:
Code:
	$messagetext = preg_replace_callback(
		'#(^|\[/(' . $skiptaglist . ')\])(.*(\[(' . $skiptaglist . ')\]|$))#siU',
		function ($matches)
		{
			return convert_url_to_bbcode_callback_auto_title($matches[3], $matches[1]);
		},
		$messagetext
	);
And save changes.

That should resolve the issue.
Reply With Quote
Благодарность от:
MarkFL
  #80  
Old 09-05-2015, 06:34 AM
XenonKilla XenonKilla is offline
 
Join Date: May 2011
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After I PM'd you and didn't get a response I had someone else look into this issue. This is the code they came up with...

Code:
	$messagetext = preg_replace_callback(
		'#(^|\[/(' . $skiptaglist . ')\])(.*(\[(' . $skiptaglist . ')\]|$))#siU',
		function ($matches)
		{
			return convert_url_to_bbcode_callback_auto_title($matches[3], $matches[1]);
		},
		$messagetext
	);

I haven't tested your code but I know for certain that the one above works as I'm currently using it in a production environment.

Looks like the same code to me just a different variable name correct?
Reply With Quote
  #81  
Old 09-06-2015, 09:01 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Probably, I know my code works, if you're sure the other code works that is fine too.

"My code" by the way is virtually the same code from the VB 3.8.9 source code, which I believe the original bit of code it replaces was copied from earlier 3.x source code.

Next time if you do PM me for help and find the answer please let me know so I don't waste time working on something you no longer need.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:54 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05605 seconds
  • Memory Usage 2,336KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete