The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Title Tag Fetcher (Auto Replace URL with Titletag) Details »» | |||||||||||||||||||||||||||||
Title Tag Fetcher (Auto Replace URL with Titletag)
Developer Last Online: Jul 2016
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:
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
Show Your Support
|
Comments |
#112
|
||||
|
||||
I have tried that yes - disabling AutoTagger but leaving this mod, which is the one I care about more, running, but still posts invisible and this PhP error:
With autotagger off, but external title fetcher ON (under php 7): [12-May-2017 20:08:35 America/Los_Angeles] PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/*****/public_html/*****.com/forums/includes/functions_newpost.php(196) : eval()'d code on line 68 |
#113
|
|||
|
|||
You could try editing the plugin from your AdminCP.
This seems to be what it doesn't like (at the very end of the plugin code - PLUGIN not PRODUCT): Code:
$messagetext = preg_replace( '#(^|\[/(' . $skiptaglist . ')\])(.*(\[(' . $skiptaglist . ')|$))#siUe', "convert_url_to_bbcode_callback_auto_title('\\3', '\\1')", $messagetext ); Code:
$messagetext = preg_replace_callback( '#(^|\[/(' . $skiptaglist . ')\])(.*(\[(' . $skiptaglist . ')|$))#siUe', "convert_url_to_bbcode_callback_auto_title('\\3', '\\1')", $messagetext ); |
#114
|
||||
|
||||
Do appreciate the help! but it did not solve anything.
When I switched out that code and tested it with PhP 5.6 running, the mod stopped fetching external titles, and the regular URL posted with no conversion to title. Same result with PhP 7 running, whether I had the other mod (auto tagger), on or off - posts were no longer invisible, but the regular URL posted with no conversion to title. i.e. the replaced code did eliminate the weird, invisible post behavior, but it also stopped the external title fetcher from fetching external titles, whether in PhP 5.6 or 7. |
#115
|
|||
|
|||
Try that, works for me
replace Code:
$messagetext = preg_replace( '#(^|\[/(' . $skiptaglist . ')\])(.*(\[(' . $skiptaglist . ')|$))#siUe', "convert_url_to_bbcode_callback_auto_title('\\3', '\\1')", $messagetext ); Code:
$messagetext = preg_replace_callback( '#(^|\[/(' . $skiptaglist . ')\])(.*(\[(' . $skiptaglist . ')|$))#siU', function($m) { return convert_url_to_bbcode_callback_auto_title($m[3], $m[1]); }, $messagetext ); |
#116
|
||||
|
||||
Very good! thank you. Now the Title Tag Fetcher (Auto Replace URL with Titletag) mod works at my forum running 4.2.5 with PhP 7 enabled, without making posts invisible.
I wonder if you could take a look at this: https://vborg.vbsupport.ru/showthrea...07#post2586407 for the other mod, Automatic Tagger From Message Content and Title - the issue seems to be similar in that the threads/posts are happening, but error codes interrupt the process. |
#117
|
|||
|
|||
Quote:
However, on two SSL (https://) forums, it no longer fetches the page title, whether the URL being fetched is https:// or http:// This is the entire updated plugin: PHP Code:
See https://vborg.vbsupport.ru/showthread.php?t=323627 You need to have this setting enabled: allow_url_fopen = On |
#118
|
|||
|
|||
To simplify updating for PHP 7.x, use attached product. The text files are for information only: Just delete the 1.5c version and import the new xml product (no files to upload).
Also posted at https://vborg.vbsupport.ru/showthread.php?t=325234 Please post there for support and I'll do what I can to help. |
Благодарность от: | ||
BirdOPrey5 |
#119
|
||||
|
||||
Thanks djbaxter. So, I did what rhodium suggested in post #114 but what you updated and attached there is different?
|
#120
|
|||
|
|||
How is it different?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|