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)

BirdOPrey5 02-13-2012 11:13 AM

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.

WDS 02-13-2012 01:34 PM

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.

BirdOPrey5 02-14-2012 12:39 PM

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.

WDS 02-14-2012 01:33 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2299583)
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.

ss@solidsignal 05-11-2012 02:25 PM

I would like to auto-bold the title. Is there a way to do that?

BirdOPrey5 05-11-2012 02:44 PM

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]";

ss@solidsignal 05-11-2012 02:51 PM

Thanks. BTW your plugins are awesome, BOP5.

Emeralda 05-27-2012 02:13 PM

https://vborg.vbsupport.ru/

Jafo's version worked with 4.x though.

BirdOPrey5 05-27-2012 03:02 PM

Quote:

Originally Posted by Emeralda (Post 2333496)
http://img444.imageshack.us/img444/1...70681600ae.png

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.

infnity8x3 10-02-2012 08:37 PM

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


All times are GMT. The time now is 06:04 PM.

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.01482 seconds
  • Memory Usage 1,766KB
  • 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
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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