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


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.01084 seconds
  • Memory Usage 1,748KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)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