vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - Title Tag Fetcher (Auto Replace URL with Titletag) (https://vborg.vbsupport.ru/showthread.php?t=189658)

exportforce 08-30-2008 10:00 PM

Title Tag Fetcher (Auto Replace URL with Titletag)
 
1 Attachment(s)
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

ArnyVee 08-31-2008 06:00 PM

So this is an updated version of the same mod? How does it differ?

exportforce 08-31-2008 06:07 PM

The difference is just very minor, but needed for my forums.
Some fool around with URL's like the "leet and ubber cool" mixing of caps and lower letters.
So I had to add the different www-Versions with caps and non-caps.

I also added the Check for the VBulletin-Version.
Thats quite it.

bokmade 09-01-2008 04:16 AM

Any Demo site ..!!

I Don't get the point ..

exportforce 09-01-2008 06:46 AM

Dunno how to show a demo.
It's quite easy.

If you would post a Link to http://www.vbulletin.org the Script would get in affect.
It would load up the site, get redirected to the portal https://vborg.vbsupport.ru/portal.php (You can manually check that by going to vbulletin.org) and fetch the line
HTML Code:

<title>vBulletin.org Forum - The Official vBulletin Resource!</title>
Now it takes the value of the Title-Tag which is "vBulletin.org Forum - The Official vBulletin Resource!" and puts it as automatic text for the link.

So http://www.vbulletin.org would automatically posted as: vBulletin.org Forum - The Official vBulletin Resource!

Hope that clears things up. :)

KURTZ 09-01-2008 07:44 AM

i've got and error (parse error) with this hack ... also it seems that isn't compatible with the Passive Vid hack installed ...

edit: Parse error: syntax error, unexpected T_STRING in /home/fniv/domains/fniv.it/xxx/xxx/includes/functions_newpost.php(175) : eval()'d code on line 50

exportforce 09-01-2008 08:25 AM

Thank you for the note.
Fixed it.

KURTZ 09-01-2008 08:40 AM

Quote:

Originally Posted by exportforce (Post 1611816)
Thank you for the note.
Fixed it.

yes now it's correct ... but with the Passive VID enabled don't run ... can you give me a solution? thx

exportforce 09-01-2008 08:57 AM

I am sorry, I don't know that Addon, since I create BB-Codes for Youtube and stuff.

Patrick Simmons 09-12-2008 11:05 AM

Quote:

Originally Posted by KURTZ (Post 1611829)
yes now it's correct ... but with the Passive VID enabled don't run ... can you give me a solution? thx

Same here :(

JetHaCkR 09-13-2008 12:21 PM

Nice Job :)

NTT 10-14-2008 06:09 PM

how abount doman name affter the link any idea ???

inciarco 01-03-2009 11:29 PM

For your next Update, it would be great to have the Option to Select the Links to Convert, like:

Internal Links (the Forum's): Yes/No Option :confused:

External Links (Any Other Web Site): Yes/No Option :confused:

So that the Admin can Choose to Select one, both or none of the Options.

In my case I'd like only to use the Internal Links (for now), but the current Mod Converts Both Internal and External Links to their Titles.

Great Mod, I Hope you can offer those Options to make it more Fleible.

My Best Regards.

:)

Da22Da 01-19-2009 06:48 PM

anyone installed it on 380 and got it to work?
i know the version check in there up to 4.0 alpha 1 but does not work on 3.8.0 so far

iyama 02-23-2009 09:11 PM

not working on 3.8.1 . Thnx for in/unstalling and the good job :)

inciarco 02-23-2009 09:48 PM

How can I Edit the Plugin of this Mod for it Only to be Applied to the Local Links (URLs of my Forums) and Not External Links? :confused:

My Best Regards.

:)

relaxiha 04-01-2009 11:48 AM

hello
please upgrade to 3.8.2

tunistunis 05-22-2009 01:48 PM

not working on 3.8.1....

djbaxter 05-22-2009 02:27 PM

Quote:

Originally Posted by tunistunis (Post 1815196)
not working on 3.8.1....

It does work on 3.80, 3.81, and 3.82.

bugzy 06-04-2009 05:34 PM

works pretty good so far

on 3.8.2

cynthetiq 06-20-2009 06:38 PM

