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
  #52  
Old 02-13-2012, 11:13 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do not speak spanish and honestly I am having trouble following your English.

If you're saying the title isn't being displayed when they link to a page that you have to be registered to view, there is no fix for this- the request to view the page is coming from your sever not from the user making the post so your server will always be a guest since it cannot login to any site.

I suppose, and I'm just thinking out loud here, if it's your own site (internal linking) you could create some sort of mod that automatically puts the IP address of your server into a different usergroup so your system doesn't have to login but that is a serious undertaking- not 100% sure it's possible.
Reply With Quote
  #53  
Old 02-13-2012, 01:34 PM
WDS WDS is offline
 
Join Date: May 2011
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First, I apologize for my horrible English, I use a translator to communicate.

I understand what you say, but could not edit anything to make it work?
If you can not just thank you, I've helped a lot and I appreciate the effort.
Reply With Quote
  #54  
Old 02-14-2012, 12:39 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unfortunately there is no way to do this with a mod...

On VB 3.8.7 I made this manual change to showthread.php

Find this code:

PHP Code:
if (!($forumperms $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms $vbulletin->bf_ugp_forumpermissions['canviewthreads']))
{
    
print_no_permission();
}
if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($thread['postuserid'] != $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] == 0))
{
    
print_no_permission();


Replace with:
PHP Code:
//Customer perm override for title tag grabber
if ($_SERVER["REMOTE_ADDR"] == "999.999.999.999")
{
  
//Do nothing
}
else
{
  if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms $vbulletin->bf_ugp_forumpermissions['canviewthreads']))
  {
    
print_no_permission();
  }
  if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($thread['postuserid'] != $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] == 0))
  {
    
print_no_permission();
  }
// Cust perm override end if 
Replace 999.999.999.999 with the ip address of your web server. (You can "ping" your website domain to get your server ip address)

Note however that it is possible for a hacker to "fake" their IP address and gain access to your hidden threads via this method.

I only use it for threads any registered user can see, they are only hidden from guests on my forum so it works for me.
Reply With Quote
  #55  
Old 02-14-2012, 01:33 PM
WDS WDS is offline
 
Join Date: May 2011
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Unfortunately there is no way to do this with a mod...

On VB 3.8.7 I made this manual change to showthread.php

Find this code:

PHP Code:
if (!($forumperms $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms $vbulletin->bf_ugp_forumpermissions['canviewthreads']))
{
    
print_no_permission();
}
if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($thread['postuserid'] != $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] == 0))
{
    
print_no_permission();


Replace with:
PHP Code:
//Customer perm override for title tag grabber
if ($_SERVER["REMOTE_ADDR"] == "999.999.999.999")
{
  
//Do nothing
}
else
{
  if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms $vbulletin->bf_ugp_forumpermissions['canviewthreads']))
  {
    
print_no_permission();
  }
  if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($thread['postuserid'] != $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] == 0))
  {
    
print_no_permission();
  }
// Cust perm override end if 
Replace 999.999.999.999 with the ip address of your web server. (You can "ping" your website domain to get your server ip address)

Note however that it is possible for a hacker to "fake" their IP address and gain access to your hidden threads via this method.

I only use it for threads any registered user can see, they are only hidden from guests on my forum so it works for me.
thanks my Friend.
I sent a PM to let you know a project that came to my head to see if it's easy to do and, if possible.
Reply With Quote
  #56  
Old 05-11-2012, 02:25 PM
ss@solidsignal ss@solidsignal is offline
 
Join Date: Jan 2012
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like to auto-bold the title. Is there a way to do that?
Reply With Quote
  #57  
Old 05-11-2012, 02:44 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit the plugin for this product-

Find the line:

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

Code:
return "[B][url=\"" . $text[2] . $text[4] . "\"]" . preg_replace("/\&.+\;/", '', $title[1]) . "[/url][/B]";
Reply With Quote
Благодарность от:
res6cue
  #58  
Old 05-11-2012, 02:51 PM
ss@solidsignal ss@solidsignal is offline
 
Join Date: Jan 2012
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. BTW your plugins are awesome, BOP5.
Reply With Quote
Благодарность от:
BirdOPrey5
  #59  
Old 05-27-2012, 02:13 PM
Emeralda's Avatar
Emeralda Emeralda is offline
 
Join Date: Oct 2011
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



Jafo's version worked with 4.x though.
Reply With Quote
  #60  
Old 05-27-2012, 03:02 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Emeralda View Post


Jafo's version worked with 4.x though.

Open the product .xml file in a text editor. Near the top somewhere you will see max_version or something like that... change it to 5.0.0. And then install.
Reply With Quote
  #61  
Old 10-02-2012, 08:37 PM
infnity8x3 infnity8x3 is offline
 
Join Date: Apr 2009
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any way to add urls for this mod to ignore? for example facebook comes back as
Quote:
Update Your Browser | Facebook
So would like to just ignore facebook and other urls that i find to be incompatible
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 05:15 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.04851 seconds
  • Memory Usage 2,367KB
  • 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
  • (2)bbcode_code
  • (4)bbcode_php
  • (3)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