• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Title Tag Fetcher (Auto Replace URL with Titletag)

Admin

Well-Known Member
Staff member
Administrator
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
This actually works just fine on VB4, you just have to edit the XML file to allow it to install.

Download the mod, open the XML file in notepad or another text editor.

Find the line:
<dependency dependencytype="vbulletin" minversion="3.6.0" maxversion="4.0.0 alpha 1" />[/B]
It will be near the top...
Then simply change the max version to 5.0.1:
<dependency dependencytype="vbulletin" minversion="3.6.0" maxversion="5.3.0" />
Any way to add urls for this mod to ignore? for example facebook comes back as

So would like to just ignore facebook and other urls that i find to be incompatible
It will now install and work.
In the plugin for this mod find the line:

PHP:
return "[url=\"" . $text[2] . $text[4] . "\"]" . preg_replace("/\&.+\;/", '', $title[1]) . "[/url]";

And replace it with the following:

PHP:
$fullurl = $text[2].$text[4];
$baddomains = array ('facebook.com',
                     'wikipedia.com',
                     'microsoft.com'  );

foreach ($baddomains AS $thisbad)
{
  if (stripos('x'.$fullurl, $thisbad) //If the bad domain is found in the URL
    return "[url=\"" . $fullurl . "\"]" .$fullurl . "[/url]";
}
//If we get this far it's not a bad domain...
return "[url=\"" . $fullurl . "\"]" . preg_replace("/\&.+\;/", '', $title[1]) . "[/url]";

And obviously you add or remove domain names by making sure they are between single quotes with a comma between each, like facebook.com, wikipedia.com, and microsoft.com in the example. No idea if those are really bad domains or not. I've had trouble with Wikipedia in the past.
Download tuoitreit.vn_Title-Tag-Replacer.zip (1.4 kb)
 

Facebook Comments

Similar threads
Thread starter Title Forum Replies Date
Admin Facebook / Open Graph (og:description) / (og:title) tag fixes for VB 4.1.10+ by BOP5 Add-ons 1
bunvocam9x Share Hướng dẩn add title vào tag Johncms 0
Admin Hướng dẫn fix lỗi all in one seo pack hiển thị sai tag title, page title Wordpress 0
C Share Auto get title làm tag và meta seo Wap builder, wapego, xtgem, wen.ru, wapka, wap4 5
Admin Share code giật title làm tag xtgem Wap builder, wapego, xtgem, wen.ru, wapka, wap4 2
Admin [OzzModz] Remove Thread Prefix From Page Title Xenforo 0
Admin [JoyFreak] Change forum_list title and H1 only Xenforo 0
Admin Remove the name and creation date under the thread title xenforo 2 Xenforo 0
Admin Hướng dẫn thay đổi tiêu đề hàng loạt cho xenforo - Replace title for xenforo with command line Xenforo 0
Admin XFMG Order By Title Xenforo 2 Xenforo 0
Admin Minimum thread title length xenforo 2.0 Xenforo 0
Admin Hướng dẫn đổi màu thanh tiêu đề, thanh tác vụ, viền windows 10 - change color title bar, taskbar, border windo Sử dụng, chia sẻ, hỏi đáp 0
T Hỏi Cách get title cho từng page của Website? Mã nguồn web 10
Admin [AJAX] Search Forums by Title Add-ons 0
Admin Z - Title Prefix/Suffix Add-ons 1
Admin Automatical Merge Threads With The Same Title 1.0.2 Xenforo 0
Admin Share code fix title và text hàng loạt trong zip Mã nguồn wap 0
Admin SEO - forumdisplay title and showthread title - Hiện tên chủ đề không dấu trên tiêu đề vbb 4.2.1 Add-ons 1
Admin 8thos Title URLs 1.0 Xenforo 0
N Thảo luận Cần hướng dẫn đặt title cho wordpress Wordpress 0
Admin Change Thread Title Color for Specific Forums on Homepage Add-ons 0
Admin Change Title of Podcast Add-ons 0
Admin Remove Title From Conversation URL 1.0 Xenforo 0
Admin Share code giật title làm tags cho johncms Johncms 0
V Prevent Duplicate Title from Search Results Vbulletin 0
Admin Title và description ảnh hưởng như thế nào đến SEO Thảo luận SEO 0
U Thảo luận Tối ưu hoá thẻ alt,title cho hình ảnh Thảo luận SEO 0
S Title di chuyển khi di chuột Xenforo 0
boy94 Share Full code tự động get title Blog Xtgem All Shared Scripts 4
tubotocdo Share zip truyện Yêu Nhầm Chị Hai...230 phần[Fix title] Mã nguồn wap 1
Admin [XenForo] ChipXf - Show smilies on thread title (fixed) Xenforo 0
Admin Share full code tự động get title blog xtgem Wap builder, wapego, xtgem, wen.ru, wapka, wap4 2
Admin Forum Title Colour Phpbb3x 0
Kidblood Share Mod tự động nhận dạng và hiển thị title của URL trong Vbb Vbulletin 4
H xin zip truyen *** az khong header foot title Wap builder, wapego, xtgem, wen.ru, wapka, wap4 2
Admin [SEO Enhancement] Replace "reload this page" to the thread title Add-ons 0
Admin SCANU - Forum description on title mouseover [as Xenforo] Add-ons 0
Admin Share code kỹ năng sống, hàng đẹp không head, foot, title Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
Admin Hướng dẫn làm title hiện dần dần all version VBB Vbulletin 0
Admin Gạch ngang bài viết bị khóa - closed thread title markup cho vbb 3.x.x, vbb 4.x.x Add-ons 1
H SHARE code kỹ năng sống (Hàng đẹp k head,foot, title) by thucuoi Wap builder, wapego, xtgem, wen.ru, wapka, wap4 1
N Sửa giúp em title của blog Blogger 10
T [xtgem] xin hướng dẫn zip wap, fix title..... Kiến thức lập trình 2
Admin Những điều cần phải tránh khi viết title trong SEO Thảo luận SEO 0
Admin Hướng dẫn fix nhiều title wap xtgem Wap builder, wapego, xtgem, wen.ru, wapka, wap4 20
Admin [OzzModz] Snippet Stop Tag Xenforo 0
Admin [ShikiSuen] Chinese HTML Lang Tag Fix Xenforo 0
H Share [XtGem] Share code lấy id tag tên và ảnh b.bè trên FaceBook Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
Tuzoro Share Hiển thị Tag màu mè cho Wordpress Wordpress 0
Smobi Share Rewrite username tag sử dụng với tên thành viên Johncms 0

Similar threads

New posts New threads New resources

Back
Top