thanks! works with 3.8.3 with AME and another itemstats mod.

MAORBARI 07-26-2009 09:44 PM

it is dont work to me
i have 3.8.3..

exportforce 07-29-2009 01:28 PM

Must be a different addon blocking this.
Please try to disable all other addons to check.

HMBeaty 09-11-2009 09:39 PM

Get an error with this modification on vBulletin 3.8.4 when using quick reply saying the message I have entered is too short. My message was well over my character limit. Works when using advanced reply though

arauf 09-16-2009 11:14 AM

hi , im using 3.8.4 , and its not fetching the title for me , i mean when i paste the link , it still looks the same ,where im doing wrong ?

arauf 09-27-2009 07:32 AM

*installed* and working like charm , well , like HMBeauty said , if u use it in advance mode first then it will star workin in quick replay automatically , in VB 3.8.4 , i donu why is that , but thats how i get it worked,

Thanx alot exportforce"for sucha great mod.

exportforce 10-01-2009 01:32 PM

The thing with quick-edit is nothing related to this mod.
Quick Edit goes "another way" of editing. Other mods, related to edit URLs do the same on my boards.

Audax666 10-08-2009 03:18 PM

how long did I searched for that and why didn't I found it?
Until today! Many thanks for that.
Installed:up:

One thing I would like to do is to strip the branding in my title tag at the end

Now it's
"This is my title tag...sub-cultures.de" and I would like to remove the "sub-cultures.de" part.
I grant you three wishes if anyone can help me! :D

farazfaraz 02-02-2010 09:27 AM

احسنت

Cadellin 05-25-2010 09:35 AM

Anyone know if this works on vb4?

lingstar 07-18-2010 02:25 PM

Didn't work in my install of VB4 - got:

The following dependencies were not met:

1. This product is not compatible with version 4.0.3 of vBulletin. (Compatible starting with 3.6.0 / Incompatible with 4.0.0 alpha 1 and greater)

Anyone have any mod that will work?

Thanks!

Barb

BirdOPrey5 11-29-2010 02:09 AM

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" />
It will be near the top...
Then simply change the max version to 4.9.9:
<dependency dependencytype="vbulletin" minversion="3.6.0" maxversion="4.9.9" />

It will now install and work.

BirdOPrey5 11-30-2010 12:01 AM

Anyone got this mod playing nicely with AME 2.5 (Automatic Media Embeder) - with both mods enabled the titles of youtube videos become URL's instead of words.

BirdOPrey5 01-17-2011 01:15 AM

I got this "fixed" - the problem was never with AME, the problem was this mod didn't work on youTube links anyway- because youtube puts line-breaks in their title and this mod couldn't deal with that.

To fix this go to your plugin manger -> edit the "Title Replace" plugin

Find the line:
Code:

preg_match("/<title>[\n\r\s]*(.*)[\n\r\s]*<\/title>/", $page, $title);
Replace it with these lines:
Code:

preg_match("/<title>[\r\n\s]*([^<>]*)<\/title>/i", $page, $title);
$title = preg_replace ("#[\r\n]#"," ", $title);

This will fix the problem with youtube (line breaks in titles) AND the issue someone else mentioned where captial <TITLE> tags didn't work either.

jbizzle 01-17-2011 02:02 AM

Thanks for the fix Bird, but I have yet another question. How come when I edit a post and add a URL it does not fetch the new title? It just leaves it as the URL unless its a new post.

BirdOPrey5 01-17-2011 03:55 AM

yeah I noticed this too. As is the mod only works on "new threads" it doesn't work on edited threads. I will see if I can get it to work on both.

iyama 03-16-2011 06:17 AM

Is this still working on vb4?

HMBeaty 03-16-2011 06:44 AM

Quote:

Originally Posted by iyama (Post 2173885)
Is this still working on vb4?

Works for me (vBulletin 4.1.2)

Alfa1 03-16-2011 01:03 PM

Does this also work for previous posts or only for posts made after installation?
Once this mod is uninstalled, will the links turn back their original state?

BirdOPrey5 03-16-2011 01:07 PM

Only works on new posts.

Links will never change back.


All times are GMT. The time now is 06:00 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.01383 seconds
  • Memory Usage 1,810KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)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
  • (40)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