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)

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 04:35 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.01142 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_code_printable
  • (2)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