Version: 1.5c, by exportforce
Developer Last Online: Jul 2016
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
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.
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.
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.
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.