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 08-12-2011 09:50 AM

Still working on 4.1.5 for me. :up:

dalreardon 08-19-2011 04:56 AM

Hi,

I am trying to find a mod like this one for VB v4.1.5

Someone referred me to this mod but when I tried to import the product I got an error message that said the product was not compatible with v4.1.5 and it wouldn't allow the import.

Any suggestions of a compatible mod?

EDIT - Have now read all the posts above and see how to make it import.

Did you ever get it to work on editing posts?


Thanks,
Dale.
http://www.settledin.com.au
.
http://www.settledin.com.au/tasforum/
.

HMBeaty 08-19-2011 05:05 AM

Quote:

Originally Posted by dalreardon (Post 2235215)
Hi,

I am trying to find a mod like this one for VB v4.1.5

Someone referred me to this mod but when I tried to import the product I got an error message that said the product was not compatible with v4.1.5 and it wouldn't allow the import.

Any suggestions of a compatible mod?

Thanks,
Dale.
http://www.settledin.com.au
.
http://www.settledin.com.au/tasforum/
.

Open up the .xml and change:
Code:

maxversion="x.x.x"
To:
Code:

maxversion=""
It works just fine in 4.1.5 :D

GamerFill 10-12-2011 03:31 PM

I can confirm that this works in version 4.1.7; I just installed it today.

Make sure you edit the "maxversion" like everyone else said!

HMBeaty 10-12-2011 03:46 PM

Honestly, there's no reason that this SHOULDN'T work on any version of vBulletin....unless they change the bbcode for some reason :P

As stated in previous posts, you would just need to edit (or remove):
HTML Code:

    <dependencies>
        <dependency dependencytype="vbulletin" minversion="3.6.0" maxversion="4.0.0 alpha 1" />
    </dependencies>

To work on vBulletin 4

jamunkala1 12-02-2011 03:08 PM

It works with 4.1.8

Thankyou

Anybody know the plugin which makes you wait for few seconds before taking to external sites

WDS 02-12-2012 09:40 PM

hi, install this product in Vbulletin 4.1.10 and earlier work, but suddenly stopped working and when I changed the title only shows the name of the page.

BirdOPrey5 02-12-2012 09:53 PM

I noticed in 4.x that is you use the WYSIWYG editor it doesn't work but that is because that editor automatically puts the [url] bbcode around the link before you submit it- so the mod never really gets a chance to change the title since it thinks you have chosen your own title.

WDS 02-12-2012 10:06 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2299064)
I noticed in 4.x that is you use the WYSIWYG editor it doesn't work but that is because that editor automatically puts the [url] bbcode around the link before you submit it- so the mod never really gets a chance to change the title since it thinks you have chosen your own title.

Yes, I noticed that the editor always I have for everyone in the "normal" (not WYSIWYG), another thing, when I put the URL in the title instead of leaving it out is the name of the web : play4trophies therefore think it might be a problem in some settings I have.

want a user to access my forum and check it out?

THX

WDS 02-13-2012 12:18 AM

BirdOPrey5 Since I discovered what the problem is, if users do not get them registered in the permissions can not view the contents of the issues this product just substitute the name will link to the web, so that functions properly unregistered users should be able view the contents of the issues, and could change that, that part of the code should be modified?

by the way, you speak Spanish?

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

BirdOPrey5 10-02-2012 09:21 PM

Quote:

Originally Posted by infnity8x3 (Post 2370298)
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

I haven't tested this but you can try-

In the plugin for this mod find the line:

Code:

return "[url=\"" . $text[2] . $text[4] . "\"]" . preg_replace("/\&.+\;/", '', $title[1]) . "[/url]";
And replace it with the following:

PHP Code:

$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.

infnity8x3 10-02-2012 09:50 PM

I get this error when posting, but thank you so much for working on this.
Code:

Parse error: syntax error, unexpected T_RETURN in /home/rjerick/public_html/mpbp/forum/includes/functions_newpost.php(199) : eval()'d code on line 69
I really want to get this working because i would also love to ignore urls that AME wants to handle.

Edit
fixed it, Just a little oversite.
Code:

if (stripos('x'.$fullurl, $thisbad)
was missing and extra ) at the end, should be
Code:

if (stripos('x'.$fullurl, $thisbad))
So thank you very much for this mod to a mod :) it works great!

Mr_Running 10-12-2012 04:09 PM

1 Attachment(s)
changed the maxversion="4.3.9

While importing product on 4.2 received this ...
Code:

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in [path]/includes/class_core.php on line 724
??

BirdOPrey5 10-12-2012 04:36 PM

Can you import any other product? This looks like an error with your product system not this specific product.

Mr_Running 10-13-2012 01:14 AM

Yes, I can import other products without any warnings.

Everything so far seems to be working even with the warning after importing this mod. I will post back if there is any change.

Evoklub 11-11-2012 07:08 AM

During install, I got this message:

https://vborg.vbsupport.ru/external/2015/04/31.png

After that, install is successfull, but the mod doesn't work.

Can you help me?

New Joe 06-30-2013 11:52 PM

Certain urls give time outs when posting with using this mod on vb4
Most of the time it's ok
anyone know of a fix?

kehindelawal 07-05-2014 10:47 PM

IS this working with vb 5?

ozzy47 07-05-2014 10:49 PM

Quote:

Originally Posted by kehindelawal (Post 2505419)
IS this working with vb 5?

This would have to be rewritten for vB5

BirdOPrey5 07-06-2014 05:53 PM

Quote:

Originally Posted by kehindelawal (Post 2505419)
IS this working with vb 5?

Quote:

Originally Posted by ozzy47 (Post 2505420)
This would have to be rewritten for vB5

It's not related to this version but it does the same thing for VB5: https://vborg.vbsupport.ru/showthread.php?t=288954

MaXimus 08-15-2014 01:03 PM

does this work with vb 3.8.8?

ozzy47 08-15-2014 01:20 PM

Yes it should.

MaXimus 08-15-2014 02:26 PM

I imported it into my vb 3.8.8 forum and it DID work

but the moment I imported it I got some mysql error which was too quick for me to even see to copy/paste here :(

ozzy47 08-15-2014 03:40 PM

Quote:

Originally Posted by MaXimus (Post 2511404)
I imported it into my vb 3.8.8 forum and it DID work

but the moment I imported it I got some mysql error which was too quick for me to even see to copy/paste here :(

As long as the mod works, and you get no other errors, I would not worry to much about it.

darnoldy 08-21-2014 02:14 PM

I have opened up the xml file in a text editor. I can't say that I fully understood the codeĀ—i'm not very fluent in php.

However, I assume that this script could be modified to also get the open graph meta data and display that within a post?

GigaSb 04-05-2015 05:58 PM

Quote:

Originally Posted by Evoklub (Post 2380186)
During install, I got this message:

https://vborg.vbsupport.ru/external/2015/04/31.png

After that, install is successfull, but the mod doesn't work.

Can you help me?

got this error too, any chance to get help ?

Darkman7030 05-03-2015 10:09 AM

true it is also possible to thread title display instead Title Tag?

BirdOPrey5 09-04-2015 04:48 PM

If you upgrade to higher versions of PHP after upgrading to VB 3.8.9 and find this mod is causing deprecation warnings edit the Title_Replace plugin in plugin manager.

Find the code (at the very bottom):
Code:

        $messagetext = preg_replace(
                '#(^|\[/(' . $skiptaglist . ')\])(.*(\[(' . $skiptaglist . ')|$))#siUe',
                "convert_url_to_bbcode_callback_auto_title('\\3', '\\1')",
                $messagetext
        );

And replace it with:
Code:

        $messagetext = preg_replace_callback(
                '#(^|\[/(' . $skiptaglist . ')\])(.*(\[(' . $skiptaglist . ')\]|$))#siU',
                function ($matches)
                {
                        return convert_url_to_bbcode_callback_auto_title($matches[3], $matches[1]);
                },
                $messagetext
        );

And save changes.

That should resolve the issue.

XenonKilla 09-05-2015 06:34 AM

After I PM'd you and didn't get a response I had someone else look into this issue. This is the code they came up with...

Code:

        $messagetext = preg_replace_callback(
                '#(^|\[/(' . $skiptaglist . ')\])(.*(\[(' . $skiptaglist . ')\]|$))#siU',
                function ($matches)
                {
                        return convert_url_to_bbcode_callback_auto_title($matches[3], $matches[1]);
                },
                $messagetext
        );


I haven't tested your code but I know for certain that the one above works as I'm currently using it in a production environment.

Looks like the same code to me just a different variable name correct?

BirdOPrey5 09-06-2015 09:01 AM

Probably, I know my code works, if you're sure the other code works that is fine too.

"My code" by the way is virtually the same code from the VB 3.8.9 source code, which I believe the original bit of code it replaces was copied from earlier 3.x source code.

Next time if you do PM me for help and find the answer please let me know so I don't waste time working on something you no longer need.


All times are GMT. The time now is 11:38 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.01506 seconds
  • Memory Usage 1,874KB
  • 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
  • (12)bbcode_code_printable
  • (1)bbcode_html_printable
  • (5)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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